API V2.0: Difference between revisions
Jump to navigation
Jump to search
| Line 34: | Line 34: | ||
* To create a new item, just do not include an id. | * To create a new item, just do not include an id. | ||
* To modify an existing item, include its id. | * To modify an existing item, include its id. | ||
== Subitems == | |||
Some items can contain subitems. For example, a booking may contain an "invoice item" and an "info item". | |||
Subitems generally work in the same way as their parent items. | |||
*To add a new sub field to an item, include the sub field without an id. | |||
*To update a sub field, include its id and one or more other fields. | |||
*To delete a sub field, include only the sub field’s id. | |||
= Examples = | = Examples = | ||