{"openapi":"3.0.0","info":{"title":"Funding Rules","x-product-category":"Construction Financials","x-tool-category":"Funding Sources","x-resource-name":"Funding Rules","version":"2.0","x-product-lines":["Construction Financials"]},"servers":[{"url":"https://api.procore.com"}],"paths":{"/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules":{"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}},{"name":"company_id","in":"path","description":"Unique identifier for the company.","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"description":"Unique identifier for the project.","schema":{"type":"string"}}],"get":{"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"x-endpoint-type":"collection","summary":"List Funding Rules","description":"Returns funding rules for a project. Use the optional `include` query parameter to embed related resources (e.g. `include=items` for rule allocation items with funding source details).\nRequires the `view_funding_rules` granular permission on the Prime Contract tool.","tags":["Funding Rules"],"parameters":[{"name":"page","in":"query","description":"Page","required":false,"schema":{"type":"integer"}},{"name":"per_page","in":"query","description":"Elements per page","required":false,"schema":{"type":"integer","default":10,"minimum":1,"maximum":100}},{"name":"include","in":"query","required":false,"description":"Comma-separated list of related resources to embed. Use `items` to include rule allocation items with funding source id and name.","schema":{"type":"string","enum":["items"],"example":"items"}},{"name":"filters[status][]","in":"query","description":"Filter by status. Prefer the repeatable array form, e.g. `filters[status][]=ACTIVE\u0026filters[status][]=INACTIVE`. A single scalar value (`filters[status]=ACTIVE`) is also accepted for backwards compatibility. Defaults to `ACTIVE` when omitted.","required":false,"style":"form","explode":true,"schema":{"oneOf":[{"type":"array","title":"any of","items":{"type":"string","enum":["ACTIVE","INACTIVE"]}},{"type":"string","title":"exact","enum":["ACTIVE","INACTIVE"]}]},"example":["ACTIVE","INACTIVE"]},{"name":"filters[rule_id][]","in":"query","required":false,"description":"Filter by one or more stable logical funding rule IDs. This is the `rule_id` shared by all versions of a rule, not a version-instance `id`. Values are numeric strings, the same type as JSON `rule_id` and the `{rule_id}` path parameter. Repeat the parameter for each value; scalar values are not accepted.","style":"form","explode":true,"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","description":"Numeric string ID. Matches JSON `rule_id` and the `{rule_id}` path parameter.","example":"50"}},"example":["50","51"]},{"name":"filters[number][]","in":"query","required":false,"description":"Filter by one or more funding rule numbers using exact, case-sensitive matching. Repeat the parameter for each value; scalar values are not accepted. Unknown or blank values do not match any rules.","style":"form","explode":true,"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","maxLength":255}},"example":["RULE-001","RULE-002"]},{"name":"filters[currency_iso_code]","in":"query","required":false,"description":"Filter to rules with funding sources in the given currency.","schema":{"type":"string","minLength":3,"maxLength":3},"example":"USD"},{"name":"sort","in":"query","required":false,"description":"Field to sort by. Prefix with '-' for descending.","schema":{"type":"string","enum":["number","name","description","status","created_at","updated_at","-number","-name","-description","-status","-created_at","-updated_at"]},"example":"-created_at"}],"responses":{"200":{"description":"OK","headers":{"Per-Page":{"description":"Number of items retrieved per page","schema":{"type":"integer"}},"Total":{"description":"Total number of items to be retrieved","schema":{"type":"integer"}},"Link":{"description":"Link headers for the first, prev, next, and last link","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","description":"A funding rule — a named set of allocation percentages that splits a project's spend across funding sources. Updates create a new immutable version.","required":["id","rule_id","project_id","number","name","status","version","created_at","updated_by_id","updated_at"],"properties":{"id":{"type":"string","description":"Unique string identifier of this specific rule version instance. Changes each time the rule is updated; use `rule_id` (not this) to address the rule in path parameters.","example":"1"},"rule_id":{"type":"string","description":"Stable logical identifier of the rule, shared across all of its versions. Use as the `{rule_id}` path parameter for GET and PATCH `/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}`. Filter collections with `filters[rule_id][]`.","example":"50"},"project_id":{"type":"string","description":"Identifier of the project the rule belongs to. Matches the `{project_id}` path parameter of the rule's endpoints.","example":"12345"},"number":{"type":"string","maxLength":255,"description":"Human-readable rule number, unique within the project. Auto-assigned on create. Filter collections with `filters[number][]`.","example":"RULE-001"},"name":{"type":"string","maxLength":255,"description":"Display name of the rule.","example":"Default Split Bond/Federal"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Standard split between state bond and federal grant"},"status":{"type":"string","description":"Lifecycle state. Filter collections with `filters[status][]`; omitted filter defaults to `ACTIVE`.","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE"},"version":{"type":"integer","format":"int64","description":"Sequential version number of the rule, incremented each time the rule is updated. The response always reflects the latest version.","example":1},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the logical rule was first created. Unchanged across later versions.","example":"2025-01-25T09:00:00Z"},"updated_by_id":{"type":"string","description":"Unique string identifier of the user who last updated the rule (created this version).","example":"42"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when this rule version was created.","example":"2025-01-25T09:00:00Z"},"items":{"type":"array","description":"Allocation items that split spend across funding sources. Present when the request includes `include=items`, and always present on create and update responses. Percentages across items must sum to exactly 100.00.","items":{"type":"object","required":["id","funding_source","percentage","rule_priority","position"],"properties":{"id":{"type":"string","description":"Unique string identifier of this allocation item within the rule version.","example":"301"},"funding_source":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project. Pass as `funding_source_id` on create/update items.","example":"1"},"name":{"type":"string","description":"Display name of the funding source.","example":"State Infrastructure Bond 2025"}}},"percentage":{"type":"number","format":"decimal","description":"Share of the project's spend assigned to this funding source. Items on a rule must sum to exactly 100.00.","example":70},"rule_priority":{"type":"integer","description":"Do not use yet. The server stores 1 on write. Distinct from server-assigned `position`.","example":1},"position":{"type":"integer","description":"Server-assigned order of this item in the rule. Read-only; not accepted on create or update.","example":1}}}}}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"default":{"description":"Unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}}},"x-rate-limit-enabled":true,"x-procore-kong-tags":["rate-limit:enabled"],"x-changelog":[{"summary":"Filter Funding Rules by status using array query params","description":"The status filter now uses a repeatable array query parameter, e.g. filters[status][]=ACTIVE\u0026filters[status][]=INACTIVE. The previous comma-separated string value is no longer supported. Defaults to ACTIVE when omitted.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":true,"datestamp":"2026-06-30","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Type filters[rule_id][] items as string IDs","description":"List Funding Rules `filters[rule_id][]` items are now strings, matching JSON `rule_id` and the `{rule_id}` path parameter. Numeric strings such as `\"50\"` are accepted. Non-integer values are rejected. Server-side validation remains integer.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-09-11","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Authorize Funding Rules list through Prime Contracts","description":"Project Funding Rules list now requires the Prime Contracts view_funding_rules permission. Company Funding Sources read access no longer grants access; legacy company-admin access remains supported.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":true,"datestamp":"2026-08-13","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Filter Funding Rules by Number","description":"Filter project funding rules by up to 100 exact, case-sensitive rule numbers.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-08-10","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Filter Funding Rules by Logical Rule ID","description":"Filter project funding rules by up to 100 stable logical rule IDs.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-08-10","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Introduce List Funding Rules Endpoint","description":"List Funding Rules for a Project","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"new","breaking":false,"datestamp":"2026-03-11","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"},{"summary":"Notice of General Availability","description":"This endpoint was previously private and in pilot, and is now publicly\ndocumented and generally available. No changes were made to the API\ncontract, only visibility and stage updates.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-11-04","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#list-funding-rules"}]},"post":{"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"x-endpoint-type":"mutation","summary":"Create Funding Rule","description":"Creates a funding rule for a project. The rule number is automatically assigned and returned in the response.\nRequires the `create_funding_rules` granular permission on the Prime Contract tool.","tags":["Funding Rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","items"],"properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Display name of the rule.","example":"Three-Way Split"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Equal split across three funding sources"},"items":{"type":"array","minItems":1,"maxItems":100,"description":"Funding source allocations. Each percentage must be exact at two decimal places, and the items must sum to exactly 100.00.","items":{"type":"object","required":["funding_source_id","percentage"],"properties":{"funding_source_id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project.","example":"1"},"percentage":{"type":"number","format":"decimal","minimum":0,"exclusiveMinimum":true,"maximum":100,"description":"Share of the project's spend assigned to this funding source. Must be exact at two decimal places.","example":33.34},"rule_priority":{"type":"integer","minimum":1,"description":"Do not use yet. Values other than 1 are ignored for now. Distinct from server-assigned `position`."}}}}}}}}},"responses":{"201":{"description":"Created. The response always includes the rule with its allocation items (same shape as GET with include=items).","content":{"application/json":{"schema":{"type":"object","description":"Funding Rules","properties":{"data":{"type":"object","description":"A funding rule — a named set of allocation percentages that splits a project's spend across funding sources. Updates create a new immutable version.","required":["id","rule_id","project_id","number","name","status","version","created_at","updated_by_id","updated_at"],"properties":{"id":{"type":"string","description":"Unique string identifier of this specific rule version instance. Changes each time the rule is updated; use `rule_id` (not this) to address the rule in path parameters.","example":"1"},"rule_id":{"type":"string","description":"Stable logical identifier of the rule, shared across all of its versions. Use as the `{rule_id}` path parameter for GET and PATCH `/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}`. Filter collections with `filters[rule_id][]`.","example":"50"},"project_id":{"type":"string","description":"Identifier of the project the rule belongs to. Matches the `{project_id}` path parameter of the rule's endpoints.","example":"12345"},"number":{"type":"string","maxLength":255,"description":"Human-readable rule number, unique within the project. Auto-assigned on create. Filter collections with `filters[number][]`.","example":"RULE-001"},"name":{"type":"string","maxLength":255,"description":"Display name of the rule.","example":"Default Split Bond/Federal"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Standard split between state bond and federal grant"},"status":{"type":"string","description":"Lifecycle state. Filter collections with `filters[status][]`; omitted filter defaults to `ACTIVE`.","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE"},"version":{"type":"integer","format":"int64","description":"Sequential version number of the rule, incremented each time the rule is updated. The response always reflects the latest version.","example":1},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the logical rule was first created. Unchanged across later versions.","example":"2025-01-25T09:00:00Z"},"updated_by_id":{"type":"string","description":"Unique string identifier of the user who last updated the rule (created this version).","example":"42"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when this rule version was created.","example":"2025-01-25T09:00:00Z"},"items":{"type":"array","description":"Allocation items that split spend across funding sources. Present when the request includes `include=items`, and always present on create and update responses. Percentages across items must sum to exactly 100.00.","items":{"type":"object","required":["id","funding_source","percentage","rule_priority","position"],"properties":{"id":{"type":"string","description":"Unique string identifier of this allocation item within the rule version.","example":"301"},"funding_source":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project. Pass as `funding_source_id` on create/update items.","example":"1"},"name":{"type":"string","description":"Display name of the funding source.","example":"State Infrastructure Bond 2025"}}},"percentage":{"type":"number","format":"decimal","description":"Share of the project's spend assigned to this funding source. Items on a rule must sum to exactly 100.00.","example":70},"rule_priority":{"type":"integer","description":"Do not use yet. The server stores 1 on write. Distinct from server-assigned `position`.","example":1},"position":{"type":"integer","description":"Server-assigned order of this item in the rule. Read-only; not accepted on create or update.","example":1}}}}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"default":{"description":"Unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}}},"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules',\n  headers: {'content-type': 'application/json'},\n  body: {\n    name: 'Three-Way Split',\n    description: 'Equal split across three funding sources',\n    items: [{funding_source_id: '1', percentage: 33.34, rule_priority: 1}]\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\\\":\\\"Three-Way Split\\\",\\\"description\\\":\\\"Equal split across three funding sources\\\",\\\"items\\\":[{\\\"funding_source_id\\\":\\\"1\\\",\\\"percentage\\\":33.34,\\\"rule_priority\\\":1}]}\"\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/rest/v2.0/companies/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules\", 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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules \\\n  --header 'content-type: application/json' \\\n  --data '{\"name\":\"Three-Way Split\",\"description\":\"Equal split across three funding sources\",\"items\":[{\"funding_source_id\":\"1\",\"percentage\":33.34,\"rule_priority\":1}]}'"},{"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules\"),\n    Content = new StringContent(\"{\\\"name\\\":\\\"Three-Way Split\\\",\\\"description\\\":\\\"Equal split across three funding sources\\\",\\\"items\\\":[{\\\"funding_source_id\\\":\\\"1\\\",\\\"percentage\\\":33.34,\\\"rule_priority\\\":1}]}\")\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"],"x-changelog":[{"summary":"Reject funding rule percentages beyond two decimal places on create","description":"Each item percentage must be exact at two decimal places. Nothing is stored when a percentage has more than two decimal places.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"fix","breaking":false,"datestamp":"2026-10-16","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Coerce funding rule item rule_priority to 1 on create","description":"Do not use rule_priority yet. Values other than 1 are ignored. Other values are not rejected.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"fix","breaking":false,"datestamp":"2026-09-14","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Authorize Funding Rule creation through Prime Contracts","description":"Project Funding Rule creation now accepts users with the Prime Contracts create_funding_rules permission (Standard); legacy company-admin access remains supported.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-08-13","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Introduce Create Funding Rule Endpoint","description":"Create a funding rule for a project with number, name, description, and item allocations (percentages must sum to 100).","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"new","breaking":false,"datestamp":"2026-03-12","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Make description optional on Create","description":"Make description optional on create; responses may return null.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-05-11","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Auto-generate funding rule number on creation","description":"The number field is no longer accepted when creating a funding rule. Numbers are now\nautomatically assigned sequentially within the project scope and cannot be set or\nchanged by the caller. Callers previously passing a number will have it silently\nignored and receive a system-assigned number instead.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":true,"datestamp":"2026-05-15","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"},{"summary":"Notice of General Availability","description":"This endpoint was previously private and in pilot, and is now publicly\ndocumented and generally available. No changes were made to the API\ncontract, only visibility and stage updates.","endpoint":"POST /companies/{company_id}/projects/{project_id}/funding_sources/rules","type":"refinement","breaking":false,"datestamp":"2026-11-04","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#create-funding-rule"}]},"x-compliance-level":"full"},"/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}":{"parameters":[{"name":"Procore-Company-Id","in":"header","description":"Unique company identifier associated with the Procore User Account.","required":true,"schema":{"type":"integer"}},{"name":"company_id","in":"path","description":"Unique identifier for the company.","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"description":"Unique identifier for the project.","schema":{"type":"string"}},{"name":"rule_id","in":"path","required":true,"description":"Stable logical identifier of the rule, shared across versions. Use in GET and PATCH `/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}`. Do not pass the version-instance `id`.","schema":{"type":"string"},"example":"50"}],"get":{"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"x-endpoint-type":"resource","summary":"Show Funding Rule","description":"Returns a funding rule for a project. Use the optional `include` query parameter to embed related resources (e.g. `include=items` for rule allocation items with funding source details).\nRequires the `view_funding_rules` granular permission on the Prime Contract tool.","tags":["Funding Rules"],"parameters":[{"name":"include","in":"query","required":false,"description":"Comma-separated list of related resources to embed. Use `items` to include rule allocation items with funding source id and name.","schema":{"type":"string","enum":["items"],"example":"items"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Funding Rules","properties":{"data":{"type":"object","description":"A funding rule — a named set of allocation percentages that splits a project's spend across funding sources. Updates create a new immutable version.","required":["id","rule_id","project_id","number","name","status","version","created_at","updated_by_id","updated_at"],"properties":{"id":{"type":"string","description":"Unique string identifier of this specific rule version instance. Changes each time the rule is updated; use `rule_id` (not this) to address the rule in path parameters.","example":"1"},"rule_id":{"type":"string","description":"Stable logical identifier of the rule, shared across all of its versions. Use as the `{rule_id}` path parameter for GET and PATCH `/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}`. Filter collections with `filters[rule_id][]`.","example":"50"},"project_id":{"type":"string","description":"Identifier of the project the rule belongs to. Matches the `{project_id}` path parameter of the rule's endpoints.","example":"12345"},"number":{"type":"string","maxLength":255,"description":"Human-readable rule number, unique within the project. Auto-assigned on create. Filter collections with `filters[number][]`.","example":"RULE-001"},"name":{"type":"string","maxLength":255,"description":"Display name of the rule.","example":"Default Split Bond/Federal"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Standard split between state bond and federal grant"},"status":{"type":"string","description":"Lifecycle state. Filter collections with `filters[status][]`; omitted filter defaults to `ACTIVE`.","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE"},"version":{"type":"integer","format":"int64","description":"Sequential version number of the rule, incremented each time the rule is updated. The response always reflects the latest version.","example":1},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the logical rule was first created. Unchanged across later versions.","example":"2025-01-25T09:00:00Z"},"updated_by_id":{"type":"string","description":"Unique string identifier of the user who last updated the rule (created this version).","example":"42"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when this rule version was created.","example":"2025-01-25T09:00:00Z"},"items":{"type":"array","description":"Allocation items that split spend across funding sources. Present when the request includes `include=items`, and always present on create and update responses. Percentages across items must sum to exactly 100.00.","items":{"type":"object","required":["id","funding_source","percentage","rule_priority","position"],"properties":{"id":{"type":"string","description":"Unique string identifier of this allocation item within the rule version.","example":"301"},"funding_source":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project. Pass as `funding_source_id` on create/update items.","example":"1"},"name":{"type":"string","description":"Display name of the funding source.","example":"State Infrastructure Bond 2025"}}},"percentage":{"type":"number","format":"decimal","description":"Share of the project's spend assigned to this funding source. Items on a rule must sum to exactly 100.00.","example":70},"rule_priority":{"type":"integer","description":"Do not use yet. The server stores 1 on write. Distinct from server-assigned `position`.","example":1},"position":{"type":"integer","description":"Server-assigned order of this item in the rule. Read-only; not accepted on create or update.","example":1}}}}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"default":{"description":"Unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}}},"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50',\n  qs: {include: 'items'}\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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50?include=items\")\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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50?include=items'"},{"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50?include=items\"),\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"],"x-changelog":[{"summary":"Authorize Funding Rule detail through Prime Contracts","description":"Project Funding Rule detail now requires the Prime Contracts view_funding_rules permission. Company Funding Sources read access no longer grants access; legacy company-admin access remains supported.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":true,"datestamp":"2026-08-13","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#show-funding-rule"},{"summary":"Introduce GET Funding Rule Endpoint","description":"Fetch a Project Funding Rule","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"new","breaking":false,"datestamp":"2026-03-10","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#show-funding-rule"},{"summary":"Notice of General Availability","description":"This endpoint was previously private and in pilot, and is now publicly\ndocumented and generally available. No changes were made to the API\ncontract, only visibility and stage updates.","endpoint":"GET /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":false,"datestamp":"2026-11-04","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#show-funding-rule"}]},"patch":{"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"x-endpoint-type":"mutation","summary":"Update Funding Rule","description":"Updates a funding rule for a project by creating a new immutable version when name, description, status, or items change. Items are compared by funding source and percentage in order; `rule_priority` is ignored and does not create a new version. An identical payload returns the current version unchanged — no new row, `id`, `version`, or `updated_at` change, change-history row, or `updated` integration event. When `items` is omitted, the current rule items are carried forward. When `status` is provided, it must be the only field in the request body.\nRequires the `update_funding_rules` granular permission on the Prime Contract tool.","tags":["Funding Rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Display name of the rule.","example":"Updated Three-Way Split"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Revised split across two funding sources"},"status":{"type":"string","enum":["ACTIVE","INACTIVE"],"description":"Lifecycle state of the rule. When provided, it must be the only field in the request body.","example":"INACTIVE"},"items":{"type":"array","minItems":1,"maxItems":100,"description":"Full replacement of funding source allocations. Each percentage must be exact at two decimal places, and the items must sum to exactly 100.00. When omitted, current items are carried forward.","items":{"type":"object","required":["funding_source_id","percentage"],"properties":{"funding_source_id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project.","example":"1"},"percentage":{"type":"number","format":"decimal","minimum":0,"exclusiveMinimum":true,"maximum":100,"description":"Share of the project's spend assigned to this funding source. Must be exact at two decimal places.","example":60},"rule_priority":{"type":"integer","minimum":1,"description":"Do not use yet. Values other than 1 are ignored for now. Distinct from server-assigned `position`."}}}}}}}}},"responses":{"200":{"description":"OK. The response always includes the updated rule with its allocation items.","content":{"application/json":{"schema":{"type":"object","description":"Funding Rules","properties":{"data":{"type":"object","description":"A funding rule — a named set of allocation percentages that splits a project's spend across funding sources. Updates create a new immutable version.","required":["id","rule_id","project_id","number","name","status","version","created_at","updated_by_id","updated_at"],"properties":{"id":{"type":"string","description":"Unique string identifier of this specific rule version instance. Changes each time the rule is updated; use `rule_id` (not this) to address the rule in path parameters.","example":"1"},"rule_id":{"type":"string","description":"Stable logical identifier of the rule, shared across all of its versions. Use as the `{rule_id}` path parameter for GET and PATCH `/rest/v2.0/companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}`. Filter collections with `filters[rule_id][]`.","example":"50"},"project_id":{"type":"string","description":"Identifier of the project the rule belongs to. Matches the `{project_id}` path parameter of the rule's endpoints.","example":"12345"},"number":{"type":"string","maxLength":255,"description":"Human-readable rule number, unique within the project. Auto-assigned on create. Filter collections with `filters[number][]`.","example":"RULE-001"},"name":{"type":"string","maxLength":255,"description":"Display name of the rule.","example":"Default Split Bond/Federal"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Free-text description of the rule.","example":"Standard split between state bond and federal grant"},"status":{"type":"string","description":"Lifecycle state. Filter collections with `filters[status][]`; omitted filter defaults to `ACTIVE`.","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE"},"version":{"type":"integer","format":"int64","description":"Sequential version number of the rule, incremented each time the rule is updated. The response always reflects the latest version.","example":1},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the logical rule was first created. Unchanged across later versions.","example":"2025-01-25T09:00:00Z"},"updated_by_id":{"type":"string","description":"Unique string identifier of the user who last updated the rule (created this version).","example":"42"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when this rule version was created.","example":"2025-01-25T09:00:00Z"},"items":{"type":"array","description":"Allocation items that split spend across funding sources. Present when the request includes `include=items`, and always present on create and update responses. Percentages across items must sum to exactly 100.00.","items":{"type":"object","required":["id","funding_source","percentage","rule_priority","position"],"properties":{"id":{"type":"string","description":"Unique string identifier of this allocation item within the rule version.","example":"301"},"funding_source":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Unique string identifier of the funding source receiving this share. Must be entitled to the project. Pass as `funding_source_id` on create/update items.","example":"1"},"name":{"type":"string","description":"Display name of the funding source.","example":"State Infrastructure Bond 2025"}}},"percentage":{"type":"number","format":"decimal","description":"Share of the project's spend assigned to this funding source. Items on a rule must sum to exactly 100.00.","example":70},"rule_priority":{"type":"integer","description":"Do not use yet. The server stores 1 on write. Distinct from server-assigned `position`.","example":1},"position":{"type":"integer","description":"Server-assigned order of this item in the rule. Read-only; not accepted on create or update.","example":1}}}}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}},"default":{"description":"Unexpected error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"HTTP status in screaming snake case (like BAD_REQUEST)"},"message":{"type":"string","description":"Human readable message describing error."},"details":{"type":"array","description":"Additional information about the error.","items":{"type":"object","required":["reason_code","message"],"properties":{"reason_code":{"type":"string","description":"A machine-readable code that identifies the error specifically enough for the client to interpret what happened and take action.","example":"BLANK"},"message":{"type":"string","description":"Human readable message","example":"Name can't be blank"},"source":{"type":"string","description":"Source of the error","example":"name"}}}}}}}}}}}},"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50',\n  headers: {'content-type': 'application/json'},\n  body: {\n    name: 'Updated Three-Way Split',\n    description: 'Revised split across two funding sources',\n    status: 'INACTIVE',\n    items: [{funding_source_id: '1', percentage: 60, rule_priority: 1}]\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\\\":\\\"Updated Three-Way Split\\\",\\\"description\\\":\\\"Revised split across two funding sources\\\",\\\"status\\\":\\\"INACTIVE\\\",\\\"items\\\":[{\\\"funding_source_id\\\":\\\"1\\\",\\\"percentage\\\":60,\\\"rule_priority\\\":1}]}\"\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"PATCH\", \"/rest/v2.0/companies/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50\", 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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50 \\\n  --header 'content-type: application/json' \\\n  --data '{\"name\":\"Updated Three-Way Split\",\"description\":\"Revised split across two funding sources\",\"status\":\"INACTIVE\",\"items\":[{\"funding_source_id\":\"1\",\"percentage\":60,\"rule_priority\":1}]}'"},{"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/%7Bcompany_id%7D/projects/%7Bproject_id%7D/funding_sources/rules/50\"),\n    Content = new StringContent(\"{\\\"name\\\":\\\"Updated Three-Way Split\\\",\\\"description\\\":\\\"Revised split across two funding sources\\\",\\\"status\\\":\\\"INACTIVE\\\",\\\"items\\\":[{\\\"funding_source_id\\\":\\\"1\\\",\\\"percentage\\\":60,\\\"rule_priority\\\":1}]}\")\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"],"x-changelog":[{"summary":"Reject funding rule percentages beyond two decimal places on update","description":"Each replacement item percentage must be exact at two decimal places. The current rule version is left unchanged.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"fix","breaking":false,"datestamp":"2026-10-16","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Skip funding rule versioning on identical PATCH","description":"PATCH with the same name, description, status, and items (funding source and percentage, in order) returns the current version unchanged. No new rule row, version, updated_at, instance id, change-history row, or updated integration event. rule_priority on items is ignored.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"fix","breaking":false,"datestamp":"2026-09-21","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Coerce funding rule item rule_priority to 1 on update","description":"Do not use rule_priority yet. Values other than 1 are ignored on new items, including copies from a previous version. Other values are not rejected.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"fix","breaking":false,"datestamp":"2026-09-14","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Authorize Funding Rule updates through Prime Contracts","description":"Project Funding Rule updates now accept users with the Prime Contracts update_funding_rules permission (Standard); legacy company-admin access remains supported.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":false,"datestamp":"2026-08-13","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Introduce PATCH Funding Rule Endpoint","description":"Update a project funding rule by creating a new immutable version with optional item replacement or status-only transition.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"new","breaking":false,"datestamp":"2026-04-15","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Make description optional on Update","description":"Make description optional on update; responses may return null.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":false,"datestamp":"2026-05-11","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Disallow non-status updates on inactive funding rules","description":"Updating any field except status on an inactive funding rule instance is now disallowed. Activate the rules first before updating any other field.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":true,"datestamp":"2026-10-20","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"},{"summary":"Notice of General Availability","description":"This endpoint was previously private and in pilot, and is now publicly\ndocumented and generally available. No changes were made to the API\ncontract, only visibility and stage updates.","endpoint":"PATCH /companies/{company_id}/projects/{project_id}/funding_sources/rules/{rule_id}","type":"refinement","breaking":false,"datestamp":"2026-11-04","versions":["2.0"],"x-doc":{"visibility":"public","stage":"ga","exposure":"public"},"link":"funding-rules?version=2.0#update-funding-rule"}]},"x-compliance-level":"full"}}}