Delete on-call schedule
DELETE
/api/on-call-schedules/{id}
const url = 'http://localhost:3000/api/on-call-schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/on-call-schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Responses
Section titled “ Responses ”OnCallSchedule deleted
Media type application/json
object
message
required
string
Example generated
{ "message": "example"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Record not found
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}