Add one entry to the directory, method: /api/directory/change/?actiontype=insert
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 | directoryid | integer | id reference | Required field. | |
4 | [KEY] | string | dictionary fields | To insert the required parameters, pass in the format KEY = VALUE, where KEY is the identifier of the required field | |
5 | dataFromBody | boolean | Take data not from arguments, but from body | Optional field. | If dataFromBody = 1 is passed, then data will be taken not from arguments, but from the request body. Json must be passed to the body, in which the keys must be the parameters described above. login and password should be sent as usual |
Editing one entry in the directory, method: /api/directory/change/?actiontype=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 | directoryid | integer | id reference | Required field. | |
5 | data | array | reference fields to update | Associative array of values for editing the directory. The array contains values in the format KEY = VALUE, where KEY is the identifier of the required field | |
6 | id or recordid | integer | id directory entries | Optional field. | If you want to change a specific directory entry |
7 | [KEY] | string | dictionary fields | To find the required record for editing, you can send a value in the format KEY = VALUE, where KEY is the identifier of the required field | |
8 | dataFromBody | boolean | Take data not from arguments, but from body | Optional field. | If dataFromBody = 1 is passed, then data will be taken not from arguments, but from the request body. Json must be passed to the body, in which the keys must be the parameters described above. login and password should be sent as usual |
Deleting a directory entry, method: /api/directory/change/?actiontype=delete
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 | directoryid | integer | id reference | Required field. | |
6 | recordid | integer | id directory entries | Optional field. | |
7 | dataFromBody | boolean | Take data not from arguments, but from body | Optional field. | If dataFromBody = 1 is passed, then data will be taken not from arguments, but from the request body. Json must be passed to the body, in which the keys must be the parameters described above. login and password should be sent as usual |
Add multiple entries to the directory, method: /api/directory/change/?actiontype=insert
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 | directoryid | integer | id reference | Required field. | |
4 | massivechange | json | Array in json format with data required for insertion | The array should consist of associative arrays with data to insert a record into the directory. This array must contain data in the format KEY = VALUE, where KEY is the identifier of the required field | |
5 | dataFromBody | boolean | Take data not from arguments, but from body | Optional field. | If dataFromBody = 1 is passed, then data will be taken not from arguments, but from the request body. Json must be passed to the body, in which the keys must be the parameters described above. login and password should be sent as usual |
Editing multiple entries in the directory, method: /api/directory/change/?actiontype=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 | directoryid | integer | id reference | Required field. | |
5 | data | array | reference fields to update | Associative array of values for editing the directory. The array contains values in the format KEY = VALUE, where KEY is the identifier of the required field | |
6 | id or recordid | integer | id directory entries | Optional field. | If you want to change a specific directory entry |
7 | [KEY] | string | dictionary fields | To find the required record for editing, you can send a value in the format KEY = VALUE, where KEY is the identifier of the required field | |
4 | massivechange | json | Array in json format with data required for editing | The array should consist of associative arrays with data to insert a record into the directory. Every associative array must have this structure:
|
|
5 | dataFromBody | boolean | Take data not from arguments, but from body | Optional field. | If dataFromBody = 1 is passed, then data will be taken not from arguments, but from the request body. Json must be passed to the body, in which the keys must be the parameters described above. login and password should be sent as usual |
Retrieve one or all directory entries, method: /api/directory/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 |
3 | directoryid | integer | id reference | Required field. | |
4 | recordid | integer | id directory entries | Optional field. | If you would like to get a specific directory entry |