Help Center/ Cloud Phone Host/ API Reference/ Cloud Phone Server APIs/ Images/ Accepting or Rejecting Images Shared By Others
Updated on 2025-10-28 GMT+08:00

Accepting or Rejecting Images Shared By Others

Function

This API is used to accept or reject images shared by others. The rejected images cannot be used.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

PUT /v1/{project_id}/cloud-phone/images/{image_id}/members

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

image_id

Yes

String

Specifies the image ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

status

Yes

String

Specifies the status of an image sharing.

  • accepted: The sharing is accepted.

  • rejected: The sharing is rejected.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the request ID.

Example Requests

Accepting or rejecting images shared by other users

PUT https://{Endpoint}/v1/{project_id}/cloud-phone/images/{image_id}/members

{
  "status" : "accepted"
}

Example Responses

Status code: 200

OK

{
  "request_id" : "95f25ae6120643ac9e0effd633b37b98"
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.