Update an image

put

/api/REST/1.0/assets/image/{id}

Updates the image specified by the id parameter. All properties should be included in PUT requests, as some properties will be considered blank if not included.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the image to be created.
Root Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : Size
Type: object
Title: Size
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : Size
Type: object
Title: Size
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Update the name and folder of the image with Id #124:


PUT /api/REST/1.0/assets/image/124
Content-Type: application/json 
			

Request body:


{
  "id": "124",
  "name": "Unicorn.jpg",
  "folderId": "3628"
}
			

Response:


{
  "type": "ImageFile",
  "id": "124",
  "initialId": "25",
  "createdAt": "1471368211",
  "createdBy": "9",
  "depth": "complete",
  "folderId": "3628",
  "name": "Unicorn.jpg",
  "updatedAt": "1471370423",
  "updatedBy": "9",
  "fullImageUrl": "/EloquaImages/clients/TestInstance/{6f1ee4ee-ef1f-491d-967c-5cca14fe2721}_496_3138737-Unicorn.jpg",
  "size": {
    "type": "Size",
    "width": "386",
    "height": "387"
  },
  "thumbnailUrl": "/EloquaImages/clients/TestInstance/imagethumbnails/{6f1ee4ee-ef1f-491d-967c-5cca14fe2721}_496_3138737-Unicorn.jpg"
}
			
Back to Top