Skip to main content
POST
/
okapicrm.v1.OkapiCRMService
/
CreateObject
cURL
curl --request POST \
  --url https://api.okapicrm.com/okapicrm.v1.OkapiCRMService/CreateObject \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "object": {
    "apiName": "<string>",
    "archived": true,
    "displayNamePlural": "<string>",
    "displayNameSingular": "<string>",
    "fieldDefinitions": [
      {
        "allowedObjectIds": [
          "<string>"
        ],
        "apiName": "<string>",
        "archived": true,
        "displayName": "<string>",
        "enumValues": [
          {
            "apiName": "<string>",
            "displayColor": [
              "ENUM_VALUE_DISPLAY_COLOR_UNSPECIFIED",
              "ENUM_VALUE_DISPLAY_COLOR_RED",
              "ENUM_VALUE_DISPLAY_COLOR_ORANGE",
              "ENUM_VALUE_DISPLAY_COLOR_YELLOW",
              "ENUM_VALUE_DISPLAY_COLOR_GREEN",
              "ENUM_VALUE_DISPLAY_COLOR_BLUE",
              "ENUM_VALUE_DISPLAY_COLOR_VIOLET"
            ],
            "displayName": "<string>"
          }
        ],
        "formula": "<string>",
        "id": "<string>",
        "type": [
          "FIELD_DEFINITION_TYPE_UNSPECIFIED",
          "FIELD_DEFINITION_TYPE_BOOLEAN",
          "FIELD_DEFINITION_TYPE_NUMBER",
          "FIELD_DEFINITION_TYPE_STRING",
          "FIELD_DEFINITION_TYPE_TIMESTAMP",
          "FIELD_DEFINITION_TYPE_USER_ID",
          "FIELD_DEFINITION_TYPE_RECORD_ID",
          "FIELD_DEFINITION_TYPE_ENUM"
        ],
        "unique": true
      }
    ],
    "iconDisplayFieldDefinitionApiName": "<string>",
    "id": "<string>",
    "primaryDisplayFieldDefinitionApiName": "<string>",
    "secondaryDisplayFieldDefinitionApiName": "<string>"
  }
}
'
{
  "apiName": "<string>",
  "archived": true,
  "displayNamePlural": "<string>",
  "displayNameSingular": "<string>",
  "fieldDefinitions": [
    {
      "allowedObjectIds": [
        "<string>"
      ],
      "apiName": "<string>",
      "archived": true,
      "displayName": "<string>",
      "enumValues": [
        {
          "apiName": "<string>",
          "displayColor": [
            "ENUM_VALUE_DISPLAY_COLOR_UNSPECIFIED",
            "ENUM_VALUE_DISPLAY_COLOR_RED",
            "ENUM_VALUE_DISPLAY_COLOR_ORANGE",
            "ENUM_VALUE_DISPLAY_COLOR_YELLOW",
            "ENUM_VALUE_DISPLAY_COLOR_GREEN",
            "ENUM_VALUE_DISPLAY_COLOR_BLUE",
            "ENUM_VALUE_DISPLAY_COLOR_VIOLET"
          ],
          "displayName": "<string>"
        }
      ],
      "formula": "<string>",
      "id": "<string>",
      "type": [
        "FIELD_DEFINITION_TYPE_UNSPECIFIED",
        "FIELD_DEFINITION_TYPE_BOOLEAN",
        "FIELD_DEFINITION_TYPE_NUMBER",
        "FIELD_DEFINITION_TYPE_STRING",
        "FIELD_DEFINITION_TYPE_TIMESTAMP",
        "FIELD_DEFINITION_TYPE_USER_ID",
        "FIELD_DEFINITION_TYPE_RECORD_ID",
        "FIELD_DEFINITION_TYPE_ENUM"
      ],
      "unique": true
    }
  ],
  "iconDisplayFieldDefinitionApiName": "<string>",
  "id": "<string>",
  "primaryDisplayFieldDefinitionApiName": "<string>",
  "secondaryDisplayFieldDefinitionApiName": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

object
object · object

Response

apiName
string
archived
boolean
displayNamePlural
string
displayNameSingular
string
fieldDefinitions
FieldDefinition · object[]
iconDisplayFieldDefinitionApiName
string
id
string
primaryDisplayFieldDefinitionApiName
string
secondaryDisplayFieldDefinitionApiName
string