The Zuplo Developer API, powered by Zuplo

Variables

Endpoint:https://dev.zuplo.com

Set of operations available to create and update environment variables. You can learn more about environment variables here.


Creates a variable

POST
https://dev.zuplo.com
/v1/accounts/{accountName}/projects/{projectName}/branches/{branchName}/variables

Creates a new environment variable in a branch for a given project.

Creates a variablepath Parameters

  • accountNamestring · required

    The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

  • projectNamestring · required

    The name of the project. You can find this in your Zuplo Portal under Settings > Project Information.

  • branchNamestring · required

    The name of the branch in your source control provider.

Creates a variableRequest Body

  • namestring · required

    The name of the variable. Must be named in SCREAMING_SNAKE_CASE.

    Example: APP_ENVIRONMENT_KEY
  • isSecretboolean · required

    Whether the variable is a secret.

    Example:
  • valuestring · required

    The value of the variable.

Creates a variableResponses

    • branchstring · readOnly · required
      Example: preview
    • createdOnstring · date-time · readOnly · required

      When the item was created.

      Example: 2023-04-18T05:54:34.408Z
    • updatedOnstring · date-time · readOnly · required

      When the item was last updated.

      Example: 2023-04-20T05:54:34.408Z
    • namestring · required

      The name of the variable. Must be named in SCREAMING_SNAKE_CASE.

      Example: APP_ENVIRONMENT_KEY
    • isSecretboolean · required

      Whether the variable is a secret.

      Example:
    • valuestring · required

      The value of the variable.


Updates a variable

PATCH
https://dev.zuplo.com
/v1/accounts/{accountName}/projects/{projectName}/branches/{branchName}/variables/{variableName}

Update the value of a variable in a branch for a given project.

Updates a variablepath Parameters

  • accountNamestring · required

    The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

  • projectNamestring · required

    The name of the project. You can find this in your Zuplo Portal under Settings > Project Information.

  • branchNamestring · required

    The name of the branch in your source control provider.

  • variableNamestring · required

    The name of the environment variable.

Updates a variableRequest Body

  • valuestring

    The value of the variable.

Updates a variableResponses

    • branchstring · readOnly · required
      Example: preview
    • createdOnstring · date-time · readOnly · required

      When the item was created.

      Example: 2023-04-18T05:54:34.408Z
    • updatedOnstring · date-time · readOnly · required

      When the item was last updated.

      Example: 2023-04-20T05:54:34.408Z
    • namestring · required

      The name of the variable. Must be named in SCREAMING_SNAKE_CASE.

      Example: APP_ENVIRONMENT_KEY
    • isSecretboolean · required

      Whether the variable is a secret.

      Example:
    • valuestring · required

      The value of the variable.