Update Presence Group


This request changes presence group attributes.

Resource

PATCH /presencegroups/<OID>

Where OID is the oid of the presence group

Parameters

None

Payload

Fields

Name Patch Operations

index

replace

all

replace

rules

add, remove

Response

None

Context

Authorization

Administrator

Errors

Example

Request
PATCH https://xelion.nl/api/v1/master/presencegroups/1627410
Payload

change presence group direct member

{
    "operations": [
            {
        "op": "replace",
            "path": "/index",
            "value": 1
            }
    ]
}

add new entry to the presence group, add a path with a virtual id '1' and insert the oid of the phone line as value

{
    "operations": [
            {
        "op": "add",
            "path": "/presenceEntry/1",
            "value": "1756113"
            }
    ]
}

remove an entry from the presence group, <OID> is the oid of the presence group relation object

{
     "operations": [
            {
            "op": "remove",
            "path": "/presenceEntry/321443"
            }
    ]
}