PUT https://app.alaaqat.com/api/contacts/properties/
الحقل | مطلوب | النوع | الوصف |
---|---|---|---|
type | نعم | نص | Enums PropertiesTypes |
name | نعم | مصفوفة | خيارات اللغة (ar أو en) |
desc | لا | مصفوفة | خيارات اللغة (ar أو en) |
group_id | نعم | _id | _id لمجموعة خصائص حهة الاتصال |
enum | نعم اذا كان النوع اذا كان النوع single_select |
مصفوفة | EnumOption |
Accept: application/json
{
"type": "single_select",
"name": {
"en": "test 2"
},
"desc": {
"en": "single select test"
},
"group_id": "662679e6e9e9554b6e05a512",
"internal_name": "test_2",
"enum": [
{
"en": "Male",
"ar": "ذكر",
"internal_name": "male"
},
{
"en": "Female",
"ar": "أُنثى",
"internal_name": "female"
}
]
}
الإستجابة تكون دائماً بصيغة Property
.
{
"data": {
"_id": "66526cec22d9034c2a06e152",
"type": "single_select",
"name": {
"ar": "test 2",
"en": "test 2"
},
"internal_name": "test",
"desc": {
"ar": null,
"en": "single select test"
},
"group_id": "662679e6e9e9554b6e05a512",
"account_id": 1,
"made_by": 1,
"updated_at": "2024-05-27T01:04:41.243000Z",
"created_at": "2024-05-25T22:57:48.325000Z",
"enum": [
{
"en": "Male",
"ar": "ذكر",
"internal_name": "male"
},
{
"en": "Female",
"ar": "أُنثى",
"internal_name": "female"
}
],
"user": {},
"group": {
"_id": "662679e6e9e9554b6e05a512",
"internal_name": "contact_information",
"name": {
"en": "Contact's Information",
"ar": "ملعومات العميل"
},
"desc": [],
"account_id": null,
"made_by": null,
"updated_at": "2024-04-22T14:53:26.692000Z",
"created_at": "2024-04-22T14:53:26.692000Z"
}
},
"message": "Entity was modified Successfully"
}