Pin Dashboard
Pin Dashboard
POST
https://api.ocamba.com/v2/ocamba/dashboards/{id}/pin
Pins a DashboardPath parameters
parametersRequest schema
bodyResponse schemas
•
204
No Content
curl -X POST \
"https://api.ocamba.com/v2/ocamba/dashboards/{id}/pin" \
-H "Authorization: Bearer {TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"app_id": "",
"global": false
}'const url = 'https://api.ocamba.com/v2/ocamba/dashboards/{id}/pin';
const options = {
method: 'POST',
headers: {
Authorization: "Bearer {TOKEN}",
'Content-Type': "application/json"
},
body: JSON.stringify(
{
"app_id": "",
"global": false
}
)
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/dashboards/{id}/pin");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
[
"app_id" => "",
"global" => false
]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
204 No Content
Responses