View Segment
Copied
https://api.ocamba.com/v1/hood/segments/{id}
Copied
https://api.ocamba.com/v1/hood/segments/{id}
Retrieves the details of a Segment that has previously been created if a valid identifier was provided
Name
Descriptionidstringrequired
Unique resource identifier.Example: 12345
Name
Descriptionfieldsstring
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
outstring
Data format output - 'csv' (default) or 'json'.Example: out=json
200 - OK
Name
Descriptionitems[ segment ]
An array of all created items.Segment
Name
Descriptioncompanystring
A uniquie company identifier generated by the Ocamba.Example: 1234321
create_timestring
Timezone: GMT.Example: 2021-12-28 09:16:33
idstring
A unique identifier generated by the Ocamba.Example: 1023
namestring
Segment name, maximum length 65 characters.Example: example_segment_name
statusstring
Segment status, accepted values are inactive and active.Example: active
targetingsegment-targeting
Targeting object.Segment targeting
Name
Descriptionaccountsobject
Name
Descriptionitems[ string ]
List of account ids with unique items and minimum length of 1. This field is deprecated and will be removed in future. Please use partner as a replacement.opstring
Example: eq
Possible values: eq | neq
application_groupsobject
Name
Descriptionitems[ string ]
Array of hood application group ids created by the Ocamba platform.opstring
Example: neq
Possible values: eq | neq
applicationsobject
Name
Descriptionitems[ string ]
List of application ids with unique items and minimum length of 1. Every item should be valid full qualified domain name and can contain star (*).opstring
Example: eq
Possible values: eq | neq
browsersobject
Name
Descriptionitems[ string ]
Array of browser ids supported by Ocamba, max 100 items.opstring
Example: eq
Possible values: eq | neq
containersobject
Name
Descriptionitems[ string ]
Array of hood containers ids created on Ocamba platform, max 100 items.opstring
Example: eq
Possible values: eq | neq
countriesobject
Name
Descriptionitems[ string ]
Array of country codes supported by Ocamba (ISO 3166-1, 2 letter country codes), max 270 items.opstring
Example: eq
Possible values: eq | neq
groupsobject
Name
Descriptionitems[ string ]
Array of hood group ids created on Ocamba platform, max 100 items.opstring
Example: eq
Possible values: eq | neq
languagesobject
Name
Descriptionitems[ string ]
Array of language codes supported by Ocamba (ISO 639-2, 2 letter language codes), max 50 items.opstring
Example: eq
Possible values: eq | neq
osobject
Name
Descriptionitems[ string ]
Array of os ids supported by Ocamba, max 50 items.opstring
Example: eq
Possible values: eq | neq
partnersobject
Name
Descriptionitems[ string ]
List of partners ids with unique items and minimum length of 1.opstring
Example: eq
Possible values: eq | neq
regionsobject
Name
Descriptionitems[ string ]
Region ids.opstring
Example: eq
Possible values: eq | neq
remote_usersobject
Name
Descriptionitems[ string ]
Array of remote user ids maximum length of 100, tracked by Ocamba platform, max 100 items.opstring
Example: eq
Possible values: eq | neq
subscribed_ageobject
Name
Descriptionfromnumber (integer)
Number in range 0-3500Example: 10
tonumber (integer)
Number in range 1-3500. Must be greater than 'from' field.Example: 100
tagsobject
Name
Descriptionitems[ string ]
Array of hood tag ids created on Ocamba platform, max 100 items. This field is deprecated and will be removed in future. Please use container as a replacement.opstring
Example: eq
Possible values: eq | neq
user_dataobject
Name
Descriptionkeystring
Key can be any string which represents user specific data, max 100 characters. Key will be sanitized by removing leading and trailing whitespace, replacing all consecutive non-leading and non-trailing whitespaces with a single underscore, converting all character to lowercase and using only first 100 characters if there are over 100 characters.valueobject
Name
Descriptionitems[ string ]
Array of values, maximum 10 items.opstring
Example: eq
Possible values: eq | neq
usersobject
Name
Descriptionitems[ string ]
Array of user ids tracked by Ocamba platform, max 100 items.opstring
Example: eq
Possible values: eq | neq
totalinteger
A total number of items.Example: 1
tip
1 If you don't know the segment id, list the segments to find it.