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": "5c35355dbebaa82eaf8113f0",
"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": 13,
"minute": 50
},
"timeOfDayEnd": null,
"beginDate": "0015-70-72T31:83:78F2336123Z",
"endDate": "7635-80-73T98:15:96d0890175359159Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "failure",
"message": "elit veniam minim eu irure",
"doc": {
"id": "fugiat",
"name": "my standard name",
"description": "my standard description",
"daysOfWeek": {
"sunday": false,
"monday": false,
"tuesday": true,
"wednesday": true,
"thursday": false,
"friday": false,
"saturday": true
},
"timeOfDayStart": null,
"timeOfDayEnd": null,
"beginDate": "7974-10-48T04:05:55J078Z",
"endDate": "6493-86-44T92:81:761899833034Z",
"created": "velit aliqua non sit do",
"createdBy": "qui",
"lastUpdated": "id est in",
"lastUpdatedBy": "mollit quis adipisicing",
"_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"
]
}