SecretsNameRename
Rename Secret Value
Rename secret in keyring. The new name must be words of lowercase letters, digits and _, separated by ., since a configuration references it as ${secrets.<name>}. Everything referring to the secret follows: the token is rewritten in the configuration of every project reading it, and every connected repository authenticating with it is repointed at the new name.
Path Parameters
name*Name
Secret name
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/api/secrets/string/rename" \ -H "Content-Type: application/json" \ -d '{ "new_name": "string" }'{
"projects": [
"string"
],
"repositories": [
"string"
]
}Empty
Empty
Empty
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Empty