Remove agent secret grant
Removes a secret from an agent, with what the agent bound of it. Returns the grants the agent has left. The agent's commands are given none of the secret's values from then on, and kosem issues it none of the secret's credentials. The agent's bindings of the secret are removed, and the agent is told, as a config change by the caller whose removedSecrets names the secret. Credentials already issued work until they expire, and a value the agent already read, or a command that started before, keeps what it had. Takes agents.secretGrants.delete, which the agent's owners have, and no access to the secret. Fails with not_found when the agent has neither a grant nor a binding of it.
Removes a secret from an agent, with what the agent bound of it. Returns the grants the agent has left.
The agent's commands are given none of the secret's values from then on, and kosem issues it none of the secret's credentials. The agent's bindings of the secret are removed, and the agent is told, as a config change by the caller whose removedSecrets names the secret. Credentials already issued work until they expire, and a value the agent already read, or a command that started before, keeps what it had. Takes agents.secretGrants.delete, which the agent's owners have, and no access to the secret. Fails with not_found when the agent has neither a grant nor a binding of it.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$agent*stringThe agent's ID.
^ags_[0-7][0-9a-hjkmnp-tv-z]{25}$secret*stringThe secret's ID.
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
secretGrants*array<>The agent's grants, the oldest first.
curl -X DELETE 'https://api.kosem.ai/v1/projects/string/agents/string/secretGrants/string'{
"secretGrants": [
{
"createTime": "2019-08-24T14:15:22Z",
"grantor": "string",
"secret": "string"
}
]
}