Harness Variable Sets API

Variable Sets Service handles the API for managing variable sets assigned to workspaces.

Operations 21

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /iacm/api/orgs/{org}/projects/{project}/variable-set Delete a project variable set by query identifier · Delete Variable Set by query identifier on project level #
Ask an LLM
“Can I delete a project variable set whose identifier contains a slash?”
“Is there a way to remove a project-level variable set when its id isn't URL-safe?”
Tell an agent destructive · confirm first
Delete the project variable set with identifier {identifier} in {project} of {org}, passing the id as a query parameter.
Remove project-scoped variable set {identifier} from {project} using the query-string delete.
POST /iacm/api/orgs/{org}/projects/{project}/variable-set Create a project-level variable set · Create a new Variable Set on project level #
Ask an LLM
“How do I create an IaCM variable set scoped to a single project?”
“Can a project variable set bundle Terraform variables, environment variables and connectors together?”
Tell an agent
Create variable set {identifier} named {name} in project {project} of org {org}.
Add a new project-scoped variable set called {name} with id {identifier} to {project}.
DELETE /iacm/api/orgs/{org}/projects/{project}/variable-set/{identifier} Delete a project variable set by identifier · Delete Variable Set by identifier on project level #
Ask an LLM
“How do I delete a variable set from one of my projects?”
“Can I permanently remove a project-level variable set by its identifier in the URL?”
Tell an agent destructive · confirm first
Delete project variable set {identifier} from project {project} in org {org}.
Remove the variable set {identifier} defined at project scope in {project}.
GET /iacm/api/orgs/{org}/projects/{project}/variable-set/{identifier} Get a project variable set · Get Variable Set by identifier on project level #
Ask an LLM
“Where can I see the Terraform variables and connectors inside one project variable set?”
“What does a single variable set defined in my project contain?”
Tell an agent
Show project variable set {identifier} in {project} of {org}.
Fetch the details of variable set {identifier} at project scope in {project}.
PUT /iacm/api/orgs/{org}/projects/{project}/variable-set/{identifier} Update a project variable set · Update a Variable Set on project level #
Ask an LLM
“How do I change the Terraform variables in an existing project variable set?”
“Can I rename a variable set that lives at project level?”
Tell an agent
Update project variable set {identifier} in {project} under {org} and rename it to {name}.
Change the description of project variable set {identifier} in {project} to {description}, keeping the name {name}.
GET /iacm/api/orgs/{org}/projects/{project}/variable-set/{identifier}/references List where a project variable set is referenced · Get Variable Set References list on project level #
Ask an LLM
“Which workspaces reference a given project variable set?”
“Can I check where a project-level variable set is used before deleting it?”
Tell an agent
List references to project variable set {identifier} in {project} of {org}.
Show what uses variable set {identifier} in project {project}.
GET /iacm/api/orgs/{org}/projects/{project}/variable-sets List variable sets in a project · Get Variable Set list on project level #
Ask an LLM
“What variable sets exist in my IaCM project?”
“Is there a list of every variable set defined at project level?”
Tell an agent
List the variable sets in project {project} of org {org}.
Show all project-scoped variable sets for {project}.
DELETE /iacm/api/orgs/{org}/variable-set Delete an org variable set by query identifier · Delete Variable Set by query identifier on org level #
Ask an LLM
“Can I delete an organization variable set whose id has characters unsafe in a URL path?”
“Is there a query-parameter way to remove an org-level variable set?”
Tell an agent destructive · confirm first
Delete org variable set {identifier} in organization {org}, sending the id as a query parameter.
Remove the organization-scoped variable set {identifier} from {org} via the query-string delete.
POST /iacm/api/orgs/{org}/variable-set Create an organization-level variable set · Create a new Variable Set on org level #
Ask an LLM
“How do I create a variable set shared across a whole organization?”
“Can I define org-wide Terraform variable files in one reusable set?”
Tell an agent
Create an org-level variable set {identifier} named {name} in organization {org}.
Add variable set {name} (id {identifier}) at organization scope for {org} with description {description}.
DELETE /iacm/api/orgs/{org}/variable-set/{identifier} Delete an organization variable set by identifier · Delete Variable Set by identifier on org level #
Ask an LLM
“How can I delete a variable set that belongs to my organization?”
“Can I remove an org-level variable set by putting its identifier in the path?”
Tell an agent destructive · confirm first
Delete organization variable set {identifier} from {org}.
Remove the org-scoped variable set {identifier} in organization {org} by its path identifier.
GET /iacm/api/orgs/{org}/variable-set/{identifier} Get an organization variable set · Get Variable Set by identifier on org level #
Ask an LLM
“What's inside a particular organization-level variable set?”
“Where do I view the connectors and environment variables of an org variable set?”
Tell an agent
Show organization variable set {identifier} in {org}.
Fetch the org-scoped variable set {identifier} from organization {org}.
PUT /iacm/api/orgs/{org}/variable-set/{identifier} Update an organization variable set · Update a Variable Set on org level #
Ask an LLM
“How do I edit the environment variables in an org-wide variable set?”
“Can I rename a variable set shared at organization level?”
Tell an agent
Update org variable set {identifier} in organization {org} and set its name to {name}.
Change the organization variable set {identifier} in {org} to have description {description} and name {name}.
GET /iacm/api/orgs/{org}/variable-set/{identifier}/references List where an org variable set is referenced · Get Variable Set References list on org level #
Ask an LLM
“Which projects or workspaces use a given organization variable set?”
“Can I find all references to an org-level variable set?”
Tell an agent
List references to organization variable set {identifier} in {org}.
Show everything that depends on org variable set {identifier} in organization {org}.
GET /iacm/api/orgs/{org}/variable-sets List variable sets in an organization · Get Variable Set list on org level #
Ask an LLM
“What variable sets are defined for my whole organization?”
“Is there a way to see every org-level variable set at once?”
Tell an agent
List the organization-scoped variable sets in {org}.
Show all variable sets defined at org level for organization {org}.
DELETE /iacm/api/variable-set Delete an account variable set by query identifier · Delete Variable Set by query identifier on account level #
Ask an LLM
“Can I delete an account-level variable set whose identifier includes a slash?”
“Is there a query-string delete for account-wide variable sets?”
Tell an agent destructive · confirm first
Delete account variable set {identifier}, passing the id as a query parameter.
Remove the account-scoped variable set {identifier} using the query-parameter delete.
POST /iacm/api/variable-set Create an account-level variable set · Create a new Variable Set on account level #
Ask an LLM
“How do I create a variable set available to my entire Harness account?”
“Can an account-wide variable set carry Terraform variables for every org?”
Tell an agent
Create an account-level variable set {identifier} named {name}.
Add account-scoped variable set {name} with id {identifier} and description {description}.
DELETE /iacm/api/variable-set/{identifier} Delete an account variable set by identifier · Delete Variable Set by identifier on account level #
Ask an LLM
“How do I delete an account-wide variable set?”
“Can I remove an account-level variable set by its identifier in the path?”
Tell an agent destructive · confirm first
Delete account variable set {identifier}.
Remove the variable set {identifier} defined at account scope by its path id.
GET /iacm/api/variable-set/{identifier} Get an account variable set · Get Variable Set by identifier on account level #
Ask an LLM
“What does a specific account-wide variable set contain?”
“Where can I read the Terraform variable files attached to an account-level variable set?”
Tell an agent
Show account variable set {identifier}.
Fetch the details of account-scoped variable set {identifier}.
PUT /iacm/api/variable-set/{identifier} Update an account variable set · Update a Variable Set on account level #
Ask an LLM
“How do I change the connectors on an account-wide variable set?”
“Can I rename a variable set defined at account level?”
Tell an agent
Update account variable set {identifier} and rename it to {name}.
Set the description of account-scoped variable set {identifier} to {description}, keeping name {name}.
GET /iacm/api/variable-set/{identifier}/references List where an account variable set is referenced · Get Variable Set References list on account level #
Ask an LLM
“Which workspaces across my account use a given account variable set?”
“Can I see the references to an account-level variable set before changing it?”
Tell an agent
List references to account variable set {identifier}.
Show everything that depends on account-scoped variable set {identifier}.
GET /iacm/api/variable-sets List variable sets in the account · Get Variable Set list on account level #
Ask an LLM
“What variable sets are defined at the account level?”
“Is there a list of all account-wide variable sets?”
Tell an agent
List the account-level variable sets for account {account}.
Show every variable set scoped to the whole account {account}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-variable-sets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-variable-sets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Variable Sets API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (344 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-variable-sets-api-openapi.yml