GET/organizations/objects/{objectName}/definitions

GET /organizations/objects/{objectName}/definitions

Retrieve a specific organization level common resource.

Path Parameters

objectNameThe name of the common resource.

Response Fields

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.

Example Request

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

Example Response

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