Search the Omeda Knowledge Base

< All Topics
Print

Behavior Lookup By Id

Summary

This API provides capabilities to retrieve a single Behavior. You would use this service to look up a behavior using the Behavior Id.

General Technical Requirements

The following technical requirements apply to all requests for this API.

Base Resource URI

Production: https://ows.omeda.com/webservices/rest/brand/{brandAbbreviation}/behavior/{behaviorId}/*
 
Testing:    https://ows.omedastaging.com/webservices/rest/brand/{brandAbbreviation}/behavior/{behaviorId}/*

brandAbbreviation is the abbreviation for the brand behaviorId is the known behavior id

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.

Supported HTTP Methods

There is one HTTP method supported:

  1. GET : See W3C’s GET specs for details.

Lookup Behavior By Id

An HTTP GET retrieves a single Behavior for a brand, by it’s ID.

Field Definition

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 NameAlways ReturnedData TypeDescription
IdYesIntegerBehavior Identifier
ActionIdYesIntegerBehavior 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.
DescriptionYesStringDescription of the Behavior.
AlternateIdNoStringAn id that can be used to uniquely identify this behavior (perhaps in your content management system).
OmedaProductIdNoIntegerLinks the Behavior to a specific Product defined in the database.

Response

When getting a single behavior, the Behaviors element is omitted and one behavior is returned.

HTTP Response Codes

StatusDescription
200 OKThe request has succeeded. See Example Response below.
404 Not FoundIn the event the Behavior is not found, an HTTP 404 (not found) response will be returned.

Example Response

{
  "SubmissionId" : "C95AE90C-BEC6-41F2-91E2-2BA9168D1D1F",
  "Behavior":[
    {
      "Id":41237, 
      "TypeId":11, 
      "Description":"Trade Show 2010 - No Show",
      "AlternateId":"TRADE_SHOW_2010_NO_SHOW"
    }
  ]
}
Tags:
Table of Contents
Scroll to Top