groups/addPerson

Add a person to a group. Can also be used to change the position of a person in an existing group.

POST
https://api.elvanto.com/v1/groups/addPerson.{json|xml|php}

Parameters

Name Type Description
id Required string The ID of the group.
person_id Required string The ID of the person.
position string The position the person will be added as.
Accepted Values: Leader or Assistant Leader
Expected request JSON HTTP POST
{
    "id": "57beccc8-af4a-11e0-9b4e-f27fa4b6a61b",
    "person_id": "8a631195-8914-4136-858c-f160885ab60d",
    "position": "Leader"
}
Expected response JSON XML PHP
{
    "generated_in": "0.018",
    "status": "ok",
    "group": {
        "id": "57beccc8-af4a-11e0-9b4e-f27fa4b6a61b",
        "person_id": "8a631195-8914-4136-858c-f160885ab60d"
    }
}
Error responses

Please see our response status codes documentation for details of potential error responses for any API request.

  • 404: Invalid Group ID The Group ID you provided does not exist.
  • 404: Invalid Person ID The Person ID you provided does not exist.