Update a task

Prev Next
Patch
/v2/tasks/{taskId}

Updates the status, due date or priority of a user's task.

Send only the fields to change. The task changes only if the user in userId owns it. If they don't, or there's no task with this ID, the response's tasks list is empty.

Required authorization scope: 'api:tasks:write'.

Path parameters
taskId
integer (int64) Required

The Gong ID of the task to update.

Body parameters
object
userId
string Required

The Gong user ID of the user who owns the task.

Example234599484848423
status
string

The new status of the task. Accepted values: OPEN, DONE, DISMISSED. For a FLOW task, DONE and DISMISSED end the step and move the prospect to the next step of the flow.

Valid values[ "OPEN", "DONE", "DISMISSED" ]
ExampleOPEN
dueDate
string (date-time)

The new due date and time of the task. Use ISO-8601 format, in UTC (Z) or with a timezone offset such as -07:00.

Example2020-01-12T14:30:00-08:00
priority
string

The new priority of the task. Accepted values: none, low, medium, high, critical. Not case-sensitive.

ExampleMEDIUM
hasSpecificTime
boolean

Set to true to make the task due at the exact time in dueDate. If false or not provided, the task is due at 23:59 on that day, in the user's time zone. Ignored unless you also send dueDate.

Responses
200

Successful response

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
tasks
Array of object (ReminderDataDto)

The tasks that match the request.

object

A task.

id
integer (int64)

The Gong ID of the task.

Example1234361284629351
userId
integer (int64)

The Gong user ID of the user who owns the task.

Example234599484848423
created
string (date-time)

The date and time the task was created, in ISO-8601 format.

Example2018-02-17T02:30:00-08:00
updated
string (date-time)

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

Example2018-02-17T02:30:00-08:00
status
string

The status of the task. Possible values: OPEN, DONE, DISMISSED.

Valid values[ "OPEN", "DONE", "DISMISSED" ]
Example["OPEN"]
type
string

The type of the task. Possible values: FLOW (a step in a flow), MANUAL (a one-off task a user created).

Valid values[ "FLOW", "MANUAL" ]
Example["MANUAL"]
actions
Array of string

The actions the task asks the user to take. Possible values: CALL.

Unique itemstrue
Example[ "CALL" ]
string

An action the task asks the user to take.

Valid values[ "CALL" ]
Example["CALL"]
account
object (AccountDto)

The CRM account the task is linked to.

crmId
string

The CRM ID of the account.

name
string

The name of the account.

crmUrl
string

The URL of the account in the CRM.

opportunity
object (OpportunityDto)

The CRM opportunity the task is linked to.

crmId
string

The CRM ID of the opportunity.

name
string

The name of the opportunity.

crmUrl
string

The URL of the opportunity in the CRM.

status
string

The status of the opportunity in the CRM.

stage
string

The stage of the opportunity in the CRM.

amount
string

The amount the opportunity is expected to bring in, from the CRM.

probability
string

The probability of closing the opportunity, from the CRM.

closeDate
string

The close date of the opportunity in the CRM.

dueDate
string (date-time)

The date and time the task is due, in ISO-8601 format.

Example2018-02-17T02:30:00-08:00
flow
object (FlowDto)

The flow the task is a step of. Returned when type is FLOW.

id
integer (int64)

The Gong ID of the flow.

Example1695493301223590792
name
string

The name of the flow.

ExamplePersonal Flow
step
object (StepDto)

The flow step the task is for.

id
integer (int64)

The Gong ID of the flow step.

Example1695493301223590791
name
string

The name of the step.

ExampleMake a call
stepNumber
integer (int64)

The number of the step in the flow.

Example1
contact
object (ContactDto)

A CRM contact or lead the task is for.

crmId
string

The CRM ID of the contact or lead.

Examplea5V1Q00A120DP4CVAW
type
string

The type of CRM object. Possible values: CONTACT, LEAD.

Valid values[ "CONTACT", "LEAD" ]
ExampleLEAD
data
object (ContactCrmData)

The contact's details from the CRM. If Gong doesn't have the contact's CRM data, emails may be the only field filled in.

firstName
string

The contact's first name.

ExampleJon
lastName
string

The contact's last name.

ExampleSnow
crmUrl
string

The URL of the contact in the CRM.

companyName
string

The name of the company the contact works for.

ExampleGONG
affiliation
string

The contact's affiliation. Possible values: Us (the contact works for your company), Them (the contact works for another company), Unknown (Gong couldn't tell).

Valid values[ "Us", "Them", "Unknown" ]
ExampleUs
emails
Array of object (ContactEmailDto)

The contact's email addresses.

Unique itemstrue
object

An email address of the contact.

email
string

The email address of the contact.

Exampletest@test.com
title
string

The job title of the contact.

