Add group, method: /api/contact/group/add/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
3 | name | string | Group name | Required field. | |
4 | parentid | integer | id parent category | Optional field. | |
5 | description | string | Category description | Optional field. | |
6 | priceid | integer | id prices for a contact group | Optional field. |
Get all contact groups, method: /api/contact/group/get/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
Editing a contact group, method: /api/contact/group/update/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
3 | name | string | Additional price name | Required field. | |
4 | parentid | string | id parent group | Optional field. | |
5 | priceid | integer | id group prices | Optional field. | |
6 | description | 1 / 0 | Group Description | Optional field. | |
7 | groupid | integer | Id groups | Optional field. |
Possible responses to the request
№ | Status | Message | Message Description |
1 | ok | groupid | id added / edited group |
2 | fail | Login is empty! | Login missing |
3 | fail | Password is empty! | Missing password |
4 | fail | Login or password not correct! | Invalid username or password |
5 | fail | Bad user level! | Low user level to perform this action (requires level 2 or higher) |
6 | fail | Group name is empty! | No group name |
7 | fail | Group name exists | A group with the same name already exists |
8 | fail | Group not found | No group with this id or name found |