Ir al contenido

Agregar un comentario

Ver como Markdown

POST/v1/tickets/{number}/commentsScope write

Agrega un comentario público a una solicitud en nombre de tu integración. Los agentes asignados reciben una notificación como con cualquier respuesta.

Nombre Tipo Descripción
number obligatorio string Número de la solicitud, como GM-000123.
Campo Tipo Descripción
body obligatorio string Texto del comentario. Texto plano; se conservan los saltos de línea. De 1 a 20000 caracteres.
Ejemplo
{
"body": "The issue is back after the restart. Attaching the client log."
}

201 Created · data

Campo Tipo Descripción
author object Quién lo escribió.
author.name string Nombre en el idioma de Accept-Language.
author.type string Uno de agent, contact, integration.
body string Texto del comentario.
createdAt date-time Cuándo se creó.
id integer ID único.
Ejemplo
{
"data": {
"id": 512,
"body": "We replaced the VPN profile. Can you confirm it holds?",
"author": {
"type": "agent",
"name": "Luis Gómez"
},
"createdAt": "2026-12-06T15:40:00Z"
}
}

Todos los errores tienen la misma forma; en Errores están todas las claves.

Ventana de terminal
curl -X POST 'https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123/comments' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "The issue is back after the restart. Attaching the client log."
}'