update_calendars
Testing Env
https://testcalendar.vodoglobal.com
Testing Env
https://testcalendar.vodoglobal.com
POST
/api/v2/update-calendars
Last modified:2025-03-26 12:43:56
POST
{{url}}api/v2/update-calendars
secure_business_key
: {{secure_business_key}}
user_token
: {{user_token}}
Accept-Language
: ar
Accept
: application/json
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testcalendar.vodoglobal.com/api/v2/update-calendars' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'user_token: ' \
--header 'Accept-Language: ar' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"calendars": [
{
"id": 533,
"name": "New Calendar12",
"calendar_type": "user",
"time_zone": "Africa/Cairo",
"userId": "780",
"days": [
{
"id": 6233,
"start_event": [
"09:00:00"
],
"end_event": [
"22:55:00"
],
"dayname": "sunday",
"type": "work",
"uid": "Sun Mar 23 2025 23:30:03 GMT+0200 (Eastern European Standard Time)-0.63122396901286"
},
{
"id": 6234,
"start_event": [
"09:00:00"
],
"end_event": [
"22:55:00"
],
"dayname": "monday",
"type": "work",
"uid": "Sun Mar 23 2025 23:30:03 GMT+0200 (Eastern European Standard Time)-0.6976028475955482"
},
{
"id": 6235,
"start_event": [
"09:00:00"
],
"end_event": [
"22:55:00"
],
"dayname": "tuesday",
"type": "work",
"uid": "Sun Mar 23 2025 23:30:03 GMT+0200 (Eastern European Standard Time)-0.24952676001891305"
},
{
"id": 6236,
"start_event": [
"09:00:00"
],
"end_event": [
"22:55:00"
],
"dayname": "wednesday",
"type": "work",
"uid": "Sun Mar 23 2025 23:30:03 GMT+0200 (Eastern European Standard Time)-0.08923525907218588"
}
]
}
]
}'
Response Response Example
{
"status": true,
"message": "calendars.calendars_processed_successfully",
"data": {
"data": [
{
"id": 533,
"business_id": 259,
"branch_id": null,
"user_id": "780",
"name": "New Calendar12",
"calendar_type": "user",
"calendar_default": 0,
"timezone": "Africa/Cairo",
"created_at": "2025-03-23T21:26:49.000000Z",
"updated_at": "2025-03-23T21:30:23.000000Z",
"deleted_at": null,
"weekly_events": [
{
"id": 6233,
"calendar_id": "533",
"Day": "sunday",
"Shift_from": "09:00:00",
"Shift_to": "22:55:00"
},
{
"id": 6234,
"calendar_id": "533",
"Day": "monday",
"Shift_from": "09:00:00",
"Shift_to": "22:55:00"
},
{
"id": 6235,
"calendar_id": "533",
"Day": "tuesday",
"Shift_from": "09:00:00",
"Shift_to": "22:55:00"
},
{
"id": 6236,
"calendar_id": "533",
"Day": "wednesday",
"Shift_from": "09:00:00",
"Shift_to": "22:55:00"
}
]
}
]
}
}
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
Accept
stringÂ
required
Example:
application/json
Body Params application/json