This API provides capabilities to retrieve the Behaviors defined for a given brand. For example, you might use it to keep your marketing database at Omeda in sync with your content taxonomy category.
General Technical Requirements
The following technical requirements apply to all requests for this API.
brandAbbreviation is the abbreviation for the brand
HTTP Headers
The HTTP header must contain the following element: x-omeda-appid a unique id provided to you by Omeda to access your data. The request will fail without a valid id.
Content Type
The content type is application/json. JSON application/json
JSON is the preferred data exchange format, because it is lightweight and, in most cases, faster to process and utilizes less bandwidth. There are many available open-source JSON libraries available. See json.org for details.
The following table describes the data elements present on the response from the API. In addition to the below elements, a SubmissionId element will also be returned with all responses. This is a unique identifier for the web services response. It can be used to cross-reference the response in Omeda’s database.
Behavior Elements
Element Name
Always Returned…
Data Type
Description
Id
Yes
Integer
Behavior Identifier
ActionId
Yes
Integer
Behavior Action Identifier – all behaviors must belong to a behavior action, which is predefined in the database. Some examples of behavior actions are “View”, “Download”, “Registered”, “Attend” – each of which contains has numeric identifier.
Description
Yes
String
Description of the Behavior.
Category
No
Integer Array
List of CategoryIds that are attached to this Behavior.
AlternateId
No
String
An id that can be used to uniquely identify this behavior (perhaps in your content management system).
ProductId
No
Integer
Links the Behavior to a specific Product defined in the database.
Response
HTTP Response Codes
Status
Description
200 OK
The request has succeeded. See Example Response below.
404 Not Found
In the event no Behaviors are found, an HTTP 404 (not found) response will be returned.