Upsert an application secret Deprecated

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

Upsert an application secret. Requires administrator level privileges to the app.

Path parameters

  • app-slug string Required

    App slug

  • secret-name string Required

    Secret name

Body Required

Secret parameters

Responses

  • 201

    Created

  • 204

    No Content

  • 400

    Bad Request

    Hide response attribute Show response attribute object
    • message string
  • 401

    Unauthorized

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

    Not Found

    Hide response attribute Show response attribute object
    • message string
  • 500

    Internal Server Error

    Hide response attribute Show response attribute object
    • message string
PUT /apps/{app-slug}/secrets/{secret-name}
curl \
 --request PUT '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 (400)
{
  "message": "string"
}
Response examples (401)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}
Response examples (500)
{
  "message": "string"
}