Secrets
Override the validity of a secret
Override the validity status of a secret with a customer-provided value.
While an override is set, GitGuardian stops running its periodic validity checks for the secret and the override value is reflected on the secret's validity.
Prerequisites:
- A valid API key with the secrets:write scope.
post/v1/secrets/{secret_id}/validity
Path parameters
secret_idinteger required
The ID of the secret to update
Request body
Example request
{
"validity": "invalid"
}Response
The validity override was set.
Example response
{
"id": 1,
"validity": "invalid",
"validity_override": "invalid"
}