Delete a calendar booking
Delete
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | calendar.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Action | Yes | The action to perform | action=delete | |
| Input | Yes | JSON string | See below |
| JSON Input | Mandatory | Description | Examples |
|---|---|---|---|
| Identifier | Yes | ID or UUID | "calDiaryInternal":56568 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/calendar.json?&version=6&action=delete&input={
"data": [
{
"calDiaryInternal": 56568
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/calendar.json?&version=6&action=delete&input={
"data": [
{
"calDiaryInternal": 56568
}
]
}&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"synapiversion": 3.8,
"data": [
{
"calUniqueSelect": "16/0050015.001#16/W0000000918##16/ALT",
"calEstimatedSelect": 0,
"calBookedSelect": 7.5,
"calRemainingSelect": -7.5,
"calTimesheetsSelect": 7,
"calDraftSelect": 0,
"calInitialsSelect": "MP",
"calDiaryInternal": 56568,
"calUuid": "DE97D556CB0EF444993F1CD594B18444"
}
]
}