put deprecatedhttps://api.split.io/internal/api/v2/restrictions
This endpoint will be movingAs a part of integrating with Harness, this endpoint will soon be managed by general Harness systems. We recommend against creating any new integrations with this endpoint unless it is for a temporary purpose. For more information, go to Before and After Guide: API for Split Admins. You can also contact us at [email protected] and we will be happy to guide you to the best path forward.
Access requirements
The Authorization Bearer (Admin API Key authorizing the request) must have one of the following roles and scopes:
Admin API Key roles accepted
- API_ALL_GRANTED
- API_ADMIN
- API_WORKSPACE_ADMIN*
Admin API Key scopes accepted
- GLOBAL
- WORKSPACE*
To learn more about Admin API Key roles and scopes, see API keys overview.
JSON Payload
supported resource's type
workspace
- supported operation:
viewrestricting access to the project (formerly known as workspace) for both viewing and editing. - If the operation is restricted (
"view": true), theAdministratorsgroup is required as part of the allowed subjects (resourcePermissions.viewset). - The
adminAPI Key used to configure the restrictions needs to be included as part of the allowed subjects, otherwise, the key will loose the access to the project (formerly known as workspace). - To include an
adminAPI Key as part of the allowed users, the value to use asidfield is theidfield returned in the create API Key response and not thetokenused to execute requests.
{
"resource": {
"id": "string",
"type": "workspace"
},
"operations": {
"view": true
},
"resourcePermissions": {
"view": [
{
"id": "string",
"type": "user"
},
{
"id": "string",
"type": "group"
},
{
"id": "string",
"type": "api_key"
}
]
}
}