422 carries every validator violation, not the first (annex 07 §3).
Field Type Notes slugstring required — namestring required min length 1 max length 200 descriptionstring | null optional — scopeworkspace | organization | platform | nulloptional — avatar_presetanalyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | nulloptional — image_urlstring | null optional max length 2048 is_activeboolean optional Default true. attributesobject optional — revisionRevisionDocumentoptional — change_notestring | null optional max length 500
Status Description Body 201Successful Response AgentView422Validation Error HTTPValidationError
Only the success paths are declared
Any operation may also answer any status in the error catalogue , and
every failure body is the platform envelope — including the 422 this document types
as HTTPValidationError.
The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X POST https://your-deployment.example.com/agents \
-H " Authorization: Bearer $COBRE_TOKEN " \
-H " Content-Type: application/json " \
Field Type Notes idstring (uuid) required — scopeworkspace | organization | platformrequired — organization_idstring (uuid) | null required , nullable— workspace_idstring (uuid) | null required , nullable— slugstring required — namestring required — descriptionstring | null required , nullable— avatar_presetanalyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | nullrequired , nullable— image_urlstring | null required , nullable— is_activeboolean required — attributesobject required — active_revision_idstring (uuid) | null required , nullable— created_by_user_idstring (uuid) | null required , nullable— created_atstring (date-time) required — updated_atstring (date-time) required — active_revisionAgentRevisionView | nulloptional — revision_countinteger | null optional —