Skip to main content

Update an existing protocol config

PUT 

https://manage.ioriver.io//api/v1/services/:service_id/protocol-config/:id/

Updates an existing protocol config of a service.

Request

Responses

Authorization: Authorization

name: Authorizationtype: apiKeydescription: Value should be formatted: `Token <key>`in: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://manage.ioriver.io/api/v1/services/:service_id/protocol-config/:id/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var content = new StringContent("{\n \"http2_enabled\": true,\n \"http3_enabled\": true,\n \"ipv6_enabled\": true,\n \"service\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://manage.ioriver.io
Auth
Parameters
— pathrequired
— pathrequired
Body required
{
  "http2_enabled": true,
  "http3_enabled": true,
  "ipv6_enabled": true,
  "service": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
ResponseClear

Click the Send API Request button above and see the response here!