Update an existing app secret

PATCH /apps/{app-slug}/secrets/{secret-name}

Update an existing app secret. If the secret is protected, only its value can be overridden.

Path parameters

  • app-slug string Required

    app slug

  • secret-name string Required

    secret name

Body Required

secret data

  • expand_in_step_inputs boolean
  • is_exposed_for_pull_requests boolean
  • is_protected boolean
  • value string

Responses

  • 200

    Ok

    Hide response attributes Show response attributes object
    • expand_in_step_inputs boolean
    • id string
    • is_exposed_for_pull_requests boolean
    • is_protected boolean
    • name string
    • scope string
    • value string
  • 401

    Unauthorized

    Hide response attribute Show response attribute object
    • error_msg string
  • 403

    Forbidden

    Hide response attribute Show response attribute object
    • error_msg string
  • 404

    Not found

    Hide response attribute Show response attribute object
    • error_msg string
PATCH /apps/{app-slug}/secrets/{secret-name}
curl \
 --request PATCH 'https://api.bitrise.io/v0.1/apps/{app-slug}/secrets/{secret-name}' \
 --header "Authorization: $API_KEY" \
 --data '{"expand_in_step_inputs":true,"is_exposed_for_pull_requests":true,"is_protected":true,"value":"string"}'
Request examples
{
  "expand_in_step_inputs": true,
  "is_exposed_for_pull_requests": true,
  "is_protected": true,
  "value": "string"
}
Response examples (200)
{
  "expand_in_step_inputs": true,
  "id": "string",
  "is_exposed_for_pull_requests": true,
  "is_protected": true,
  "name": "string",
  "scope": "string",
  "value": "string"
}
Response examples (401)
{
  "error_msg": "string"
}
Response examples (403)
{
  "error_msg": "string"
}
Response examples (404)
{
  "error_msg": "string"
}