Messages

Get all messages of a ticket

GET https://yourwebsite.com/api/support/tickets/<ticket-id>/messages

[
    {
        "id": "1",
        "accountID": "1",
        "supportID": "2",
        "message": "please **help** me!",
        "writeLocation": "1",
        "creationDate": "2022-09-15 10:53:27"
    },
    {
        "id": "2",
        "accountID": "3",
        "supportID": "2",
        "message": "<p>thanks banned!</p>",
        "writeLocation": "2",
        "creationDate": "2022-09-15 10:54:27"
    },
    {
        "id": "7",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:32:34"
    },
    {
        "id": "8",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:32:54"
    },
    {
        "id": "9",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:34:34"
    }
]

Get a message of a ticket

GET https://yourwebsite.com/api/support/tickets/<ticket-id>/messages/<id>

{
    "id": "9",
    "accountID": "1",
    "supportID": "2",
    "message": "Merhaba deneme içerikkk2",
    "writeLocation": "2",
    "creationDate": "2023-07-19 20:34:34"
}

Add messages to tickets

POST https://yourwebsite.com/api/support/tickets/<ticket-id>/messages

Path Parameters

NameTypeDescription

ticket-id

integer

Request Body

NameTypeDescription

message*

String

accountID

String

isAdmin

boolean

Default: false

discordUserID

String

{
    "success": true,
    "data": {
        "id": "9"
    }
}

Last updated