Update a schedule
Updates a schedule for an agent
Path parameters
Workspace ID.
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
Schedule ID. Accepts the canonical as_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y",
"id": "as_01HXKD2E5NQM3T9AYWCFMZZZBD",
"spec": {
"variationId": "agentvar_01HXKD2E5NQM3T9AYWCF32BSPP"
}
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"spec": {
"variationId": "agentvar_01HXKD2E5NQM3T9AYWCF32BSPP"
},
"info": {
"lastObjectiveId": "obj_01HXKD2E5NQM3T9AYWCFQAZGFV",
"createdBy": {
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
}
}
}Changes
Changed in 5 of the 57 revisions of this API.11112
- ●
removed the request property
spec/datarequest-property-removed
- ●
removed the request property
spec/initialMessagerequest-property-removed
- ●
removed the request property
spec/userDatarequest-property-removed
- ●
removed the optional property
spec/datafrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/initialMessagefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/userDatafrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
spec/firstUserMessagenew-optional-request-property
- ○
added the new optional request property
spec/firstUserMessageDatanew-optional-request-property
- ○
added the new optional request property
spec/systemPromptDatanew-optional-request-property
- ○
added the optional property
spec/firstUserMessageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/firstUserMessageDatato the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/systemPromptDatato the response with the200statusresponse-optional-property-added
- ●
- ●
removed the request property
metadata/bundleKeyrequest-property-removed
- ●
removed the optional property
metadata/bundleKeyfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
info/createdBy/metadata/createdAtto the response with the200statusresponse-optional-property-added
This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the response property
spec/initialMessagebecame optional for the status200response-property-became-optional
- ○
added the new optional request property
spec/userDatanew-optional-request-property
- ○
the request property
spec/initialMessagebecame optionalrequest-property-became-optional
- ○
added the optional property
spec/userDatato the response with the200statusresponse-optional-property-added
- ▲
- ●
removed the request property
spec/statusrequest-property-removed
- ●
removed the optional property
spec/statusfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
metadata/updatedAtto the response with the200statusresponse-optional-property-added
- ○
added the required property
stateto the response with the200statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
PROFILE_TYPE_UNSPECIFIEDenum value to theinfo/createdBy/spec/typeresponse property for the response status200response-property-enum-value-added
- ●