GET /organizations/object/definitions

GET /organizations/objects/definitions

Retrieve a list of organization level common resources. 

Response Fields

systemOnlyBoolean. true indicates a prebuilt template.

Response Fields

objectName
The name of the new common resource.
fields
An object containing the field names and data types of the common resource.
path
The name of the field.
type
The data type of the field.
level
The level at which the mapping exists, either organization, account, or instance.

Example Request

curl -X GET \
  https://api-us.integrate.sugarapps.com/elements/api-v2/organizations/objects/definitions \ 
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'Accept: application/json' \

Example Response

{
    "myListContacts": {
    "fields": [
      {
        "type": "string",
        "path": "email"
      }
    ],
    "level": "organization"
  },
  "myContacts": {
    "fields": [
      {
        "type": "string",
        "path": "mobile"
      },
      {
        "type": "string",
        "path": "fax"
      }
    ],
    "level": "organization"
  }
}