Skip to content

Update a request

View as Markdown

PATCH/v1/tickets/{number}Scope write

Moves a request to another status, changes its priority, or both. The move must be one of the request’s transitions; send note, resolution or closureCode when the transition requires them. Changing the priority requires a note; a raise may wait for a supervisor’s approval, shown in pendingPriority.

Name Type Description
number required string Request number, such as GM-000123.
Field Type Description
closureCode string Closure code. Required for transitions with requiresClosureCode. Up to 80 characters.
note string Reason for the change. Required to change the priority and for transitions with requiresReason. Up to 500 characters.
priority string New priority code. One of low, medium, high, critical, planned.
resolution string Solution applied. Required for transitions with requiresResolution. Up to 20000 characters.
status string Status code to move to. Must be one of the request’s transitions. Up to 50 characters.
Example
{
"status": "resolved",
"resolution": "Replaced the VPN profile and restarted the client."
}

200 OK · data

Field Type Description
channel string Where the request came from: api, portal, email…
closedAt date-time When the request was closed.
closureCode string Closure code, recorded when it was closed.
contact object Who the request is for.
contact.departmentId integer Department, from List departments.
contact.email string Email address. Duty notifies this contact about the request.
contact.locationId integer Location, from List locations.
contact.name string Full name.
contact.phone string Phone number.
createdAt date-time When it was created.
description string Description.
firstResponseAt date-time When an agent first responded.
impact integer How many people or how much business it affects, from 1 (low) to 3 (high).
impactTags string[] Business impact markers: executive, regulatory, financial, security, continuity.
number string Request number, such as GM-000123. Unique within the organization.
pendingPriority object Priority raise waiting for a supervisor’s approval.
pendingPriority.code string Requested priority code.
pendingPriority.name string Requested priority name.
priority object Current priority.
priority.code string Priority code: low, medium, high, critical or planned.
priority.name string Priority name.
resolution string The solution applied, recorded when it was resolved.
resolutionDueAt date-time Deadline for the resolution, from the service level agreement.
resolvedAt date-time When the request was resolved.
responseDueAt date-time Deadline for the first response, from the service level agreement.
service object Service of the catalog the request belongs to.
service.id integer Service ID.
service.name string Service name.
status object Current status.
status.code string Status code, such as in_progress.
status.name string Status name.
subject string Short summary of the request.
transitions object[] Statuses the request can move to next.
transitions[].requiresClosureCode boolean Send closureCode with this move.
transitions[].requiresReason boolean Send note (at least 3 characters) with this move.
transitions[].requiresResolution boolean Send resolution (at least 3 characters) with this move.
transitions[].to object Target status.
transitions[].to.code string Target status code. Send it as status to Update a request.
transitions[].to.name string Target status name.
updatedAt date-time When it last changed.
urgency integer How soon it needs attention, from 1 (low) to 3 (high).
Example
{
"data": {
"number": "GM-000123",
"subject": "VPN disconnects every few minutes",
"description": "Since this morning the VPN drops every 5 to 10 minutes for the whole sales team.",
"status": {
"code": "in_progress",
"name": "In progress"
},
"priority": {
"code": "high",
"name": "High"
},
"impact": 3,
"urgency": 2,
"impactTags": [
"continuity"
],
"channel": "api",
"service": {
"id": 12,
"name": "VPN and remote access"
},
"contact": {
"name": "Ana Pérez",
"email": "ana.perez@example.com",
"phone": "+1 809 555 0142",
"departmentId": 4,
"locationId": 2
},
"responseDueAt": "2026-12-06T15:05:00Z",
"resolutionDueAt": "2026-12-06T22:05:00Z",
"firstResponseAt": "2026-12-06T14:21:00Z",
"createdAt": "2026-12-06T14:05:00Z",
"updatedAt": "2026-12-06T14:21:00Z",
"transitions": [
{
"to": {
"code": "waiting_customer",
"name": "Waiting for customer"
},
"requiresReason": true,
"requiresResolution": false,
"requiresClosureCode": false
},
{
"to": {
"code": "resolved",
"name": "Resolved"
},
"requiresReason": false,
"requiresResolution": true,
"requiresClosureCode": false
}
]
}
}

Errors share one shape; see Errors for every key.

Terminal window
curl -X PATCH 'https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "resolved",
"resolution": "Replaced the VPN profile and restarted the client."
}'