1020: Create account with children
When parent or child contractIDs should be explicitly set, they are passed in as JSON properties, rather than URL segments (as in endpoints 1001 and 1005).
Endpoint ID: | 1020 | |
Method | POST | |
URL: | /entity/create | |
Request body: | The The TheÂ
{ "entityContractID": 1, "entity": { "firstName": "John", "lastName": "Doe", "email": "mailbox@mailserver.com" }, "childrenContractID": 2, "children": [ { "firstName": "William", "lastName": "Doe", "gender": "Male" }, { "firstName": "Mary", "lastName": "Doe", "gender": "Female" } ] } | |
| A JSON object containing the new { "entity": { "id": 123456, "firstName": "John", "lastName": "Doe", "email": "mailbox@mailserver.com" }, "children": [ { "id": 123457, "firstName": "William", "lastName": "Doe", "gender": "Male" }, { "id": 123458, "firstName": "Mary", "lastName": "Doe", "gender": "Female" } ] } Â | |
Status codes: | 201 | The entity and children were created with success |
303 | The entity already exists | |
400 | Request is valid but data validation failed See 1001: Create account and 1005: Create child for possible errors. |