Update image member
PUT /v2/images/<IMAGE_ID>/members/<member_id>
Normal response codes: 200
Preconditions
- The specified images must exist.
- You must be a member of the specified image.
Synchronous Postconditions
- If you update the member status to accepted and have the correct permissions, you see the image in list images responses.
- With correct permissions, you can see the updated member status of the image through API calls.
Request
This table shows the URI parameters for the update image member request:
Name | Type | Description |
---|---|---|
image_id | UUID | Image ID stored through the image API. Typically a UUID. |
member_id | String | Image member ID. For example, the project ID of the user with whom the image is being shared. |
This table shows the body parameters for the update image member request:
Name | Type | Description |
---|---|---|
status | String | The status of this image member. |
Example. Update image member: JSON request
{
"status": "accepted"
}
Response
{
"created_at": "2013-09-20T19:22:19Z",
"image_id": "a96be11e-8536-4910-92cb-de50aa19dfe6",
"member_id": "8989447062e04a818baf9e073fd04fa7",
"schema": "/v2/schemas/member",
"status": "accepted",
"updated_at": "2013-09-20T20:15:31Z"
}