POST https://app.alaaqat.com/api/contacts/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": "64f62b4b24ec98cbd50a8742"
}
او
{
"type": "single_select",
"name": {
"en": "test 2"
},
"group_id": "662679e6e9e9554b6e05a512",
"internal_name": "test_2",
"enum": [
{
"en": "Male",
"ar": "ذكر",
"internal_name": "male"
},
{
"en": "Female",
"ar": "أُنثى",
"internal_name": "female"
}
]
}
الإستجابة تكون دائماً بصيغة Property
.
{
"data": {
"type": "string",
"name": {
"ar": "Test",
"en": "Test"
},
"internal_name": "test",
"group_id": "64f62b4b24ec98cbd50a8742",
"account_id": 1,
"made_by": 8,
"updated_at": "2024-05-26T22:39:24.971000Z",
"created_at": "2024-05-26T22:39:24.971000Z",
"_id": "6653ba1c190594f29707f383",
"user": {},
"group": {
"_id": "64f62b4b24ec98cbd50a8742",
"internal_name": "contact_information",
"name": {
"en": "Contact's Information",
"ar": "ملعومات العميل"
},
"desc": [],
"account_id": null,
"made_by": null,
"updated_at": "2023-09-04T19:08:59.650000Z",
"created_at": "2023-09-04T19:08:59.650000Z"
}
},
"message": "Entity was created Successfully"
}