Skip to main content
PUT
/
objs
/
{object_id}
/
aliases
Obj Set Aliases
curl --request PUT \
  --url https://api.example.com/objs/{object_id}/aliases \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "digest": "<string>",
  "aliases": [
    "<string>"
  ]
}
'
{}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

object_id
string
required

Body

application/json

Request body for setting aliases (object_id comes from path).

project_id
string
required
Example:

"entity/project"

digest
string
required
Example:

"abc123def"

aliases
string[]
required
Example:
["staging", "v1-candidate"]

Response

Successful Response

The response is of type ObjSetAliasesRes · object.