Access control
Update an entity's ACL
Add or update a team or user to an entity's ACL.
put/v1/{entityCollection}/{entityId}/acl/{subjectType}/{subjectEntityId}
Path parameters
entityCollection'mock-apis' | 'data-sources' required
Specifies the plural of the entity type for which ACL candidates should be retrieved.
entityIdstring required
Example:jjl8y
The ID of the entity (mock API, data source etc.)
subjectType'user' | 'team' | 'organisation' required
The type of subject in the context of an ACL.
subjectEntityIdstring required
Example:jjl8y
The ID of a subject entity (user, team, organisation)
Request body
Example request
{
"grant": {
"role": "mock_api_editor"
}
}Response
Success
Example response
{
"grant": {
"role": "mock_api_editor"
}
}