Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
$ 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.

...