Attach a contact to a company

Example Request & Response

$ curl https://api.intercom.io/contacts/<id>/companies \\\n-X POST \\\n-H 'Authorization:Bearer <Your access token>' \\\n-H 'Accept:application/json' \\ \n-H 'Content-Type: application/json' -d\n\n{\n\t\"id\": \"56cde0cc3deab1bd8c000100\"\n}\n

Example Errors

HTTP/1.1 404 NOT FOUND\n{\n  \"type\": \"error.list\",\n  \"request_id\": \"9a3d0816-9707-4598-977e-c009ba630148\",\n  \"errors\": [\n    {\n      \"code\": \"not_found\",\n      \"message\": \"Contact Not Found\"\n    }\n  ]\n}

You can attach a company to a single contact.

Request Path Parameter

ParameterTypeRequiredDescription
idStringYesThe unique identifier for the contact which is given by Intercom

Request Body Parameter

ParameterTypeRequiredDescription
idStringYesThe unique identifier for the company which is given by Intercom

Response

This will return a Company model for the company that was just attached to the contact.