VariableService

CreateVariableVariant

post/depot.ci.v3beta2.VariableService/CreateVariableVariant

Request

  • Base URL
    https://api.depot.dev
  • Auth
    HTTP bearer

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

variableNamestring required
variantNamestring

Name of the variant to create. Leave empty to name it after its attributes: after the repository for a repository attribute, or "default" with no attributes, suffixed "-2", "-3", and so on when that name is taken. For example, a variant for "acme/api" is named "acme-api". Fails when a variant with exactly these attributes already exists.

valuestring required
descriptionstring nullable

Response

Success

createdVariableboolean
createdVariantboolean

Example response

{
  "variable": {
    "variants": [
      {
        "lastModified": "2023-01-15T01:30:15.01Z"
      }
    ],
    "lastModified": "2023-01-15T01:30:15.01Z"
  },
  "variant": {
    "lastModified": "2023-01-15T01:30:15.01Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.