Define primary compute environment
POST/compute-envs/:computeEnvId/primary
Selects the compute environment identified by the given computeEnvId
as the primary compute environment in the given workspace context.
Request
Path Parameters
computeEnvId stringrequired
Compute environment string identifier
Query Parameters
workspaceId int64
Workspace numeric identifier
- application/json
Body
objectobject
Responses
- 204
- 400
- 403
OK - No content
Bad request
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Operation not allowed
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
- 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, "https://docs.seqera.io/compute-envs/:computeEnvId/primary");
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());