Modify a Secret
Modify a Secret associated with a Atlas App Services App.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
-
The unique
_id
value of a secret.
PUT
/groups/{groupId}/apps/{appId}/secrets/{secretId}
curl \
--request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/secrets/{secretId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"_id":"string","name":"string","value":"string"}'
Request examples
{
"_id": "string",
"name": "string",
"value": "string"
}