Metadata Ingestion APIsShelf and Feed APIsSubscriber Activity APIs

Ingestion – Single Metadata Upsert

This API is used to upsert (Update/insert) a single item/ title. If the item/title already exists it will overwrite the existing item or will insert as a new item.

Resource URL

PUT - /metax/3.0/ingest/__ITEM__GUID__

Header Paramater

Authorization
required
Bearer Access Token to be sent with all client requests.
Content-Type
required
application/json or application/xml

URL Parameter

__ITEM__GUID__
optional
Global Unique Id or item ID. If GUID is not present in an item MetaX will through error and will not update.
The API provides ability to send both JSON and XML formatted data. If you want to push the data in XML format, set Content-Type header to application/xml and for JSON formatted data , set Content-Type header to application/json.

Example Request URL

PUT - http://__JTV__HOST__/metax/3.0/ingest/__ITEM__GUID__

Example Request

If request content type is JSON If request content type is XML

NOTE : The above JSON and XML examples feed format are indicative. Format may vary based on the partner's existing feed format.

Example PHP Code

Example Return

Success
HTTP status code : 200 Faliure
HTTP status code : 401 HTTP status code : 404 HTTP status code : 500 OR OR