Update Tag
Update Tag
PATCH
https://api.ocamba.com/v1/hood/tags/{id}
Updates the specific Tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged
Rate limits:
Burst: 10/s
Steady: 150/m
Path parameters
parametersRequest schema
bodyPATCH https://api.ocamba.com/v1/hood/tags/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
"apps": {},
"description": "This is my first tag."
}
curl -X PATCH "https://api.ocamba.com/v1/hood/tags/{id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"apps":{},"description":"This is my first tag."}'
fetch("https://api.ocamba.com/v1/hood/tags/{id}", {
method: "PATCH",
headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify(
{
"apps": {},
"description": "This is my first tag."
}
)
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/tags/{id}");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
[
"apps" => [],
"description" => "This is my first tag."
]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
204 No Content
HTTP/1.1 204 No Content
Content-Type: application/json
Responses
Note
1
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the bid modifier.
2
Web app names are sanitized to be all lowercase.
3
Android and iOS app names stay the same.
Tip
1
If you don’t know the Tag ‘id’, list the Tags to find it.