edit_event
Testing Env
https://testcalendar.vodoglobal.com
Testing Env
https://testcalendar.vodoglobal.com
PUT
/api/v2/calendar_events/1951
Last modified:2025-03-26 12:43:56
PUT
{{url}}api/v2/calendar_events/1951
secure_business_key
: {{secure_business_key}}
user_token
: {{user_token}}
Accept-Language
: ar
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://testcalendar.vodoglobal.com/api/v2/calendar_events/1951' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'user_token: ' \
--header 'Accept-Language: ar' \
--header 'Content-Type: application/json' \
--data-raw '{
"title" :"new updated",
"start_date" : "2025-03-25",
"end_date" : "2025-03-25",
"start_time" :"13:00",
"end_time" :"13:0",
"customer_id":20,
"child_id": [593],
"service_id":[631,630],
"employee_id":[851,852],
"service_start_time":["09:00","10:00"],
"service_end_time":["09:30","10:30"]
}'
Response Response Example
{
"status": true,
"message": "تم تحديث الحدث بنجاح.",
"data": {
"id": 1951,
"business_id": "259",
"branch_id": "2",
"calendar_id": "246",
"customer_id": 20,
"venue_id": null,
"customer_category_id": null,
"reference": "7",
"event_type": "custom",
"type": null,
"title": "new updated",
"title_index": null,
"color": null,
"background_color": null,
"start_time": null,
"end_time": null,
"start": "2025-03-25T09:00:00.000000Z",
"end": "2025-03-25T10:30:00.000000Z",
"reservation_code": "64892125",
"reservation_status": 1,
"ecomm_order_id": null,
"parent_delivery_note_id": "0",
"parent_sales_order_id": null,
"created_at": "2024-10-14T20:17:49.000000Z",
"updated_at": "2025-03-24T22:00:18.000000Z",
"deleted_at": null,
"items": [
{
"id": 593,
"event_id": 1951,
"employee_id": 851,
"service_id": 631,
"category_id": null,
"service_price": null,
"service_qty": "1",
"start_time": "09:00:00",
"end_time": "09:30:00",
"start": "2025-03-25 09:00:00",
"end": "2025-03-25 09:30:00",
"reference": null,
"child_delivery_note_id": null,
"child_sales_order_id": null,
"calendar_id": null,
"created_at": "2024-10-14 20:17:49",
"updated_at": "2025-03-24 22:00:18",
"deleted_at": null,
"reservation_status": null
},
{
"id": 4014,
"event_id": 1951,
"employee_id": 852,
"service_id": 630,
"category_id": null,
"service_price": null,
"service_qty": "1",
"start_time": "10:00:00",
"end_time": "10:30:00",
"start": "2025-03-25 10:00:00",
"end": "2025-03-25 10:30:00",
"reference": "204",
"child_delivery_note_id": null,
"child_sales_order_id": null,
"calendar_id": "347",
"created_at": "2025-03-24 22:00:18",
"updated_at": "2025-03-24 22:00:18",
"deleted_at": null,
"reservation_status": 1
}
]
}
}
Request
Header Params
secure_business_key
string
required
Example:
{{secure_business_key}}
user_token
string
required
Example:
{{user_token}}
Accept-Language
string
required
Example:
ar
Body Params application/json