Patch Playbook
PATCH
/api/research-playbooks/{playbook_id}
const url = 'http://localhost:8000/api/research-playbooks/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"cell_budget_usd":1,"description":"example","enabled":true,"max_steps":1,"name":"example","output_format":"example","prompt_template":"example","schedule_audience_id":"example","schedule_interval_minutes":1,"steps":[{"key":"example","name":"example","output_format":"text","prompt_template":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8000/api/research-playbooks/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cell_budget_usd": 1, "description": "example", "enabled": true, "max_steps": 1, "name": "example", "output_format": "example", "prompt_template": "example", "schedule_audience_id": "example", "schedule_interval_minutes": 1, "steps": [ { "key": "example", "name": "example", "output_format": "text", "prompt_template": "example" } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”playbook_id
required
Playbook Id
string
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PlaybookPatch
object
steps
Any of:
Array<object>
PlaybookStepobject
key
required
Key
string
name
required
Name
string
output_format
Output Format
string
prompt_template
required
Prompt Template
string
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}