Update Ticket
PATCH
/public/v1/tickets/{ticket_id}
const url = 'https://api.aymaragents.com/public/v1/tickets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"status":"open","assignedTo":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","subject":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.aymaragents.com/public/v1/tickets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "status": "open", "assignedTo": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "subject": "example" }'Partially update status/assignedTo/subject (SPEC_API_PUBLICA.md §2.5).
Unknown/foreign ticketId -> 404, zero changes. A NEW assignedTo must resolve to an
assignable tenant user -> 404 otherwise, zero persistence.
Permiso necesario: tenant:tickets.manage
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»ticket_id
required
Ticket Id
string format: uuid
Request Bodyrequired
Sección titulada «Request Bodyrequired»Responses
Sección titulada «Responses»Successful Response
Media typeapplication/json
PublicTicketOut
A single ticket with its embedded comment thread – same shape as the internal
TicketOut (nothing curated away: every field here is already an id/status/text a third
party legitimately needs to track its own ticket).
object
id
required
Id
string
subject
required
Subject
string
status
required
Status
string
createdBy
required
Createdby
string
createdAt
required
Createdat
string
updatedAt
required
Updatedat
string
comments
Comments
Array<object>
PublicTicketCommentOutOne comment in a ticket’s thread – same shape as the internal TicketCommentOut.
object
id
required
Id
string
authorUserId
required
Authoruserid
string
body
required
Body
string
createdAt
required
Createdat
string
Examplegenerated
{ "id": "example", "customerId": "example", "leadId": "example", "conversationId": "example", "subject": "example", "status": "example", "createdBy": "example", "assignedTo": "example", "createdAt": "example", "updatedAt": "example", "comments": [ { "id": "example", "authorUserId": "example", "body": "example", "createdAt": "example" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}