How to overwrite content-manager api

actually if you want to change the logic with relation of you content type “api:test.test” - you need to create new or change the core controller (GET, PUT, POST), where you can add you nessesary logic up to this docs Controllers | Strapi Documentation

Just decide at what point (on GET or PUT request for ex) you want to make changes to your collection type. Or there are some lifecycles to inject changes