VariableService

SetVariableVariant

post/depot.ci.v3beta2.VariableService/SetVariableVariant

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 write. Leave empty, or pass "default", to write the variant whose attributes match exactly, or else create one named after them: 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 new variant for "acme/api" is named "acme-api".

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.