Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Workspace ID.

Example:

"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"

id
string
required

Model ID

Example:

"model_01HXKD2E5NQM3T9AYWCFKJ4GED"

Body

application/json

Enable model request

Response

OK

metadata
object
required

Resource metadata

spec
object
required

Model specification

state
enum<string>
required
read-only

Whether the model is usable in this workspace. Output only. Use the :enable and :disable actions to transition.

Available options:
STATE_UNSPECIFIED,
STATE_ENABLED,
STATE_DISABLED
info
object

Server-populated info (e.g. the AI provider this model routes through). Populated on reads when requested; see ListModelsRequest.include_info.