AgentScheduleService
Agent Schedules
Create a new schedule
Creates a new schedule for an agent
post/v1/workspaces/{workspaceId}/agents/{agentId}/schedules
Path parameters
workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q
Workspace ID.
agentIdstring required
Example:agent_01HXKD2E5NQM3T9AYWCFMGWT9Y
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y",
"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"
}
}
}
}