v1.2 initial commit
This commit is contained in:
44
API/v1/sources/inserve/GET Sync cloud distributor.md
Normal file
44
API/v1/sources/inserve/GET Sync cloud distributor.md
Normal file
@@ -0,0 +1,44 @@
|
||||
This API call synchronizes active companies in Sentri with the corresponding cloud distributor companies in Inserve. These cloud distributor companies are required to associate Sentri server licenses with companies in Inserve.
|
||||
#### Location
|
||||
```
|
||||
/api/v1/sources/inserve/sync-cloud-distributor/
|
||||
```
|
||||
|
||||
#### Permissions required
|
||||
`servers` RW
|
||||
|
||||
#### Body parameters
|
||||
None.
|
||||
|
||||
### Example Body (json)
|
||||
None.
|
||||
|
||||
### Example Request
|
||||
```php
|
||||
|
||||
$curl = curl_init();
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_URL => 'https://sentri.nl/api/v1/sources/inserve/sync-cloud-distributor/',
|
||||
CURLOPT_CUSTOMREQUEST => 'GET',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_HTTPHEADER => [
|
||||
"Authorization: Bearer <API your Bearer Token>",
|
||||
"Accept: application/json",
|
||||
"Content-Type: application/json"
|
||||
]
|
||||
));
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
curl_close($curl);
|
||||
echo $response;
|
||||
```
|
||||
|
||||
### Example Response
|
||||
```json
|
||||
"Sync is done successfully"
|
||||
```
|
||||
|
||||
#### Known errors or issues.
|
||||
None are known at the time
|
||||
If you do encounter issues and get an http code in return, check the response codes on this page.
|
||||
Reference in New Issue
Block a user