Update an existing protocol config
PUThttps://manage.ioriver.io//api/v1/services/:service_id/protocol-config/:id/
Updates an existing protocol config of a service.
Request
Responses
- 200
Authorization: Authorization
name: Authorizationtype: apiKeydescription: Value should be formatted: `Token <key>`in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear