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