Close one of the caller's support tickets with resolution feedback.
POST
/v1/support/{id}/close
const url = 'https://api.share2.us/v1/support/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/close';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"resolution_note":"example","satisfaction_rating":1,"feedback":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.share2.us/v1/support/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/close \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "resolution_note": "example", "satisfaction_rating": 1, "feedback": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
resolution_note
required
string
satisfaction_rating
Optional satisfaction rating from 1 to 5.
integer
feedback
string
Examplegenerated
{ "resolution_note": "example", "satisfaction_rating": 1, "feedback": "example"}Responses
Section titled “Responses”Refreshed ticket detail.
Media typeapplication/json
object
ticket
required
object
id
required
string format: uuid
account_id
string format: uuid
email
string format: email
subject
required
string
message
string
status
required
string
merged_into
string format: uuid
closed_by
string
closed_at
string format: date-time
resolution_note
string
satisfaction_rating
integer
resolution_feedback
string
created_at
required
string format: date-time
updated_at
required
string format: date-time
message_count
integer
last_message_preview
string
last_author_type
string
messages
required
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
author_type
required
string
author_email
required
string format: email
body
required
string
created_at
required
string format: date-time
activity
Array<object>
object
event_type
required
string
occurred_at
required
string format: date-time
share_public_id
string
description
string
attachments
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
message_id
string format: uuid
uploader_type
required
string
file_name
required
string
content_type
required
string
size_bytes
required
integer
created_at
required
string format: date-time
attachments
Ticket-level attachments without an associated message.
Array<object>
object
id
required
string format: uuid
ticket_id
string format: uuid
message_id
string format: uuid
uploader_type
required
string
file_name
required
string
content_type
required
string
size_bytes
required
integer
created_at
required
string format: date-time
Example
{ "ticket": { "status": "open", "closed_by": "user", "last_author_type": "user" }, "messages": [ { "author_type": "user", "attachments": [ { "uploader_type": "user", "content_type": "text/plain" } ] } ], "attachments": [ { "uploader_type": "user", "content_type": "text/plain" } ]}Ticket is already closed or merged.
default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}