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 =