Grant environment access
Grants or updates access profiles (with optional narrowing scope and expiry) and secrets on a standalone environment. Requires environments.environments.update on the environment plus issue or access permission on each target. Owned environments (such as agent environments) manage grants through their owner.
Grants or updates access profiles (with optional narrowing scope and expiry) and secrets on a standalone environment.
Requires environments.environments.update on the environment plus issue or access permission on each target. Owned environments (such as agent environments) manage grants through their owner.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$environment*stringThe environment's ID.
^env_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
grants*array<>Access profiles or secrets to grant or update on the environment.
1 <= items <= 100OK
application/json- response
grants*array<>Grants assigned to the environment, oldest first.
curl -X POST 'https://api.kosem.ai/v1/projects/string/environments/string/grants' \
-H 'Content-Type: application/json' \
-d '{
"grants": [
{
"target": "string"
}
]
}'{
"grants": [
{
"alias": "string",
"createTime": "2019-08-24T14:15:22Z",
"expireTime": "2019-08-24T14:15:22Z",
"grantor": "string",
"id": "string",
"lastUsedTime": "2019-08-24T14:15:22Z",
"provider": "string",
"scope": {
"property1": null,
"property2": null
},
"target": "string",
"targetKind": "ACCESS_PROFILE",
"useCount": 0
}
]
}