Skip to main content

Update label

PUT 

/labels/:labelId

Updates the label identified by the given labelId.

Request

Path Parameters

    labelId int64required

    Label numeric identifier

Query Parameters

    workspaceId int64

    Workspace numeric identifier

Bodyrequired

Label update request

    namestring
    valuestring
    isDefaultboolean

Responses

OK

Schema
    idint64
    namestring
    valuestring
    isDefaultboolean

Authorization: http

name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://docs.seqera.io/labels/:labelId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Auth
Parameters
— pathrequired
— query
Body required
{
  "name": "string",
  "value": "string",
  "isDefault": true
}