Summary
Update an existing schedule.
Description
Update an existing schedule.
Route
PUT /policy-manager/schedules/:id
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
Schedule Id |
details |
object |
yes |
Data to update |
Copied to Clipboard
{
"details": {
"_id": {
"id": {
"instanceof": "Buffer"
}
},
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": false,
"monday": false,
"tuesday": false,
"wednesday": true,
"thursday": false,
"friday": false,
"saturday": true
},
"timeOfDayStart": null,
"timeOfDayEnd": {
"hour": 0,
"minute": 26
},
"beginDate": "3441-64-36T75:23:69:97311Z",
"endDate": "7227-34-87T74:67:93H8375406418Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "success",
"message": "eu voluptate ea in elit",
"doc": {
"id": "consectetur",
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": false,
"tuesday": false,
"wednesday": true,
"thursday": false,
"friday": false,
"saturday": false
},
"timeOfDayStart": {
"hour": 9,
"minute": 48
},
"timeOfDayEnd": null,
"beginDate": "2769-82-08T07:47:73I09870762873Z",
"endDate": "9890-76-71T82:74:99p728Z",
"created": "cillum in incididunt sed",
"createdBy": "dolor dolore elit in",
"lastUpdated": "magna laboris adipisicing sit",
"lastUpdatedBy": "Excepteur ut",
"_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"
]
}