POST
/
extensions
/
sales-objects
/
v1
/
object-types
Create object type
curl --request POST \
  --url https://api.hubapi.com/extensions/sales-objects/v1/object-types \
  --header 'Content-Type: application/json' \
  --data '{
  "applicationId": 123,
  "baseUris": [
    "<string>"
  ],
  "dataFetchUri": "<string>",
  "title": "<string>",
  "propertyDefinitions": [
    {
      "name": "<string>",
      "label": "<string>",
      "dataType": "STRING",
      "options": [
        {}
      ]
    }
  ],
  "associatedHubSpotObjectTypes": [
    "CONTACT"
  ],
  "associatedHubSpotObjectTypeProperties": {}
}'
{
  "id": 123,
  "applicationId": 123,
  "baseUris": [
    "<string>"
  ],
  "dataFetchUri": "<string>",
  "title": "<string>",
  "propertyDefinitions": [
    {}
  ],
  "associatedHubSpotObjectTypes": [
    "<string>"
  ],
  "associatedHubSpotObjectTypeProperties": {}
}

Query Parameters

hapikey
string
required

Your Developer HAPIkey. This must be a Developer HAPIkey associated with the Developer portal that the OAuth app was created in.

Body

application/json

Response

201 - application/json

Successful response - Object type created successfully

The response is of type object.