Disconnect a participant to a network
Information
This API allow you to disconnect a participant from its network.
Link to swaggerThis endpoint is
synchronous
The role
admin
is needed in order to use this endpointEndpoints
DELETE/v1/config/participant/network/:participantNetworkIdentifierId
Path parameters
participantNetworkIdentifierIdstring (uuid) - Required
Request
DELETE /v1/config/participant/network/:participantNetworkIdentifierId
- bash
- javascript
- .NET
curl -X 'DELETE'
'https://api.ppd.iopole.fr//v1/config/participant/network/f47ac10b-58cc-4372-a567-0e02b2c3d479' -H 'accept: application/json'
-H 'Authorization: Bearer ${token}'
const got = require('got');
const token = 'your_token_here';
(async () => {
try {
const response = await got.delete('https://api.ppd.iopole.fr//v1/config/participant/network/f47ac10b-58cc-4372-a567-0e02b2c3d479', {
headers: {
'accept': 'application/json',
'Authorization': 'Bearer ${token}'
},
responseType: 'json'
});
console.log(response.body);
} catch (error) {
console.error(error.response.body);
}
})();
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var token = "your_token_here";
var client = new HttpClient();
client.DefaultRequestHeaders.Add("accept", "application/json");
client.DefaultRequestHeaders.Add("Authorization", Bearer ${token}");
var response = await client.DeleteAsync("https://api.ppd.iopole.fr//v1/config/participant/network/f47ac10b-58cc-4372-a567-0e02b2c3d479");
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
}
Response
200 OK
{
"type": "PARTICIPANT",
"id": "127cfd27-33de-4bb6-832c-4eaf7518e8b9"
}