PUT
/
integrations
/
{slug}
/
workspaces
Bulk update workspace access
curl --request PUT \
  --url https://api.portkey.ai/v1/integrations/{slug}/workspaces \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '{
  "workspaces": [
    {
      "id": "ws-my-team-1234",
      "enabled": true,
      "usage_limits": [
        {
          "credit_limit": 10,
          "periodic_reset": "monthly",
          "alert_threshold": 8
        }
      ],
      "rate_limits": [
        {
          "type": "requests",
          "unit": "rpd",
          "value": 123
        }
      ],
      "reset_usage": true
    }
  ],
  "global_workspace_access": {
    "enabled": true,
    "usage_limits": [
      {
        "credit_limit": 10,
        "periodic_reset": "monthly",
        "alert_threshold": 8
      }
    ],
    "rate_limits": [
      {
        "type": "requests",
        "unit": "rpd",
        "value": 123
      }
    ]
  },
  "override_existing_workspace_access": true
}'
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

slug
string
required

Body

application/json

Response

200 - application/json

Workspace access updated successfully

The response is of type object.