Create message
const url = 'https://api.muninx.com/messages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ticket-id":"example","body":"example","type":"external","new-status":"new","skip-ticket-update":true,"skip-notifications":true}'};
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.muninx.com/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ticket-id": "example", "body": "example", "type": "external", "new-status": "new", "skip-ticket-update": true, "skip-notifications": true }'Adds a message to a ticket. The message can optionally set a new ticket status, skip the follow-up ticket update, or skip notification emails.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Ticket identifier to add the message to.
Message body. Must contain at least one non-whitespace character.
Message visibility type.
Optional status to apply to the ticket after creating the message.
If true, message creation will not update the associated ticket.
If true, message creation will not send notification emails to ticket participants.
Responses
Section titled “ Responses ”Created message reference
object
Created message identifier.
Example generated
{ "id": "example"}Invalid request.
Error envelope emitted by the shared Gin error middleware.
object
Example generated
{ "code": "example", "message": "example", "error": "example"}Missing, invalid, or expired bearer token.
Error envelope emitted by the shared Gin error middleware.
object
Example generated
{ "code": "example", "message": "example", "error": "example"}Authenticated user is not allowed to perform the requested action.
Error envelope emitted by the shared Gin error middleware.
object
Example generated
{ "code": "example", "message": "example", "error": "example"}The requested resource does not exist or is not accessible.
Error envelope emitted by the shared Gin error middleware.
object
Example generated
{ "code": "example", "message": "example", "error": "example"}Unexpected server error.
Error envelope emitted by the shared Gin error middleware.
object
Example generated
{ "code": "example", "message": "example", "error": "example"}