Apaga um segredo
DELETE/api/vault/secrets/{name}
- Auth
- Requires a token
- Who can call it:
- owner
- admin
- API key:
- No API key accepted
- X-CommunityId
X-CommunityIdSend the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
Só owner e admin. O valor é apagado na hora (o registro fica para a auditoria; o nome fica livre). Um nó que ainda o use cai na saída de erro com `secretUnavailable`.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
namerequired | path | string |
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Responses
| Status | Description |
|---|---|
200 | Apagado (`{ name, deleted: true }`). |
403 | Autenticado, mas sem permissão para esta operação. |
404 | Recurso não encontrado. |
curl example
curl -X DELETE "https://api.memberfy.net/api/vault/secrets/<name>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"