Skip to content
Endless Documentation

Set State WorkspaceModels

PATCH
/organizations/{organization_id}/models

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Path Parameters

organization_id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/organizations/org_abc123/models" \  -H "Content-Type: application/json" \  -d '{    "scope": {      "kind": "workspace"    },    "model_ids": [      "string"    ],    "enabled": true  }'
[  {    "model_id": "string",    "enabled": true  }]