POST
/dashboard/tickets/{tid} Reply to ticket
Adds a reply to an existing ticket.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
tid* | string | path | The ticket ID |
Response
200
403
successbooleanmessagestringRequest
curl -X POST "https://api.royalehosting.net/dashboard/tickets/{tid}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/tickets/{tid}", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.post(
"https://api.royalehosting.net/dashboard/tickets/{tid}",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"message": "New message sent."
}