API ReferenceCompanies
Update an agent role
Partially update an agent role.
Requires a valid bearer token. Owner-scoped: only the company owner may update (403 otherwise); a missing company or role (or a role in another company) returns 404.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
company_id*Company Id
role_id*Role Id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial update for an agent role — only provided fields are changed.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/companies/string/roles/string" \ -H "Content-Type: application/json" \ -d '{ "status": "active", "title": "Senior Compliance Reviewer" }'nullEmpty
Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}