ExampleEnterprise Account Executive
timezone
string

The contact's time zone, from the CRM, as an offset from UTC. Empty if the CRM holds the time zone in another format.

ExampleUS/Pacific
phoneNumbers
Array of object (PersonPhoneDto)

The contact's phone numbers, with the most reliable first. isVerified and label show how reliable each number is.

Unique itemstrue
object

A phone number of the contact.

raw
string

The phone number as Gong received it.

extension
string

The extension of the phone number.

countryCode
integer (int32)

The country calling code of the phone number.

normalized
string

The phone number in a standard format.

label
string

The label of the CRM field the phone number comes from, such as Mobile. null for a number Gong found elsewhere, such as in an email.

isVerified
boolean

Indicates whether the phone number is verified. false means the number is marked as not valid. null means the number hasn't been checked.

city
string

The contact's city, from the CRM.

country
string

The contact's country, from the CRM.

state
string

The contact's state, from the CRM.

ExampleCalifornia
zipcode
string

The contact's postal code, from the CRM.

optOutChannels
Array of string

The channels the contact opted out of. Possible values: CALLS, EMAILS, SMS.

Unique itemstrue
string
Valid values[ "CALLS", "EMAILS", "SMS" ]
linkedinProfile
string

The URL of the contact's LinkedIn profile.

additionalContacts
Array of object (ContactDto)

The other contacts the task is for, in addition to contact.

object

A CRM contact or lead the task is for.

crmId
string

The CRM ID of the contact or lead.

Examplea5V1Q00A120DP4CVAW
type
string

The type of CRM object. Possible values: CONTACT, LEAD.

Valid values[ "CONTACT", "LEAD" ]
ExampleLEAD
data
object (ContactCrmData)

The contact's details from the CRM. If Gong doesn't have the contact's CRM data, emails may be the only field filled in.

firstName
string

The contact's first name.

ExampleJon
lastName
string

The contact's last name.

ExampleSnow
crmUrl
string

The URL of the contact in the CRM.

companyName
string

The name of the company the contact works for.

ExampleGONG
affiliation
string

The contact's affiliation. Possible values: Us (the contact works for your company), Them (the contact works for another company), Unknown (Gong couldn't tell).

Valid values[ "Us", "Them", "Unknown" ]
ExampleUs
emails
Array of object (ContactEmailDto)

The contact's email addresses.

Unique itemstrue
object

An email address of the contact.

email
string

The email address of the contact.

Exampletest@test.com
title
string

The job title of the contact.

ExampleEnterprise Account Executive
timezone
string

The contact's time zone, from the CRM, as an offset from UTC. Empty if the CRM holds the time zone in another format.

ExampleUS/Pacific
phoneNumbers
Array of object (PersonPhoneDto)

The contact's phone numbers, with the most reliable first. isVerified and label show how reliable each number is.

Unique itemstrue
object

A phone number of the contact.

raw
string

The phone number as Gong received it.

extension
string

The extension of the phone number.

countryCode
integer (int32)

The country calling code of the phone number.

normalized
string

The phone number in a standard format.

label
string

The label of the CRM field the phone number comes from, such as Mobile. null for a number Gong found elsewhere, such as in an email.

isVerified
boolean

Indicates whether the phone number is verified. false means the number is marked as not valid. null means the number hasn't been checked.

city
string

The contact's city, from the CRM.

country
string

The contact's country, from the CRM.

state
string

The contact's state, from the CRM.

ExampleCalifornia
zipcode
string

The contact's postal code, from the CRM.

optOutChannels
Array of string

The channels the contact opted out of. Possible values: CALLS, EMAILS, SMS.

Unique itemstrue
string
Valid values[ "CALLS", "EMAILS", "SMS" ]
linkedinProfile
string

The URL of the contact's LinkedIn profile.

title
string

The title of the task. Returned when type is MANUAL.

priority
object (Priority)

The priority of the task. A task without a priority of its own has its flow step's priority. If neither has one, the priority is medium.

id
integer (int64)

The Gong ID of the task priority.

Example1
name
string

The name of the priority. Possible values: none, low, medium, high, critical.

Examplehigh
weight
integer (int32)

How important the priority is, as a number. A higher number means a more important task.

Example100
hasSpecificTime
boolean

Indicates whether the task is due at the exact time in dueDate. If false, the task is due at 23:59 on that day, in the user's time zone.

crmType
string

The CRM your company's Gong account is connected to. Possible values: SALESFORCE, HUBSPOT, MICROSOFT_DYNAMICS, GENERIC (a CRM that sends its data to Gong through the CRM endpoints).

Valid values[ "SALESFORCE", "HUBSPOT", "MICROSOFT_DYNAMICS", "GENERIC" ]
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.
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
403

Access denied

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
404

TaskId not found

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