メインコンテンツへスキップ
PUT
/
objs
/
{object_id}
/
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>"
  ]
}
'
{}

承認

Authorization
string
header
必須

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

パスパラメータ

object_id
string
必須

ボディ

application/json

エイリアスを設定するためのリクエストボディです(object_id はパスから取得されます)。

project_id
string
必須
:

"entity/project"

digest
string
必須
:

"abc123def"

aliases
string[]
必須
:
["staging", "v1-candidate"]

レスポンス

正常なレスポンス

The response is of type ObjSetAliasesRes · object.