UpdateAccessKeyRequest
ID of the user for whom the access key is being updated
Access key ID
Role of the user in the organization. Controls what the user can do through the Partner API management endpoints.
Admin: Full org access. Can list and manage all access keys in the org, update org settings, and manage users. ListAccessKeys returns all keys in the org.Member: Standard access. Can only manage their own access keys. ListAccessKeys returns only keys owned by this user.
If omitted, defaults to Member behavior.
Possible values: [Admin, Member]
buckets_roles object[]
Replaces the key's bucket roles. Omitting the field or sending an
empty array leaves existing roles unchanged. Cannot be combined with
remove_buckets_roles; an empty array still counts as providing
this field.
Name of the bucket
The role defines the permissions for the associated bucket:
-
ReadOnly: Read operations such as GetObject, HeadObject and ListObjects, plus creating bucket snapshots and forks. -
ReadWrite: Everything in ReadOnly, plus object writes: PutObject, DeleteObject, CopyObject, object tagging and multipart uploads. Cannot change bucket configuration. -
Editor: Everything in ReadWrite, plus full bucket administration: CORS, lifecycle, tagging, ownership controls, inventory, bucket ACLs (including making the bucket public), custom domains, delete protection, shadow bucket, origin, object notifications, storage tier, and DeleteBucket. Cannot manage bucket shares or create bucket IAM policies. -
Admin: Full access to all buckets in the org, bypasses all permission checks. When used withbucket_name: "*", the access key is treated as a full org admin. The value ofbucket_nameshould always be*when using this role.Example:
{ "bucket_name": "*", "role": "Admin" }
Possible values: [ReadOnly, ReadWrite, Editor, Admin]
remove_buckets_roles object[]
Bucket roles to remove. Each entry must match an existing role on
both bucket_name and role. Entries that match no existing role
are ignored. Removing every role is allowed. Cannot be combined with
buckets_roles.
To revoke org-wide admin, remove the wildcard role:
{
"bucket_name": "*",
"role": "Admin"
}
Name of the bucket
The role defines the permissions for the associated bucket:
-
ReadOnly: Read operations such as GetObject, HeadObject and ListObjects, plus creating bucket snapshots and forks. -
ReadWrite: Everything in ReadOnly, plus object writes: PutObject, DeleteObject, CopyObject, object tagging and multipart uploads. Cannot change bucket configuration. -
Editor: Everything in ReadWrite, plus full bucket administration: CORS, lifecycle, tagging, ownership controls, inventory, bucket ACLs (including making the bucket public), custom domains, delete protection, shadow bucket, origin, object notifications, storage tier, and DeleteBucket. Cannot manage bucket shares or create bucket IAM policies. -
Admin: Full access to all buckets in the org, bypasses all permission checks. When used withbucket_name: "*", the access key is treated as a full org admin. The value ofbucket_nameshould always be*when using this role.Example:
{ "bucket_name": "*", "role": "Admin" }
Possible values: [ReadOnly, ReadWrite, Editor, Admin]
Names of IAM policies to attach to this access key. Policies already attached are ignored.
Can be combined with remove_policies in the same request — removals are applied first.
Names of IAM policies to detach from this access key. Policies not currently attached are ignored.
Omitting this field leaves the key's current scope unchanged.
Possible values: [standard, no_default_allow]
{
"user_id": "string",
"id": "string",
"user_role": "Admin",
"buckets_roles": [
{
"bucket_name": "string",
"role": "ReadOnly"
}
],
"remove_buckets_roles": [
{
"bucket_name": "string",
"role": "ReadOnly"
}
],
"add_policies": [
"string"
],
"remove_policies": [
"string"
],
"access_key_scope": "standard"
}