add_new_calendars
Testing Env
https://testcalendar.vodoglobal.com
Testing Env
https://testcalendar.vodoglobal.com
POST
/api/v2/add-calendars
Last modified:2025-03-26 12:43:56
POST
{{url}}api/v2/add-calendars
secure_business_key
: 3717466d81c36d98ac4.30464285
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/add-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": [
{
"name": "New Calendar1",
"calendar_type": "user",
"time_zone": "Africa/Cairo",
"days": [
{
"start_event": [
"09:00"
],
"end_event": [
"22:55"
],
"dayname": "sunday",
"type": "work"
},
{
"start_event": [
"09:00"
],
"end_event": [
"22:55"
],
"dayname": "monday",
"type": "work"
},
{
"start_event": [
"09:00"
],
"end_event": [
"22:55"
],
"dayname": "tuesday",
"type": "work"
},
{
"start_event": [
"09:00"
],
"end_event": [
"22:55"
],
"dayname": "wednesday",
"type": "work"
},
{
"start_event": [
"09:00"
],
"end_event": [
"22:55"
],
"dayname": "thursday",
"type": "work"
},
{
"start_event": [],
"end_event": [],
"dayname": "friday",
"type": "off"
},
{
"start_event": [],
"end_event": [],
"dayname": "saturday",
"type": "off"
}
],
"userId": "780"
}
]
}'
Response Response Example
{
"status": true,
"message": "تمت العملية بنجاح.",
"data": {
"data": [
{
"business_id": 259,
"user_id": "780",
"calendar_type": "user",
"name": "New Calendar1",
"timezone": "Africa/Cairo",
"updated_at": "2025-03-23T21:26:49.000000Z",
"created_at": "2025-03-23T21:26:49.000000Z",
"id": 533,
"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"
},
{
"id": 6237,
"calendar_id": "533",
"Day": "thursday",
"Shift_from": "09:00:00",
"Shift_to": "22:55:00"
},
{
"id": 6238,
"calendar_id": "533",
"Day": "friday",
"Shift_from": null,
"Shift_to": null
},
{
"id": 6239,
"calendar_id": "533",
"Day": "saturday",
"Shift_from": null,
"Shift_to": null
}
]
}
]
}
}
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