PATCH /rest/v1.0/cost_codes/sync
This endpoint creates or updates a batch of Cost Codes. See Using Sync Actions for additional information.
Servers
- https://api.procore.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Procore-Company-Id |
Integer | Yes |
Unique company identifier associated with the Procore User Account. |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
project_id |
Integer | Yes |
Unique identifier for the project. |
sub_job_id |
Integer | No |
Unique identifier for the Sub Job |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
updates[] |
Array | Yes | |
updates[].id |
Integer | No |
Unique identifier for the Cost Code |
updates[].standard_cost_code_id |
Integer | No |
Unique identifier for the Standard Cost Code |
updates[].name |
String | No |
Name |
updates[].parent_id |
Integer | No |
Unique identifier for the Parent |
updates[].origin_id |
String | No |
Unique identifier for the Origin |
updates[].position |
Integer | No |
Position |
updates[].code |
String | No |
Cost code, not including parent prefix. e.g., for cost code "02-300", the value of this field should be "300". |
updates[].origin_data |
String | No |
Origin Data |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.