Update a Digital Item

Sample request to update a digital item of type image in a repository using Postman client.

Figure - Update a Digital Item

Update a Digital Item

To update a digital item of type image:

  • In the Authorization tab, set the authorization.
  • In the Headers tab, enter the Key as X-Requested-With and Value as XMLHttpRequest.
  • In the Body tab, select the form-data radio button. The mulipart contains two parts.
    • As shown in the figure, the first part is item. Enter the Key as item. For item, in the Key column, select the Text option from the drop-down menu. Enter the Value with item details in the JSON format. The sample JSON shown in the figure consists of item details like id, type, description, and repositoryId. Enter the Content Type as application/json.
    • As shown in the figure, the second part is file. Enter the Key as file. For file, in the Key column, select the File option from the drop-down menu. Upload the file in Value column. Enter the Content Type according to the extension of the file uploaded. The sample file shown in the figure is of extension png, the Content Type is set as image/png.