Update content of images in a Content Library Document
post
                    /rest/api/v1.3/clDocImages/{documentPath}
Request
Path Parameters
                - 
                    documentPath: string
                    
                    The complete path of the document starting with '/contentlibrary'.
Request Body
                
                
                
                Root Schema : Content Library Document Images
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Content Library Document Images- 
            documentPath: 
            string
            The complete path of the document starting with '/contentlibrary'.
- 
            imageData: 
            array  imageData
            
            Images in the content library document.
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            itemData(optional): 
            string(byte)
            Base64 encoded binary string of the image content.
- 
            itemPath(optional): 
            string
            Name of the image in the content library document.
Response
Supported Media Types
                - application/json
Default Response
Root Schema : Content Library Document Images
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Content Library Document Images- 
            documentPath: 
            string
            The complete path of the document starting with '/contentlibrary'.
- 
            imageData: 
            array  imageData
            
            Images in the content library document.
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            itemData(optional): 
            string(byte)
            Base64 encoded binary string of the image content.
- 
            itemPath(optional): 
            string
            Name of the image in the content library document.
Examples
The following example shows how to update images in a content library document.
A successful request requires the following headers:
| FIELDS | DESCRIPTION | 
|---|---|
| Authorization | <AUTH_TOKEN> | 
| Content-Type | application/json | 
Required Body Parameters
- documentPath(string) : The complete path of the document, starting with- /contentlibrary.
- imageData(array) : Images in the content library document. Contains- itemDataand- itemPathfor each image in the document.
- itemPath(string) : Name of the image in the content library document.
- itemData(string - byte) : Base64 encoded binary string of the image content.
Sample Request Body:
        {
    "documentPath" : "/contentlibrary/abn/wsrest_cl.htm",
    "imageData": [
      {
        "itemPath": "testcreate.png",
        "itemData": "<base64 encoded binary string>"
      }
      ]
    }
   
  
   RESPONSE NOTES: 
   
 
  - A success response echoes back the document path you sent, and it returns contentas null. It also returns the related endpoints for the given document path.
- Possible error responses occur when: 
     - The documentPathis incorrect in the request (error codes include FOLDER_NOT_FOUND and DOCUMENT_NOT_FOUND and the details show the folder path without the file name). Verify that the folder and file names are spelled correctly and that they exist in the Content Library. To get the correct path, you can ask the Responsys Account Admin to send you a copy of the document path, which the admin can get from the Content Library.
- The documentPathhas incorrect format in the request (error code is INVALID_PARAMETER and the details show the folder path without the file name). Verify that you have included/contentlibraryat the start of the path, have spelled it correctly, and have included the document file name at the end of the path.
 
- The 
Sample Response:Success
    {
       "documentPath": "/contentlibrary/abn/wsrest_cl.htm",
       "content": null,
       "links":    [
                {
             "rel": "self",
             "href": "/rest/api/v1.3/clDocImages/contentlibrary/abn/wsrest_cl.htm",
             "method": "POST"
          },
                {
             "rel": "getDocumentImages",
             "href": "/rest/api/v1.3/clDocImages/contentlibrary/abn/wsrest_cl.htm",
             "method": "GET"
          }
       ]
    }
	 
  Sample Response: Failure
    {
       "type": "",
       "title": "Invalid request parameters",
       "errorCode": "INVALID_PARAMETER",
       "detail": "Document Path in the URI does not match Document Path in the request payload",
       "errorDetails": []
    }