Update Support Ticket

Update an existing support ticket by modifying its title, description, or adding notes. Only open tickets owned by the authenticated user can be updated.

POST /tickets/update

Description

This endpoint allows updating an existing support ticket. You can modify the title and description. The ticket must be open (not closed) and must belong to the authenticated user. Each update action is tracked in the ticket's statistics.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Request Body

Field Type Required Description
CaseId String Yes The 7-digit case number of the ticket to update
Title String No New ticket title/subject (max 200 characters)
Description String No New ticket description (max 20,000 characters)

Note: At least one of Title or Description must be provided.

Code Examples

curl -X POST "https://api-v3.sweeppea.com/tickets/update" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "CaseId": "2650478", "Title": "UPDATED: Issue with sweepstakes entry", "Description": "Users are unable to submit entries on both mobile and desktop versions" }'

Response

200 OK

{ "Response": true, "Message": "Ticket updated successfully", "Ticket": { "CaseNumber": "2650478", "Subject": "UPDATED: Issue with sweepstakes entry", "Description": "Users are unable to submit entries on both mobile and desktop versions", "Priority": 2, "Status": false } }

Error Responses

400 Bad Request

{ "Response": false, "Message": "CaseId is required" }

400 Bad Request

{ "Response": false, "Message": "At least one field (Title or Description) must be provided" }

400 Bad Request

{ "Response": false, "Message": "Cannot update closed ticket" }

401 Unauthorized

{ "Response": false, "Message": "Unauthorized: Missing token" }

403 Forbidden

{ "Response": false, "Message": "You do not have permission to update this ticket" }

404 Not Found

{ "Response": false, "Message": "Ticket not found" }

500 Internal Server Error

{ "Response": false, "Message": "Internal server error: [error details]" }