cURL
curl --request POST \ --url https://api.smokeball.com/contacts/{contactId}/relations \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json-patch+json' \ --header 'x-api-key: <api-key>' \ --data '{ "relatedContactId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2", "businessRole": "Bookkeeper" }'
{ "id": "<string>", "href": "<string>", "relation": "<string>", "method": "GET" }
Creates a relation for a specified contact.
When request is accepted. Returns a hypermedia 'Link' object of the contact relation to be created.
The response is of type object.
object