Update Content
Allows to update a content in the system.
Last updated
Allows to update a content in the system.
Last updated
{
"accountId": "f09394dc775a870f9c7b8f98e45a",
"address": "",
"agencyId": "10d125c1277ac06295d25b79edc6",
"businessCategories": [],
"businessLabels": [],
"businessServices": [],
"businessTags": [],
"city": "",
"contentType": {
"id": "7eb49931fab86365a07f137db5fe",
"name": "Project"
},
"coordData": {
"geohash": ""
},
"coords": "44.00,44.0114",
"createDate": "2021-05-31T11:51:57.0Z",
"customerName": "",
"datetimeStamp": 516,
"description": "",
"internalNote": "",
"lock": {},
"media": [],
"neighborhood": "",
"permitNumber": "",
"pipelineId": "5c760838b1976bc7465b5fa8fff9",
"presentation": {},
"seo": {
"permalink": "title_"
},
"smartTags": [],
"stage": "1cb355e1ebaf70bb46eda2f6d3f9",
"status": {
"content": "draft",
"publish": "notPublished",
"service": "open"
},
"tasks": [],
"testimonial": {},
"title": "",
"updateDate": "2021-05-31T11:51:57.0Z",
"userId": "user_id",
"writings": {}
} Error, something happened !Content doesn't exist or uid of content is incorrectCheck the data to access the apiGET https://api.instantuploader.com/content/1e969d35f22897bb0f79ae74bc53 HTTP/1.1
Content-Type: application/json
Authorization: Bearer "<your_token_or_api_key>"
const https = require('https');
const options = {
hostname: 'api.instantuploader.com',
path: '/content/1e969d35f22897bb0f79ae74bc53',
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token_or_api_key>'
}
};
const req = https.request(options, res => {
console.log(`statusCode: ${res.statusCode}`);
res.on('data', d => {
process.stdout.write(d);
});
});
req.on('error', error => {
console.error(error);
});
req.end();
$curl = curl_init();
$headers = array(
'Content-Type: application/json',
'Authorization: Bearer <your_token_or_api_key>'
);
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.instantuploader.com/content/1e969d35f22897bb0f79ae74bc53",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => $headers
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;