Rotate a chain
POST//v1/chain/rotate
Rotate a chain
Request
- application/json
Body
RotateRequest
rotateToAddressstring
The address of the new committee or empty to cancel attempt to rotate
Responses
- 200
- 401
Chain rotation was requested
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (auto)
Schema
errorstringrequired
missingPermissionstringrequired
{
"error": "error",
"missingPermission": "missingPermission"
}
Authorization: Authorization
name: Authorizationtype: apiKeydescription: JWT Tokenin: 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.Post, "/v1/chain/rotate");
request.Headers.Add("Authorization", "<Authorization>");
var content = new StringContent("{\n \"rotateToAddress\": \"rotateToAddress\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear