Tuesday, July 12, 2022

Sitecore Content Hub: Update asset using REST API

 API URL : api/entities/{id}


Description: We can update the metadata of an asset once the asset is available in content hub platform. Asset details can be updated using the specific asset id.

Parameters

Name

Located in

Description

Required

Schema

Authorization

Headers

Access token which is generated in Oauth api call insert in the header.

Yes

String

id

url

To fetch the asset details using the asset ID.

Yes

sting

Raw

Body

The Metadata of the asset which the details has to be updated in JSON format.

Yes

JSON

 

Responses:

If the request is successful, then asset details will be updated in content hub and the api response will be with status code 200.

HTTP Status Code

Application Return Code

Description

Value

Schema

200

 

OK

-

String

304

 

Not Modified

-

String

400

 

Bad Request

-

String

403

 

Forbidden

-

String

404

 

Not Found

-

String

500

 

Server Error

 

String

  

Reference Screenshot – API call from postman tool:

 


No comments:

Post a Comment

How to Create a Public Link Using the Sitecore Content Hub REST API

Creating a public link using the Sitecore Content Hub REST API is a straightforward process that enables you to share content externally whi...