{
  "opencollection": "1.0.0",
  "info": {
    "name": "Seqera actions labels API",
    "version": "1.181.0"
  },
  "items": [
    {
      "info": {
        "name": "labels",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Add labels to actions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/actions/labels/add",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Adds the given list of labels to the given pipeline actions. Existing labels are preserved."
        },
        {
          "info": {
            "name": "Replace action labels",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/actions/labels/apply",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Applies the given list of labels to the given pipeline actions. Existing labels are replaced — include labels to be preserved in `labelIds`."
        },
        {
          "info": {
            "name": "Remove labels from actions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/actions/labels/remove",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Removes the given list of labels from the given pipeline actions."
        },
        {
          "info": {
            "name": "Add labels to datasets",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/datasets/labels/add",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Adds the given list of labels to the given datasets. Existing labels are preserved."
        },
        {
          "info": {
            "name": "Replace datasets labels",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/datasets/labels/apply",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Applies the given list of labels to the given datasets. Existing labels are replaced - include labels to be preserved in `labelIds`. Only simple labels can be attached to datasets"
        },
        {
          "info": {
            "name": "Remove labels from datasets",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/datasets/labels/remove",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Removes the given list of labels from the given datasets."
        },
        {
          "info": {
            "name": "List labels",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/labels",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              },
              {
                "name": "max",
                "value": "",
                "type": "query",
                "description": "Pagination max results"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Pagination offset"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Filter search parameter"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Label type"
              },
              {
                "name": "isDefault",
                "value": "",
                "type": "query",
                "description": "Label default flag"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Lists all available labels in a user context. Append `?workspaceId` to list labels in a workspace context."
        },
        {
          "info": {
            "name": "Create label",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/labels",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a new label or returns an existing label based on name/value. By default the operation works in a user context, append `?workspaceId` to create/retrieve a label in a workspace context. Resource labels include `resource: true` and a `value`."
        },
        {
          "info": {
            "name": "GetAllowedDynamicLabels",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/labels/dynamic/allowed",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          }
        },
        {
          "info": {
            "name": "Update label",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/labels/:labelId",
            "params": [
              {
                "name": "labelId",
                "value": "",
                "type": "path",
                "description": "Label numeric identifier"
              },
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates the label identified by the given `labelId`."
        },
        {
          "info": {
            "name": "Delete label",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/labels/:labelId",
            "params": [
              {
                "name": "labelId",
                "value": "",
                "type": "path",
                "description": "Label numeric identifier"
              },
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes the label identified by the given `labelId`."
        },
        {
          "info": {
            "name": "Add labels to pipelines",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pipelines/labels/add",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Adds the given list of labels to the given pipelines. Existing labels are preserved."
        },
        {
          "info": {
            "name": "Replace pipeline labels",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pipelines/labels/apply",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Applies the given list of labels to the given pipelines. Existing labels are replaced — include labels to be preserved in `labelIds`."
        },
        {
          "info": {
            "name": "Remove labels from pipelines",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pipelines/labels/remove",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Removes the given list of labels from the given pipelines."
        },
        {
          "info": {
            "name": "Add labels to workflows",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/workflow/labels/add",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Adds the given list of labels to the given workflows. Existing labels are preserved."
        },
        {
          "info": {
            "name": "Replace workflow labels",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/workflow/labels/apply",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Applies the given list of labels to the given workflows. Existing labels are replaced — include labels to be preserved in `labelIds`."
        },
        {
          "info": {
            "name": "Remove labels from workflows",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/workflow/labels/remove",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "Workspace numeric identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Removes the given list of labels from the given workflows."
        }
      ]
    }
  ],
  "bundled": true
}