POST https://app.alaaqat.com/api/tickets/properties/
الحقل | مطلوب | النوع | الزصف |
---|---|---|---|
type | نعم | نص | Enums PropertiesTypes |
name | نعم | مصفوفة | خيارات اللغة (ar أو en) |
desc | لا | مصفوفة | خيارات اللغة (ar أو en) |
internal_name | نعم | نص | فريد وبمجرد انشاء الخاصية لا يكمن تعديله |
group_id | نعم | _id | _id لمجموعة خصائص الصفقة |
enum | نعم اذا كان النوع اذا كان النوع single_select |
مصفوفة | EnumOption |
Accept: application/json
{
"type": "string",
"name": {
"ar": "Test",
"en": "Test"
},
"desc": {
"ar": "Test",
"en": "Test"
},
"internal_name": "test",
"group_id": "66900cad55aa925b2f051c0b"
}
الإستجابة تكون دائماً بصيغة Property
.
{
"data": {
"type": "string",
"name": {
"ar": "Test",
"en": "Test"
},
"desc": {
"ar": "Test",
"en": "Test"
},
"internal_name": "test",
"group_id": "66900cad55aa925b2f051c0b",
"account_id": 1,
"made_by": 1,
"updated_at": "2024-07-18T03:01:41.525000Z",
"created_at": "2024-07-18T03:01:41.525000Z",
"_id": "669885955b6b9ecd2e0aa200",
"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
},
"user": {
"id": 1,
"email": "ammarabed13@gmail.com",
"email_verified_at": "2024-07-11T16:44:54.000000Z",
"created_at": "2024-07-11T16:44:54.000000Z",
"updated_at": "2024-07-17T14:49:51.000000Z",
"firstname": "Ammar",
"lastname": "Alhasanat",
"image": "http://localhost/storage/users/1/K3KGlzs8GCkYSTP6jrbPacIq1i57GZEpfYZIaRGW.jpg",
"contacts_view_id": null,
"locale": "ar",
"deals_view_id": null,
"tickets_view_id": null,
"fullname": "Ammar Alhasanat"
},
"group": {
"_id": "66900cad55aa925b2f051c0b",
"internal_name": "ticket_information",
"name": {
"en": "ticket's Information",
"ar": "معلومات التذكرة"
},
"desc": [],
"account_id": null,
"made_by": null,
"updated_at": "2024-07-11T16:47:41.632000Z",
"created_at": "2024-07-11T16:47:41.632000Z"
}
},
"message": "Entity was created Successfully"
}