Edit Content
This section lets you edit the content.
Authorization
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
curl -X PATCH '{API_URL}/api/v1/content/{contentId}' \
-H 'Authorization: Basic RDZXN1Y4US1NTkc0V1lDLVFYOUJQMkItOEU3QjZLRzpUNFNHSjlISDQ3TVpRWkdTWkVGVjZYUk5TS1E4RDZXN1Y4UU1ORzRXWUNRWDlCUDJCOEU3QjZLRw==' \
-H 'Content-Type: application/json' \
-d '{
"contentId" : "testingID For Client Content",
"duration" : 30,
"title" : "Test content for API functionality Edited",
"price" : 90,
"currency": "INR",
"categories": ["category1", "category2"],
"tags": ["free", "premium", "metered"],
"sections": ["EDITORIAL"],
"authorId": "7589",
"url": "www.google.com",
"contentType": "PREMIUM CONTENT",
"priceOverrides": {
"country": [
{
"name": "GL",
"price": 2
},
{
"name": "IN",
"price": 1
},
{
"name": "US",
"price": 0
}
]
},
"download": {
"url": "https://yourdownloadurl.com",
"fileName": "Download File - Edited Name",
"fileType": "PDF"
},
"pixels": {
"facebook": {
"pixelId": "98357934724994",
"events": [
{
"eventType": "VIEW",
"name": "PageView"
},
{
"eventType": "CONVERSION",
"name": "Purchase",
"data": {
"value": "dataValue"
}
}
]
},
"google": {
"trackingId": "G-RJDY8493"
}
}
}'
Last updated