{"openapi":"3.1.0","info":{"title":"Flightplan Public API","version":"1.0.0","description":"Org-keyed REST API for external systems. Create a project from a sold order, read staffing by team, read per-task hours, read a named roster of booked people (display name + civil days, no emails), and read org-level monthly demand vs capacity (not staffing). HMAC webhooks available. This is not the internal session API and not the MCP tool surface."},"servers":[{"url":"https://api.flpl.ai/v1","description":"Production"}],"security":[{"PublicKey":[]}],"components":{"securitySchemes":{"PublicKey":{"type":"apiKey","in":"header","name":"X-Flightplan-Key","description":"Developer key minted in Flightplan Settings. Format fpk_live_…"}},"schemas":{"ProjectSnapshot":{"type":"object","required":["install_trips","first_install_trip","project_complete","key_dates"],"properties":{"id":{"type":"integer"},"external_id":{"type":"string","nullable":true},"name":{"type":"string"},"client_name":{"type":"string","nullable":true},"contract_number":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"status":{"type":"string","description":"completed = finished (leave forecast as complete). cancelled/archived = out of forecast, not complete. Else open. Do not infer completion from first_use_date."},"project_complete":{"type":"boolean","description":"true iff status is completed. cancelled is false."},"stage":{"type":"string","nullable":true},"start_date":{"type":"string","format":"date","nullable":true},"end_date":{"type":"string","format":"date","nullable":true},"first_use_date":{"type":"string","format":"date","nullable":true},"design_deadline":{"type":"string","format":"date","nullable":true},"address":{"type":"object"},"source":{"type":"object"},"hours":{"type":"object"},"unfilled":{"type":"object"},"scheduled_start":{"type":"string","nullable":true},"scheduled_end":{"type":"string","nullable":true},"created_at":{"type":"string","nullable":true},"updated_at":{"type":"string","nullable":true},"install_trips":{"type":"array","items":{"type":"object","required":["n","date","end_date"],"properties":{"n":{"type":"integer"},"date":{"type":"string","format":"date","nullable":true,"description":"Trip start (crew on site)"},"end_date":{"type":"string","format":"date","nullable":true,"description":"Trip end (crew off site). Null if the head has no end."}}}},"first_install_trip":{"type":"string","format":"date","nullable":true},"designated":{"type":"object","description":"Named planning dates as YYYY-MM-DD or null. eng_cd_start/eng_cd_due is a pair (due is the CD task end unless a separate CD-due row is marked). eng_id_start/eng_id_due is the IDs task start and end. assembly_start/assembly_due is the Assembly task start and end. eng_id_start and assembly_due are snapshot partners, not extra designations.","additionalProperties":{"type":"string","format":"date","nullable":true}},"key_dates":{"type":"array","description":"Operator extras from Overview + Add date. Not designated roles. Each row is label + YYYY-MM-DD or null + contractual.","items":{"type":"object","required":["label","date","contractual"],"properties":{"label":{"type":"string"},"date":{"type":"string","format":"date","nullable":true},"contractual":{"type":"boolean"}}}}}},"ProjectIdentityPatch":{"type":"object","description":"Stamp Apex number / code / sales order. Unique conflict is 409. Cannot set status.","properties":{"external_id":{"type":"string","example":"apex:5166"},"code":{"type":"string","example":"5166"},"contract_number":{"type":"string","example":"SO-10491"}}},"MonthlyDvc":{"type":"object","description":"Org-level monthly demand vs capacity for the Apex leadership tile. This is not staffing. Four groups only. Team names and hours; no people.","required":["start_month","end_month","months","demand","teams"],"properties":{"start_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","example":"2026-05"},"end_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","example":"2028-08"},"demand":{"type":"string","enum":["staff","team","unscheduled"],"description":"Capacity toolbar demand layer used for demand_hours."},"months":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},"teams":{"type":"array","items":{"type":"object","required":["team","months"],"properties":{"team":{"type":"string","enum":["Assembly","Engineering","Foremen","Install Techs"]},"months":{"type":"array","items":{"type":"object","required":["month","capacity_hours","demand_hours"],"properties":{"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"capacity_hours":{"type":"number"},"demand_hours":{"type":"number"}}}}}}},"description":{"type":"string"},"rest_exclude_after_days":{"type":"integer","description":"Present on /capacity/monthly/exclude-rest (and deprecated /capacity/monthly-next). Civil days from today that still keep Trip Rest / Truck Pack on Install Techs and Foremen."},"rest_exclude_after_date":{"type":"string","format":"date","description":"Present on /capacity/monthly/exclude-rest. Inclusive cutoff date (today + rest_exclude_after_days)."}}},"MonthlyDvcProjects":{"type":"object","description":"Resources project-grid monthly demand. Not staffing. Four groups only. project_id / external_id / code plus demand_hours per team-month. No people.","required":["start_month","end_month","months","demand","projects"],"properties":{"start_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","example":"2026-05"},"end_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","example":"2028-08"},"demand":{"type":"string","enum":["staff","team","unscheduled"]},"months":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},"projects":{"type":"array","items":{"type":"object","required":["project_id","months","teams"],"properties":{"project_id":{"type":"integer"},"external_id":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"project":{"type":"string"},"months":{"type":"array","items":{"type":"object","required":["month","demand_hours"],"properties":{"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"demand_hours":{"type":"number"}}}},"teams":{"type":"array","items":{"type":"object","required":["team","months"],"properties":{"team":{"type":"string","enum":["Assembly","Engineering","Foremen","Install Techs"]},"months":{"type":"array","items":{"type":"object","required":["month","demand_hours"],"properties":{"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"demand_hours":{"type":"number"}}}}}}}}}},"description":{"type":"string"}}},"WorkItemList":{"type":"object","description":"Per-task hours by team. No people. Pages work items (not days). The project-root pseudo-row is omitted. Parent rows often have zeros; demand lives on leaves.","required":["project_id","items","unattached","total","limit","offset","has_more"],"properties":{"project_id":{"type":"integer"},"external_id":{"type":"string","nullable":true},"forward_only":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","required":["id","name","hours","teams"],"properties":{"id":{"type":"integer"},"parent_id":{"type":"integer","nullable":true},"phase_id":{"type":"integer","nullable":true},"phase_name":{"type":"string","nullable":true},"wbs":{"type":"string","nullable":true},"name":{"type":"string"},"status":{"type":"string"},"schedule_role":{"type":"string","nullable":true},"start_date":{"type":"string","format":"date","nullable":true},"end_date":{"type":"string","format":"date","nullable":true},"hours":{"type":"object","properties":{"estimated":{"type":"number"},"staffed":{"type":"number"},"unfilled":{"type":"number"},"logged":{"type":"number"}}},"teams":{"type":"array","items":{"type":"object","properties":{"team_id":{"type":"integer","nullable":true},"team_name":{"type":"string"},"staffed":{"type":"number"},"unfilled":{"type":"number"}}}}}}},"unattached":{"type":"array","description":"Hours with work_item_id NULL (project pool). Repeated on every page."},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"},"next_offset":{"type":"integer","nullable":true}}},"RosterList":{"type":"object","description":"Named roster. Pages people; each person carries allocated civil days. person_id is the Flightplan opaque id. Display name only — no emails, rates, addresses, or Planview ids.","required":["project_id","people","total","limit","offset","has_more"],"properties":{"project_id":{"type":"integer"},"external_id":{"type":"string","nullable":true},"forward_only":{"type":"boolean"},"people":{"type":"array","items":{"type":"object","required":["person_id","name","kind","days"],"properties":{"person_id":{"type":"integer","description":"Flightplan resource id. Not a Planview or email id."},"name":{"type":"string"},"kind":{"type":"string","enum":["person","contractor","placeholder","vehicle","equipment","facility"]},"team_id":{"type":"integer","nullable":true,"description":"Team with the most hours on this job."},"team_name":{"type":"string"},"hours":{"type":"object","properties":{"staffed":{"type":"number"},"logged":{"type":"number"}}},"scheduled_start":{"type":"string","format":"date","nullable":true},"scheduled_end":{"type":"string","format":"date","nullable":true},"day_count":{"type":"integer"},"days":{"type":"array","items":{"type":"object","required":["person_id","date","hours"],"properties":{"person_id":{"type":"integer"},"work_item_id":{"type":"integer","nullable":true},"date":{"type":"string","format":"date","nullable":true},"hours":{"type":"number"},"team_id":{"type":"integer","nullable":true},"team_name":{"type":"string"}}}}}}},"total":{"type":"integer","description":"People matching the filter, not day rows."},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"},"next_offset":{"type":"integer","nullable":true}}},"PublicTeam":{"type":"object","description":"Active team in this org. Address labor by id, never by matching a role to name. No people, no Planview ids, no capacity hours. bound_roles is empty until an org map exists.","required":["id","name","bound_roles"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"code":{"type":"string","nullable":true},"bound_roles":{"type":"array","items":{"type":"string"},"description":"Configured role labels for this team, not normalized. Empty until the org map ships."}}},"LaborEstimate":{"type":"object","description":"Stored estimate table. PUT this object (not wrapped) to replace the receipt without changing demand.","properties":{"origin":{"type":"object","properties":{"system":{"type":"string","example":"ext"},"ref":{"type":"string","example":"SO-10491"}}},"hours_per_day":{"type":"number","nullable":true,"example":10},"roles":{"type":"array","items":{"type":"object","required":["role","hours"],"properties":{"role":{"type":"string","example":"Electrical"},"hours":{"type":"number","example":30},"crew":{"type":"number","nullable":true},"days":{"type":"number","nullable":true},"team_id":{"type":"integer","nullable":true}}}}}},"ProjectCreate":{"type":"object","required":["external_id","name"],"properties":{"external_id":{"type":"string","example":"ext:SO-10491"},"name":{"type":"string"},"client_name":{"type":"string"},"contract_number":{"type":"string"},"code":{"type":"string"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"},"first_use_date":{"type":"string","format":"date"},"design_deadline":{"type":"string","format":"date"},"address":{"type":"object"},"source":{"type":"object","properties":{"type":{"enum":["blank","template","archive"]},"template_id":{"type":"integer"},"archive_project_id":{"type":"integer"},"archive_mode":{"enum":["blank","structure"]}}},"labor_estimate":{"description":"Optional. Stored verbatim. On first template create, bound teams are scaled to these hours. Omit or null means no estimate. Empty roles is 422. To replace later, PUT /labor-estimate.","$ref":"#/components/schemas/LaborEstimate"}}}}},"paths":{"/{org_slug}/projects":{"get":{"summary":"List open projects (calendar snapshot)","operationId":"listProjects","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only projects with updated_at on/after this instant"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0},"description":"0-based row offset. Pass next_offset from the previous page."}],"responses":{"200":{"description":"Project snapshots","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProjectSnapshot"}},"total":{"type":"integer","description":"Matching rows (not the page length)"},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"},"next_offset":{"type":"integer","nullable":true}}}}}}}}}},"post":{"summary":"Create a project (idempotent on external_id)","operationId":"createProject","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"},"example":{"external_id":"ext:SO-10491","name":"Acme Arena — Bowl LED","client_name":"Acme Entertainment","contract_number":"SO-10491","start_date":"2026-09-01","end_date":"2026-12-15","source":{"type":"blank"}}}}},"responses":{"201":{"description":"Created"},"200":{"description":"Idempotent replay of an existing external_id"}}}},"/{org_slug}/projects/{project_id}":{"get":{"summary":"Get a project snapshot","operationId":"getProject","responses":{"200":{"description":"Project snapshot","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ProjectSnapshot"}}}}}}}},"patch":{"summary":"Stamp identity (external_id, code, contract_number)","operationId":"patchProjectIdentity","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectIdentityPatch"}}}},"responses":{"200":{"description":"Updated snapshot"},"409":{"description":"Identity already in use on another project"}}}},"/{org_slug}/projects/by-external/{external_id}":{"get":{"summary":"Get a project by exact external id","operationId":"getProjectByExternal","responses":{"200":{"description":"Project snapshot","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ProjectSnapshot"}}}}}}}}},"/{org_slug}/projects/lookup":{"get":{"summary":"Look up a project by apex, sales order, name, code, id, or q","operationId":"lookupProject"}},"/{org_slug}/projects/{project_id}/staffing":{"get":{"summary":"Staffed vs unfilled hours by team (no people)","operationId":"getStaffing"}},"/{org_slug}/schedule-movement":{"get":{"summary":"Schedule movement: how far project finish dates moved (business days, no people)","operationId":"getScheduleMovement","description":"A project's movement is how far its planned finish moved between the start of the window and now. Clients sum their projects, each once. Returns totals, a weekly (monthly past 180 days) timeline of days pushed later and pulled in, client rollups, and what was set aside (roll-up rows, first-time dates, cleared dates, impossible dates, actual-date rows). Scope projects:read.","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":1095,"default":90}},{"name":"since","in":"query","schema":{"type":"string","format":"date"},"description":"First day of the window. With until it replaces days."},{"name":"until","in":"query","schema":{"type":"string","format":"date"},"description":"Last day of the window (inclusive). A window ending in the past is measured as of its end."},{"name":"client","in":"query","schema":{"type":"string"}},{"name":"project_id","in":"query","schema":{"type":"integer"}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"project_manager","in":"query","schema":{"type":"string"},"description":"Segment by project manager (exact name, any case). The name is never returned."}]}},"/{org_slug}/schedule-movement/projects":{"get":{"summary":"Schedule movement per project (largest movers first, no people)","operationId":"listScheduleMovementProjects","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":1095,"default":90}},{"name":"since","in":"query","schema":{"type":"string","format":"date"},"description":"First day of the window. With until it replaces days."},{"name":"until","in":"query","schema":{"type":"string","format":"date"},"description":"Last day of the window (inclusive). A window ending in the past is measured as of its end."},{"name":"client","in":"query","schema":{"type":"string"}},{"name":"project_id","in":"query","schema":{"type":"integer"}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"project_manager","in":"query","schema":{"type":"string"},"description":"Segment by project manager (exact name, any case). The name is never returned."},{"name":"min_slip_days","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"direction","in":"query","schema":{"type":"string","enum":["pushed","pulled","unchanged"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}]}},"/{org_slug}/schedule-movement/events":{"get":{"summary":"Raw date-change rows behind schedule movement, each with a class (no people)","operationId":"listScheduleMovementEvents","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":1095,"default":90}},{"name":"since","in":"query","schema":{"type":"string","format":"date"},"description":"First day of the window. With until it replaces days."},{"name":"until","in":"query","schema":{"type":"string","format":"date"},"description":"Last day of the window (inclusive). A window ending in the past is measured as of its end."},{"name":"client","in":"query","schema":{"type":"string"}},{"name":"project_id","in":"query","schema":{"type":"integer"}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"project_manager","in":"query","schema":{"type":"string"},"description":"Segment by project manager (exact name, any case). The name is never returned."},{"name":"classes","in":"query","schema":{"type":"string","default":"edit"},"description":"Comma list of edit, derived, first_set, cleared, implausible."},{"name":"include_actual","in":"query","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":2000,"default":500}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}]}},"/{org_slug}/projects/{project_id}/work-items":{"get":{"summary":"Per-task hours by team (no people)","operationId":"listProjectWorkItems","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"forward_only","in":"query","schema":{"type":"boolean","default":true}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Paged work items. Hours by team. No people.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/WorkItemList"}}}}}}}}},"/{org_slug}/projects/{project_id}/roster":{"get":{"summary":"Named roster with allocated civil days (no emails)","operationId":"listProjectRoster","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"forward_only","in":"query","schema":{"type":"boolean","default":true}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Paged people. Display name + civil days. No emails.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RosterList"}}}}}}}}},"/{org_slug}/projects/{project_id}/labor-estimate":{"get":{"summary":"Current labor estimate receipt (null when none)","operationId":"getProjectLaborEstimate","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer"}}]},"put":{"summary":"Replace the stored estimate table. Does not change scheduled demand.","operationId":"putProjectLaborEstimate","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaborEstimate"}}}}}},"/{org_slug}/capacity/monthly":{"get":{"summary":"Org-level monthly demand vs capacity (not staffing)","description":"Apex leadership tile. Monthly demand vs capacity for Assembly, Engineering, Foremen, and Install Techs. Default window is 3 civil months back and 24 months forward, inclusive. Query start_month / end_month may narrow or are clamped to that span. Hours are numbers; months are YYYY-MM. Team names only — not project staffing, not people. Demand is the +Unscheduled layer (Flightplan default). Use /capacity/monthly/team for the Planview DvC stack.","operationId":"getMonthlyCapacity","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"Inclusive start YYYY-MM. Clamped to 3 months back."},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"Inclusive end YYYY-MM. Clamped to 24 months forward."}],"responses":{"200":{"description":"Monthly demand vs capacity. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly/exclude-rest":{"get":{"summary":"Monthly demand vs capacity with rest/pack day cutoff (not staffing)","description":"Sibling of GET /capacity/monthly. Same +Unscheduled stack and Apex omit list. Install Techs and Foremen drop Trip Rest and Truck Pack from demand for months whose start is after today + rest_exclude_after_days (default 60). Near-term months keep rest/pack. Live /capacity/monthly is unchanged. Not staffing; no people. Deprecated alias: GET /capacity/monthly-next.","operationId":"getMonthlyCapacityExcludeRest","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"Inclusive start YYYY-MM. Clamped to 3 months back."},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"Inclusive end YYYY-MM. Clamped to 24 months forward."},{"name":"rest_exclude_after_days","in":"query","schema":{"type":"integer","minimum":0,"maximum":730,"default":60},"description":"Keep Trip Rest / Truck Pack through months starting on or before today+N; drop them afterward on Install Techs and Foremen."}],"responses":{"200":{"description":"Monthly demand vs capacity with rest/pack cutoff. Not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly-next":{"get":{"summary":"Deprecated alias of /capacity/monthly/exclude-rest","description":"Identical handler to GET /capacity/monthly/exclude-rest. Prefer exclude-rest. Short-lived alias for early testers.","operationId":"getMonthlyCapacityNext","deprecated":true,"parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"rest_exclude_after_days","in":"query","schema":{"type":"integer","minimum":0,"maximum":730,"default":60}}],"responses":{"200":{"description":"Same payload as /capacity/monthly/exclude-rest.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly/staff":{"get":{"summary":"Monthly demand vs capacity, +Staff layer (not staffing)","description":"Same as GET /capacity/monthly with demand = allocated + named-person staff requests. Not sold-order staffing. Team names only.","operationId":"getMonthlyCapacityStaff","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"Monthly demand vs capacity. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly/team":{"get":{"summary":"Monthly demand vs capacity, +Team layer (Planview DvC)","description":"Same as GET /capacity/monthly with demand = allocated + staff + team pool. This matches Planview DvC. Not sold-order staffing. Team names only.","operationId":"getMonthlyCapacityTeam","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"Monthly demand vs capacity. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly/unscheduled":{"get":{"summary":"Monthly demand vs capacity, +Unscheduled layer (not staffing)","description":"Same payload as GET /capacity/monthly. Demand includes planned team work that was never scheduled. Flightplan-only; Planview DvC does not include this layer.","operationId":"getMonthlyCapacityUnscheduled","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"Monthly demand vs capacity. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvc"}}}}}}}}},"/{org_slug}/capacity/monthly/projects":{"get":{"summary":"Per-project monthly demand (Resources grid, +Unscheduled)","description":"The data behind the Resources project grid. project_id / external_id plus demand_hours per team-month. Same four groups as /capacity/monthly. Demand is the +Unscheduled layer. Not sold-order staffing. No people.","operationId":"getMonthlyCapacityProjects","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"Per-project monthly demand. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvcProjects"}}}}}}}}},"/{org_slug}/capacity/monthly/staff/projects":{"get":{"summary":"Per-project monthly demand, +Staff layer","description":"Same as GET /capacity/monthly/projects with demand = allocated + named-person staff requests. Not staffing. No people.","operationId":"getMonthlyCapacityStaffProjects"}},"/{org_slug}/capacity/monthly/team/projects":{"get":{"summary":"Per-project monthly demand, +Team layer (Planview DvC)","description":"Same as GET /capacity/monthly/projects with demand = allocated + staff + team pool. Matches the Resources grid on +Team. Not staffing. No people.","operationId":"getMonthlyCapacityTeamProjects"}},"/{org_slug}/capacity/monthly/unscheduled/projects":{"get":{"summary":"Per-project monthly demand, +Unscheduled layer","description":"Same payload as GET /capacity/monthly/projects.","operationId":"getMonthlyCapacityUnscheduledProjects"}},"/{org_slug}/projects/{project_id}/capacity/monthly":{"get":{"summary":"One project's monthly demand (Resources grid, +Unscheduled)","description":"Same shape as /capacity/monthly/projects, filtered to one job. Staffing totals stay on GET /projects/{id}/staffing.","operationId":"getProjectMonthlyCapacity","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"start_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"end_month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"Per-project monthly demand. This is not staffing.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/MonthlyDvcProjects"}}}}}}}}},"/{org_slug}/projects/{project_id}/capacity/monthly/staff":{"get":{"summary":"One project's monthly demand, +Staff layer","operationId":"getProjectMonthlyCapacityStaff"}},"/{org_slug}/projects/{project_id}/capacity/monthly/team":{"get":{"summary":"One project's monthly demand, +Team layer (Planview DvC)","operationId":"getProjectMonthlyCapacityTeam"}},"/{org_slug}/projects/{project_id}/capacity/monthly/unscheduled":{"get":{"summary":"One project's monthly demand, +Unscheduled layer","operationId":"getProjectMonthlyCapacityUnscheduled"}},"/{org_slug}/templates":{"get":{"summary":"List templates (catalog only, no WBS dump)","operationId":"listTemplates"}},"/{org_slug}/teams":{"get":{"summary":"Active teams in this org (id, name, code; no people)","operationId":"listTeams","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Active teams. No paging. bound_roles is empty until an org map exists.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicTeam"}}}}}}}}}},"/{org_slug}/archive/projects":{"get":{"summary":"Archive project catalog (if enabled)","operationId":"listArchiveProjects"}},"/{org_slug}/webhooks":{"get":{"summary":"List this key's webhook subscriptions"},"post":{"summary":"Register an HTTPS webhook"}},"/{org_slug}/webhooks/{id}":{"delete":{"summary":"Delete a webhook"}},"/{org_slug}/webhooks/{id}/test":{"post":{"summary":"Send a ping event"}},"/{org_slug}/webhooks/events":{"get":{"summary":"List event names this key may subscribe to","operationId":"listWebhookEvents","parameters":[{"name":"org_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event name list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"string"},"example":["project.created","project.updated","project.status_changed","project.deleted","project.staffing_changed"]}}}}}}}}}}}