The following macros are not currently supported in the header:
  • style

POST /companies/:id/managers/add

Resource URL

Create a new company object.

POST /companies/:id/managers/add
ANY /companies/:id/managers/add?_method=post

Parameters

Table of allowed parameters.

manager_idunsigned intStaff ID of the newly assigned manager. Must be a valid staff. See GET /staff
naturestring(Optional) Nature of the new relationship. Must be "professional","confidential" or "private". Defaults to "professional"

Handling the response

Returns an array of staff member managers for a given company.

Sample Response

POST /companies/4/managers/add
{
    "meta": {
        "status": "ok",
        "more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok",
        "message": "Everything executed as expected."
    },
    "response": [
        {
            "surname": "Albert",
            "firstname": "Benson",
            "relationship_id": "123",
            "id": "456"
        },
        {
            "relationship_id": "789",
            "firstname": "Carls",
            "id": "101112",
            "surname": "Davidson"
        }
    ]
}