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": {
"id": {
"instanceof": "Buffer"
}
},
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": true,
"tuesday": false,
"wednesday": false,
"thursday": true,
"friday": true,
"saturday": false
},
"timeOfDayStart": {
"hour": 15,
"minute": 39
},
"timeOfDayEnd": {
"hour": 4,
"minute": 37
},
"beginDate": "8702-41-85T57:31:57J3981Z",
"endDate": "0998-94-47T65:99:56F4624499086078Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "failure",
"message": "sit Excepteur ipsum do adipisicing",
"doc": {
"id": "adipisicing et labore commodo",
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": false,
"tuesday": false,
"wednesday": false,
"thursday": false,
"friday": false,
"saturday": false
},
"timeOfDayStart": {
"hour": 4,
"minute": 10
},
"timeOfDayEnd": {
"hour": 22,
"minute": 2
},
"beginDate": "4119-19-85T79:36:2896786Z",
"endDate": "4989-02-94T47:05:62+9412933Z",
"created": "anim eu",
"createdBy": "ad aliquip",
"lastUpdated": "dolore et",
"lastUpdatedBy": "mollit",
"_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"
]
}