Generated from the server's tool registry: what you read here is what
tools/list
and openapi.json
publish.
Account and reference
Get account context get_account_context
Returns who you are acting for in CarnetCopro: the signed-in member, their firm's account, their role, the scopes this connection may use (granted at sign-in, capped by the access an administrator gave the member), the firm's sales tax rates and the condition states (états) a constat can take. Call it first in a session: the role says which other tools are available (inspectors cannot use group, scenario, report or document tools; only owners and administrators set an étude's access). Read-only; takes no arguments.
- Group
- Account and reference
- REST
GET /api/v1/context
- Scope
etudes:read
- Roles
- every member
- Annotations
-
read-only yes · destructive no · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403)
Input
No arguments.
Output
| Field |
Type |
Description |
account |
object |
The firm's account every call works in. |
account.id |
integer |
The account's id. (min 1) |
account.name |
string |
The firm's name. |
condition_states |
array of object |
The general condition states a component can take, in order. |
condition_states[].label |
string |
Label shown in the report. |
condition_states[].value |
string |
Value to send as a component's condition. |
constat_states |
array of object |
The condition states a constat can take, in order. |
constat_states[].label |
string |
Label shown in the report. |
constat_states[].value |
string |
Value to send as a constat's state. |
full_access |
boolean |
True for owners and administrators: every tool is available, set_etude_access included. |
role |
string |
The member's role in the account. One of: owner, admin, technician, inspector. |
scopes |
array of string |
What this connection may do. |
tax_rates |
object |
Sales taxes applied to costs. |
tax_rates.gst |
number |
GST (TPS) in percent. |
tax_rates.qst |
number |
QST (TVQ) in percent. |
user |
object | null |
The signed-in member. |
user.email |
string |
Email address. |
user.id |
integer |
The member's id. (min 1) |
user.name |
string |
Full name. |
Example arguments
{}
Example result
{
"account": {
"id": 3,
"name": "Inspections Tremblay inc."
},
"condition_states": [
{
"label": "Bon",
"value": "bon"
},
{
"label": "Passable",
"value": "passable"
}
],
"constat_states": [
{
"label": "Recommandations",
"value": "recommandations"
},
{
"label": "À surveiller",
"value": "a_surveiller"
}
],
"full_access": true,
"role": "admin",
"scopes": [
"etudes:read",
"etudes:write"
],
"tax_rates": {
"gst": 5.0,
"qst": 9.975
},
"user": {
"email": "marie@exemple.ca",
"id": 12,
"name": "Marie Tremblay"
}
}
Over REST
curl -s https://carnetcopro.ca/api/v1/context \
-H "Authorization: Bearer $ACCESS_TOKEN"
List text templates list_text_templates
Lists the firm's text templates (modèles): reusable descriptions, constats (category specific), works (travaux), maintenance (entretien), methodology and responsibility texts, with their suggested costs, lifespans and priorities. Give a uniformat_code (and optionally a subcomponent_label) for the templates of one element, a category, or both; at least one is required. Paginated. Use them as a starting point when writing a component's texts, constats or tasks. Does not create or edit templates (done in the app's Modèles page). Read-only.
- Group
- Account and reference
- REST
GET /api/v1/text-templates
- Scope
etudes:read
- Roles
- every member
- Annotations
-
read-only yes · destructive no · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403)
Input
| Name |
Type |
Required |
Description |
category |
string |
no |
Only templates of this category. One of: general, methodology, specific, travaux, entretien, responsibility. |
cursor |
string |
no |
The next_cursor of a previous call, to get the next page. |
limit |
integer |
no |
How many results to return (default 50). (min 1, max 200) |
subcomponent_label |
string |
no |
With uniformat_code: the templates of this sub-component instead of the element's own. (max length 200) |
uniformat_code |
string |
no |
The individual element, e.g. B3010 (see search_uniformat_elements). (max length 10) |
Output
| Field |
Type |
Description |
next_cursor |
string | null |
Pass it as cursor to get the next page; null on the last page. |
templates |
array of object |
The templates, by title. |
templates[].category |
string |
Kind of text. One of: general, methodology, specific, travaux, entretien, responsibility. |
templates[].description |
string | null |
The text itself (may contain HTML). |
templates[].estimated_cost |
number | null |
Suggested cost. In CAD. (min 0) |
templates[].frequency |
string | null |
Frequency, for maintenance. |
templates[].goal |
string | null |
Goal, for works. |
templates[].id |
integer |
The template's id. (min 1) |
templates[].intervention_type |
string | null |
Kind of intervention, for works. |
templates[].is_one_time |
boolean |
True for a one-time intervention. |
templates[].lifespan_years |
integer | null |
Suggested lifespan in years. |
templates[].line_items |
array of object |
Cost lines. |
templates[].line_items[].description |
string | null |
What the line costs. |
templates[].line_items[].price_id |
integer | null |
The catalogue price it comes from (list_prices). |
templates[].line_items[].quantity |
number | null |
Quantity. |
templates[].line_items[].subtotal |
number | null |
Line total. In CAD. (min 0) |
templates[].line_items[].unit_price |
number | null |
Price per unit. In CAD. (min 0) |
templates[].method |
string | null |
Method, for works. |
templates[].priority |
string | null |
Suggested priority. |
templates[].recommended_months |
array of integer |
Months the maintenance is recommended in. |
templates[].recurrence_years |
integer | null |
Years between occurrences, for works. |
templates[].state |
string | null |
Suggested condition state, for constats. |
templates[].subcomponent_label |
string | null |
The sub-component it belongs to; null for the element itself. |
templates[].title |
string |
Short title. |
templates[].uniformat_code |
string |
The element it belongs to. |
Example arguments
{
"category": "travaux",
"uniformat_code": "B3010"
}
Example result
{
"next_cursor": null,
"templates": [
{
"category": "travaux",
"description": "Remplacement complet de la membrane de toiture.",
"estimated_cost": 8.5e4,
"frequency": null,
"goal": null,
"id": 230,
"intervention_type": "remplacement",
"is_one_time": false,
"lifespan_years": 25,
"line_items": [],
"method": null,
"priority": "moyenne",
"recommended_months": [],
"recurrence_years": 25,
"state": null,
"subcomponent_label": null,
"title": "Remplacement de la membrane",
"uniformat_code": "B3010"
}
]
}
Over REST
curl -s "https://carnetcopro.ca/api/v1/text-templates?category=travaux&uniformat_code=B3010" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Études
Duplicate an étude duplicate_etude
Copies an étude onto a new building, for a similar building or a new client: creates the building from the identity you give (with a NEQ, linked to its MaCopro owners' portal account), then a new étude with you as inspector, a new file number and today's date. The components with their descriptions, lifespans and constats (text only), and the report scope, are always copied; works (copy_travaux), maintenance (copy_entretien) and financing scenarios (copy_scenarios) only on request. Photos, generated documents and history are never copied. The source étude is unchanged. To revise the same building, use create_etude instead.
- Group
- Études
- REST
POST /api/v1/etudes/{etude_id}/duplicate
- Scope
etudes:write
- Roles
- every member
- Annotations
-
read-only no · destructive no · idempotent no · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422)
Input
| Name |
Type |
Required |
Description |
building |
object |
yes |
The new building's identity; complete it later with update_building. |
building.address |
string |
yes |
Street address. (max length 255) |
building.city |
string |
yes |
City. (max length 255) |
building.postal_code |
string |
yes |
Postal code, e.g. H2X 3J6. (max length 20) |
building.syndicat_name |
string |
yes |
Legal name of the syndicate of co-owners. (max length 255) |
building.neq |
string | null |
no |
Quebec enterprise number of the syndicate: exactly 10 digits. Setting it links the building to its MaCopro owners' portal account (created if needed). (max length 10) |
etude_id |
integer |
yes |
The étude to copy (see list_etudes). (min 1) |
copy_entretien |
boolean |
no |
Also copy the maintenance (entretien) tasks. Default false. |
copy_scenarios |
boolean |
no |
Also copy the financing scenarios, with their planning of the copied tasks. Default false. |
copy_travaux |
boolean |
no |
Also copy the works (travaux) tasks. Default false. |
Output
| Field |
Type |
Description |
attendees |
array of object |
People present at the inspection, in order. |
attendees[].id |
integer |
The attendee's id. (min 1) |
attendees[].name |
string |
Full name. |
attendees[].role |
string | null |
In what capacity, e.g. Administrateur du syndicat, Gestionnaire. |
etude |
object |
An étude's header and study parameters. |
etude.access_mode |
string |
Who may open the étude: listed users only, administrators plus listed users, or every member. One of: users, admins, everyone. |
etude.access_user_ids |
array of integer |
Members explicitly given access. |
etude.building |
object | null |
The building studied. |
etude.building.address |
string | null |
Street address. |
etude.building.city |
string | null |
City. |
etude.building.id |
integer |
The building's id. (min 1) |
etude.building.syndicat_name |
string | null |
Name of the syndicate of co-owners. |
etude.carnet_revision_year |
integer | null |
Year the maintenance log (carnet d'entretien) is next revised. (min 2000, max 2100) |
etude.current_annual_contribution |
number | null |
Current yearly contribution to the fund. In CAD. (min 0) |
etude.dossier_no |
string | null |
The firm's file number. (max length 100) |
etude.established_by_signatory_id |
integer | null |
Signatory who establishes the study (see list_signatories). (min 1) |
etude.etude_date |
string (date) | null |
Date of the étude. ISO 8601 date (YYYY-MM-DD). |
etude.fund_balance |
number | null |
Reserve fund balance reported by the syndicate. In CAD. (min 0) |
etude.fund_balance_as_of |
string (date) | null |
Date of that balance. ISO 8601 date (YYYY-MM-DD). |
etude.id |
integer |
The étude's id. (min 1) |
etude.inflation_rate |
number |
Yearly inflation building scenarios start from, in percent (e.g. 3). (min 0, max 99.99) |
etude.inspection_date |
string (date) | null |
Date of the on-site examination (printed in the signed declarations). ISO 8601 date (YYYY-MM-DD). |
etude.inspector_id |
integer | null |
The member who inspects the building. (min 1) |
etude.investment_return_rate |
number |
Yearly return on the fund building scenarios start from, in percent. (min 0, max 99.99) |
etude.mandate_nature |
string |
First study of the building, or a revision of an earlier one. One of: first_study, revision. |
etude.next_study_year |
integer | null |
Year the next study is due. (min 2000, max 2100) |
etude.notes |
string | null |
Free notes on the étude, not printed in the report. (max length 20000) |
etude.reference_year |
integer | null |
First year of the projections. (min 2000, max 2100) |
etude.report_date |
string (date) | null |
Date printed on the report. ISO 8601 date (YYYY-MM-DD). |
etude.safety_threshold |
number | null |
Minimum fund balance the scenarios must keep. In CAD. (min 0) |
etude.site_visit_mode |
string |
Whether the signatory visited the site themself, or supervised someone who did. One of: self, supervised. |
etude.site_visit_signatory_id |
integer | null |
Signatory for the site visit. (min 1) |
etude.site_visit_supervisee_name |
string | null |
Who visited under supervision (when site_visit_mode is supervised). (max length 200) |
etude.study_horizon_years |
integer |
Projection horizon in years; the regulation requires at least 25. (min 25, max 50) |
etude.syndicat_rep |
string | null |
Who represented the syndicate at the visit. (max length 200) |
etude.tax_rate |
number |
Sales taxes (GST + QST) applied to costs, in percent. |
etude.updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
etude.weather |
string | null |
Weather during the site visit. (max length 200) |
etude.writing_signatory_id |
integer | null |
Signatory who wrote the report. (min 1) |
inspector |
object | null |
The member who inspects the building. |
inspector.email |
string |
Email address. |
inspector.id |
integer |
The member's id. (min 1) |
inspector.name |
string |
Full name. |
progress |
object |
How far the inspection is. |
progress.completed |
integer |
Components marked complete. (min 0) |
progress.components |
integer |
Components (and sub-components) of the étude. (min 0) |
progress.in_report |
integer |
Components included in the report (set_report_scope). (min 0) |
signatories |
object |
The signatories' names (ids are in etude). |
signatories.established_by |
string | null |
Name of the signatory who establishes the study. |
signatories.site_visit |
string | null |
Name of the signatory for the site visit. |
signatories.writing |
string | null |
Name of the signatory who wrote the report. |
Example arguments
{
"building": {
"address": "1210, rue King Ouest",
"city": "Sherbrooke",
"postal_code": "J1H 1S2",
"syndicat_name": "Syndicat du 1210 King"
},
"copy_entretien": true,
"copy_travaux": true,
"etude_id": 41
}
Example result
{
"attendees": [],
"etude": {
"dossier_no": "CCETD-2026-0043",
"id": 43
},
"inspector": {
"email": "marie@exemple.ca",
"id": 12,
"name": "Marie Tremblay"
},
"progress": {
"completed": 0,
"components": 62,
"in_report": 40
},
"signatories": {
"established_by": null,
"site_visit": null,
"writing": null
}
}
Over REST
curl -s -X POST https://carnetcopro.ca/api/v1/etudes/41/duplicate \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"building":{"address":"1210, rue King Ouest","city":"Sherbrooke","postal_code":"J1H 1S2","syndicat_name":"Syndicat du 1210 King"},"copy_entretien":true,"copy_travaux":true}'
Get an étude's history get_etude_history
Lists the recorded changes of an étude, newest first: when, who, what kind of record (etude_item for a component, attachment for a photo, …), its id, the action (create, update, delete, complete) and the changed values. Paginated: pass next_cursor back as cursor. Use it to see who changed a component and when. Only the changes the app records appear (mainly component edits and photos); it cannot undo anything. Read-only.
- Group
- Études
- REST
GET /api/v1/etudes/{etude_id}/history
- Scope
etudes:read
- Roles
- every member
- Annotations
-
read-only yes · destructive no · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
cursor |
string |
no |
The next_cursor of a previous call, to get the next page. |
limit |
integer |
no |
How many results to return (default 50). (min 1, max 200) |
Output
| Field |
Type |
Description |
entries |
array of object |
The changes, newest first. |
entries[].action |
string | null |
create, update, delete or complete. |
entries[].at |
string (date-time) |
When the change was made. ISO 8601 date-time, UTC. |
entries[].changes |
object |
The changed values, as recorded. |
entries[].entity_id |
integer | null |
Id of the record that changed. |
entries[].entity_type |
string | null |
What changed: etude, etude_item, attachment, … |
entries[].id |
integer |
The entry's id. (min 1) |
entries[].user |
object | null |
Who made it; null for the system. |
entries[].user.email |
string |
Email address. |
entries[].user.id |
integer |
The member's id. (min 1) |
entries[].user.name |
string |
Full name. |
next_cursor |
string | null |
Pass it as cursor to get the next page; null on the last page. |
Example arguments
{
"etude_id": 41,
"limit": 20
}
Example result
{
"entries": [
{
"action": "update",
"at": "2026-10-20T14:03:11Z",
"changes": {
"lifespan_years": 25
},
"entity_id": 3310,
"entity_type": "etude_item",
"id": 908,
"user": {
"email": "marie@exemple.ca",
"id": 12,
"name": "Marie Tremblay"
}
}
],
"next_cursor": null
}
Over REST
curl -s "https://carnetcopro.ca/api/v1/etudes/41/history?limit=20" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Get the report's written texts get_report_texts
Returns the paragraphs an étude's report prints on one of its written pages: narrative "report" is the executive summary (portrait, short-term interventions, main interventions, financial planning, conclusion), "scope" the « Portée, méthode et limites » page. For each paragraph: its key, heading, what it should say, the text this étude prints (HTML), the firm's standard text, and whether the étude has its own. Not available to inspectors. Use save_report_texts to change them. Read-only.
- Group
- Études
- REST
GET /api/v1/etudes/{etude_id}/report-texts
- Scope
etudes:read
- Roles
- owners, administrators and technicians
- Annotations
-
read-only yes · destructive no · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
narrative |
string |
yes |
report: the executive summary (sommaire exécutif); scope: the « Portée, méthode et limites » page. One of: report, scope. |
Output
| Field |
Type |
Description |
etude_id |
integer |
The étude. (min 1) |
narrative |
string |
report: the executive summary (sommaire exécutif); scope: the « Portée, méthode et limites » page. One of: report, scope. |
paragraphs |
array of object |
The paragraphs, in the report's order. |
paragraphs[].custom |
boolean |
True when the étude has its own text for this paragraph. |
paragraphs[].hint |
string |
What the paragraph should say. |
paragraphs[].key |
string |
The paragraph's key, to send to save_report_texts. One of: sommaire_portrait, sommaire_court_terme, sommaire_interventions, sommaire_financier, sommaire_conclusion, portee_intro, portee_methode, portee_composantes, portee_durees_couts, portee_renseignements, portee_utilisation. |
paragraphs[].label |
string |
The heading it prints under. |
paragraphs[].standard_text |
string |
The firm's standard text for this paragraph. HTML. |
paragraphs[].text |
string |
What this étude prints: its own text when custom, else the standard text. HTML. |
Example arguments
{
"etude_id": 41,
"narrative": "report"
}
Example result
{
"etude_id": 41,
"narrative": "report",
"paragraphs": [
{
"custom": true,
"hint": "L'immeuble, son année de construction, sa composition et les travaux majeurs déjà réalisés.",
"key": "sommaire_portrait",
"label": "Portrait général de la copropriété",
"standard_text": "",
"text": "<p>Immeuble de 24 unités construit en 1988.</p>"
}
]
}
Over REST
curl -s "https://carnetcopro.ca/api/v1/etudes/41/report-texts?narrative=report" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Save the report's written texts save_report_texts
Writes paragraphs of an étude's report: narrative "report" (executive summary) or "scope" (« Portée, méthode et limites »). Send the paragraphs to change as key and text (HTML paragraphs); the others keep their text. An empty text leaves the paragraph out of the report. With as_standard true, the texts also become the firm's standard for études created afterwards (existing études keep what they print). Not available to inspectors. Read the keys and current texts with get_report_texts first. Returns the page as get_report_texts does.
- Group
- Études
- REST
PATCH /api/v1/etudes/{etude_id}/report-texts
- Scope
etudes:write
- Roles
- owners, administrators and technicians
- Annotations
-
read-only no · destructive yes · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
narrative |
string |
yes |
report: the executive summary (sommaire exécutif); scope: the « Portée, méthode et limites » page. One of: report, scope. |
paragraphs |
array of object |
yes |
The paragraphs to write. (max items 20) |
paragraphs[].key |
string |
yes |
The paragraph's key, from get_report_texts for this narrative. One of: sommaire_portrait, sommaire_court_terme, sommaire_interventions, sommaire_financier, sommaire_conclusion, portee_intro, portee_methode, portee_composantes, portee_durees_couts, portee_renseignements, portee_utilisation. |
paragraphs[].text |
string |
yes |
The paragraph's text, as HTML paragraphs. (max length 50000) |
as_standard |
boolean |
no |
Also make these texts the firm's standard for new études. Default false. |
Output
| Field |
Type |
Description |
etude_id |
integer |
The étude. (min 1) |
narrative |
string |
report: the executive summary (sommaire exécutif); scope: the « Portée, méthode et limites » page. One of: report, scope. |
paragraphs |
array of object |
The paragraphs, in the report's order. |
paragraphs[].custom |
boolean |
True when the étude has its own text for this paragraph. |
paragraphs[].hint |
string |
What the paragraph should say. |
paragraphs[].key |
string |
The paragraph's key, to send to save_report_texts. One of: sommaire_portrait, sommaire_court_terme, sommaire_interventions, sommaire_financier, sommaire_conclusion, portee_intro, portee_methode, portee_composantes, portee_durees_couts, portee_renseignements, portee_utilisation. |
paragraphs[].label |
string |
The heading it prints under. |
paragraphs[].standard_text |
string |
The firm's standard text for this paragraph. HTML. |
paragraphs[].text |
string |
What this étude prints: its own text when custom, else the standard text. HTML. |
Example arguments
{
"etude_id": 41,
"narrative": "report",
"paragraphs": [
{
"key": "sommaire_portrait",
"text": "<p>Immeuble de 24 unités construit en 1988.</p>"
}
]
}
Example result
{
"etude_id": 41,
"narrative": "report",
"paragraphs": [
{
"custom": true,
"hint": "L'immeuble, son année de construction, sa composition et les travaux majeurs déjà réalisés.",
"key": "sommaire_portrait",
"label": "Portrait général de la copropriété",
"standard_text": "",
"text": "<p>Immeuble de 24 unités construit en 1988.</p>"
}
]
}
Over REST
curl -s -X PATCH https://carnetcopro.ca/api/v1/etudes/41/report-texts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"narrative":"report","paragraphs":[{"key":"sommaire_portrait","text":"<p>Immeuble de 24 unités construit en 1988.</p>"}]}'
Financing scenarios
Get a scenario's projection get_scenario_projection
Computes a financing scenario's projection over its period, as its page shows it: one row per year with opening balance, contributions, special contribution (added when the fund would fall below the safety threshold), interest, works paid (taxes and inflation included) and closing balance; the study's metrics (totals, special contribution years, lowest and final balance, and the smallest target contribution avoiding special contributions); and every work the scenario can plan with its start month and moved occurrences. include_minimal_targets adds the smallest target for each ramp length (slower). Amounts in CAD. Read-only; not available to inspectors. List scenarios with list_scenarios.
- Group
- Financing scenarios
- REST
GET /api/v1/etudes/{etude_id}/scenarios/{scenario_id}/projection
- Scope
etudes:read
- Roles
- owners, administrators and technicians
- Annotations
-
read-only yes · destructive no · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
scenario_id |
integer |
yes |
The scenario (see list_scenarios). (min 1) |
include_minimal_targets |
boolean |
no |
Also compute the minimal target for each ramp length (default false; slower). |
Output
| Field |
Type |
Description |
metrics |
object | null |
The study's figures; null when the scenario has no month to project. |
metrics.contribution_first_year |
number |
Contribution of the first year, in CAD. |
metrics.contribution_last_year |
number |
Contribution of the last year, in CAD. |
metrics.final_balance |
number |
Balance at the end of the study, in CAD. |
metrics.final_ratio_years |
number | null |
That balance in years of the last contribution. |
metrics.first_year |
integer |
First year. |
metrics.last_year |
integer |
Last year of the study. |
metrics.lowest_balance |
number | null |
Lowest month-end balance of the study, in CAD. |
metrics.special_total |
number |
All special contributions, in CAD. |
metrics.special_years |
array of object |
The years with a special contribution. |
metrics.special_years[].amount |
number |
Special contribution, in CAD. |
metrics.special_years[].year |
integer |
Year. |
metrics.suggested_target |
integer | null |
When there are special contributions: the smallest target yearly contribution (steps of 100 $) that avoids them with the current ramp; null otherwise or when none below 10 M$ does. |
metrics.total_contributions |
number |
All regular contributions, in CAD. |
metrics.total_interest |
number |
All investment return, in CAD. |
metrics.total_works |
number |
All works paid, in CAD. |
minimal_targets |
array of object | null |
Minimal targets by ramp; null unless include_minimal_targets was true. |
minimal_targets[].ramp_years |
integer |
Years of ramp from the current contribution. |
minimal_targets[].target |
integer | null |
Smallest target yearly contribution with no special contribution, in CAD. |
scenario |
object |
A financing scenario with its planned works. |
scenario.annual_contribution |
number |
Target yearly contribution (reached after the ramp), in CAD. |
scenario.completed_at |
string (date-time) | null |
When it was marked completed. ISO 8601 date-time, UTC. |
scenario.contribution_ramp_years |
integer |
Years taken to go from the current contribution to the target, in equal steps. |
scenario.contribution_rate |
number | null |
Yearly increase of the contribution after the ramp, in percent. |
scenario.current_annual_contribution |
number | null |
Contribution paid today, in CAD. |
scenario.duration_years |
integer | null |
Length of the projection in years. |
scenario.end_month |
string |
End of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.group_id |
integer | null |
The restricted-use group, for a group scenario. (min 1) |
scenario.id |
integer |
The scenario's id. (min 1) |
scenario.inflation_rate |
number |
Yearly inflation applied to work costs, in percent. |
scenario.initial_balance |
number |
Fund balance at the start, in CAD. |
scenario.investment_return_rate |
number | null |
Yearly return on the fund's average balance, in percent. |
scenario.is_base |
boolean |
The étude's base scenario: one per étude, created with it and never deleted. Placing a work in it, or moving the work's first occurrence, sets the work's estimated_year (« Année prévue »); taking the work out clears it. |
scenario.is_recommended |
boolean |
The étude's recommended strategy (at most one building scenario). |
scenario.locked |
boolean |
Completed, so read only: hypotheses, works and deletion are refused until reopened with update_scenario completed=false. |
scenario.name |
string |
Name of the scenario. |
scenario.safety_threshold |
number | null |
Minimum balance; a year falling below it gets a special contribution, in CAD. |
scenario.scope |
string |
building: a strategy for the whole reserve fund; group: the distinct contribution of a restricted-use group. One of: building, group. |
scenario.start_month |
string |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.summary_narrative |
string | null |
The report's paragraph on this strategy (HTML). |
scenario.unit_numbers |
array of string |
Units paying it (a group scenario); empty for the building. |
scenario.updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
scenario.works |
array of object |
Every work this scenario can plan (paid by the same payer), planned or not. |
scenario.works[].estimated_year |
integer | null |
Year planned on the component's Travaux tab. |
scenario.works[].moved_occurrences |
array of object |
Occurrences moved to another year in this scenario. |
scenario.works[].moved_occurrences[].from_year |
integer |
Year the recurrence gives the occurrence. |
scenario.works[].moved_occurrences[].to_year |
integer |
Year it is paid in, in this scenario. |
scenario.works[].planned_month |
string | null |
Start of the work in this scenario, from which its recurrence counts; null when the scenario leaves it out. Month as YYYY-MM. (min length 7, max length 7) |
scenario.works[].task_id |
integer |
The work's id (see list_tasks). (min 1) |
scenario.works[].title |
string | null |
Title of the work. |
years |
array of object |
The projection, one row per year. |
years[].closing_balance |
number |
Balance at the end of the year, in CAD. |
years[].contribution |
number |
Regular contributions of the year, in CAD. |
years[].interest |
number |
Investment return credited, in CAD. |
years[].lowest_balance |
number |
Lowest month-end balance of the year, in CAD. |
years[].opening_balance |
number |
Balance at the start of the year, in CAD. |
years[].special_contribution |
number |
Special contribution needed to stay above the safety threshold, in CAD. |
years[].works |
array of object |
The works paid that year. |
years[].works[].cost |
number |
Cost paid that year, in CAD. |
years[].works[].moved_from_year |
integer | null |
Year the recurrence gave it, when moved to this year. |
years[].works[].task_id |
integer | null |
The work's id. (min 1) |
years[].works[].title |
string | null |
Title of the work. |
years[].works_total |
number |
Works paid, taxes and inflation included, in CAD. |
years[].year |
integer |
Calendar year. |
Example arguments
{
"etude_id": 41,
"scenario_id": 77
}
Example result
{
"metrics": {
"contribution_first_year": 4.6e4,
"contribution_last_year": 9.87e4,
"final_balance": 3.555e5,
"final_ratio_years": 3.6,
"first_year": 2027,
"last_year": 2051,
"lowest_balance": 3.12e4,
"special_total": 0.0,
"special_years": [],
"suggested_target": null,
"total_contributions": 1.82e6,
"total_interest": 6.1e4,
"total_works": 1.71e6
},
"minimal_targets": null,
"scenario": {
"annual_contribution": 6.2e4,
"completed_at": null,
"contribution_ramp_years": 3,
"contribution_rate": 2.0,
"current_annual_contribution": 3.8e4,
"duration_years": 25,
"end_month": "2051-12",
"group_id": null,
"id": 77,
"inflation_rate": 3.0,
"initial_balance": 1.845e5,
"investment_return_rate": 1.5,
"is_base": false,
"is_recommended": false,
"locked": false,
"name": "Scénario recommandé",
"safety_threshold": 2.5e4,
"scope": "building",
"start_month": "2027-01",
"summary_narrative": null,
"unit_numbers": [],
"updated_at": "2026-10-20T14:03:11Z",
"works": []
},
"years": [
{
"closing_balance": 215212.5,
"contribution": 4.6e4,
"interest": 3112.5,
"lowest_balance": 184210.0,
"opening_balance": 1.845e5,
"special_contribution": 0.0,
"works": [
{
"cost": 1.84e4,
"moved_from_year": null,
"task_id": 902,
"title": "Scellant des joints"
}
],
"works_total": 1.84e4,
"year": 2027
}
]
}
Over REST
curl -s https://carnetcopro.ca/api/v1/etudes/41/scenarios/77/projection \
-H "Authorization: Bearer $ACCESS_TOKEN"
Create a financing scenario create_scenario
Creates a financing scenario in an étude, already planned with every work that has a planned year. Without group_id it is a building scenario (a reserve-fund strategy): send name, start_month, duration_years and annual_contribution; the contribution increase defaults to 2 %; its opening balance, current contribution, safety threshold, inflation rate and return rate come from the étude's financial basis (update_financial_basis), and the rates sent here override them. With group_id it computes that restricted-use group's distinct contribution, starting from the recommended strategy's rates and period and the group's starting balance; the other fields then override those. A group has one scenario. To start from an existing scenario, use duplicate_scenario. Not available to inspectors.
- Group
- Financing scenarios
- REST
POST /api/v1/etudes/{etude_id}/scenarios
- Scope
etudes:write
- Roles
- owners, administrators and technicians
- Annotations
-
read-only no · destructive no · idempotent no · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
annual_contribution |
number |
no |
Target yearly contribution to the fund, reached after the ramp. In CAD. (min 0) |
contribution_ramp_years |
integer |
no |
Years to go from the current contribution to the target in equal steps; 0 applies the target from the first year. (min 0, max 100) |
contribution_rate |
number |
no |
Yearly increase of the contribution once the target is reached, in percent. (min 0, max 99.99) |
duration_years |
integer |
no |
Length of the projection in years (the study horizon is usually 25 to 30). (min 1, max 100) |
group_id |
integer |
no |
For a restricted-use group's scenario: the group (see list_groups). (min 1) |
inflation_rate |
number |
no |
Yearly inflation applied to work costs, in percent (e.g. 3). (min 0, max 99.99) |
investment_return_rate |
number |
no |
Yearly return on the fund's average balance, in percent. (min 0, max 99.99) |
name |
string |
no |
Name of the scenario. (min length 1, max length 255) |
start_month |
string |
no |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
Output
| Field |
Type |
Description |
scenario |
object |
A financing scenario with its planned works. |
scenario.annual_contribution |
number |
Target yearly contribution (reached after the ramp), in CAD. |
scenario.completed_at |
string (date-time) | null |
When it was marked completed. ISO 8601 date-time, UTC. |
scenario.contribution_ramp_years |
integer |
Years taken to go from the current contribution to the target, in equal steps. |
scenario.contribution_rate |
number | null |
Yearly increase of the contribution after the ramp, in percent. |
scenario.current_annual_contribution |
number | null |
Contribution paid today, in CAD. |
scenario.duration_years |
integer | null |
Length of the projection in years. |
scenario.end_month |
string |
End of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.group_id |
integer | null |
The restricted-use group, for a group scenario. (min 1) |
scenario.id |
integer |
The scenario's id. (min 1) |
scenario.inflation_rate |
number |
Yearly inflation applied to work costs, in percent. |
scenario.initial_balance |
number |
Fund balance at the start, in CAD. |
scenario.investment_return_rate |
number | null |
Yearly return on the fund's average balance, in percent. |
scenario.is_base |
boolean |
The étude's base scenario: one per étude, created with it and never deleted. Placing a work in it, or moving the work's first occurrence, sets the work's estimated_year (« Année prévue »); taking the work out clears it. |
scenario.is_recommended |
boolean |
The étude's recommended strategy (at most one building scenario). |
scenario.locked |
boolean |
Completed, so read only: hypotheses, works and deletion are refused until reopened with update_scenario completed=false. |
scenario.name |
string |
Name of the scenario. |
scenario.safety_threshold |
number | null |
Minimum balance; a year falling below it gets a special contribution, in CAD. |
scenario.scope |
string |
building: a strategy for the whole reserve fund; group: the distinct contribution of a restricted-use group. One of: building, group. |
scenario.start_month |
string |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.summary_narrative |
string | null |
The report's paragraph on this strategy (HTML). |
scenario.unit_numbers |
array of string |
Units paying it (a group scenario); empty for the building. |
scenario.updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
scenario.works |
array of object |
Every work this scenario can plan (paid by the same payer), planned or not. |
scenario.works[].estimated_year |
integer | null |
Year planned on the component's Travaux tab. |
scenario.works[].moved_occurrences |
array of object |
Occurrences moved to another year in this scenario. |
scenario.works[].moved_occurrences[].from_year |
integer |
Year the recurrence gives the occurrence. |
scenario.works[].moved_occurrences[].to_year |
integer |
Year it is paid in, in this scenario. |
scenario.works[].planned_month |
string | null |
Start of the work in this scenario, from which its recurrence counts; null when the scenario leaves it out. Month as YYYY-MM. (min length 7, max length 7) |
scenario.works[].task_id |
integer |
The work's id (see list_tasks). (min 1) |
scenario.works[].title |
string | null |
Title of the work. |
Example arguments
{
"annual_contribution": 62000,
"contribution_ramp_years": 3,
"duration_years": 25,
"etude_id": 41,
"name": "Scénario recommandé",
"start_month": "2027-01"
}
Example result
{
"scenario": {
"annual_contribution": 6.2e4,
"completed_at": null,
"contribution_ramp_years": 3,
"contribution_rate": 2.0,
"current_annual_contribution": 3.8e4,
"duration_years": 25,
"end_month": "2051-12",
"group_id": null,
"id": 77,
"inflation_rate": 3.0,
"initial_balance": 1.845e5,
"investment_return_rate": 1.5,
"is_base": false,
"is_recommended": false,
"locked": false,
"name": "Scénario recommandé",
"safety_threshold": 2.5e4,
"scope": "building",
"start_month": "2027-01",
"summary_narrative": null,
"unit_numbers": [],
"updated_at": "2026-10-20T14:03:11Z",
"works": [
{
"estimated_year": 2031,
"moved_occurrences": [],
"planned_month": "2031-01",
"task_id": 902,
"title": "Réfection de la toiture"
}
]
}
}
Over REST
curl -s -X POST https://carnetcopro.ca/api/v1/etudes/41/scenarios \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"annual_contribution":62000,"contribution_ramp_years":3,"duration_years":25,"name":"Scénario recommandé","start_month":"2027-01"}'
Update a financing scenario update_scenario
Changes a financing scenario: its hypotheses (name, period, rates, target contribution and ramp), its recommendation, its report paragraph, and whether it is completed. Only the fields you send change. Recommending a building scenario withdraws the recommendation from the étude's other scenarios. completed=true locks the scenario (hypotheses, works and deletion refused); completed=false reopens it and may be sent with other changes. A locked scenario accepts only is_recommended, summary_narrative and completed; anything else fails with scenario_locked. initial_balance, current_annual_contribution and safety_threshold change this scenario's alone; update_financial_basis sets them for every building scenario at once, overwriting such changes. Works are planned with schedule_work_in_scenario. Not available to inspectors.
- Group
- Financing scenarios
- REST
PATCH /api/v1/etudes/{etude_id}/scenarios/{scenario_id}
- Scope
etudes:write
- Roles
- owners, administrators and technicians
- Annotations
-
read-only no · destructive yes · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
scenario_id |
integer |
yes |
The scenario to change (see list_scenarios). (min 1) |
annual_contribution |
number |
no |
Target yearly contribution to the fund, reached after the ramp. In CAD. (min 0) |
completed |
boolean |
no |
true marks it completed (locked, read only); false reopens it for changes. |
contribution_ramp_years |
integer |
no |
Years to go from the current contribution to the target in equal steps; 0 applies the target from the first year. (min 0, max 100) |
contribution_rate |
number |
no |
Yearly increase of the contribution once the target is reached, in percent. (min 0, max 99.99) |
current_annual_contribution |
number | null |
no |
The contribution paid today, as this scenario takes it. In CAD. (min 0) |
duration_years |
integer |
no |
Length of the projection in years (the study horizon is usually 25 to 30). (min 1, max 100) |
inflation_rate |
number |
no |
Yearly inflation applied to work costs, in percent (e.g. 3). (min 0, max 99.99) |
initial_balance |
number | null |
no |
The fund balance this scenario starts from. In CAD. (min 0) |
investment_return_rate |
number |
no |
Yearly return on the fund's average balance, in percent. (min 0, max 99.99) |
is_recommended |
boolean |
no |
Building scenarios only: true makes it the étude's recommended strategy. |
name |
string |
no |
Name of the scenario. (min length 1, max length 255) |
safety_threshold |
number | null |
no |
The minimum balance this scenario keeps the fund above. In CAD. (min 0) |
start_month |
string |
no |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
summary_narrative |
string | null |
no |
Building scenarios only: the report's paragraph on this strategy, as simple HTML (<p>, <strong>, <ul>). (max length 50000) |
Output
| Field |
Type |
Description |
scenario |
object |
A financing scenario with its planned works. |
scenario.annual_contribution |
number |
Target yearly contribution (reached after the ramp), in CAD. |
scenario.completed_at |
string (date-time) | null |
When it was marked completed. ISO 8601 date-time, UTC. |
scenario.contribution_ramp_years |
integer |
Years taken to go from the current contribution to the target, in equal steps. |
scenario.contribution_rate |
number | null |
Yearly increase of the contribution after the ramp, in percent. |
scenario.current_annual_contribution |
number | null |
Contribution paid today, in CAD. |
scenario.duration_years |
integer | null |
Length of the projection in years. |
scenario.end_month |
string |
End of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.group_id |
integer | null |
The restricted-use group, for a group scenario. (min 1) |
scenario.id |
integer |
The scenario's id. (min 1) |
scenario.inflation_rate |
number |
Yearly inflation applied to work costs, in percent. |
scenario.initial_balance |
number |
Fund balance at the start, in CAD. |
scenario.investment_return_rate |
number | null |
Yearly return on the fund's average balance, in percent. |
scenario.is_base |
boolean |
The étude's base scenario: one per étude, created with it and never deleted. Placing a work in it, or moving the work's first occurrence, sets the work's estimated_year (« Année prévue »); taking the work out clears it. |
scenario.is_recommended |
boolean |
The étude's recommended strategy (at most one building scenario). |
scenario.locked |
boolean |
Completed, so read only: hypotheses, works and deletion are refused until reopened with update_scenario completed=false. |
scenario.name |
string |
Name of the scenario. |
scenario.safety_threshold |
number | null |
Minimum balance; a year falling below it gets a special contribution, in CAD. |
scenario.scope |
string |
building: a strategy for the whole reserve fund; group: the distinct contribution of a restricted-use group. One of: building, group. |
scenario.start_month |
string |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.summary_narrative |
string | null |
The report's paragraph on this strategy (HTML). |
scenario.unit_numbers |
array of string |
Units paying it (a group scenario); empty for the building. |
scenario.updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
scenario.works |
array of object |
Every work this scenario can plan (paid by the same payer), planned or not. |
scenario.works[].estimated_year |
integer | null |
Year planned on the component's Travaux tab. |
scenario.works[].moved_occurrences |
array of object |
Occurrences moved to another year in this scenario. |
scenario.works[].moved_occurrences[].from_year |
integer |
Year the recurrence gives the occurrence. |
scenario.works[].moved_occurrences[].to_year |
integer |
Year it is paid in, in this scenario. |
scenario.works[].planned_month |
string | null |
Start of the work in this scenario, from which its recurrence counts; null when the scenario leaves it out. Month as YYYY-MM. (min length 7, max length 7) |
scenario.works[].task_id |
integer |
The work's id (see list_tasks). (min 1) |
scenario.works[].title |
string | null |
Title of the work. |
Example arguments
{
"annual_contribution": 65000,
"etude_id": 41,
"is_recommended": true,
"scenario_id": 77
}
Example result
{
"scenario": {
"annual_contribution": 6.5e4,
"completed_at": null,
"contribution_ramp_years": 3,
"contribution_rate": 2.0,
"current_annual_contribution": 3.8e4,
"duration_years": 25,
"end_month": "2051-12",
"group_id": null,
"id": 77,
"inflation_rate": 3.0,
"initial_balance": 1.845e5,
"investment_return_rate": 1.5,
"is_base": false,
"is_recommended": true,
"locked": false,
"name": "Scénario recommandé",
"safety_threshold": 2.5e4,
"scope": "building",
"start_month": "2027-01",
"summary_narrative": null,
"unit_numbers": [],
"updated_at": "2026-10-20T14:03:11Z",
"works": []
}
}
Over REST
curl -s -X PATCH https://carnetcopro.ca/api/v1/etudes/41/scenarios/77 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"annual_contribution":65000,"is_recommended":true}'
Update the financial basis update_financial_basis
Sets the financial basis every building scenario of an étude starts from: the reserve fund balance, the current yearly contribution, the safety threshold, and the inflation and investment return rates. The values are kept on the étude, for scenarios created later, and copied onto each existing building scenario at once, completed ones included (the fund balance becomes their opening balance). A building scenario may then depart from it through update_scenario; this call overwrites such changes. Restricted-use group scenarios keep their own values (update_scenario). Send the three amounts: a missing or null one is cleared. The rates are optional: one left out keeps the étude's, and is still applied to every building scenario. Not available to inspectors.
- Group
- Financing scenarios
- REST
PATCH /api/v1/etudes/{etude_id}/financial-basis
- Scope
etudes:write
- Roles
- owners, administrators and technicians
- Annotations
-
read-only no · destructive yes · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
current_annual_contribution |
number | null |
yes |
Yearly contribution paid to the fund today. In CAD. (min 0) |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
fund_balance |
number | null |
yes |
Reserve fund balance reported by the syndicate. In CAD. (min 0) |
safety_threshold |
number | null |
yes |
Minimum balance the fund must keep; below it, a special contribution. In CAD. (min 0) |
inflation_rate |
number |
no |
Yearly inflation applied to work costs, in percent (e.g. 3). (min 0, max 99.99) |
investment_return_rate |
number |
no |
Yearly return on the fund's average balance, in percent. (min 0, max 99.99) |
Output
| Field |
Type |
Description |
current_annual_contribution |
number | null |
Current yearly contribution, in CAD. |
fund_balance |
number | null |
Reserve fund balance, in CAD. |
inflation_rate |
number |
Yearly inflation, in percent. |
investment_return_rate |
number |
Yearly return on the fund, in percent. |
safety_threshold |
number | null |
Safety threshold, in CAD. |
scenarios |
array of object |
The étude's building scenarios, as updated. |
scenarios[].annual_contribution |
number |
Target yearly contribution (reached after the ramp), in CAD. |
scenarios[].completed_at |
string (date-time) | null |
When it was marked completed. ISO 8601 date-time, UTC. |
scenarios[].contribution_ramp_years |
integer |
Years taken to go from the current contribution to the target, in equal steps. |
scenarios[].contribution_rate |
number | null |
Yearly increase of the contribution after the ramp, in percent. |
scenarios[].current_annual_contribution |
number | null |
Contribution paid today, in CAD. |
scenarios[].duration_years |
integer | null |
Length of the projection in years. |
scenarios[].end_month |
string |
End of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenarios[].group_id |
integer | null |
The restricted-use group, for a group scenario. (min 1) |
scenarios[].id |
integer |
The scenario's id. (min 1) |
scenarios[].inflation_rate |
number |
Yearly inflation applied to work costs, in percent. |
scenarios[].initial_balance |
number |
Fund balance at the start, in CAD. |
scenarios[].investment_return_rate |
number | null |
Yearly return on the fund's average balance, in percent. |
scenarios[].is_base |
boolean |
The étude's base scenario: one per étude, created with it and never deleted. Placing a work in it, or moving the work's first occurrence, sets the work's estimated_year (« Année prévue »); taking the work out clears it. |
scenarios[].is_recommended |
boolean |
The étude's recommended strategy (at most one building scenario). |
scenarios[].locked |
boolean |
Completed, so read only: hypotheses, works and deletion are refused until reopened with update_scenario completed=false. |
scenarios[].name |
string |
Name of the scenario. |
scenarios[].safety_threshold |
number | null |
Minimum balance; a year falling below it gets a special contribution, in CAD. |
scenarios[].scope |
string |
building: a strategy for the whole reserve fund; group: the distinct contribution of a restricted-use group. One of: building, group. |
scenarios[].start_month |
string |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenarios[].unit_numbers |
array of string |
Units paying it (a group scenario); empty for the building. |
scenarios[].updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
Example arguments
{
"current_annual_contribution": 38000,
"etude_id": 41,
"fund_balance": 184500,
"safety_threshold": 25000
}
Example result
{
"current_annual_contribution": 3.8e4,
"fund_balance": 1.845e5,
"inflation_rate": 3.0,
"investment_return_rate": 1.5,
"safety_threshold": 2.5e4,
"scenarios": [
{
"annual_contribution": 6.2e4,
"completed_at": null,
"contribution_ramp_years": 3,
"contribution_rate": 2.0,
"current_annual_contribution": 3.8e4,
"duration_years": 25,
"end_month": "2051-12",
"group_id": null,
"id": 77,
"inflation_rate": 3.0,
"initial_balance": 1.845e5,
"investment_return_rate": 1.5,
"is_base": false,
"is_recommended": false,
"locked": false,
"name": "Scénario recommandé",
"safety_threshold": 2.5e4,
"scope": "building",
"start_month": "2027-01",
"unit_numbers": [],
"updated_at": "2026-10-20T14:03:11Z"
}
]
}
Over REST
curl -s -X PATCH https://carnetcopro.ca/api/v1/etudes/41/financial-basis \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"current_annual_contribution":38000,"fund_balance":184500,"safety_threshold":25000}'
Schedule a work in a scenario schedule_work_in_scenario
Changes when works are paid in one financing scenario, as dragging them in its table does; other scenarios are unchanged. In the base scenario (is_base) the work's estimated_year follows: set_start sets it, moving the first occurrence moves it, remove clears it. action set_start: the work starts in planned_month (YYYY-MM) and recurs from there; it enters the scenario if it was out, and its moved occurrences are dropped when the start changes. move_occurrence: only the occurrence the recurrence puts in from_year is paid in to_year instead. restore_occurrence: puts the occurrence of from_year back. remove: takes the work out of the scenario. restore_all_moves: puts every moved occurrence of the scenario back (no task_id). Refused with scenario_locked on a completed scenario. The task must be a work (travaux) paid by the scenario's payer; see the works list of get_scenario_projection. Not available to inspectors.
- Group
- Financing scenarios
- REST
POST /api/v1/etudes/{etude_id}/scenarios/{scenario_id}/schedule
- Scope
etudes:write
- Roles
- owners, administrators and technicians
- Annotations
-
read-only no · destructive yes · idempotent yes · open world no
- Errors
-
not_found
(404),
invalid_arguments
(422),
insufficient_scope
(403),
validation_failed
(422),
forbidden
(403)
Input
| Name |
Type |
Required |
Description |
action |
string |
yes |
set_start, move_occurrence, restore_occurrence, remove or restore_all_moves (see the tool description). One of: set_start, move_occurrence, restore_occurrence, remove, restore_all_moves. |
etude_id |
integer |
yes |
The étude (see list_etudes). (min 1) |
scenario_id |
integer |
yes |
The scenario (see list_scenarios). (min 1) |
from_year |
integer |
no |
move_occurrence and restore_occurrence: the year the work's start and recurrence give the occurrence. (min 1900, max 2200) |
planned_month |
string |
no |
set_start: the month the work starts in this scenario. Month as YYYY-MM. (min length 7, max length 7) |
task_id |
integer |
no |
The work (see get_scenario_projection's works); every action but restore_all_moves. (min 1) |
to_year |
integer |
no |
move_occurrence: the year that occurrence is paid in instead. (min 1900, max 2200) |
Output
| Field |
Type |
Description |
scenario |
object |
A financing scenario with its planned works. |
scenario.annual_contribution |
number |
Target yearly contribution (reached after the ramp), in CAD. |
scenario.completed_at |
string (date-time) | null |
When it was marked completed. ISO 8601 date-time, UTC. |
scenario.contribution_ramp_years |
integer |
Years taken to go from the current contribution to the target, in equal steps. |
scenario.contribution_rate |
number | null |
Yearly increase of the contribution after the ramp, in percent. |
scenario.current_annual_contribution |
number | null |
Contribution paid today, in CAD. |
scenario.duration_years |
integer | null |
Length of the projection in years. |
scenario.end_month |
string |
End of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.group_id |
integer | null |
The restricted-use group, for a group scenario. (min 1) |
scenario.id |
integer |
The scenario's id. (min 1) |
scenario.inflation_rate |
number |
Yearly inflation applied to work costs, in percent. |
scenario.initial_balance |
number |
Fund balance at the start, in CAD. |
scenario.investment_return_rate |
number | null |
Yearly return on the fund's average balance, in percent. |
scenario.is_base |
boolean |
The étude's base scenario: one per étude, created with it and never deleted. Placing a work in it, or moving the work's first occurrence, sets the work's estimated_year (« Année prévue »); taking the work out clears it. |
scenario.is_recommended |
boolean |
The étude's recommended strategy (at most one building scenario). |
scenario.locked |
boolean |
Completed, so read only: hypotheses, works and deletion are refused until reopened with update_scenario completed=false. |
scenario.name |
string |
Name of the scenario. |
scenario.safety_threshold |
number | null |
Minimum balance; a year falling below it gets a special contribution, in CAD. |
scenario.scope |
string |
building: a strategy for the whole reserve fund; group: the distinct contribution of a restricted-use group. One of: building, group. |
scenario.start_month |
string |
First month of the projection. Month as YYYY-MM. (min length 7, max length 7) |
scenario.summary_narrative |
string | null |
The report's paragraph on this strategy (HTML). |
scenario.unit_numbers |
array of string |
Units paying it (a group scenario); empty for the building. |
scenario.updated_at |
string (date-time) |
Last change. ISO 8601 date-time, UTC. |
scenario.works |
array of object |
Every work this scenario can plan (paid by the same payer), planned or not. |
scenario.works[].estimated_year |
integer | null |
Year planned on the component's Travaux tab. |
scenario.works[].moved_occurrences |
array of object |
Occurrences moved to another year in this scenario. |
scenario.works[].moved_occurrences[].from_year |
integer |
Year the recurrence gives the occurrence. |
scenario.works[].moved_occurrences[].to_year |
integer |
Year it is paid in, in this scenario. |
scenario.works[].planned_month |
string | null |
Start of the work in this scenario, from which its recurrence counts; null when the scenario leaves it out. Month as YYYY-MM. (min length 7, max length 7) |
scenario.works[].task_id |
integer |
The work's id (see list_tasks). (min 1) |
scenario.works[].title |
string | null |
Title of the work. |
Example arguments
{
"action": "move_occurrence",
"etude_id": 41,
"from_year": 2031,
"scenario_id": 77,
"task_id": 902,
"to_year": 2033
}
Example result
{
"scenario": {
"annual_contribution": 6.2e4,
"completed_at": null,
"contribution_ramp_years": 3,
"contribution_rate": 2.0,
"current_annual_contribution": 3.8e4,
"duration_years": 25,
"end_month": "2051-12",
"group_id": null,
"id": 77,
"inflation_rate": 3.0,
"initial_balance": 1.845e5,
"investment_return_rate": 1.5,
"is_base": false,
"is_recommended": false,
"locked": false,
"name": "Scénario recommandé",
"safety_threshold": 2.5e4,
"scope": "building",
"start_month": "2027-01",
"summary_narrative": null,
"unit_numbers": [],
"updated_at": "2026-10-20T14:03:11Z",
"works": [
{
"estimated_year": 2031,
"moved_occurrences": [
{
"from_year": 2031,
"to_year": 2033
}
],
"planned_month": "2031-01",
"task_id": 902,
"title": "Réfection de la toiture"
}
]
}
}
Over REST
curl -s -X POST https://carnetcopro.ca/api/v1/etudes/41/scenarios/77/schedule \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"move_occurrence","from_year":2031,"task_id":902,"to_year":2033}'