Create Application group
Create Application group
POST
https://api.ocamba.com/v1/hood/application-groups
Creates a new Application group
Rate limits:
Burst: 10/s
Steady: 150/m
Request schema
bodyResponse schemas
›
201
application/json
POST https://api.ocamba.com/v1/hood/application-groups HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
"name": "example_group_name",
"color": "#6d9382",
"description": "This is my first group.",
"items": "{\"google.com\", \"www.youtube.com\"} "
}
curl -X POST "https://api.ocamba.com/v1/hood/application-groups" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"example_group_name","color":"#6d9382","description":"This is my first group.","items":"{\"google.com\", \"www.youtube.com\"} "}'
fetch("https://api.ocamba.com/v1/hood/application-groups", {
method: "POST",
headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify(
{
"name": "example_group_name",
"color": "#6d9382",
"description": "This is my first group.",
"items": "{\"google.com\", \"www.youtube.com\"} "
}
)
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/application-groups");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
[
"name" => "example_group_name",
"color" => "#6d9382",
"description" => "This is my first group.",
"items" => "[\"google.com\", \"www.youtube.com\"] "
]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
201 Created
HTTP/1.1 201 Created
Content-Type: application/json
{
"id": "1025",
"company_id": "6197120",
"name": "second",
"color": "#57f8c8",
"size": 2,
"items": [
"google.com",
"www.youtube.com"
],
"description": "My second group"
}
Responses