Skip to main content
PATCH
Update an object
Update an existing object, updating only the provided fields and leaving the rest of the object’s data unchanged. Set the objectType path parameter to the name of the object type you want to update — Deals, Projects, Applications, or any other object type defined in the group. See Custom objects to find the object types available in a group.
Fields with a list of values (people, companies) will replace the old values. This means that you must provide the entire list of values for that field, not just the values you want to add.

Authorizations

Authorization
string
header
required

API key for authentication

Headers

Idempotency-Key
string

A unique key, such as a UUID, that makes retrying this request safe: a retry with the same key and body returns the original response without running the operation again. Keys are kept for 24 hours after the request completes.

Maximum string length: 255
Example:

"8e03978e-40d5-43e8-bc93-6894a57f9324"

Path Parameters

groupId
string
required

The ID of the group the objects belong to. Can be retrieved from the List groups endpoint.

Required string length: 40
objectType
string
required

The name of the object type, as shown in the folk app, such as Deals. It is case-sensitive, and spaces must be URL-encoded, e.g. Job%20Applications. See how to find the object types of a group.

Maximum string length: 500
objectId
string
required

The ID of the object to update.

Required string length: 40

Body

application/json
name
string

The name of the object.

Maximum string length: 1000
Example:

"Project Alpha"

companies
object[]

The companies associated with the object. Unknown companies, and companies not in the group of the object, are ignored.

Maximum array length: 20
Example:
people
object[]

The people associated with the object. Unknown people, and people not in the group of the object, are ignored.

Maximum array length: 20
Example:
customFieldValues
object

The custom field values of the object, for the custom fields defined on its object type in the group. The format is the following:

The format of the custom field value depends on the type of the custom field:

  • textField: string, eg: "Foo"
  • numericField: number or numeric string, eg: 42 or "42"
  • dateField: ISO 8601 string (YYYY-MM-DD), eg: "2021-01-01"
  • singleSelect: string (option label), eg: "Active". Use the exact option labels of the custom field (case-sensitive): an unknown label creates a new option.
  • multipleSelect: array of strings (option labels), eg: ["B2B", "B2C"]. Use the exact option labels of the custom field (case-sensitive): an unknown label creates a new option.
  • userField: array of objects with either id (workspace user id) or email (workspace user email) property, eg: [{"id": "usr_a23373bb-5296-4c59-b2e8-8f121707d562"}, {"email": "jane@example.com"}]

Passing a null value or an empty array will unset the custom field value.

Example:

Response

The updated object.

data
object
required

An object of any type in a group, such as a deal.

Example:
deprecations
string[]
Example: