Add secret version in organization
Adds a version to a secret, which becomes its latest. A shared secret's versions are its source's to add.
POST
Adds a version to a secret, which becomes its latest. A shared secret's versions are its source's to add.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
Match
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$secret*stringThe secret's ID.
Match
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
payload*The version's value.
Created
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/organizations/string/secrets/string/versions' \
-H 'Content-Type: application/json' \
-d '{
"payload": {
"data": "string"
}
}'Example Response
{
"createTime": "2019-08-24T14:15:22Z",
"destroyTime": "2019-08-24T14:15:22Z",
"name": "string",
"state": "ENABLED"
}