API V2.0: Difference between revisions
Jump to navigation
Jump to search
| Line 54: | Line 54: | ||
'''''Example: update a booking's info item:''''' | '''''Example: update a booking's info item:''''' | ||
{ | [ | ||
{ | |||
"id": {bookingId}, | |||
"infoItems": [ | |||
{ | |||
"id": {infoItemId}, | |||
"text": "this info item will have its text changed" | |||
} | |||
] | |||
} | |||
] | |||
'''To delete a subitem, include only the subitem's id.''' | '''To delete a subitem, include only the subitem's id.''' | ||
'''''Example: delete a booking's info item:''''' | '''''Example: delete a booking's info item:''''' | ||
{ | [ | ||
{ | |||
"id": {bookingId}, | |||
"infoItems": [ | |||
{ | |||
"id": {infoItemId}, | |||
} | |||
] | |||
} | |||
] | |||
== Responses == | == Responses == | ||