PATCH
/
api
/
v1
/
workspace
/
{id}
curl --request PATCH \
  --url https://prod.oneloop.ai/api/v1/workspace/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "defaultKeyPrefix": "<string>",
  "defaultAllowedIPs": [
    "<string>"
  ],
  "defaultRateLimitPerSecond": 1,
  "defaultExpiration": 1
}'
{
  "workspace": {
    "id": "<string>",
    "name": "<string>",
    "teamId": "<string>",
    "defaultKeyPrefix": "<string>",
    "defaultAllowedIPs": [
      "<string>"
    ],
    "defaultRateLimitPerSecond": 1,
    "defaultExpiration": 1,
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The workspace id.

Body

application/json
defaultKeyPrefix
string | null
required
defaultAllowedIPs
string[]
required
defaultRateLimitPerSecond
integer | null
required
Required range: x > 0
defaultExpiration
integer | null
required
Required range: x > 0

Response

200
application/json
Workspace
workspace
object
required