vals

Update a environment variable scoped to this project.

put/v2/vals/{val_id}/environment_variables/{key}

Request

  • Base URL
    https://api.val.town
  • URL
    https://api.val.town/v2/vals/{val_id}/environment_variables/{key}
  • Auth
    none declared

Path parameters

val_idstring uuid required

Id of a val

keystring required

Request body

valuestring required

Value of the environment variable.

descriptionstring nullable

Optional description of the environment variable. Send null to clear an existing description; omit it to leave the description unchanged.

Response

An environment variable

keystring required

Name or key of the environment variable, accessible via Deno.env or process.env

descriptionstring nullable required

Optional description of the environment variable

updatedAtstring date-time nullable required
createdAtstring date-time required

Changes

    • breaking

      added the pattern ^[A-Za-z_][A-Z0-9a-z_]*$ to the path request parameter key

    • warning

      for the path request parameter key, the maxLength was set to 8192

    • info

      api operation id valEnvironmentVariablesCreate removed and replaced with valEnvironmentVariablesUpdate

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • breaking

      response property updatedAt list-of-types was widened by adding types null to media type application/json of response 201