Sweeppea API v3

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 https://api-v3.sweeppea.com/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

{
  "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

{
  "Response": false,
  "Message": "CaseId is required",
  "Help": {
    "ExpectedBody": {
      "CaseId": "string (required) \u2014 case id of the ticket. A closed ticket cannot be updated",
      "Title": "string (optional) \u2014 new title. At least one of Title or Description is required",
      "Description": "string (optional) \u2014 new description. At least one of Title or Description is required"
    }
  }
}
{
  "Response": false,
  "Message": "At least one field (Title or Description) must be provided",
  "Help": {
    "ExpectedBody": {
      "CaseId": "string (required) \u2014 case id of the ticket. A closed ticket cannot be updated",
      "Title": "string (optional) \u2014 new title. At least one of Title or Description is required",
      "Description": "string (optional) \u2014 new description. At least one of Title or Description is required"
    }
  }
}
{
  "Response": false,
  "Message": "Cannot update closed ticket",
  "Help": {
    "ExpectedBody": {
      "CaseId": "string (required) \u2014 case id of the ticket. A closed ticket cannot be updated",
      "Title": "string (optional) \u2014 new title. At least one of Title or Description is required",
      "Description": "string (optional) \u2014 new description. At least one of Title or Description is required"
    }
  }
}
{
  "Response": false,
  "Message": "Unauthorized: Missing token"
}
{
  "Response": false,
  "Message": "You do not have permission to update this ticket"
}
{
  "Response": false,
  "Message": "Ticket not found"
}
{
  "Response": false,
  "Message": "Internal server error: [error details]"
}
© Sweeppea. All rights reserved.