Updated on 2026-07-24 GMT+08:00

Updating an Image Group

Function

This API is used to update the tags and description of an image group. This API is used when the image description or tag needs to be modified. Before using this API, ensure that the image group exists and you have the permission to update it. After the update is complete, the configuration file corresponding to the image group is updated. If the image group does not exist, you do not have the operation permission, or the image is being used, the API will return an error message.

Constraints

No constraints.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

PUT /v1/{project_id}/images/group/{id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

id

Yes

String

Definition: Image group ID. The ID is in the format of a Universally Unique Identifier (UUID).

Constraints: N/A

Range: N/A.

Default Value: N/A

project_id

Yes

String

Definition: Project ID. For details, see Obtaining a Project ID and Name.

Constraints: N/A

Range: N/A.

Default Value: N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

read_me

No

String

Definition: Overview information about the image group update.

Constraints: N/A

Range: Up to 30,000 characters.

Default Value: N/A

tags

No

Array of tags objects

Definition: Tag of the image group update.

Constraints: A maximum of 20 tags are supported.

Range: The key can contain a maximum of 128 characters, and the value can contain a maximum of 255 characters.

Default Value: N/A

Table 3 tags

Parameter

Mandatory

Type

Description

key

No

String

Definition: Tag key.

Constraints: A maximum of 20 tag keys are supported.

Range: The key can contain a maximum of 128 characters.

Default Value: null.

value

No

String

Definition: Tag value.

Constraints: A maximum of 20 tag values are supported.

Range: The value can contain a maximum of 255 characters.

Default Value: null.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

name

String

Definition: Image name.

Range: N/A

create_at

Long

Definition: UTC time when the image is created, accurate to millisecond.

Range: N/A

namespace

String

Definition: SWR organization to which the image belongs.

Range: N/A

update_at

Long

Definition: Time (UTC) when the image was last updated, accurate to millisecond.

Range: N/A

version_count

Integer

Definition: Number of image versions.

Range: N/A

description

String

Definition: Image description.

Range: N/A

read_me

String

Definition: Image guide information.

Range: N/A

icon_name

String

Definition: Image icon name.

Range: N/A

id

String

Definition: Image ID.

Range: N/A

swr_instance_id

String

Definition: SWR enterprise repository ID. This field is null if the SWR enterprise repository is not used.

Constraints: The value can contain a maximum of 128 characters.

Range: 0–128 characters, including digits (0–9) and lowercase letters (a–z).

Default Value: N/A

swr_instance_name

String

Definition: Image repository name of the SWR enterprise edition.

Constraints: The value can contain 3 to 48 characters.

Range: 3–48 characters.

Default Value: N/A

Status code: 204

No content.

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Example Requests

Update the tags and overview information of an image group.

PUT https://{endpoint}/v1/{project_id}/images/group/{id}

{
  "read_me" : "read_me_test",
  "tags" : [ {
    "key" : "key1",
    "value" : "value1"
  } ]
}

Example Responses

Status code: 200

Succeeded.

{
  "create_at" : 1773668206040,
  "description" : "custome_image",
  "icon_name" : "Docker",
  "id" : "0679184a-c22a-4326-b94d-011224ada4a4",
  "name" : "pytorch",
  "namespace" : "image_dev",
  "read_me" : "read_me_test",
  "update_at" : 1773668206040,
  "version_count" : 1
}

Status Codes

Status Code

Description

200

Succeeded.

204

No content.

401

Unauthorized.

403

Forbidden.

Error Codes

See Error Codes.