Find Or Create Location(S) By Path
find_or_create_location_s_by_pathFind an existing location or create new locations in a Procore project by providing a path of location names. Returns the location object.
Instructions
Retrieves a Location corresponding to the provided path, or creates Location(s) representing the path. Use this to perform the find or action on Project records. Creates a new Project records and returns the created object on success (HTTP 201). Required parameters: project_id, path. Procore API: Core > Project. Endpoint: POST /rest/v1.0/projects/{project_id}/locations/find_or_create_by_path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| path | Yes | JSON request body field — array of Location names in descending order of depth. |