Create Override
mutation{
createOverride(
input:{scheduleID:9054,
startTime:"2023-05-09T00:00:00Z",
endTime:"2023-05-11T00:00:00Z",
overrideWith:{participants:[{
type:"user",
ID:"60f12dd3814bef0008c4036e"
}]},
reason:"blah blah",
overriddenParticipant:{participants:[]}
}){
ID,
scheduleID,
reason,
overrideWith{
participants{
type,
ID
}
}
}
}
Response:
{
"data": {
"createOverride": {
"ID": 4467,
"scheduleID": 9054,
"reason": "blah blah",
"overrideWith": {
"participants": [
{
"type": "user",
"ID": "60f12dd3814bef0008c4036e"
}
]
}
}
}
}
Example: To create an empty override:
mutation {
createOverride (input: {
scheduleID: 27270,
overriddenParticipant:
{
participants: [{
type: "user",
ID: "63e0bec286c6f0040378453c"
}]
},
startTime: "2024-06-28T00:00:00+05:30",
endTime: "2024-06-29T00:00:00+05:30",
overrideWith: {},
reason: "emergency"
}){ID}
}
Last updated