Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Hiloop API key sent as an HTTP Bearer token.

Path Parameters

id
string
required

The secret id to grant.

Body

application/json
id
string

The secret id to grant.

subject_kind
enum<string>

The principal kind.

Available options:
SANDBOX_SECRET_GRANT_SUBJECT_KIND_UNSPECIFIED,
SANDBOX_SECRET_GRANT_SUBJECT_KIND_USER,
SANDBOX_SECRET_GRANT_SUBJECT_KIND_SERVICE_ACCOUNT,
SANDBOX_SECRET_GRANT_SUBJECT_KIND_WORKLOAD
subject_id
string

The principal's immutable id within subject_kind.

Response

OK

grant
object

The exact idempotently-created grant. A secret accepts at most 200 exact grants, including the creator grant.