Migrated from Redmine #472 | Author: omar Naseef
Status: Feedback | Priority: High, I’m very impatient | Created: 2020-02-07
If I have a service that is available every Monday - Friday from 11 am - 1pm and Saturday from 9am - 1pm and Sunday from 12pm - 5pm, how do I structure the “recurring_settings” JSON in the API to create this recurring schedule?
{
“name”: “Service name”,
“duration”: “60”,
“hide_duration”: “0”,
“description”: “Service description”,
“is_public”: “1”,
“is_active”: “1”,
“position”: “1”,
“file_id”: null,
“seo_url”: null,
“is_recurring”: “0”,
“picture”: null,
“picture_sub_path”: null,
“picture_path”: null,
////////////////////////////////////////
// What goes in recurring_settings?
////////////////////////////////////////
“recurring_settings”: {
“days”: 7,
“repeat_count”: 1,
“type”: “fixed”,
“mode”: “skip”,
“is_default_settings”: true,
“days_names”: [
“Friday”,
“Saturday”,
“Sunday”
]
},
////////////////////////////////////////
"units": [
2,
3
],
"price": 10,
"currency": "USD"
}