Disable secret version in project
Disables a version: it cannot be read until it is enabled again.
POST
Disables a version: it cannot be read until it is enabled again.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
Match
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$secret*stringThe secret's ID.
Match
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$version*stringThe version's number.
Match
^[1-9][0-9]{0,8}$OK
application/json- response
createTime*stringWhen the version was added.
Format
date-timedestroyTime?stringWhen the version was destroyed, if it was.
Format
date-timename*stringResource name, …/secrets/{secret_id}/versions/{version}, numbered from 1. A shared secret names its source's versions under itself.
state*stringWhether the version can be read: DISABLED until it is enabled again, and DESTROYED for good.
Value in
"ENABLED""DISABLED""DESTROYED"curl -X POST 'https://api.kosem.ai/v1/projects/string/secrets/string/versions/string/disable'Example Response
{
"createTime": "2019-08-24T14:15:22Z",
"destroyTime": "2019-08-24T14:15:22Z",
"name": "string",
"state": "ENABLED"
}