AgentService
Agents
Publish an agent
Changed onTransitions an agent to STATE_PUBLISHED, making it available for objectives. The agent must have at least one variation.
post/v1/workspaces/{workspaceId}/agents/{id}:publish
Request
- Base URLhttps://api.cadenya.com
- URLhttps://api.cadenya.com/v1/workspaces/{workspaceId}/agents/{id}:publish
- AuthHTTP bearer
Path parameters
workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q
Workspace ID.
idstring required
Example:agent_01HXKD2E5NQM3T9AYWCFMGWT9Y
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"id": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"info": {
"createdBy": {
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
}
}
}Changes
- warning
removed the optional property
/////from the response with the status - info
added the optional property
/////to the response with the status
- warning
- warning
removed the optional property
/////from the response with the status - info
added the optional property
///////to the response with the status
- warning