POST https://app.alaaqat.com/api/tickets/{_id}/attach-contacts
Where _id is the ticket's identifier.
contact_ids
is an array used to link contacts in tickets.
Accept: application/json
internal_name : value
{
"contact_ids": [
"6692950d963ee0713f0997f3"
]
}
The return type will always be attached Contacts
.
{
"data": [
{
"properties": {
"_id": "6692950d963ee0713f0997f3",
"account_id": 1,
"firstname": "Zulauf",
"lastname": "Zachary",
"email": "ammar.alhasanat@alaaqat.com",
"fullname": "Zulauf Zachary",
"image": "https://ui-avatars.com/api/?rounded=true&bold=true&name=Zulauf Zachary&background=4B5563&color=fff",
"account": {
"id": 1,
"name": "test",
"created_at": "2024-07-11T16:45:07.000000Z",
"updated_at": "2024-07-11T16:45:07.000000Z",
"industry": "Accounting",
"logo": "https://ui-avatars.com/api/?name=test",
"address": null,
"timeZone": null,
"calendar": null,
"hour12": null,
"locale": null,
"currency": null
}
},
"channels": []
}
]
}
POST https://app.alaaqat.com/api/tickets/{_id}/detach-contact
Where _id is the ticket's identifier.
Accept: application/json
internal_name : value
{
"contact_id":"6692950d963ee0713f0997f3"
}
The return type will always be Ticket
.
{
"data": {
"properties": {
"_id": "669867025b6b9ecd2e0aa1e6",
"ticket_name": "test",
"desc": "test text",
"category": "general_inquiry",
"source": "source_manual",
"updated_at": "2024-07-18T01:09:47.058000Z",
"created_at": "2024-07-18T00:51:14.058000Z",
"contacts_count": null
}
},
"message": "Entity was modified Successfully"
}