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

Body Required

Secret parameters

Responses

  • Created

  • No Content

  • Bad Request

    Hide response attribute Show response attribute object
  • Unauthorized

    Hide response attribute Show response attribute object
  • Not Found

    Hide response attribute Show response attribute object
  • Internal Server Error

    Hide response attribute Show response attribute object
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"
}