{"openapi":"3.1.0","info":{"title":"Rate Columns","version":"2.0","x-resource-name":"Rate Columns","x-product-category":"Core","x-tool-category":"Rates"},"servers":[{"url":"https://api.procore.com"}],"paths":{"/rest/v2.0/companies/{company_id}/rates/rate_columns":{"post":{"description":"Creates a new rate column for a company","operationId":"RateColumnsController_createRateColumn_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}}],"requestBody":{"required":true,"description":"Rate column creation data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the rate column (max 200 characters)","example":"Base Rate","maxLength":200},"rate_category":{"type":"string","description":"Rate category (COST or BILLABLE)","enum":["COST","BILLABLE"],"example":"COST"},"resource_category":{"type":"string","description":"Resource category (EQUIPMENT, LABOR, or MATERIAL)","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"unit_of_measure":{"type":"number","description":"Unit of measure ID (must exist in UOM master list). Required for LABOR and EQUIPMENT. For MATERIAL it is always null — any supplied value is ignored.","example":123456789,"nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed. Forced to true for MATERIAL FLAT columns and to false for CALCULATED columns (any resource category); the supplied value is ignored in those cases.","example":false,"default":false},"column_type":{"type":"string","description":"Column type (FLAT or CALCULATED)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true}},"required":["name","rate_category","resource_category","column_type"]}}}},"responses":{"201":{"description":"Rate column created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}},"required":["data"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors."}},"summary":"Create rate column (Company)","tags":["Rate Columns"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","mimeType":"application/json","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'POST',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns',\n  headers: {'content-type': 'application/json'},\n  body: {\n    name: 'Base Rate',\n    rate_category: 'COST',\n    resource_category: 'EQUIPMENT',\n    unit_of_measure: 123456789,\n    description: 'Base hourly rate for equipment',\n    allow_project_overrides: false,\n    column_type: 'FLAT',\n    expression: '{col_a} + {col_b}'\n  },\n  json: true\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","mimeType":"application/json","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\npayload = \"{\\\"name\\\":\\\"Base Rate\\\",\\\"rate_category\\\":\\\"COST\\\",\\\"resource_category\\\":\\\"EQUIPMENT\\\",\\\"unit_of_measure\\\":123456789,\\\"description\\\":\\\"Base hourly rate for equipment\\\",\\\"allow_project_overrides\\\":false,\\\"column_type\\\":\\\"FLAT\\\",\\\"expression\\\":\\\"{col_a} + {col_b}\\\"}\"\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/rest/v2.0/companies/12345/rates/rate_columns\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","mimeType":"application/json","title":"Curl","content":"curl --request POST \\\n  --url https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns \\\n  --header 'content-type: application/json' \\\n  --data '{\"name\":\"Base Rate\",\"rate_category\":\"COST\",\"resource_category\":\"EQUIPMENT\",\"unit_of_measure\":123456789,\"description\":\"Base hourly rate for equipment\",\"allow_project_overrides\":false,\"column_type\":\"FLAT\",\"expression\":\"{col_a} + {col_b}\"}'"},{"id":"csharp_httpclient","mimeType":"application/json","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns\"),\n    Content = new StringContent(\"{\\\"name\\\":\\\"Base Rate\\\",\\\"rate_category\\\":\\\"COST\\\",\\\"resource_category\\\":\\\"EQUIPMENT\\\",\\\"unit_of_measure\\\":123456789,\\\"description\\\":\\\"Base hourly rate for equipment\\\",\\\"allow_project_overrides\\\":false,\\\"column_type\\\":\\\"FLAT\\\",\\\"expression\\\":\\\"{col_a} + {col_b}\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"get":{"description":"Get rate columns for a company","operationId":"RateColumnsController_findAll_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}},{"name":"view","required":false,"in":"query","description":"Response view: ids, compact, or normal (default).","schema":{"enum":["ids","compact","normal"],"type":"string","example":"normal"}},{"name":"search","required":false,"in":"query","description":"Search rate columns by name (case-insensitive)","schema":{"example":"Base Rate","type":"string"}},{"name":"filters[ids]","required":false,"in":"query","description":"Filter by rate column IDs (comma-separated). Non-matching IDs return no results for those IDs.","schema":{"example":"01HZ123456789ABCDEF,01HZ987654321ABCDEF","type":"string"}},{"name":"filters[rate_category]","required":false,"in":"query","description":"Filter by rate category (comma-separated). Valid values: COST, BILLABLE","schema":{"example":"COST,BILLABLE","type":"string"}},{"name":"filters[unit_of_measure_ids]","required":false,"in":"query","description":"Filter by unit of measure IDs (comma-separated). Non-numeric values are ignored; if all values are invalid, this filter is not applied.","schema":{"example":"123456789,987654321","type":"string"}},{"name":"filters[resource_category]","required":false,"in":"query","description":"Filter by resource category (comma-separated). Valid values: EQUIPMENT, LABOR, MATERIAL","schema":{"example":"EQUIPMENT,LABOR","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based)","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"per_page","required":false,"in":"query","description":"Number of items per page","schema":{"minimum":1,"maximum":100,"default":10,"example":10,"type":"number"}}],"responses":{"200":{"description":"Rate columns retrieved successfully","headers":{"Page":{"description":"Current page number","schema":{"type":"string","example":"1"}},"Per-Page":{"description":"Number of items per page","schema":{"type":"string","example":"10"}},"Total":{"description":"Total number of items","schema":{"type":"string","example":"25"}},"Total-Pages":{"description":"Total number of pages","schema":{"type":"string","example":"3"}},"Link":{"description":"Pagination links (first, last, prev, next)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"The rate columns data (shape depends on view parameter: ids returns string[], compact returns compact objects, normal returns full objects)","type":"array","items":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}}}}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."}},"summary":"Get rate columns (Company)","tags":["Rate Columns"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'GET',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns',\n  qs: {\n    view: 'normal',\n    search: 'Base Rate',\n    'filters[ids]': '01HZ123456789ABCDEF,01HZ987654321ABCDEF',\n    'filters[rate_category]': 'COST,BILLABLE',\n    'filters[unit_of_measure_ids]': '123456789,987654321',\n    'filters[resource_category]': 'EQUIPMENT,LABOR',\n    page: '1',\n    per_page: '10'\n  }\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\nconn.request(\"GET\", \"/rest/v2.0/companies/12345/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10\")\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","title":"Curl","content":"curl --request GET \\\n  --url 'https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10'"},{"id":"csharp_httpclient","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10\"),\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}}],"x-compliance-level":"full"},"/rest/v2.0/companies/{company_id}/rates/rate_columns/{rate_column_id}":{"get":{"description":"Retrieves a rate column by its ID","operationId":"RateColumnsController_findOne_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}},{"name":"rate_column_id","required":true,"in":"path","description":"The unique identifier of the rate column","schema":{"example":"01JFHMDB8AD4750F18KN8R2TF6","type":"string"}}],"responses":{"200":{"description":"Rate column retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}},"required":["data"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."},"404":{"description":"The server can not find the requested resource. This can mean either the URL is not recognized, or the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client."}},"summary":"Get rate column by ID (Company)","tags":["Rate Columns"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'GET',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6'\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\nconn.request(\"GET\", \"/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\")\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","title":"Curl","content":"curl --request GET \\\n  --url https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6"},{"id":"csharp_httpclient","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\"),\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"patch":{"description":"Updates a rate column. resource_category cannot be updated if the rate column is mapped to any rate tables (including deleted mappings).","operationId":"RateColumnsController_updateRateColumn_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}},{"name":"rate_column_id","required":true,"in":"path","description":"The unique identifier of the rate column","schema":{"example":"01JFHMDB8AD4750F18KN8R2TF6","type":"string"}}],"requestBody":{"required":true,"description":"Rate column fields to update. resource_category cannot be updated if the rate column is mapped to any rate tables.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the rate column (max 200 characters)","example":"Base Rate","maxLength":200},"rate_category":{"type":"string","description":"Rate category (COST or BILLABLE)","enum":["COST","BILLABLE"],"example":"COST"},"unit_of_measure":{"type":"number","description":"Unit of measure ID (must exist in UOM master list). For MATERIAL columns it is always null and any supplied value is ignored; when switching a column away from MATERIAL to LABOR/EQUIPMENT a value is required.","example":123456789},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed. Forced to true for MATERIAL FLAT columns and to false for CALCULATED columns (any resource category); the supplied value is ignored in those cases.","example":false},"resource_category":{"type":"string","description":"Resource category (EQUIPMENT, LABOR, or MATERIAL)","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true}}}}}},"responses":{"200":{"description":"Rate column updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}},"required":["data"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."},"404":{"description":"The server can not find the requested resource. This can mean either the URL is not recognized, or the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client."},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors."}},"summary":"Update rate column (Company)","tags":["Rate Columns"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","mimeType":"application/json","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'PATCH',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6',\n  headers: {'content-type': 'application/json'},\n  body: {\n    name: 'Base Rate',\n    rate_category: 'COST',\n    unit_of_measure: 123456789,\n    description: 'Base hourly rate for equipment',\n    allow_project_overrides: false,\n    resource_category: 'EQUIPMENT',\n    expression: '{col_a} + {col_b}'\n  },\n  json: true\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","mimeType":"application/json","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\npayload = \"{\\\"name\\\":\\\"Base Rate\\\",\\\"rate_category\\\":\\\"COST\\\",\\\"unit_of_measure\\\":123456789,\\\"description\\\":\\\"Base hourly rate for equipment\\\",\\\"allow_project_overrides\\\":false,\\\"resource_category\\\":\\\"EQUIPMENT\\\",\\\"expression\\\":\\\"{col_a} + {col_b}\\\"}\"\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"PATCH\", \"/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","mimeType":"application/json","title":"Curl","content":"curl --request PATCH \\\n  --url https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6 \\\n  --header 'content-type: application/json' \\\n  --data '{\"name\":\"Base Rate\",\"rate_category\":\"COST\",\"unit_of_measure\":123456789,\"description\":\"Base hourly rate for equipment\",\"allow_project_overrides\":false,\"resource_category\":\"EQUIPMENT\",\"expression\":\"{col_a} + {col_b}\"}'"},{"id":"csharp_httpclient","mimeType":"application/json","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Patch,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\"),\n    Content = new StringContent(\"{\\\"name\\\":\\\"Base Rate\\\",\\\"rate_category\\\":\\\"COST\\\",\\\"unit_of_measure\\\":123456789,\\\"description\\\":\\\"Base hourly rate for equipment\\\",\\\"allow_project_overrides\\\":false,\\\"resource_category\\\":\\\"EQUIPMENT\\\",\\\"expression\\\":\\\"{col_a} + {col_b}\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}}],"x-compliance-level":"full"},"/rest/v2.0/companies/{company_id}/projects/{project_id}/rates/rate_columns":{"get":{"description":"Get rate columns for a project","operationId":"RateColumnsProjectController_findAll_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}},{"name":"project_id","required":true,"in":"path","description":"The unique identifier of the project","schema":{"example":"67890","type":"string"}},{"name":"view","required":false,"in":"query","description":"Response view: ids, compact, or normal (default).","schema":{"enum":["ids","compact","normal"],"type":"string","example":"normal"}},{"name":"search","required":false,"in":"query","description":"Search rate columns by name (case-insensitive)","schema":{"example":"Base Rate","type":"string"}},{"name":"filters[ids]","required":false,"in":"query","description":"Filter by rate column IDs (comma-separated). Non-matching IDs return no results for those IDs.","schema":{"example":"01HZ123456789ABCDEF,01HZ987654321ABCDEF","type":"string"}},{"name":"filters[rate_category]","required":false,"in":"query","description":"Filter by rate category (comma-separated). Valid values: COST, BILLABLE","schema":{"example":"COST,BILLABLE","type":"string"}},{"name":"filters[unit_of_measure_ids]","required":false,"in":"query","description":"Filter by unit of measure IDs (comma-separated). Non-numeric values are ignored; if all values are invalid, this filter is not applied.","schema":{"example":"123456789,987654321","type":"string"}},{"name":"filters[resource_category]","required":false,"in":"query","description":"Filter by resource category (comma-separated). Valid values: EQUIPMENT, LABOR, MATERIAL","schema":{"example":"EQUIPMENT,LABOR","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based)","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"per_page","required":false,"in":"query","description":"Number of items per page","schema":{"minimum":1,"maximum":100,"default":10,"example":10,"type":"number"}}],"responses":{"200":{"description":"Rate columns retrieved successfully","headers":{"Page":{"description":"Current page number","schema":{"type":"string","example":"1"}},"Per-Page":{"description":"Number of items per page","schema":{"type":"string","example":"10"}},"Total":{"description":"Total number of items","schema":{"type":"string","example":"25"}},"Total-Pages":{"description":"Total number of pages","schema":{"type":"string","example":"3"}},"Link":{"description":"Pagination links (first, last, prev, next)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"The rate columns data (shape depends on view parameter: ids returns string[], compact returns compact objects, normal returns full objects)","type":"array","items":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}}}}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."}},"summary":"Get rate columns (Project)","tags":["Rate Columns (Project)"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'GET',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns',\n  qs: {\n    view: 'normal',\n    search: 'Base Rate',\n    'filters[ids]': '01HZ123456789ABCDEF,01HZ987654321ABCDEF',\n    'filters[rate_category]': 'COST,BILLABLE',\n    'filters[unit_of_measure_ids]': '123456789,987654321',\n    'filters[resource_category]': 'EQUIPMENT,LABOR',\n    page: '1',\n    per_page: '10'\n  }\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\nconn.request(\"GET\", \"/rest/v2.0/companies/12345/projects/67890/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10\")\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","title":"Curl","content":"curl --request GET \\\n  --url 'https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10'"},{"id":"csharp_httpclient","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns?view=normal\u0026search=Base%20Rate\u0026filters%5Bids%5D=01HZ123456789ABCDEF%2C01HZ987654321ABCDEF\u0026filters%5Brate_category%5D=COST%2CBILLABLE\u0026filters%5Bunit_of_measure_ids%5D=123456789%2C987654321\u0026filters%5Bresource_category%5D=EQUIPMENT%2CLABOR\u0026page=1\u0026per_page=10\"),\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}}],"x-compliance-level":"full"},"/rest/v2.0/companies/{company_id}/projects/{project_id}/rates/rate_columns/{rate_column_id}":{"get":{"description":"Retrieves a rate column by its ID for a project","operationId":"RateColumnsProjectController_findOne_rest/v2.0","parameters":[{"name":"company_id","required":true,"in":"path","description":"The unique identifier of the company","schema":{"example":"12345","type":"string"}},{"name":"project_id","required":true,"in":"path","description":"The unique identifier of the project","schema":{"example":"67890","type":"string"}},{"name":"rate_column_id","required":true,"in":"path","description":"The unique identifier of the rate column","schema":{"example":"01JFHMDB8AD4750F18KN8R2TF6","type":"string"}}],"responses":{"200":{"description":"Rate column retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"batch_job_id":{"type":"string","description":"When an expression update is queued for async recalculation, the background job id to poll until COMPLETED.","example":"01JFHMDB8AD4750F18KN8R2TF6","nullable":true},"id":{"type":"string","description":"Unique identifier of the rate column","example":"01JFHMDB8AD4750F18KN8R2TF6"},"company_id":{"type":"string","description":"Company ID","example":"12345"},"key":{"type":"string","description":"Composite key: nameKey:rate_category:uom_id:resource_category","example":"base_rate:COST:161122:EQUIPMENT"},"name":{"type":"string","description":"Name of the rate column","example":"Base Rate"},"full_name":{"type":"string","description":"Full display name derived from name, rate category, and unit of measure","example":"Base Rate (COST, per Hours)"},"resource_category":{"type":"string","description":"Resource category","enum":["EQUIPMENT","LABOR","MATERIAL"],"example":"EQUIPMENT"},"rate_category":{"type":"string","description":"Rate category","enum":["COST","BILLABLE"],"example":"COST"},"column_type":{"type":"string","description":"Column type (FLAT, CALCULATED, or FACTOR)","enum":["FLAT","CALCULATED","FACTOR"],"example":"FLAT"},"unit_of_measure":{"type":"object","description":"Unit of measure. Omitted entirely when the column has no unit of measure (e.g. material columns).","properties":{"id":{"type":"string","example":"123456789"},"name":{"type":"string","example":"Hours"}},"example":{"id":"123456789","name":"Hours"}},"expression":{"type":"string","description":"Expression formula for CALCULATED columns","example":"{col_a} + {col_b}","nullable":true},"description":{"type":"string","description":"Description of the rate column","example":"Base hourly rate for equipment","nullable":true},"allow_project_overrides":{"type":"boolean","description":"Whether project overrides are allowed","example":false},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-01T00:00:00Z"},"created_by":{"type":"string","description":"Login of the user who created the rate column","example":"john.doe"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-01T00:00:00Z"},"updated_by":{"type":"string","description":"Login of the user who last updated the rate column","example":"john.doe"},"in_use":{"type":"boolean","description":"Whether the rate column is mapped to any rate tables (including deleted mappings)","example":false},"used_in_config":{"type":"boolean","description":"Whether the rate column is referenced by an active cost-calculator rate config","example":false},"dependent_column_ids":{"description":"Full transitive closure of upstream column IDs this column depends on. Empty for FLAT and FACTOR columns.","example":["01JFHMDB8AD4750F18KN8R2TF6"],"type":"array","items":{"type":"string"}}},"required":["id","company_id","key","name","full_name","resource_category","rate_category","column_type","allow_project_overrides","created_at","created_by","updated_at","updated_by","in_use","used_in_config","dependent_column_ids"]}},"required":["data"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response."},"403":{"description":"The client does not have access rights to the content; that is, it is authenticated, but the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server."},"404":{"description":"The server can not find the requested resource. This can mean either the URL is not recognized, or the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client."}},"summary":"Get rate column by ID (Project)","tags":["Rate Columns (Project)"],"x-doc":{"visibility":"public","stage":"beta","exposure":"public"},"x-code-samples":[{"id":"node_request","title":"Node.js","content":"const request = require('request');\n\nconst options = {\n  method: 'GET',\n  url: 'https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6'\n};\n\nrequest(options, function (error, response, body) {\n  if (error) throw new Error(error);\n\n  console.log(body);\n});\n"},{"id":"python_python3","title":"Python3","content":"import http.client\n\nconn = http.client.HTTPSConnection(\"api.procore.com\")\n\nconn.request(\"GET\", \"/rest/v2.0/companies/12345/projects/67890/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\")\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"id":"shell_curl","title":"Curl","content":"curl --request GET \\\n  --url https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6"},{"id":"csharp_httpclient","title":"C#","content":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://api.procore.com/rest/v2.0/companies/12345/projects/67890/rates/rate_columns/01JFHMDB8AD4750F18KN8R2TF6\"),\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}],"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"]},"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}}],"x-compliance-level":"full"}}}