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": true,
"monday": false,
"tuesday": true,
"wednesday": true,
"thursday": false,
"friday": false,
"saturday": false
},
"timeOfDayStart": null,
"timeOfDayEnd": null,
"beginDate": "1955-43-43T42:35:04>0904Z",
"endDate": "1492-52-66T44:21:73v5866820274764Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "failure",
"message": "sunt in ut ut cillum",
"doc": {
"id": "ea ipsum Ut culpa",
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": true,
"monday": true,
"tuesday": false,
"wednesday": false,
"thursday": false,
"friday": false,
"saturday": true
},
"timeOfDayStart": {
"hour": 7,
"minute": 31
},
"timeOfDayEnd": null,
"beginDate": "0743-18-52T67:21:25z479741437Z",
"endDate": "8947-19-04T13:38:59N0832065Z",
"created": "Ut mollit sed",
"createdBy": "esse incididunt",
"lastUpdated": "nostrud dolore",
"lastUpdatedBy": "laboris cupidatat cillum sit nisi",
"_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"
]
}