POST https://app.alaaqat.com/api/tickets/{_id}/attach-contacts
_id هو معرف التذكرة
contact_ids
هي مصفوفة لربط جهات الإصال في التذاكر
Accept: application/json
internal_name : value
{
"contact_ids": [
"6692950d963ee0713f0997f3"
]
}
الإستجابة تكون دائماً بصيغة 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
_id هو معرف التذكرة
Accept: application/json
internal_name : value
{
"contact_id":"6692950d963ee0713f0997f3"
}
الإستجابة تكون دائماً بصيغة 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"
}