Skip to main content

Update documents within a schema collection that match the given filter

POST 

https://nildb-demo.nillion.network/api/v1/data/update

Update documents within a schema collection that match the given filter

Request

Responses

The result of the update operation

Authorization: http

name: jwttype: httpscheme: bearerbearerFormat: JWTdescription: A DID-JWT using the ES256K algorithm for authenticated endpoints.
JWT payload must include:
- iat: Issued at timestamp
- exp: Expiration timestamp (recommended)
- aud: Target node decentralised identifier (DID)
- iss: Client's decentralised identifier (DID)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://nildb-demo.nillion.network/api/v1/data/update");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"schema\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"filter\": {}\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://nildb-demo.nillion.network
Auth
Body
{
  "schema": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "filter": {}
}
ResponseClear

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

Feedback