Summary
User inquires about an API endpoint to grant usage of custom connector definitions across multiple workspaces in Airbyte, referencing a specific API call and SQL insert statement.
Question
I need to do this. is there an api for it?
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer your_api_key' \
-d '{
"actor_definition_id": "4b0bc0ad-0970-4746-886e-5d942840901d",
"workspace_id": "751c086b-d9fe-4e75-b258-0192dc0a0676",
"scope_id": "751c086b-d9fe-4e75-b258-0192dc0a0676",
"scope_type": "workspace"
}'```
to explain, I am uploading my own custom connectors, but sources and destinations. I am using multiple workspaces to organize all of the connections that I have.
Is there a way I can grant definition usage to other workspaces? I can solve this problem if I use sql.
```INSERT INTO actor_definition_workspace_grant (actor_definition_id, workspace_id, scope_id, scope_type)
VALUES ('e3aaaf46-8831-4095-860d-4a495f1946e2', '751c086b-d9fe-4e75-b258-0192dc0a0676', '751c086b-d9fe-4e75-b258-0192dc0a0676', 'workspace');```
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C027KKE4BCZ/p1721885609965509) if you want
to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
['api', 'workspace-grants', 'custom-connectors', 'multiple-workspaces']
</sub>