https://api.ocamba.com/v1/hood/containers/{id}/groups
            

Returns a list of Container groups that are related to the specified Container.


Name
Description
idstringrequired
Unique resource identifier.


Example: 12345

Name
Description
fieldsstring
Fields parameter represents array of dimensions and measures. Dimensions are used to categorize, segment, and reveal the details of the data. Measures contain numeric, quantitative values that can be measured. At least one measure is required.


Example: fields=field1,field2,field3

viewstring
Hood API returns full representation of the resource using the "view=full" query parameter. If not specified, the default view will be used.

Note that the "fields" parameter has precedence over the "view" parameter.


Example: view=full/default

sortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).

Examples:
GET /VERSION/hood/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /VERSION/hood/RESOURCE_NAME?sort=-id → sorts per id descending
GET /VERSION/hood/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending

See tips for the list of sortable fields.


Example: sort=-field1,field2

pagestring
The page number indicates which set of items will be returned in the response. The format of request is "page=N,M" where 'N' (required) represents page number and 'M' (optional) is number of items per page.

Examples:
N=1, M=20 → returns page 1 with 20 items
N=2, M=20 → returns page 2 with 20 items (items 21-40)
N=3 → returns page 3. The number of objects returned depends on the resource settings.


Example: page=1,10

q_fieldsstring
Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field.

Examples:
GET /VERSION/hood/RESOURCE_NAME?q=sou&q_fields=lname → API retuns a certain resource whose lname contains string 'sou'.
GET /VERSION/hood/RESOURCE_NAME?q=sou&q_fields=fname,lname,email → API returns a certain resource that contain string 'sou' in any of the specified fields.

See tips for the list of searchable parameters.

qstring
Set the q parameter value to search for a keyword or search term.

Example:
GET /VERSION/hood/RESOURCE_NAME?q=sou → returns a certain resource that contain string 'sou'

See tips for the list of searchable parameters.


200 - OK
Arrow
Name
Description
items[ group ]
An array of all created items.
Group
Name
Description
colorstring
Group color.


Example: #6d9382

company_idstring
A unique company identifier generated by the Ocamba.


Example: 7196310

create_timestring
Timezone: GMT.


Example: 2021-10-29 12:47:00

descriptionstring
The more detailed description of the Group.


Example: This is my first group.

idstring
A unique identifier generated by the Ocamba.


Example: 450

item_idsarray
This field isn't readable, it helps you add items to the group on group creation.


Example: ["30677878","44676391","7403921"]

namestring
Group name.


Example: example_group_name

num_of_itemsnumber
Number of items.


Example: 9

update_timestring
Timezone: GMT.


Example: 2021-10-30 14:27:26

totalinteger
A total number of items.


Example: 7
tip
1 Sortable fields are: id, name, num_of_items, create_time and update_time.

2 If you don't know the Container Id, list containers to find it.
200 Arrow
{
  "total": 2,
  "items": [
    {
      "id": "453",
      "company_id": "6197120",
      "name": "12312312",
      "color": "#f5b847",
      "num_of_items": 7,
      "create_time": "2020-09-08 08:25:59",
      "update_time": "2024-10-15 08:35:05"
    },
    {
      "id": "2025",
      "company_id": "6197120",
      "name": "88888",
      "color": "#ffffff",
      "num_of_items": 7,
      "create_time": "2024-10-15 07:22:02",
      "update_time": "2024-10-15 07:40:23"
    }
  ]
}
{
  "total": 7,
  "items": [
    {
      "id": "450",
      "company_id": "7196310",
      "name": "example_group_name",
      "color": "#6d9382",
      "num_of_items": 9,
      "description": "This is my first group.",
      "item_ids": "[\"30677878\",\"44676391\",\"7403921\"] ",
      "create_time": "2021-10-29 12:47:00",
      "update_time": "2021-10-30 14:27:26"
    }
  ]
}