Add a person to a group. Can also be used to change the position of a person in an existing group.
POSThttps://api.elvanto.com/v1/groups/addPerson.{json|xml|php}
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 |
{
"id": "57beccc8-af4a-11e0-9b4e-f27fa4b6a61b",
"person_id": "8a631195-8914-4136-858c-f160885ab60d",
"position": "Leader"
}
id=57beccc8-af4a-11e0-9b4e-f27fa4b6a61b&person_id=8a631195-8914-4136-858c-f160885ab60d&position=Leader
{
"generated_in": "0.018",
"status": "ok",
"group": {
"id": "57beccc8-af4a-11e0-9b4e-f27fa4b6a61b",
"person_id": "8a631195-8914-4136-858c-f160885ab60d"
}
}
<?xml version="1.0" encoding="UTF-8"?> <rsp generated_in="0.018" status="ok"> <group id="57beccc8-af4a-11e0-9b4e-f27fa4b6a61b" person_id="8a631195-8914-4136-858c-f160885ab60d"/> </rsp>
stdClass Object
(
[generated_in] => 0.018
[status] => ok
[group] => stdClass Object
(
[id] => 57beccc8-af4a-11e0-9b4e-f27fa4b6a61b
[person_id] => 8a631195-8914-4136-858c-f160885ab60d
)
)
Please see our response status codes documentation for details of potential error responses for any API request.