Update restrictions

🚧

This endpoint will be moving

As 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, please contact us at support@split.io 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: view restricting access to the project (formerly known as workspace) for both viewing and editing.
  • If the operation is restricted ("view": true), the Administrators group is required as part of the allowed subjects (resourcePermissions.view set).
  • The admin API 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 admin API Key as part of the allowed users, the value to use as id field is the id field returned in the create API Key response and not the token used 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"
      }
    ]
  }
}
Language