Create a new Access Key
POST/v1/providers/:provider_id/orgs/:org_id/key
Creates a new access key for a user. The access key ID and secret will be returned in the response.
Request
Path Parameters
provider_id stringrequired
Provider ID
org_id stringrequired
Organization ID
- application/json
Body
required
Array [
]
name string
Name of the access key
user_id stringrequired
ID of the user for whom the access key is being created
user_role OrgMembership (string)
Possible values: [Admin
, Member
]
Role assigned to the user in the organization
buckets_roles
object[]
bucket_name stringrequired
Name of the bucket
role stringrequired
Possible values: [ReadOnly
, Editor
, Admin
]
The role assigned to the access key defines the permissions (read, write, admin) for the associated bucket.
Responses
- 200
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
Access key ID
secret_key stringrequired
Access secret
name string
Name of the access key
{
"id": "string",
"secret_key": "string",
"name": "string"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Loading...