Xeonr Developer Docs

Update S3 access key

POST
/uplim.api.v1.S3CredentialsService/UpdateS3Credential

Updates an access key's label, replaces its grant set, or pauses/resumes it.

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

id?string
Formatuuid
label?string

New label. Always applied.

Length1 <= length <= 64
grants?

Replacement grant set. Always applied in full (an empty list clears grants, making the key cover all the owner's buckets).

Itemsitems <= 100
disabled?boolean

Pause (true) or resume (false) the key.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.S3CredentialsService/UpdateS3Credential" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "credential": {
    "id": "string",
    "accessKeyId": "string",
    "label": "string",
    "grants": [
      {
        "bucketId": 0,
        "level": "BUCKET_PERMISSION_LEVEL_UNSPECIFIED"
      }
    ],
    "disabled": true,
    "createdAt": "2023-01-15T01:30:15.01Z",
    "lastUsedAt": "2023-01-15T01:30:15.01Z",
    "ownerTeam": "string",
    "ownerTeamSlug": "string",
    "createdByUserId": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}