Update Conversion
Update Conversion
PATCH
https://api.ocamba.com/v2/adex/conversions/{id}
Updates the specific Conversion by setting the values of the parameters passed. Any parameters not provided will be left unchanged
Note
Updatable fields are name, description, status and duplication_policy.
Warning
This change will be automatically synchronized to an ad server.
Tip
If you don’t know the conversion id, list the conversions to find it.
Path parameters
parametersQuery parameters
parametersRequest schema
bodyResponse schemas
•
204
No Content
curl -X PATCH \
"https://api.ocamba.com/v2/adex/conversions/{id}" \
-H "Authorization: Bearer {TOKEN}" \
-H "Content-Type: application/json" \
-d '"{\n \"name\": \"Example\",\n \"description\": \"Description example\",\n \"status\": \"inactive\",\n \"duplication_policy\": 0,\n}"'const url = 'https://api.ocamba.com/v2/adex/conversions/{id}';
const options = {
method: 'PATCH',
headers: {
Authorization: "Bearer {TOKEN}",
'Content-Type': "application/json"
},
body: JSON.stringify(
"{\n \"name\": \"Example\",\n \"description\": \"Description example\",\n \"status\": \"inactive\",\n \"duplication_policy\": 0,\n}"
)
};
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/adex/conversions/{id}");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
"[\n \"name\" => \"Example\",\n \"description\" => \"Description example\",\n \"status\" => \"inactive\",\n \"duplication_policy\" => 0,\n]"
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
204 No Content
Responses