Update Object
Update an existing object in your Procore account. This includes updating the object's field values as well as attaching new files to the object.
This action can be used to execute most Procore API calls that use an HTTP PATCH request and take a single object (rather than an array of objects) as input. Please refer to the Procore API Reference to find such APIs; most of them begin with the word "Update". Here are just a handful of Procore APIs that you can invoke with this action:
Inputs
Key | Value | |
---|---|---|
| Required | The Procore API endpoint that you wish to invoke, without the "vapid" prefix. Please refer to the Procore Actions overview for more on the |
| Required (at least one) | The value you want to place in the |
| Optional | The data type of the field called Refer to the Body Parameters section of your Procore API's documentation to determine the correct field type for a given field. |
| Optional | The time zone for the This input is unnecessary if you don't specify any |
| Optional | The full URL (including path and filename) of the file that you wish to attach to the Procore object. Note that not all Procore objects support attachments. Please refer to the Procore API documentation's Body Parameters section to determine whether the Update API call you are using can accept attachments. APIs that accept attachments will have |
| Optional | The name and extension that you want to give to the file that you are attaching to the Procore object. |
Outputs
None
Usage Example
Suppose you want to update an existing Injury record in Procore based on new data collected from a form in GoFormz. To do this, you might start with a Form Completed trigger, then configure an Update Object step as follows:
Key | Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
In this example, we first construct the apiPath
as described in Procore's Update Injury API documentation, using the "ProjectId" and "InjuryId" fields from the completed form to fill in the required project ID and injury ID path parameters. Then we fill the affected_body_part
, hazard_id
, affected_company_id
, affected_person_id
, and affliction_type_id
parameters of the Incident with corresponding values from the completed form. Note that all of these parameters can be found in the Body Parameters of the Update Injury API documentation.
Updated 28 days ago