PUT
/
v1
/
apps
/
{app_id}
/
models
/
{model_id}
/
toggle
curl --request PUT \
  --url https://api.pulze.ai/v1/apps/{app_id}/models/{model_id}/toggle \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "model": {
    "model": "<string>",
    "provider": "<string>",
    "owner": "<string>",
    "namespace": "<string>",
    "at": "<string>",
    "context_window": 123,
    "until": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "url": "<string>",
    "api_target": "",
    "deprecated_on": "2023-11-07T05:31:56Z",
    "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent": {
      "supports_functions": true,
      "supports_json": true,
      "supports_n": true,
      "supports_penalties": true,
      "supports_stream": true,
      "supports_vision": true,
      "completion_token_cost": 123,
      "prompt_token_cost": 123,
      "base_cost": 123,
      "price_unit": "tokens",
      "model": "<string>",
      "provider": "<string>",
      "owner": "<string>",
      "namespace": "<string>",
      "at": "<string>",
      "context_window": 123,
      "until": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "url": "<string>",
      "api_target": "",
      "deprecated_on": "2023-11-07T05:31:56Z",
      "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "parent": {},
      "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "is_rag": true,
      "is_ft": true,
      "is_open_source": true,
      "is_gdpr": true,
      "is_chat": true,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "added_by": "<string>",
      "added_on": "2023-11-07T05:31:56Z",
      "modified_on": "2023-11-07T05:31:56Z",
      "is_public": true,
      "is_test_model": true,
      "is_pulze_owner": true,
      "default_active": true
    },
    "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "active": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

app_id
string
required
model_id
string
required

Query Parameters

enable
boolean
required

Response

200
application/json
Successful Response
success
boolean
required

The status of the update

model
object | null
active
boolean | null