Changes

Jump to navigation Jump to search

API V2.0

582 bytes added, 07:48, 3 March 2022
Subitems generally work in the same way as their parent items.
*'''To add a new sub field subitem to an item, include the sub field subitem without an id.'''  '''''Example: add a new info item to a booking:''''' { "id": {bookingId}, "infoItems": [ { "code": "this will create",* "text": "a new info item" } ] } '''To update a sub fieldan existing subitem, include its the subitem's id and one or more other fields.'''  '''''Example: update a booking's info item:'''''* { "id": {bookingId}, "infoItems": [ { "id": {infoItemId}, "text": "this info item will have its text changed" } ] } '''To delete a sub fieldsubitem, include only the sub field’s subitem's id.'''  '''''Example: delete a booking's info item:''''' { "id": {bookingId}, "infoItems": [ { "id": {infoItemId}, } ] }
= Examples =

Navigation menu