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
isDeletedset to true. - If you change a field's
type, Gong creates a new field and deletes the data of the old one. - Give a
REFERENCEfield itsreferenceTo, and aPICKLISTfield itsorderedValueList.
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:trueorfalse.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'sorderedValueList.REFERENCE: the CRM ID of an object of the type inreferenceTo.ID: the object's CRM ID.STRINGARRAY: a list of text values.
Required authorization scope: 'api:crm:schema'.
The Gong ID of the integration. Returned when you create the integration.
The CRM object type (case-sensitive). Accepted values: ACCOUNT, CONTACT, DEAL, LEAD.
A field of a CRM object type.
The name of the field, unique within the object type. Uploaded objects use it as the field's name.
The name Gong shows for the field.
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.
The date and time the schema was last modified, in ISO-8601 format.
Indicates whether the field is deleted from the schema.
The type of object a REFERENCE field points to: ACCOUNT, CONTACT, DEAL, LEAD or USER (a business user).
The values of a PICKLIST field, in the order Gong shows them.
A value of the picklist.
OK
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Successfully uploaded crm schema fields
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
- 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,labelortype. - 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.
integrationIdisn't the ID of the company's integration. Read the ID as a 64-bit integer, so it isn't rounded.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- 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.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The company sent more requests than its rate limit allows. Wait the number of seconds in
Retry-After, then send the request again.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the
requestIdfrom the response.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.