PUT
/dashboard/tickets/{tid}/subject Update ticket subject
Updates the subject of a ticket.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
tid* | string | path | The ticket ID |
Request Body
subjectstringRequiredNew subject
Response
200
403
successbooleanRequest
curl -X PUT "https://api.royalehosting.net/dashboard/tickets/{tid}/subject" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID" \
-H "Content-Type: application/json" \
-d '{}'Request
const response = await fetch("https://api.royalehosting.net/dashboard/tickets/{tid}/subject", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"subject": "Updated: Server issue resolved"
}),
});
const data = await response.json();Request
import requests
response = requests.put(
"https://api.royalehosting.net/dashboard/tickets/{tid}/subject",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true
}