Update CRM object fields

Prev Next
Post
/v2/crm/entity-schema

Sets the custom fields of one object type, so Gong can show more of your CRM data. A field that isn't in the schema doesn't appear in Gong, even if you upload it in your objects.

Send every custom field of the object type in each request, including the fields you sent before. You don't need to send the standard fields Gong creates.

  • To add a field, include it in the list.
  • To change a field's label or picklist values, send it with the new values. Picklist values you leave out aren't removed.
  • To delete a field and its data from every object, send it with isDeleted set to true.
  • If you change a field's type, Gong creates a new field and deletes the data of the old one.
  • Give a REFERENCE field its referenceTo, and a PICKLIST field its orderedValueList.

Update the schema when you create the integration, and whenever the fields change in your CRM.

Field types and the values to upload for each:

  • STRING, PHONENUMBER, EMAILADDRESS, URL: text.
  • BOOLEAN: true or false.
  • NUMBER: a number.
  • PERCENT: a number from 0 to 100.
  • CURRENCY: a number, in the currency set for the company in Gong. Gong supports one currency per company.
  • DATE: a date in ISO-8601 format, without a time.
  • DATETIME: a date and time in ISO-8601 format without milliseconds, in UTC (Z) or with a timezone offset such as -07:00.
  • PICKLIST: one of the values in the field's orderedValueList.
  • REFERENCE: the CRM ID of an object of the type in referenceTo.
  • ID: the object's CRM ID.
  • STRINGARRAY: a list of text values.

Required authorization scope: 'api:crm:schema'.

Query parameters
integrationId
integer (int64) Required

The Gong ID of the integration. Returned when you create the integration.

objectType
stringRequired

The CRM object type (case-sensitive). Accepted values: ACCOUNT, CONTACT, DEAL, LEAD.

Valid values[ "ACCOUNT", "CONTACT", "DEAL", "LEAD" ]
Body parameters
Array of object
object

A field of a CRM object type.

uniqueName
string Required

The name of the field, unique within the object type. Uploaded objects use it as the field's name.

Exampleaccountowner
label
string Required

The name Gong shows for the field.

ExampleAccount Owner
type
string Required

The type of the field (case-sensitive): DATE, DATETIME, NUMBER, PERCENT, CURRENCY, ID, URL, STRING, BOOLEAN, PHONENUMBER, EMAILADDRESS, PICKLIST, REFERENCE or STRINGARRAY. The description of POST /v2/crm/entity-schema gives the values to upload for each type.

Valid values[ "DATE", "DATETIME", "NUMBER", "PERCENT", "CURRENCY", "ID", "URL", "STRING", "BOOLEAN", "PHONENUMBER", "EMAILADDRESS", "PICKLIST", "REFERENCE", "STRINGARRAY" ]
ExampleREFERENCE
lastModified
string

The date and time the schema was last modified, in ISO-8601 format.

Example2020-12-17T13:45:01Z
isDeleted
boolean

Indicates whether the field is deleted from the schema.

Examplefalse
referenceTo
string

The type of object a REFERENCE field points to: ACCOUNT, CONTACT, DEAL, LEAD or USER (a business user).

ExampleUSER
orderedValueList
Array of string

The values of a PICKLIST field, in the order Gong shows them.

Example[ "Analyst", "Competitor", "Customer", "Integrator", "Investor", "Partner", "Other" ]
string

A value of the picklist.

Example["Analyst","Competitor","Customer","Integrator","Investor","Partner","Other"]
Responses
200

OK

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
201

Successfully uploaded crm schema fields

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
400
  • The request body isn't valid JSON.
  • A required field is missing, or a value has the wrong type or format. The error message names the field.
  • A field is missing uniqueName, label or type.
  • A custom field that's already in the schema is missing from the request. The error message names the missing fields.
  • The company has no CRM integration registered through the API.
  • integrationId isn't the ID of the company's integration. Read the ID as a 64-bit integer, so it isn't rounded.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
401
  • The API key or access token is missing or isn't valid.
  • The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
429
  • The company sent more requests than its rate limit allows. Wait the number of seconds in Retry-After, then send the request again.
Headers
Retry-After
integer (int32)
The number of seconds to wait before you send the request again.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
500
  • Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the requestId from the response.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string