Create Tag
Create Tag
POST
https://api.ocamba.com/v1/hood/tags
Creates a Tag
Rate limits:
Burst: 10/s
Steady: 150/m
Request schema
bodyPOST https://api.ocamba.com/v1/hood/tags HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
"account_id": 1000001,
"name": "Demo Tag",
"status": "active",
"apps": {},
"settings": {},
"description": "This is my first tag."
}
curl -X POST "https://api.ocamba.com/v1/hood/tags" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"account_id":1000001,"name":"Demo Tag","status":"active","apps":{},"settings":{},"description":"This is my first tag."}'
fetch("https://api.ocamba.com/v1/hood/tags", {
method: "POST",
headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify(
{
"account_id": 1000001,
"name": "Demo Tag",
"status": "active",
"apps": {},
"settings": {},
"description": "This is my first tag."
}
)
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/tags");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
[
"account_id" => 1000001,
"name" => "Demo Tag",
"status" => "active",
"apps" => [],
"settings" => [],
"description" => "This is my first tag."
]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
201 Created
HTTP/1.1 201 Created
Content-Type: application/json
Responses
Note
1
Web app names are sanitized to be all lowercase.
2
Android and iOS app names stay the same.
3
Mandatory fields are Tag Name and Account.