تعديل خاصية الصفقة

PUT https://app.alaaqat.com/api/deals/properties/{_id}

المتطلبات

الحقل مطلوب النوع الزصف
type نعم نص Enums PropertiesTypes
name نعم مصفوفة خيارات اللغة (ar أو en)
desc لا مصفوفة خيارات اللغة (ar أو en)
group_id نعم _id _id لمجموعة خصائص حهة الاتصال
enum نعم
اذا كان النوع اذا كان النوع single_select
مصفوفة EnumOption

Header

Accept: application/json

Body

{
  "type": "number",
  "name": {
    "en": "test number"
  },
  "group_id": "65fc50e7e80edb7e1d04db92"
}

الإستجابة

الإستجابة تكون دائماً بصيغة Property.

{
    "data": {
        "_id": "665543baa32e9280cc0a660a",
        "type": "number",
        "name": {
            "en": "test number"
        },
        "desc": {
            "ar": "Test",
            "en": "Test"
        },
        "internal_name": "test",
        "group_id": "65fc50e7e80edb7e1d04db92",
        "account_id": 1,
        "made_by": 8,
        "updated_at": "2024-05-28T03:02:57.120000Z",
        "created_at": "2024-05-28T02:38:50.208000Z",
        "user": {
            "id": 8,
            "email": "ammar.alhasanat@alaaqat.com",
            "email_verified_at": "2023-10-23T14:18:27.000000Z",
            "created_at": "2023-10-23T13:37:08.000000Z",
            "updated_at": "2024-05-26T22:42:43.000000Z",
            "firstname": "Ammar",
            "lastname": "Alhasanat",
            "image": "https://alaaqat-public.s3.eu-west-1.amazonaws.com/users/8/FM3SACrjCXrx8UgXwAIGe1x8Ucb0ZClS1ZAAlbv2.jpg",
            "contacts_view_id": null,
            "locale": "ar",
            "deals_view_id": null,
            "fullname": "Ammar Alhasanat"
        },
        "group": {
            "_id": "65fc50e7e80edb7e1d04db92",
            "internal_name": "deal_information",
            "name": {
                "en": "Deal's Information",
                "ar": "معلومات الصفقة"
            },
            "desc": [],
            "account_id": null,
            "made_by": null,
            "updated_at": "2024-03-21T15:23:19.559000Z",
            "created_at": "2024-03-21T15:23:19.559000Z"
        }
    },
    "message": "Entity was modified Successfully"
}