SIP User Group

GetSIPGroupsListApp

GET https://api.opentact.org/rest/app/group

Get the current user groups list

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

{
  "success": true,
  "payload": [
    {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "name": "string",
      "owner": {
        "created_on": "2019-08-24T14:15:22Z",
        "modified_on": "2019-08-24T14:15:22Z",
        "uuid": "string",
        "login": "string",
        "ha1": "string",
        "ha1b": "string",
        "remote_ip": "string",
        "first_name": "string",
        "last_name": "string",
        "email": "string",
        "phone_number": "string",
        "avatar": "string",
        "dob": "2019-08-24T14:15:22Z",
        "gender": "Agender",
        "groups": [],
        "sip_connection": {},
        "account": {},
        "created_by": {},
        "modified_by": {}
      },
      "users": [
        {}
      ]
    }
  ]
}

Code Example

CreateSIPUserGroupApp

POST https://api.opentact.org/rest/app/group

Create SIP user group

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

[ 3 .. 80 ] characters

users

string

Array of strings List of sip_user_uuid's

Code Example

ModifySIPUserGroupApp

PATCH https://api.opentact.org/rest/app/group/{uuid}

Modify SIP user group

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

[ 3 .. 80 ] characters

users

string

Array of strings List of sip_user_uuid's

Code Example

RemoveSIPUserGroupApp

DELETE https://api.opentact.org/rest/app/group/{uuid}

Delete SIP user group

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Content-Type

string

application/json

Code Example

GetSIPUserGroupUsersApp

GET https://api.opentact.org/rest/app/group/{uuid}/users

Get SIP user group users

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Code Example

AddSIPUsersToSIPUserGroupApp

POST https://api.opentact.org/rest/app/group/{uuid}/users

Add SIP users to group

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ SIPUserGroup uuid

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

users

string

Array of strings SIPUser uuid list

Code Example

AddSIPUsersToSIPUserGroupApp

PATCH https://api.opentact.org/rest/app/group/{uuid}/users/{sip_user_uuid}

Add SIP user to group

Path Parameters

Name
Type
Description

sip_user_uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ SIPUser uuid

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ SIPUserGroup uuid

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Code Example

RemoveSIPUserFromSIPUserGroupApp

DELETE https://api.opentact.org/rest/app/group/{uuid}/users/{sip_user_uuid}

Remove SIP user from SIP User group

Path Parameters

Name
Type
Description

sip_user_uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ SIPUser uuid

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ SIPUserGroup uuid

Headers

Name
Type
Description

X-Auth-HA1B-Token

string

HA1B_TOKEN

Code Example

Last updated

Was this helpful?