Can I toggle integration inheritance from the API?

Say I want to update a Jira integration via the REST API. In the web UI, there’s the option to either inherit default settings from the Gitlab instance, or use custom settings for the project. This is sent as the service[inherit_from_id] property by the web UI.

However, I cannot find an equivalent from the REST API (Integrations API | GitLab). There seems to be no way to change the integration inheritance status for the project. This is a problem with projects that are originally configured to use inheritance: changing any integration settings via API are not reflected in the web UI since it’ll continue displaying the default/inherited settings instead of the new custom ones.

Is there something I’m missing, that makes this possible? Or is this an omission in the API?

1 Like