...
Code Block | ||
---|---|---|
| ||
$ curl -XPOST /_forms -d '{ "forms": [{ "type": "addresses", "config": { ... } "data": { "title": "My new address", "link" : { "type": "company", "id": 100 }, ... } },{ "type": "contacts", "data": { "contact.firstname": "Kurt", "affiliation.email": "abc@example.com", ... } }] }'; |
would create a contact and address with the supplied fields. The response will return the types and ids of the newly created objects.
...