Nuclos REST create: defaultGeneration, boGenerations, blank, insert, POST, reference attribute id, name.

globe with meridians Language: Deutsch · English

hammer and wrench 5. Creating a business object (BO)

Create a BO via REST – fetch a blank via defaultGeneration and POST it to insert.

On this page

To create a record, first fetch a blank via the defaultGeneration link (boGenerations/{boMetaId}). Nuclos pre-fills it with the configured default values and lists all possible attributes – anything not needed can be removed.

Pitfall: reference attributes (e.g. customer) must contain the id. The name field is not mandatory but must be at least an empty string "".

Sending the create

Send the object via POST to the insert link contained in the blank (equals the BO list link /bos/{boMetaId}). The response contains the created object including its id.

Related pages

gear 6. Modifying a business object (BO)


Modify.

Open →

gear 4. Reading business objects (BO)


Meta info.

Open →