Buckets

Create bucket key

Creates a new access key for the given bucket. The secretAccessKey field is returned exactly once in this response and is never stored — copy it immediately.

post/v1/buckets/{bucketId}/keys

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/buckets/{bucketId}/keys
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Path parameters

bucketIdstring required

Request body

namestring

Display name for the key. Generated if omitted.

role'read' | 'read_write' required

Access role for the key: "read" or "read_write".

Response

Created a new bucket key. The secret is returned once in the response body.

Changes

No recorded changes to this operation across all 1 revision of this API.