POST
/prompts/activate Activate prompts
Enable a set of prompts so they run. Requires `content:write`.
Authenticate with
Authorization: Bearer obk_live_xxx. See authentication. Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Workspace-Id | header | string | required | The workspace to scope the request to. Can also be passed as a `workspace_id` query parameter. |
Request body
Send as JSON in the request body.
| Field | Type | Required | Description |
|---|---|---|---|
prompt_ids | string (uuid)[] | required |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
updated | integer | |
enabled | boolean |
Example request
curl --request POST \
--url https://app.orchly.ai/api/v1/prompts/activate \
--header 'Authorization: Bearer obk_live_xxx' \
--header 'X-Workspace-Id: ws_xxx' \
--header 'Content-Type: application/json' \
--data '{ "prompt_ids": "..." }'const res = await fetch(`https://app.orchly.ai/api/v1/prompts/activate`, {
method: 'POST',
headers: {
'Authorization': 'Bearer obk_live_xxx',
'X-Workspace-Id': 'ws_xxx',
'Content-Type': 'application/json',
},
body: JSON.stringify({"prompt_ids":"..."}),
});
const data = await res.json();import requests
resp = requests.post(
"https://app.orchly.ai/api/v1/prompts/activate",
headers={
"Authorization": "Bearer obk_live_xxx",
"X-Workspace-Id": "ws_xxx",
},
json={"prompt_ids":"..."},
)
data = resp.json() Example response
A 200 response. Dynamic fields are shown as their type.
{
"updated": 0,
"enabled": true
}