Summary
Create a schedule.
Description
Create a new schedule.
Route
POST /policy-manager/schedules
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
details |
object |
yes |
Details of service to be created |
Copied to Clipboard
{
"details": {
"name": "my standard name",
"_id": "5c35355dbebaa82eaf8113f0",
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": false,
"friday": true,
"saturday": false
},
"timeOfDayStart": null,
"timeOfDayEnd": null,
"beginDate": "1473-51-55T56:65:24}0121453066854Z",
"endDate": "7699-03-66T72:33:66=1833418868150Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "success",
"message": "dolor sunt velit pariatur",
"doc": {
"id": "et sint veniam",
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": true,
"tuesday": false,
"wednesday": false,
"thursday": true,
"friday": false,
"saturday": false
},
"timeOfDayStart": null,
"timeOfDayEnd": {
"hour": 8,
"minute": 13
},
"beginDate": "2501-47-08T25:45:57/09898863Z",
"endDate": "4076-01-97T30:44:59(85103Z",
"created": "dolore laborum ullamco ipsum",
"createdBy": "cillum est occaecat dolor Excepteur",
"lastUpdated": "nostrud veniam ut id eiusmod",
"lastUpdatedBy": "voluptate enim",
"_id": "5c35355dbebaa82eaf8113f0"
}
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"success",
"failure"
]
},
"message": {
"type": "string"
},
"doc": {
"$ref": "scheduleDocument#/definitions/apiResponse"
}
},
"required": [
"status"
]
}