{"openapi":"3.1.0","info":{"title":"Runn API","version":"1.0.0","description":"<p>See <a target=\"_blank\" href=\"https://help.runn.io/en/articles/8579592-api-v1-beta\" title=\"Runn API full documentation\">the full documentation and guide</a> to using the Runn API.</p><p>The domain for your API endpoint can be found in <strong>Accounts > Settings > API</strong> in your Runn application</p>"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Role":{"type":"object","required":["id","name","isArchived","defaultHourCost","standardRate","references","personIds","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"isArchived":{"type":"boolean"},"defaultHourCost":{"type":"number"},"standardRate":{"type":"number"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"personIds":{"type":"array","items":{"type":"integer"}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"SortOrder":{"type":"string","enum":["asc","desc"],"description":"Sort order: asc or desc","default":"asc"},"ClientInput":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"},"website":{"format":"url","type":"string"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}}}},"Client":{"type":"object","required":["id","name","website","isArchived","references","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"website":{"type":"string","nullable":true},"isArchived":{"type":"boolean"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ActualInput":{"type":"object","required":["date","billableMinutes","nonbillableMinutes","personId","projectId","roleId"],"properties":{"date":{"type":"string","format":"date","description":"The date this actual is for. Format: YYYY-MM-DD"},"billableMinutes":{"description":"The number of minutes that are billable. Either this or nonbillableMinutes must be set","default":0,"minimum":0,"type":"number"},"nonbillableMinutes":{"description":"The number of minutes that are non billable. Either this or billableMinutes must be set","default":0,"minimum":0,"type":"number"},"billableNote":{"description":"A note about the billable minutes","type":"string"},"nonbillableNote":{"description":"A note about the nonbillable minutes","type":"string"},"phaseId":{"description":"The phase this actual is for, if any.","type":["integer","null"]},"personId":{"description":"The person this actual is for","type":"integer"},"projectId":{"description":"The project this actual is for","type":"integer"},"roleId":{"description":"The role the person was in when for this actual","type":"integer"},"workstreamId":{"description":"The workstream the actual is for. Omitting this field matches an actual on any workstream and leaves that actual's workstream unchanged. `null` matches only an actual that has no workstream, and ignores actuals with workstreams in its filter. A value matches only an actual on that workstream, and ignores actuals on every other workstream. `workstreamId` will not update the existing actual's workstream. If nothing matches, the actual is created on the workstream you sent, or with no workstream when the field is omitted or `null`, in which case it appears under No Workstream. Where two or more actuals exist for the same date, project, person, and role on different workstreams, omitting this field updates the oldest of them. Send `workstreamId` on every request if the project uses workstreams.","type":["integer","null"]}}},"Actual":{"type":"object","required":["id","date","billableMinutes","nonbillableMinutes","billableNote","nonbillableNote","phaseId","personId","projectId","roleId","workstreamId","createdAt","updatedAt"],"properties":{"id":{"description":"The unique identifier for the actual","type":"integer"},"date":{"type":"string","format":"date","description":"The date the actual took place. Format: YYYY-MM-DD"},"billableMinutes":{"description":"The number of billable minutes for the actual","type":"number"},"nonbillableMinutes":{"description":"The number of nonbillable minutes for the actual","type":"number"},"billableNote":{"description":"A note or comment related to the billable minutes, if any.","type":["string","null"]},"nonbillableNote":{"description":"A note or comment related to the nonbillable minutes, if any.","type":["string","null"]},"phaseId":{"description":"The ID referencing the phase of the actual, if applicable.","type":["integer","null"]},"personId":{"description":"The ID referencing the person associated with the actual.","type":"integer"},"projectId":{"description":"The ID referencing the project associated with the actual.","type":"integer"},"roleId":{"description":"The ID referencing the role associated with the actual.","type":"integer"},"workstreamId":{"description":"The ID referencing the workstream of the actual. `null` when the actual has no workstream, in which case it appears under No Workstream in Runn.","type":["integer","null"]},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ActualTimeEntry":{"type":"object","required":["date","billableMinutes","nonbillableMinutes","personId","projectId","roleId"],"properties":{"date":{"type":"string","format":"date","description":"The date the actual is for. Format: YYYY-MM-DD"},"billableMinutes":{"description":"The number of billable minutes to either add to a matching actual or create a new actual with","default":0,"minimum":0,"type":"number"},"billableNote":{"description":"A note about the billable minutes","type":"string"},"nonbillableNote":{"description":"A note about the nonbillable minutes","type":"string"},"nonbillableMinutes":{"description":"The number of nonbillable minutes to either add to a matching actual or create a new actual with","default":0,"minimum":0,"type":"number"},"phaseId":{"description":"The optional phase the actual is for. Leaving this undefined will not update the phase id on any existing actual. Providing `null` will clear it. Providing a value will update the phase id","type":["integer","null"]},"personId":{"description":"The person this time entry is for","type":"integer"},"projectId":{"description":"The project this time entry is for","type":"integer"},"roleId":{"description":"The role the person was in for the actual","type":"integer"},"workstreamId":{"description":"The workstream the actual is for. Omitting this field matches an actual on any workstream and leaves that actual's workstream unchanged. `null` matches only an actual that has no workstream, and ignores actuals with workstreams in its filter. A value matches only an actual on that workstream, and ignores actuals on every other workstream. `workstreamId` will not update the existing actual's workstream. If nothing matches, the actual is created on the workstream you sent, or with no workstream when the field is omitted or `null`, in which case it appears under No Workstream. Where two or more actuals exist for the same date, project, person, and role on different workstreams, omitting this field updates the oldest of them. Send `workstreamId` on every request if the project uses workstreams.","type":["integer","null"]}}},"Assignment":{"type":"object","required":["id","personId","startDate","endDate","projectId","minutesPerDay","roleId","isActive","note","isBillable","phaseId","isNonWorkingDay","isTemplate","isPlaceholder","workstreamId","createdAt","updatedAt"],"properties":{"id":{"description":"The unique identifier for the assignment.","type":"integer"},"personId":{"description":"id referencing the person associated with the assignment.","type":"integer"},"startDate":{"type":"string","format":"date","description":"The start date of the assignment. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"The end date of the assignment. Format: YYYY-MM-DD"},"projectId":{"description":"The ID referencing the project to which the assignment belongs.","type":"integer"},"minutesPerDay":{"description":"The number of minutes allocated to the assignment per day.","type":"integer"},"roleId":{"description":"The ID referencing the role associated with the assignment.","type":"integer"},"isActive":{"description":"A flag indicating whether the assignment is currently active. (Deprecated. Assignments are always hard delete so are now always active).","deprecated":true,"type":"boolean"},"note":{"type":"string","nullable":true},"isBillable":{"description":"A flag indicating whether the assignment is billable.","type":"boolean"},"phaseId":{"type":"integer","nullable":true},"isNonWorkingDay":{"description":"A flag indicating if the assignment falls on a non-working day.","type":"boolean"},"isTemplate":{"description":"A flag indicating if the assignment is a template.","type":"boolean"},"isPlaceholder":{"description":"A flag indicating if the assignment's person is a placeholder.","type":"boolean"},"workstreamId":{"type":["integer","null"]},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"BadRequest":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Bad Request"]},"message":{"type":"string"},"statusCode":{"type":"number","enum":[400]}}},"CollectionPerson":{"type":"object","required":["id","firstName","lastName","email","isArchived","teamId","references","tags","holidaysGroupId","managers","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","nullable":true},"isArchived":{"type":"boolean"},"teamId":{"type":["integer","null"]},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"holidaysGroupId":{"type":"integer","nullable":true},"managers":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"description":"The ID referencing the user managing the person.","type":"integer"}}}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"Competency":{"type":"object","required":["skillId","createdAt","updatedAt"],"properties":{"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]},"skillId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"Conflict":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Conflict"]},"message":{"type":"string"},"statusCode":{"type":"number","enum":[409]}}},"ContractInput":{"type":"object","required":["roleId"],"properties":{"roleId":{"type":"integer"},"startDate":{"type":"string","format":"date","description":"Defaults to today. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"},"employmentType":{"type":"string","enum":["employee","contractor"],"description":"The type of employment for the contract.","default":"employee"},"costPerHour":{"description":"Defaults to the role's cost per hour","type":"number"},"minutesPerDay":{"minimum":1,"description":"Defaults to the account's default minutes per day","type":"number"},"rosteredDays":{"description":"Every value must be the same as minutesPerDay or 0.","type":"object","required":["monday","tuesday","wednesday","thursday","friday"],"properties":{"monday":{"type":"number"},"tuesday":{"type":"number"},"wednesday":{"type":"number"},"thursday":{"type":"number"},"friday":{"type":"number"}}},"jobTitle":{"description":"This feature is currently hidden, and can not be seen in the app","type":"string"}}},"Contract":{"type":"object","required":["id","costPerHour","employmentType","minutesPerDay","rosteredDays","startDate","endDate","roleId","personId","jobTitle","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"costPerHour":{"type":["number","null"]},"employmentType":{"type":"string"},"minutesPerDay":{"type":["number","null"]},"rosteredDays":{"$ref":"#/components/schemas/RosteredDays"},"startDate":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"},"endDate":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"},"roleId":{"type":"integer"},"personId":{"type":"integer"},"jobTitle":{"description":"This feature is currently hidden, and can not be seen in the app","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"CustomFieldCheckbox":{"type":"object","required":["id","name","description","model","required","showInPlanner","sortOrder","filterableInPlanner"],"properties":{"id":{"description":"Unique identifier for the custom field checkbox","type":"integer"},"name":{"description":"Display name for the custom field checkbox","type":"string"},"description":{"type":"string","nullable":true},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"description":"Whether or not the checkbox is a required field","type":"boolean"},"showInPlanner":{"description":"Whether or not the custom field checkbox is shown in the project or person planner in the app UI","type":"boolean"},"sortOrder":{"description":"The sort order of the custom field checkbox","type":"integer"},"filterableInPlanner":{"description":"Whether or not the custom field checkbox is filterable in the project or person planner in the app UI","type":"boolean"}}},"CustomFieldDate":{"type":"object","required":["id","name","description","model","required","showInPlanner","sortOrder","filterableInPlanner"],"properties":{"id":{"description":"Unique identifier for the custom field date","type":"integer"},"name":{"description":"Display name for the custom field date","type":"string"},"description":{"description":"Description for the custom field date","type":["string","null"]},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"description":"Whether or not the date is a required field","type":"boolean"},"showInPlanner":{"description":"Whether or not the custom field date is shown in the project or person planner in the app UI","type":"boolean"},"sortOrder":{"description":"The sort order of the custom field date","type":"integer"},"filterableInPlanner":{"description":"Whether or not the custom field select is filterable in the project or person planner in the app UI","type":"boolean"}}},"CustomFieldSelect":{"type":"object","required":["id","name","description","model","options","singleSelect","required","showInPlanner","sortOrder","filterableInPlanner"],"properties":{"id":{"description":"Unique identifier for the custom field select","type":"integer"},"name":{"description":"Display name for the custom field select","type":"string"},"description":{"type":"string","nullable":true},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"options":{"description":"All selectable options","type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"description":"Unique identifier for the select option","type":"integer"},"name":{"description":"Display name for the select option","type":"string"}}}},"singleSelect":{"description":"Whether this select is a single or multi select","type":"boolean"},"required":{"description":"Whether or not the select is a required field","type":"boolean"},"showInPlanner":{"description":"Whether or not the custom field select is shown in the project or person planner in the app UI","type":"boolean"},"sortOrder":{"description":"The sort order of the custom field select","type":"integer"},"filterableInPlanner":{"description":"Whether or not the custom field select is filterable in the project or person planner in the app UI","type":"boolean"}}},"CustomFieldText":{"type":"object","required":["id","name","description","model","required","showInPlanner","sortOrder","filterableInPlanner"],"properties":{"id":{"description":"Unique identifier for the custom field text","type":"integer"},"name":{"description":"Display name for the custom field text","type":"string"},"description":{"type":"string","nullable":true},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"description":"Whether or not the text is a required field","type":"boolean"},"showInPlanner":{"description":"Whether or not the custom field text is shown in the project or person planner in the app UI","type":"boolean"},"sortOrder":{"description":"The sort order of the custom field text","type":"integer"},"filterableInPlanner":{"description":"Whether or not the custom field text is filterable in the project or person planner in the app UI","type":"boolean"}}},"Milestone":{"type":"object","required":["id","title","icon","date","projectId","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"title":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"date":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"},"projectId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ModifiedAfter":{"description":"If provided, will only return objects modified after this timestamp. Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ.","anyOf":[{"format":"date","type":"string"},{"format":"date-time","type":"string"}]},"NotFound":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Not Found"]},"message":{"type":"string"},"statusCode":{"type":"number","enum":[404]}}},"PersonRequest":{"type":"object","required":["id","personId","projectId","status","requesterId","updaterId","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"personId":{"description":"The ID of the placeholder associated with this request","type":"integer"},"projectId":{"type":"integer"},"status":{"type":"string","enum":["NEED_TO_HIRE","REQUESTED","PENDING"]},"requesterId":{"description":"The ID of the user who requested this person","type":["integer","null"]},"updaterId":{"description":"The ID of the user who last updated this request","type":["integer","null"]},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"Person":{"type":"object","required":["id","firstName","lastName","email","isArchived","references","notes","teamId","tags","skills","holidaysGroupId","customFields","managers","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","nullable":true},"isArchived":{"type":"boolean"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"notes":{"type":"array","items":{"type":"object","required":["id","note","createdBy"],"properties":{"id":{"type":"integer"},"note":{"type":"string"},"createdBy":{"type":"string"}}}},"teamId":{"type":["integer","null"]},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"skills":{"type":"array","items":{"type":"object","required":["id","level"],"properties":{"id":{"type":"integer"},"level":{"type":"integer","nullable":true}}}},"holidaysGroupId":{"type":"integer","nullable":true},"customFields":{"type":"object","required":["select","text","checkbox","date"],"properties":{"select":{"type":"array","items":{"type":"object","required":["id","name","values"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"values":{"type":"array","items":{"type":"object","required":["name","id"],"properties":{"name":{"type":"string"},"id":{"type":"integer"}}}}}}},"text":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":"string"}}}},"checkbox":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":"boolean"}}}},"date":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"managers":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"description":"The ID referencing the user managing the person.","type":"integer"}}}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"PersonCompetency":{"type":"object","allOf":[{"type":"object","required":["personId"],"properties":{"personId":{"type":"integer"}}},{"type":"object","required":["skillId","createdAt","updatedAt"],"properties":{"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]},"skillId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}]},"PersonNote":{"type":"object","required":["id","createdBy","createdByEmail","note","personId","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"createdBy":{"type":"string","nullable":true},"createdByEmail":{"type":"string","nullable":true},"note":{"type":"string"},"personId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ProjectPhase":{"title":"Project Phase","description":"Project phases divide your project into smaller sections so you can group similar tasks and assignments together.","type":"object","required":["id","name","color","startDate","endDate","updatedAt","createdAt","projectId","budget"],"properties":{"id":{"description":"Unique identifier for the phase","type":"integer"},"name":{"description":"The name of the project phase","type":"string"},"color":{"description":"Color of the project phase (hex code)","type":"string"},"startDate":{"type":"string","format":"date","description":"Start date of the project phase in ISO 8601 format"},"endDate":{"type":"string","format":"date","description":"End date of the phase in ISO 8601 format"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"projectId":{"description":"The project the phase is associated with.","type":"integer"},"budget":{"description":"The budget for the phase. This is returned when the project's budget method is set to 'PHASE' or 'PHASE_AND_ROLE', and is null when it is set to 'ROLE'. Note: for 'PHASE_AND_ROLE' the budget is derived from role estimates and rates held on related records, so it can change without updating the phase's `updatedAt` and is therefore not picked up by the `modifiedAfter` filter.","type":["number","null"]}}},"PhaseRescheduleResult":{"title":"Phase Reschedule Result","description":"The phase at its new dates, plus how many of its assignments moved with it.","allOf":[{"$ref":"#/components/schemas/ProjectPhase"},{"type":"object","required":["movedAssignmentCount","skippedAssignmentCount"],"properties":{"movedAssignmentCount":{"minimum":0,"description":"Number of the phase's assignments whose dates were changed by this request. Zero when the phase was already on the requested dates.","type":"integer"},"skippedAssignmentCount":{"minimum":0,"description":"Number of the phase's assignments left on their existing dates because they are marked as non-working days. Zero when the phase was already on the requested dates. Actuals are never counted here, and are never moved.","type":"integer"}}}]},"Placeholder":{"type":"object","required":["id","firstName","lastName","isArchived","tags","references","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"isArchived":{"type":"boolean"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"PlaceholderInput":{"type":"object","required":["id","firstName","lastName","costPerHour","roleId","teamId","tags"],"properties":{"id":{"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"costPerHour":{"type":"number"},"roleId":{"type":"integer"},"teamId":{"type":"integer","nullable":true},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}},"ProjectBudgetRole":{"description":"Project budget role","type":"object","required":["projectId","roleId","estimatedMinutes","estimatedBudget","createdAt","updatedAt"],"properties":{"projectId":{"type":"integer"},"roleId":{"type":"integer"},"estimatedMinutes":{"description":"Estimated Minutes: The total number of minutes budgeted for a role on a project.","type":"integer"},"estimatedBudget":{"description":"The budget in local currency. This value is calculated live and rounded using ROUND_HALF_UP. estimatedBudget = estimatedMinutes / 60 * projectRateMinute","type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ProjectNote":{"type":"object","required":["id","createdBy","createdByEmail","note","projectId","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"createdBy":{"type":"string","nullable":true},"createdByEmail":{"type":"string","nullable":true},"note":{"type":"string"},"projectId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ProjectOtherExpense":{"title":"Project Other Expense","description":"A non-labour expense for a project.","type":"object","required":["id","cost","charge","name","date","updatedAt","createdAt","projectId"],"properties":{"id":{"description":"Unique identifier for the other expense.","readOnly":true,"type":"integer"},"cost":{"minimum":0,"description":"How much the item costs for your business (in your account's currency).","type":"number"},"charge":{"minimum":0,"description":"How much you are charging your clients for the item (in your account's currency).","type":"number"},"name":{"minLength":1,"description":"The item or service that was purchased.","type":"string"},"date":{"type":"string","format":"date","description":"The date the expense was incurred."},"updatedAt":{"type":"string","format":"date-time","description":"The date the expense was last updated."},"createdAt":{"type":"string","format":"date-time","description":"The date the expense was created."},"projectId":{"description":"The project the expense is associated with.","type":"integer"}}},"ProjectRate":{"type":"object","required":["id","projectId","roleId","rate","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"projectId":{"type":"integer"},"roleId":{"type":"integer"},"rate":{"type":"number"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"Project":{"type":"object","required":["id","name","isTemplate","isArchived","isConfirmed","pricingModel","rateType","budgetMethod","teamId","budget","expensesBudget","references","clientId","rateCardId","customFields","managerIds","tags","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"isTemplate":{"type":"boolean"},"isArchived":{"type":"boolean"},"isConfirmed":{"type":"boolean"},"pricingModel":{"type":"string","enum":["fp","tm","nb"]},"rateType":{"type":"string","enum":["hours","days"]},"budgetMethod":{"type":"string","enum":["ROLE","PHASE","PHASE_AND_ROLE"],"description":"How the project budget is structured. One of ROLE, PHASE, or PHASE_AND_ROLE."},"teamId":{"type":"integer","nullable":true},"budget":{"type":["number","null"]},"expensesBudget":{"type":["number","null"]},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"clientId":{"type":"integer"},"rateCardId":{"type":"integer"},"customFields":{"type":"object","required":["select","text","checkbox","date"],"properties":{"select":{"type":"array","items":{"type":"object","required":["id","name","values"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"values":{"type":"array","items":{"type":"object","required":["name","id"],"properties":{"name":{"type":"string"},"id":{"type":"integer"}}}}}}},"text":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":"string"}}}},"checkbox":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":"boolean"}}}},"date":{"type":"array","items":{"type":"object","required":["id","name","value"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"managerIds":{"type":"array","items":{"type":"integer"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"Reference":{"type":"object","required":["referenceName","externalId"],"properties":{"referenceName":{"minLength":1,"type":"string"},"externalId":{"minLength":1,"type":"string"}}},"RosteredDays":{"description":"Shows minutes per day working.","type":"object","required":["monday","tuesday","wednesday","thursday","friday"],"properties":{"monday":{"type":"number"},"tuesday":{"type":"number"},"wednesday":{"type":"number"},"thursday":{"type":"number"},"friday":{"type":"number"}}},"Tag":{"type":"object","required":["id","name"],"properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"Team":{"type":"object","required":["id","name","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"TimeOffLeaveInput":{"type":"object","required":["personId","startDate","endDate"],"properties":{"personId":{"description":"The unique identifier for the person.","type":"integer"},"startDate":{"type":"string","format":"date","description":"The start date of the time-off. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"The end date of the time-off. Format: YYYY-MM-DD"},"note":{"description":"A note or comment related to the time-off, if any.","type":"string"},"minutesPerDay":{"description":"The minutes per day taken as time off. Omit this property if time-off is for full day(s) as per person's contract.","minimum":15,"type":["integer","null"]}}},"TimeOff":{"type":"object","required":["id","personId","startDate","endDate","note","createdAt","updatedAt","minutesPerDay"],"properties":{"id":{"description":"The unique identifier for the assignment.","type":"integer"},"personId":{"description":"The identifier referencing the person associated with the time-off.","type":"integer"},"startDate":{"type":"string","format":"date","description":"The start date of the time-off. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"The end date of the time-off. Format: YYYY-MM-DD"},"note":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."},"minutesPerDay":{"type":"integer","nullable":true}}},"Unauthorized":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Unauthorized"]},"message":{"type":"string","enum":["Unauthorized"]},"statusCode":{"type":"number","enum":[401]}}},"UnprocessableEntity":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Unprocessable Entity"]},"message":{"type":"string"},"statusCode":{"type":"number","enum":[422]}}},"Workstream":{"type":"object","required":["id","name","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"CustomTextFieldCollection":{"type":"object","required":["name","type","customTextId","value"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["text"]},"customTextId":{"type":"integer"},"value":{"type":["string","null"]}}},"CustomSelectFieldCollection":{"type":"object","required":["name","type","customSelectId","value"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["select"]},"customSelectId":{"type":"integer"},"value":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"integer"},"name":{"type":"string"}}}}}},"CustomCheckboxFieldCollection":{"type":"object","required":["name","type","customCheckboxId","value"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["checkbox"]},"customCheckboxId":{"type":"integer"},"value":{"type":"boolean"}}},"CustomDateFieldCollection":{"type":"object","required":["name","type","customDateId","value"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["date"]},"customDateId":{"type":"integer"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}},"PersonCustomField":{"type":"object","required":["personId","customFields","createdAt","updatedAt"],"properties":{"personId":{"type":"integer"},"customFields":{"type":"array","items":{"discriminator":{"propertyName":"type","mapping":{"text":"#/components/schemas/CustomTextFieldCollection","date":"#/components/schemas/CustomDateFieldCollection","checkbox":"#/components/schemas/CustomCheckboxFieldCollection","select":"#/components/schemas/CustomSelectFieldCollection"}},"anyOf":[{"$ref":"#/components/schemas/CustomTextFieldCollection"},{"$ref":"#/components/schemas/CustomDateFieldCollection"},{"$ref":"#/components/schemas/CustomCheckboxFieldCollection"},{"$ref":"#/components/schemas/CustomSelectFieldCollection"}]}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ProjectCustomField":{"type":"object","required":["projectId","customFields","createdAt","updatedAt"],"properties":{"projectId":{"type":"integer"},"customFields":{"type":"array","items":{"discriminator":{"propertyName":"type","mapping":{"text":"#/components/schemas/CustomTextFieldCollection","date":"#/components/schemas/CustomDateFieldCollection","checkbox":"#/components/schemas/CustomCheckboxFieldCollection","select":"#/components/schemas/CustomSelectFieldCollection"}},"anyOf":[{"$ref":"#/components/schemas/CustomTextFieldCollection"},{"$ref":"#/components/schemas/CustomDateFieldCollection"},{"$ref":"#/components/schemas/CustomCheckboxFieldCollection"},{"$ref":"#/components/schemas/CustomSelectFieldCollection"}]}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ActorRunnSupport":{"title":"Runn Support Actor","description":"The Runn Support actor represents an action performed by the Runn supprt team. If you have questions about actions performed by the Runn support team, please contact the Runn team.","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["runn_support"]}}},"ActorUser":{"title":"User Actor","description":"The user actor represents a user. This usually means a user who interacted with the web application.","type":"object","required":["type","userId"],"properties":{"type":{"type":"string","enum":["user"]},"userId":{"type":"integer"},"userEmail":{"type":"string"}}},"ActorApi":{"title":"API Actor","description":"The api actor represents an action performed by an api key.","type":"object","required":["type","tokenId","tokenName","apiVersion"],"properties":{"type":{"type":"string","enum":["api"]},"tokenId":{"description":"The id of the api key.","type":"integer"},"tokenName":{"description":"The name of the api key.","type":"string"},"apiVersion":{"description":"The api version.","type":"string"}}},"ActorCsv":{"title":"CSV Actor","description":"The csv actor represents an action performed by a csv file upload.","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["csv"]},"userId":{"description":"The id of the user who uploaded the csv file.","type":"integer"},"userEmail":{"description":"The email of the user who uploaded the csv file.","type":"string"}}},"ActorIntegration":{"title":"Integration Actor","description":"The integration actor represents an action performed by an integration with a third-party service.","type":"object","required":["type","id","name"],"properties":{"type":{"type":"string","enum":["integration"]},"id":{"description":"The id of the integration.","type":"integer"},"name":{"description":"The name of the integration.","type":"string"}}},"ActorSystem":{"title":"System Actor","description":"The system actor represents an action performed by the system, such as a scheduled task, migration, or other automated process. Some actions may not have a specific actor and will default to the system actor.","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["system"]}}},"Actor":{"discriminator":{"propertyName":"type","mapping":{"runn_support":"#/components/schemas/ActorRunnSupport","user":"#/components/schemas/ActorUser","api":"#/components/schemas/ActorApi","csv":"#/components/schemas/ActorCsv","integration":"#/components/schemas/ActorIntegration","system":"#/components/schemas/ActorSystem"}},"title":"Actor","description":"An actor represents an entity that can perform actions such as a user, api key, or system process. Each actor type has a unique set of properties. The `type` property is used to determine the actor type.","anyOf":[{"$ref":"#/components/schemas/ActorRunnSupport"},{"$ref":"#/components/schemas/ActorUser"},{"$ref":"#/components/schemas/ActorApi"},{"$ref":"#/components/schemas/ActorCsv"},{"$ref":"#/components/schemas/ActorIntegration"},{"$ref":"#/components/schemas/ActorSystem"}]},"Event.Subresource.Person":{"title":"Person Event Subresource","description":"A subset of details about the person used on an event","type":"object","required":["id","firstName","lastName","email","isPlaceholder"],"properties":{"id":{"description":"The unique identifier of the person","type":"integer"},"firstName":{"description":"The first name of the person","type":"string"},"lastName":{"description":"The last name of the person","type":"string"},"email":{"description":"The email address of the person","examples":["user@example.com"],"type":["string","null"]},"isPlaceholder":{"description":"A flag indicating if the person is a placeholder","type":"boolean"}}},"Event.Subresource.Project":{"title":"Project Event Subresource","description":"A subset of details about the project used on an event","type":"object","required":["id","name"],"properties":{"id":{"description":"The unique identifier of the project","type":"integer"},"name":{"description":"The name of the project","type":"string"}}},"Event.Subresource.Role":{"title":"Role Event Subresource","description":"A subset of details about the role used on an event","type":"object","required":["id","name","active"],"properties":{"id":{"description":"The unique identifier of the role","type":"integer"},"name":{"description":"The name of the role","type":"string"},"active":{"description":"Whether the role is active","type":"boolean"}}},"Event.Subresource.Phase":{"title":"Phase Event Subresource","description":"A subset of details about the phase used on an event","type":"object","required":["id","name"],"properties":{"id":{"description":"The unique identifier of the phase","type":"integer"},"name":{"description":"The name of the phase","type":"string"}}},"Event.Subresource.Workstream":{"title":"Workstream Event Subresource","description":"A subset of details about the workstream used on an event","type":"object","required":["id","name"],"properties":{"id":{"description":"The unique identifier of the workstream","type":"integer"},"name":{"description":"The name of the workstream","type":"string"}}},"Event.ActualDeleted":{"title":"Actual Deleted Event","description":"An actual was deleted.","type":"object","required":["eventId","type","actor","timestamp","actual"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["actual_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"actual":{"description":"Details about the actual that was deleted.","type":"object","required":["id","date","personId","roleId","projectId","phaseId","workstreamId","billableMinutes","nonbillableMinutes","billableNote","nonbillableNote","person","role","project","workstream"],"properties":{"id":{"description":"The id of the actual at the time it was deleted.","type":"integer"},"date":{"description":"The date of the actual at the time it was deleted.","type":"string"},"personId":{"description":"The id of the person associated with the actual.","type":"integer"},"roleId":{"description":"The id of the role associated with the actual.","type":"integer"},"projectId":{"description":"The id of the project associated with the actual.","type":"integer"},"phaseId":{"description":"The id referencing the phase of the actual, if applicable.","type":["integer","null"]},"workstreamId":{"description":"The id of the workstream associated with the actual.","type":["integer","null"]},"billableMinutes":{"description":"The number of billable minutes for the actual","type":"number"},"nonbillableMinutes":{"description":"The number of nonbillable minutes for the actual","type":"number"},"billableNote":{"description":"A note or comment related to the billable minutes, if any.","type":["string","null"]},"nonbillableNote":{"description":"A note or comment related to the nonbillable minutes, if any.","type":["string","null"]},"person":{"$ref":"#/components/schemas/Event.Subresource.Person","nullable":true},"role":{"$ref":"#/components/schemas/Event.Subresource.Role","nullable":true},"project":{"$ref":"#/components/schemas/Event.Subresource.Project","nullable":true},"workstream":{"$ref":"#/components/schemas/Event.Subresource.Workstream","nullable":true}}}}},"Event.ContractDeleted":{"title":"Contract Deleted Event","description":"A contract was deleted.","type":"object","required":["eventId","type","actor","timestamp","contract"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["contract_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"contract":{"type":"object","required":["id","personId","roleId","startDate","endDate","person","role"],"properties":{"id":{"description":"The unique identifier of the contract.","type":"integer"},"personId":{"description":"The unique identifier of the person associated with the contract.","type":"integer"},"roleId":{"description":"The unique identifier of the role associated with the contract.","type":"integer"},"startDate":{"description":"The start date of the contract.","format":"date","type":"string"},"endDate":{"format":"date","description":"The end date of the contract. If the contract was ongoing, this field will be null.","type":["string","null"]},"person":{"$ref":"#/components/schemas/Event.Subresource.Person","nullable":true},"role":{"$ref":"#/components/schemas/Event.Subresource.Role","nullable":true}}}}},"Event.PersonDeleted":{"title":"Person Deleted Event","description":"A person was deleted.","type":"object","required":["eventId","type","actor","timestamp","person"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["person_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"person":{"description":"Details about the person that was deleted.","type":"object","required":["id","email","firstName","lastName"],"properties":{"id":{"description":"The id of the person at the time they were deleted.","type":"integer"},"email":{"description":"The email of the person at the time they were deleted.","type":"string","nullable":true},"firstName":{"description":"The first name of the person at the time they were deleted.","type":"string"},"lastName":{"description":"The last name of the person at the time they were deleted.","type":"string"}}}}},"Event.ProjectDeleted":{"title":"Project Deleted Event","description":"A project was deleted.","type":"object","required":["eventId","type","actor","timestamp","project"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["project_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"project":{"description":"Details about the project that was deleted.","type":"object","required":["id","name"],"properties":{"id":{"description":"The id of the project at the time it was deleted.","type":"integer"},"name":{"description":"The name of the project at the time it was deleted.","type":"string"}}}}},"Event.TimeOffDeleted":{"title":"Time Off Deleted Event","description":"A time off was deleted.","type":"object","required":["eventId","type","actor","timestamp","timeOff"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["time_off_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"timeOff":{"type":"object","required":["id","personId","startDate","endDate","note","minutesPerDay","person"],"properties":{"id":{"description":"The unique identifier for the time-off.","type":"integer"},"personId":{"description":"The identifier referencing the person associated with the time-off.","type":"integer"},"startDate":{"format":"date","description":"The start date of the time-off.","type":"string"},"endDate":{"format":"date","description":"The end date of the time-off.","type":"string"},"note":{"type":"string","nullable":true},"minutesPerDay":{"type":"integer","nullable":true},"person":{"$ref":"#/components/schemas/Event.Subresource.Person","nullable":true}}}}},"Event.AssignmentDeleted":{"title":"Assignment Deleted Event","description":"An assignment was deleted.","type":"object","required":["eventId","type","actor","timestamp","assignment"],"properties":{"eventId":{"type":"string"},"type":{"description":"The unique type of the event","type":"string","enum":["assignment_deleted"]},"actor":{"$ref":"#/components/schemas/Actor"},"timestamp":{"type":"string","format":"date-time","description":"The time the event occurred in ISO8601 format."},"assignment":{"description":"Details about the assignment that was deleted.","type":"object","required":["id","personId","startDate","endDate","projectId","minutesPerDay","roleId","isActive","note","isBillable","phaseId","isNonWorkingDay","isTemplate","workstreamId","project","person","role","phase","workstream"],"properties":{"id":{"description":"The unique identifier of the assignment.","type":"integer"},"personId":{"description":"The unique identifier of the person associated with the assignment.","type":"integer"},"startDate":{"format":"date","description":"The start date of the assignment. Format: YYYY-MM-DD","type":"string"},"endDate":{"format":"date","description":"The end date of the assignment. Format: YYYY-MM-DD","type":"string"},"projectId":{"description":"The ID referencing the project to which the assignment belongs.","type":"integer"},"minutesPerDay":{"description":"The number of minutes allocated to the assignment per day.","type":"integer"},"roleId":{"description":"The unique identifier of the role associated with the assignment.","type":"integer"},"isActive":{"description":"A flag indicating whether the assignment is currently active.","type":"boolean"},"note":{"type":"string","nullable":true},"isBillable":{"description":"A flag indicating whether the assignment is billable.","type":"boolean"},"phaseId":{"type":"integer","nullable":true},"isNonWorkingDay":{"description":"A flag indicating if the assignment falls on a non-working day.","type":"boolean"},"isTemplate":{"description":"A flag indicating if the assignment is a template.","type":"boolean"},"workstreamId":{"type":"integer","nullable":true},"project":{"$ref":"#/components/schemas/Event.Subresource.Project","nullable":true},"person":{"$ref":"#/components/schemas/Event.Subresource.Person","nullable":true},"role":{"$ref":"#/components/schemas/Event.Subresource.Role","nullable":true},"phase":{"$ref":"#/components/schemas/Event.Subresource.Phase","nullable":true},"workstream":{"$ref":"#/components/schemas/Event.Subresource.Workstream","nullable":true}}}}},"Event":{"discriminator":{"propertyName":"type","mapping":{"project_deleted":"#/components/schemas/Event.ProjectDeleted","person_deleted":"#/components/schemas/Event.PersonDeleted","contract_deleted":"#/components/schemas/Event.ContractDeleted","actual_deleted":"#/components/schemas/Event.ActualDeleted","time_off_deleted":"#/components/schemas/Event.TimeOffDeleted","assignment_deleted":"#/components/schemas/Event.AssignmentDeleted"}},"title":"Event","description":"An event represents an action that occurred.       Every event has a `type`, `actor`, and `timestamp` property.       Use the `type` property to determine which event occurred.","anyOf":[{"$ref":"#/components/schemas/Event.ProjectDeleted"},{"$ref":"#/components/schemas/Event.PersonDeleted"},{"$ref":"#/components/schemas/Event.ContractDeleted"},{"$ref":"#/components/schemas/Event.ActualDeleted"},{"$ref":"#/components/schemas/Event.TimeOffDeleted"},{"$ref":"#/components/schemas/Event.AssignmentDeleted"}]},"HolidayGroup":{"type":"object","required":["id","name","countryCode","countryName","regionName","holidayIds"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"countryCode":{"type":"string"},"countryName":{"type":"string","nullable":true},"regionName":{"type":"string","nullable":true},"holidayIds":{"type":"array","items":{"type":"integer"}}}},"Holiday":{"type":"object","required":["id","name","date","observed","type"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"date":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"},"observed":{"type":"string","format":"date","description":"Format: YYYY-MM-DD","nullable":true},"type":{"type":"string"}}},"Invitation":{"type":"object","required":["id","email","userType","financialPermission","editProjectsPermission","editOthersPermission","manageProjectsPermission","managePeoplePermission","manageAccountPermission","addAllPeopleToProjectsPermission","viewPlannerPermission","peopleTeams","createdAt","sentAt","expiresAt"],"properties":{"id":{"description":"Unique identifier for the invitation.","type":"integer"},"email":{"description":"Email for the invitation.","type":"string"},"userType":{"type":"string","enum":["admin","editor","viewer_all","viewer_basic","timesheet_only","manager","contributor"],"description":"Permission level"},"financialPermission":{"type":"string","enum":["all","no_salaries","restricted","none"],"description":"Financial permission level"},"editProjectsPermission":{"type":"string","enum":["all","specific","restricted","none"],"deprecated":true,"description":"Edit projects permission level (deprecated: use manageProjectsPermission)"},"editOthersPermission":{"type":"string","enum":["all","none"],"deprecated":true,"description":"Edit others permission level (deprecated: use managePeoplePermission)"},"manageProjectsPermission":{"type":"string","enum":["all","specific","restricted","none"],"description":"Manage projects permission level"},"managePeoplePermission":{"type":"string","enum":["all","restricted","none"],"description":"Manage people permission level"},"manageAccountPermission":{"description":"Manage account permission level","type":"boolean"},"addAllPeopleToProjectsPermission":{"description":"Add all people to projects permission level","type":"boolean"},"viewPlannerPermission":{"description":"View planner permission level","type":"boolean"},"peopleTeams":{"description":"Teams staged for this invitation; they become people-management grants when the invitation is accepted. Always returned; empty when none were requested.","type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"sentAt":{"type":"string","format":"date-time","description":"Date and time when the invitation was last sent"},"expiresAt":{"type":"string","format":"date-time","description":"Date and time when the invitation expires"}}},"ProjectTag":{"type":"object","required":["id","name","projectIds","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"projectIds":{"type":"array","items":{"type":"integer"}},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ProjectWorkstream":{"type":"object","required":["id","name","archived","projectIds"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"projectIds":{"type":"array","items":{"type":"integer"}}}},"RateCard":{"type":"object","required":["id","name","description","isArchived","references","isBlendedRateCard","blendedRate","rateType","projectIds","rates","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"isArchived":{"type":"boolean"},"references":{"type":"array","items":{"type":"object","required":["referenceName","externalId"],"properties":{"referenceName":{"type":"string"},"externalId":{"type":"string"}}}},"isBlendedRateCard":{"type":"boolean"},"blendedRate":{"type":"number","nullable":true},"rateType":{"type":"string","enum":["hours","days"],"nullable":true},"projectIds":{"type":"array","items":{"type":"integer"}},"rates":{"type":"array","items":{"type":"object","required":["role","rateHourly","rateDaily"],"properties":{"role":{"type":"object","required":["id","name"],"properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"rateHourly":{"type":"number"},"rateDaily":{"type":"number"}}}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"ReportsHoursPeople":{"type":"object","required":["date","roleId","projectId","personId","workstreamId","phaseId","billableMinutes","nonBillableMinutes","totalMinutes","assignments","actuals"],"properties":{"date":{"type":"string","format":"date","description":"The date of the entry. Multi-day assignments will get split over multiple days. Format: YYYY-MM-DD"},"roleId":{"description":"The project-specific role for the associated person","type":"integer"},"projectId":{"description":"The project related to this entry","type":"integer"},"personId":{"description":"The person for this entry","type":"integer"},"workstreamId":{"description":"The workstream for this entry","type":"integer","nullable":true},"phaseId":{"description":"Associated phase (using actual phase, and falling back to assignment phase)","type":"integer","nullable":true},"billableMinutes":{"description":"Billable minutes for this day. Returns Actual minutes where it exists, otherwise returns Assignment minutes.","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this day. Returns Actual minutes where it exists, otherwise returns Assignment minutes.","type":"integer"},"totalMinutes":{"description":"Total minutes for this day (sum of billable and non-billable)","type":"integer"},"assignments":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes","phaseId"],"properties":{"billableMinutes":{"description":"Billable minutes for this assignment","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this assignment","type":"integer"},"totalMinutes":{"description":"Total billable and non-billable minutes for this assignment","type":"integer"},"phaseId":{"description":"Associated phase","type":"integer","nullable":true}}},"actuals":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes","phaseId"],"properties":{"billableMinutes":{"description":"Billable minutes for this actual","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this actual","type":"integer"},"totalMinutes":{"description":"Total billable and non-billable minutes for this actual","type":"integer"},"phaseId":{"description":"Associated phase","type":"integer","nullable":true}}}}},"ReportsHoursProjects":{"type":"object","required":["date","roleId","personId","projectId","workstreamId","phaseId","billableMinutes","nonBillableMinutes","totalMinutes","assignments","actuals"],"properties":{"date":{"type":"string","format":"date","description":"The date of the entry. Multi-day assignments will get split over multiple days. Format: YYYY-MM-DD"},"roleId":{"description":"The project-specific role for the associated person","type":"integer"},"personId":{"description":"The person related to this entry","type":"integer"},"projectId":{"description":"The project for this entry","type":"integer"},"workstreamId":{"description":"The workstream for this entry","type":"integer","nullable":true},"phaseId":{"description":"Associated phase (using actual phase, and falling back to assignment phase)","type":"integer","nullable":true},"billableMinutes":{"description":"Billable minutes for this day. Returns Actual minutes where it exists, otherwise returns Assignment minutes.","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this day. Returns Actual minutes where it exists, otherwise returns Assignment minutes.","type":"integer"},"totalMinutes":{"description":"Total minutes for this day (sum of billable and non-billable)","type":"integer"},"assignments":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes","phaseId"],"properties":{"billableMinutes":{"description":"Billable minutes for this assignment","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this assignment","type":"integer"},"totalMinutes":{"description":"Total billable and non-billable minutes for this assignment","type":"integer"},"phaseId":{"description":"Associated phase","type":"integer","nullable":true}}},"actuals":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes","phaseId"],"properties":{"billableMinutes":{"description":"Billable minutes for this actual","type":"integer"},"nonBillableMinutes":{"description":"Non-billable minutes for this actual","type":"integer"},"totalMinutes":{"description":"Total billable and non-billable minutes for this actual","type":"integer"},"phaseId":{"description":"Associated phase","type":"integer","nullable":true}}}}},"ProjectAggregate":{"type":"object","required":["id","billableMinutes","nonBillableMinutes","totalMinutes","assignments","actuals"],"properties":{"id":{"description":"The project identifier","type":"integer"},"billableMinutes":{"description":"Sum of billable minutes (using actuals if available, falling back to assignments)","type":"integer"},"nonBillableMinutes":{"description":"Sum of non-billable minutes (using actuals if available, falling back to assignments)","type":"integer"},"totalMinutes":{"description":"Total of the sums of billable and non-billable minutes","type":"integer"},"assignments":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes"],"properties":{"billableMinutes":{"description":"Sum of billable minutes for assignments","type":"integer"},"nonBillableMinutes":{"description":"Sum of non-billable minutes for assignments","type":"integer"},"totalMinutes":{"description":"Total of the sums of billable and non-billable minutes","type":"integer"}}},"actuals":{"type":"object","required":["billableMinutes","nonBillableMinutes","totalMinutes"],"properties":{"billableMinutes":{"description":"Sum of billable minutes for actuals","type":"integer"},"nonBillableMinutes":{"description":"Sum of non-billable minutes for actuals","type":"integer"},"totalMinutes":{"description":"Total of the sums of billable and non-billable minutes","type":"integer"}}}}},"Skill":{"type":"object","required":["id","name","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"User":{"type":"object","required":["id","firstName","lastName","email","personId","permissions","peopleTeams","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":"string"},"personId":{"type":["integer","null"]},"permissions":{"type":"object","required":["type","userType","financial","editProjects","manageProjects","editOthers","managePeople","manageAccount","addAllPeopleToProjects","viewPlanner"],"properties":{"type":{"type":"string","enum":["admin","editor","viewer_all","viewer_basic","timesheet_only"],"deprecated":true,"description":"Mapped permission type (deprecated: use userType)"},"userType":{"type":"string","enum":["admin","manager","contributor"],"description":"The user's unmapped database permission type"},"financial":{"type":"string","enum":["all","no_salaries","restricted","none"]},"editProjects":{"type":"string","enum":["all","specific","restricted","none"],"deprecated":true,"description":"Edit projects permission (deprecated: use manageProjects)"},"manageProjects":{"type":"string","enum":["all","specific","restricted","none"]},"editOthers":{"type":"string","enum":["all","none"],"deprecated":true,"description":"Edit others permission (deprecated: use managePeople)"},"managePeople":{"type":"string","enum":["all","restricted","none"]},"manageAccount":{"type":"boolean"},"addAllPeopleToProjects":{"type":"boolean"},"viewPlanner":{"type":"boolean"}}},"peopleTeams":{"description":"Teams this user manages people through when their managePeople permission is 'restricted'. Always returned; empty when they have no team grants.","type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"View":{"type":"object","required":["id","name","description","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"PersonTeam":{"type":"object","required":["id","name","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}},"PeopleTag":{"type":"object","required":["id","name","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}}},"paths":{"/activity-log/":{"get":{"operationId":"listActivityLog","summary":"List events","description":"Get a list of events that have occurred. Expand the RESPONSES (200) panel below to see supported events. Test accounts are not supported. More events will be added in the future.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"array","items":{"type":"string","enum":["project_deleted","person_deleted","contract_deleted","actual_deleted","time_off_deleted","assignment_deleted"]}},"in":"query","name":"eventType","required":false,"description":"Filter by event type, e.g. project_deleted. If not provided, all event types are returned."},{"schema":{"format":"date-time","type":"string"},"in":"query","name":"occurredAfter","required":false,"description":"Only return events that occurred after this time. ISO 8601 format."},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"in":"query","name":"orderBy","required":false,"description":"Order the events by when they occurred."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableEntity"}}}}}}},"/actuals/":{"get":{"operationId":"listActuals","summary":"List actuals","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"type":"string","format":"date"},"in":"query","name":"minDate","required":false,"description":"Start date to filter by. Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"maxDate","required":false,"description":"End date (inclusive). Format: YYYY-MM-DD"},{"schema":{"type":"integer"},"in":"query","name":"projectId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"type":"integer"},"in":"query","name":"workstreamId","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Actual"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createActual","summary":"Create or overwrite an actual","description":"Actuals are matched on date, project, person, role, and workstream. Minutes values represent the total time for the day and overwrite any previous actual with the same `date`, `projectId`, `personId`, `roleId`, and `workstreamId`. [Learn more](https://developer.runn.io/docs/actuals-notes).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualInput"}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Actual"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/actuals/time-entry":{"post":{"operationId":"createActualTimeEntry","summary":"Create or add to an existing actual","description":"Adds minutes to an existing actual. If no actual matches the date, project, person, role, and workstream, a new one is created. To overwrite the existing minutes instead of adding to them, use [Create or overwrite an actual](https://developer.runn.io/reference/post_actuals). [Learn more](https://developer.runn.io/docs/actuals-notes).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualTimeEntry"}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Actual"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/actuals/{actualId}/":{"delete":{"operationId":"deleteActual","summary":"Delete a specific actual","description":"Deletes the actual record identified by the provided unique identifier `actualId`. This operation is irreversible and removes the actual record from the system.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"actualId","required":true,"description":"Unique identifier of the actual to be deleted."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Successful deletion of the actual record."},"400":{"description":"Invalid actualId, or the actual is dated on or before the project's timesheet lock date.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"The actual record with the specified ID was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/actuals/bulk/":{"post":{"operationId":"createActualsBulk","summary":"Create or overwrite actuals in bulk","description":"Create or overwrite up to 100 'actuals' in a single API call. Each actual is matched on date, project, person, role, and workstream, and its minutes overwrite any previous actual for that combination. [Learn more](https://developer.runn.io/docs/actuals-notes).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["actuals"],"properties":{"actuals":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ActualInput"}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Actual"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BadRequest"},{"type":"array","items":{"$ref":"#/components/schemas/Actual"}}]}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/assignments/":{"post":{"operationId":"createAssignment","summary":"Create an assignment","description":"Creates a new assignment covering every working day between `startDate` and `endDate`, and returns it in an array. The same `minutesPerDay` applies to each of those days, and is never derived from the person's contract. For people, `minutesPerDay` must be between 0 and 1440; placeholders can go up to 99999999. [Learn more](https://developer.runn.io/docs/assignments).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["personId","projectId","roleId","startDate","endDate","minutesPerDay"],"properties":{"phaseId":{"description":"The phase this assignment is for, if any","type":["integer","null"]},"personId":{"description":"The person this assignment is for","type":"integer"},"projectId":{"description":"The project this assignment is for","type":"integer"},"roleId":{"description":"The role the person will be in for this assignment","type":"integer"},"startDate":{"type":"string","format":"date","description":"The date this assignment starts. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"The date this assignment ends. When using isNonWorkingDay=true, this needs to be the same as the startDate. Format: YYYY-MM-DD"},"minutesPerDay":{"description":"How many minutes per day are assigned. Must be at most 1440 (24 hours) for people and at most 99999999 for placeholders.","default":0,"minimum":0,"maximum":99999999,"type":"number"},"note":{"description":"A note about this assignment","type":"string"},"isBillable":{"description":"Whether this assignment is billable. Must be false if the project is non-billable.","default":true,"type":"boolean"},"isNonWorkingDay":{"description":"Determine whether this assignment is for a single weekend day or a single holiday. If left blank it will be set automatically","type":"boolean"},"workstreamId":{"description":"The workstream this assignment is for, if any","type":["integer","null"]}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Assignment created successfully. Returns an array containing the created assignment.","content":{"application/json":{"schema":{"description":"Assignment created successfully. Returns an array containing the created assignment.","type":"array","items":{"$ref":"#/components/schemas/Assignment"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"get":{"operationId":"listAssignments","summary":"List assignments","description":"Get a list of assignments, paginated. [Learn more](https://developer.runn.io/docs/assignments).","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"type":"integer"},"in":"query","name":"projectId","required":false},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Format: YYYY-MM-DD"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/assignments/{assignmentId}/":{"delete":{"operationId":"deleteAssignment","summary":"Delete an assignment","parameters":[{"schema":{"type":"integer"},"in":"path","name":"assignmentId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assignment"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/budget-roles/":{"get":{"operationId":"listBudgetRoles","summary":"List budget roles","description":"List all budget roles across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectBudgetRole"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/clients/":{"get":{"operationId":"listClients","summary":"List clients","parameters":[{"schema":{"type":"string"},"in":"query","name":"name","required":false,"description":"If provided, will only return clients with a name that is a substring of this value (case-insensitive)."},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createClient","summary":"Create a client","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientInput"}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/clients/{clientId}":{"get":{"operationId":"getClient","summary":"Show a client","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clientId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateClient","summary":"Update a client","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"website":{"format":"url","type":"string"},"isArchived":{"type":"boolean"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"clientId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/clients/{clientId}/projects/":{"get":{"operationId":"listClientProjects","summary":"List a client's projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeArchived","required":true},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"clientId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/clients/bulk/":{"post":{"operationId":"createClientsBulk","summary":"Create clients in bulk","description":"Create up to 100 'clients' in a single API call. [Learn more](https://developer.runn.io/docs/clients-notes).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clients"],"properties":{"clients":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ClientInput"}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Client"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/contracts/":{"get":{"operationId":"listContracts","summary":"List contracts","description":"See GET /people/{personId}/contracts to view all contracts for a specific person. See POST /people/{personId}/contracts to create a new contract for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/contracts/{contractId}":{"patch":{"operationId":"updateContract","summary":"Update a contract","description":"Update a contract","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"type":"integer"},"startDate":{"format":"date","type":"string"},"endDate":{"format":"date","type":["string","null"]},"employmentType":{"type":"string","enum":["employee","contractor"]},"costPerHour":{"type":"number"},"minutesPerDay":{"minimum":1,"type":"number"},"rosteredDays":{"type":"object","required":["monday","tuesday","wednesday","thursday","friday"],"properties":{"monday":{"type":"number"},"tuesday":{"type":"number"},"wednesday":{"type":"number"},"thursday":{"type":"number"},"friday":{"type":"number"}}},"jobTitle":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"contractId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/checkbox/":{"get":{"operationId":"listCheckboxCustomFields","summary":"List checkbox custom fields","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["PERSON","PROJECT"]},"in":"query","name":"model","required":false,"description":"The field type of the custom field"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldCheckbox"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createCheckboxCustomField","summary":"Create a checkbox custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","model","required","showInPlanner","filterableInPlanner"],"properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"default":false,"type":"boolean"},"showInPlanner":{"default":false,"type":"boolean"},"filterableInPlanner":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldCheckbox"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/custom-fields/checkbox/{checkboxFieldId}":{"patch":{"operationId":"updateCheckboxCustomField","summary":"Update a checkbox custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"showInPlanner":{"type":"boolean"},"filterableInPlanner":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"checkboxFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldCheckbox"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteCheckboxCustomField","summary":"Delete a checkbox custom field","parameters":[{"schema":{"type":"integer"},"in":"path","name":"checkboxFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/date/":{"post":{"operationId":"createDateCustomField","summary":"Create a date custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","model","required","showInPlanner","filterableInPlanner"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"default":false,"type":"boolean"},"showInPlanner":{"default":false,"type":"boolean"},"filterableInPlanner":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDate"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"get":{"operationId":"listDateCustomFields","summary":"List date custom fields","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["PERSON","PROJECT"]},"in":"query","name":"model","required":false,"description":"The field type of the custom field"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDate"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/custom-fields/date/{dateFieldId}":{"delete":{"operationId":"deleteDateCustomField","summary":"Delete a date custom field","parameters":[{"schema":{"type":"integer"},"in":"path","name":"dateFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateDateCustomField","summary":"Update a date custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"showInPlanner":{"type":"boolean"},"filterableInPlanner":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"dateFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDate"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/select/":{"post":{"operationId":"createSelectCustomField","summary":"Create a select custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","model","options","singleSelect","required","showInPlanner","filterableInPlanner"],"properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"options":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"description":"Display name for the select option","type":"string"}}}},"singleSelect":{"default":false,"type":"boolean"},"required":{"default":false,"type":"boolean"},"showInPlanner":{"default":false,"type":"boolean"},"filterableInPlanner":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldSelect"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"get":{"operationId":"listSelectCustomFields","summary":"Show a select custom field","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["PERSON","PROJECT"]},"in":"query","name":"model","required":false,"description":"The field type of the custom field"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldSelect"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/custom-fields/select/{selectFieldId}":{"patch":{"operationId":"updateSelectCustomField","summary":"Update a select custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"showInPlanner":{"type":"boolean"},"filterableInPlanner":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"selectFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldSelect"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteSelectCustomField","summary":"Delete a select custom field","parameters":[{"schema":{"type":"integer"},"in":"path","name":"selectFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/select/{selectFieldId}/options/{selectOptionId}":{"delete":{"operationId":"deleteSelectCustomFieldOption","summary":"Delete a select custom field option","parameters":[{"schema":{"type":"integer"},"in":"path","name":"selectFieldId","required":true},{"schema":{"type":"integer"},"in":"path","name":"selectOptionId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateSelectCustomFieldOption","summary":"Update a select custom field option","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"selectFieldId","required":true},{"schema":{"type":"integer"},"in":"path","name":"selectOptionId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["option"],"properties":{"option":{"type":"object","required":["id","name"],"properties":{"id":{"description":"Unique identifier for the select option","type":"integer"},"name":{"description":"Display name for the select option","type":"string"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/select/{selectFieldId}/options":{"post":{"operationId":"createSelectCustomFieldOption","summary":"Create a select custom field option","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"selectFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["option"],"properties":{"option":{"type":"object","required":["id","name"],"properties":{"id":{"description":"Unique identifier for the select option","type":"integer"},"name":{"description":"Display name for the select option","type":"string"}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/custom-fields/text/":{"post":{"operationId":"createTextCustomField","summary":"Create a text custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","model","required","showInPlanner","filterableInPlanner"],"properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"model":{"type":"string","enum":["PERSON","PROJECT"],"description":"The field type of the custom field"},"required":{"default":false,"type":"boolean"},"showInPlanner":{"default":false,"type":"boolean"},"filterableInPlanner":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldText"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"get":{"operationId":"listTextCustomFields","summary":"Show a text custom field","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["PERSON","PROJECT"]},"in":"query","name":"model","required":false,"description":"The field type of the custom field"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldText"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/custom-fields/text/{textFieldId}":{"delete":{"operationId":"deleteTextCustomField","summary":"Delete a text custom field","parameters":[{"schema":{"type":"integer"},"in":"path","name":"textFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateTextCustomField","summary":"Update a text custom field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"showInPlanner":{"type":"boolean"},"filterableInPlanner":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"textFieldId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldText"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/holiday-groups/":{"get":{"operationId":"listHolidayGroups","summary":"List holiday groups","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/HolidayGroup"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/holiday-groups/{holidayGroupId}":{"get":{"operationId":"getHolidayGroup","summary":"Show a holiday group","parameters":[{"schema":{"type":"integer"},"in":"path","name":"holidayGroupId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidayGroup"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/holiday-groups/{holidayGroupId}/holidays":{"get":{"operationId":"listHolidayGroupHolidays","summary":"Show holidays for a holiday group","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"holidayGroupId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Holiday"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/invitations/":{"get":{"operationId":"listInvitations","summary":"List invitations","description":"Get a list of invitations. Does not contain the invitation token for security reasons","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","sentAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or sentAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createInvitation","summary":"Create an invitation for a user","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"type":"object","required":["email","userType","financialPermission","fromUser"],"properties":{"email":{"description":"Email for the invitation.","type":"string"},"userType":{"type":"string","enum":["admin","editor","viewer_all","viewer_basic","timesheet_only","manager","contributor"],"description":"Permission level"},"financialPermission":{"type":"string","enum":["all","no_salaries","restricted","none"],"description":"Financial permission level"},"fromUser":{"description":"Email address of user the invite should be sent from (must be a Runn user with admin permissions).","type":"string"},"managePeoplePermission":{"type":"string","enum":["all","restricted","none"],"description":"Manage people permission level. 'restricted' grants access to nobody until teams or people are assigned (see peopleTeams, or managers on the people endpoints). When omitted, defaults to whichever of manageOthersPermission or editOthersPermission was sent."},"peopleTeams":{"maxItems":1000,"uniqueItems":true,"description":"Teams whose members this restricted people manager can manage. An empty array is treated the same as omitting the field.","type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}},{"anyOf":[{"type":"object","required":["editProjectsPermission","editOthersPermission"],"properties":{"editProjectsPermission":{"type":"string","enum":["all","specific","restricted","none"],"deprecated":true,"description":"Permissions for editing projects. (deprecated: use manageProjectsPermission)"},"editOthersPermission":{"type":"string","enum":["all","none"],"deprecated":true,"description":"Permissions for editing other parts of the account (people, clients, teams etc.). (deprecated: use managePeoplePermission)"}}},{"type":"object","required":["manageProjectsPermission","manageOthersPermission"],"properties":{"manageProjectsPermission":{"type":"string","enum":["all","specific","restricted","none"],"description":"Permissions for managing projects."},"manageOthersPermission":{"type":"string","enum":["all","none"],"deprecated":true,"description":"Permissions for managing other parts of the account (people, clients, teams etc.). (deprecated: use managePeoplePermission)"}}}]}]}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/invitations/{invitationId}":{"delete":{"operationId":"deleteInvitation","summary":"Delete an invitation","parameters":[{"schema":{"type":"integer"},"in":"path","name":"invitationId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/legacy-id/{model}/{legacyId}":{"get":{"operationId":"getLegacyId","summary":"Convert a legacy ID from API v0 to a new ID","parameters":[{"schema":{"type":"string","enum":["accounts","actuals","assignments","clients","contracts","help_documents","invitations","milestones","notes","people","phases","project_member","project_rates","projects","rate_cards","role_charge_our_rate","roles","tags","teams","time_offs","users","user_accounts","holiday_groups","skills","other_expenses","people_notes"]},"in":"path","name":"model","required":true},{"schema":{"type":"string"},"in":"path","name":"legacyId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"integer"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/me/":{"get":{"operationId":"getMe","summary":"Who am I?","description":"Get information about the currently authenticated user.","parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/milestones/":{"get":{"operationId":"listMilestones","summary":"List project milestones","description":"List all milestones across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Milestone"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/other-expenses/":{"get":{"operationId":"listOtherExpenses","summary":"List other expenses","description":"List all other expenses across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectOtherExpense"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/{personId}":{"get":{"operationId":"getPerson","summary":"Show a person or placeholder","parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updatePerson","summary":"Update a person or placeholder","description":"To add a new role or job title to a person, see POST /people/{personId}/contracts. Archiving a person (isArchived: true) fails while they have ongoing or future contracts. Add an end date to each ongoing contract via PATCH /people/{personId}/contracts/{contractId}, and delete any contract that starts in the future via DELETE /people/{personId}/contracts/{contractId}, before archiving.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"minLength":1,"maxLength":100,"type":"string"},"lastName":{"minLength":1,"maxLength":100,"type":"string"},"email":{"type":"string"},"tags":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}},"teamId":{"type":["integer","null"]},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"isArchived":{"type":"boolean"},"managers":{"type":"array","items":{"type":"object","required":["userId"],"properties":{"userId":{"type":"integer"}}}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deletePerson","summary":"Delete a person or placeholder","description":"Delete a person or placeholder by their ID; fails when person has existing assignments or actuals to preserve\n          historical reports. Override this behaviour by using the force query flag.","parameters":[{"schema":{"default":false,"type":"boolean"},"in":"query","name":"force","required":true},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/":{"get":{"operationId":"listPeople","summary":"List people","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includePlaceholders","required":false},{"schema":{"type":"string"},"in":"query","name":"email","required":false,"description":"If provided, will only return people with an email that are a substring of this value (case-insensitive)."},{"schema":{"type":"string"},"in":"query","name":"firstName","required":false,"description":"If provided, will only return people with a first name that is a substring of this value (case-insensitive)."},{"schema":{"type":"string"},"in":"query","name":"lastName","required":false,"description":"If provided, will only return people with a last name that is a substring of this value (case-insensitive)."},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"string"},"in":"query","name":"externalId","required":false,"description":"External ID value"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CollectionPerson"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createPerson","summary":"Create a person","description":"Also creates a new contract for the person","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["firstName","lastName","roleId"],"properties":{"firstName":{"minLength":1,"maxLength":100,"type":"string"},"lastName":{"minLength":1,"maxLength":100,"type":"string"},"email":{"type":"string"},"teamId":{"type":["integer","null"]},"holidaysGroupId":{"type":"integer"},"tags":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"managers":{"type":"array","items":{"type":"object","required":["userId"],"properties":{"userId":{"type":"integer"}}}},"roleId":{"type":"integer"},"startDate":{"type":"string","format":"date","description":"Defaults to today. Format: YYYY-MM-DD"},"endDate":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"},"employmentType":{"type":"string","enum":["employee","contractor"],"description":"The type of employment for the contract.","default":"employee"},"costPerHour":{"description":"Defaults to the role's cost per hour","type":"number"},"minutesPerDay":{"minimum":1,"description":"Defaults to the account's default minutes per day","type":"number"},"rosteredDays":{"description":"Every value must be the same as minutesPerDay or 0.","type":"object","required":["monday","tuesday","wednesday","thursday","friday"],"properties":{"monday":{"type":"number"},"tuesday":{"type":"number"},"wednesday":{"type":"number"},"thursday":{"type":"number"},"friday":{"type":"number"}}},"jobTitle":{"description":"This feature is currently hidden, and can not be seen in the app","type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/skills":{"get":{"operationId":"listPeopleSkills","summary":"List people skills","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includePlaceholders","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonCompetency"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/notes":{"get":{"operationId":"listPeopleNotes","summary":"List people notes","description":"List all person notes across all people","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonNote"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/contracts/current":{"get":{"operationId":"listPeopleCurrentContracts","summary":"List people current contracts","description":"List current contracts across all people","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/custom-fields":{"get":{"operationId":"listPeopleCustomFields","summary":"List people custom fields","description":"List all custom fields across all people","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonCustomField"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/{personId}/actuals/":{"get":{"operationId":"listPersonActuals","summary":"List actuals for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"query","name":"projectId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Actual"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/assignments/":{"get":{"operationId":"listPersonAssignments","summary":"List assignments for a person or placeholder","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"query","name":"projectId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Include assignments that start or overlap with this date. Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Include assignments that end on or overlap with this date. Format: YYYY-MM-DD"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/contracts/":{"get":{"operationId":"listPersonContracts","summary":"List contracts for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":20,"minimum":1,"maximum":50,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createPersonContract","summary":"Add a new contract to a person","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractInput"}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/contracts/current":{"get":{"operationId":"getPersonCurrentContract","summary":"Show current contract for a person","parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["error","message","statusCode"],"properties":{"error":{"type":"string","enum":["Not Found"]},"message":{"type":"string"},"statusCode":{"type":"number","enum":[404]}}}}}}}}},"/people/{personId}/contracts/{contractId}":{"delete":{"operationId":"deletePersonContract","summary":"Delete a contract for a person","parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"type":"integer"},"in":"path","name":"contractId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updatePersonContract","summary":"Update a contract for a person","description":"Update one of a person's contracts. Adding an end date to an ongoing contract here lets the person be archived (see PATCH /people/{personId}).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"type":"integer"},"startDate":{"type":"string","format":"date","description":"Defaults to today. Format: YYYY-MM-DD"},"endDate":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"},"employmentType":{"type":"string","enum":["employee","contractor"],"description":"The type of employment for the contract.","default":"employee"},"costPerHour":{"description":"Defaults to the role's cost per hour","type":"number"},"minutesPerDay":{"minimum":1,"description":"Defaults to the account's default minutes per day","type":"number"},"rosteredDays":{"description":"Every value must be the same as minutesPerDay or 0.","type":"object","required":["monday","tuesday","wednesday","thursday","friday"],"properties":{"monday":{"type":"number"},"tuesday":{"type":"number"},"wednesday":{"type":"number"},"thursday":{"type":"number"},"friday":{"type":"number"}}},"jobTitle":{"description":"This feature is currently hidden, and can not be seen in the app","type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"type":"integer"},"in":"path","name":"contractId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/custom-fields/checkbox/":{"patch":{"operationId":"updatePersonCheckboxCustomFields","summary":"Add a checkbox custom value to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"boolean"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/custom-fields/date/":{"patch":{"operationId":"updatePersonDateCustomFields","summary":"Add a date custom value to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/custom-fields/select/":{"patch":{"operationId":"updatePersonSelectCustomFields","summary":"Add custom select options to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","values"],"properties":{"id":{"type":"integer"},"values":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","values"],"properties":{"id":{"type":"integer"},"values":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/custom-fields/text/":{"patch":{"operationId":"updatePersonTextCustomFields","summary":"Add a text custom value to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"string"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/projects/":{"get":{"operationId":"listPersonProjects","summary":"List projects for a person or placeholder","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createPersonProject","summary":"Add project to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["projectId","roleId"],"properties":{"projectId":{"type":"integer"},"roleId":{"type":"integer"},"workstreamId":{"type":"integer"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/people/{personId}/skills/":{"get":{"operationId":"listPersonSkills","summary":"List skills for a person or placeholder","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Competency"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createPersonSkill","summary":"Add a skill to a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skillId"],"properties":{"skillId":{"type":"integer"},"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Competency"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/skills/{skillId}":{"patch":{"operationId":"updatePersonSkill","summary":"Update a skill for a person or placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["level"],"properties":{"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Competency"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deletePersonSkill","summary":"Remove a skill from a person or placeholder","parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/teams/current":{"get":{"operationId":"getPersonCurrentTeam","summary":"Show current team for a person or placeholder","description":"This endpoint is deprecated. You may view the current team for a person using the `GET /people/:personId/` endpoint.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":20,"minimum":1,"maximum":50,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"deprecated":true,"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonTeam"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/{personId}/teams/":{"post":{"operationId":"createPersonTeam","summary":"Add a person or placeholder to a team","description":"This endpoint is deprecated. You may assign the person to a team using the `PATCH /people/:personId/` endpoint.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["teamId"],"properties":{"teamId":{"type":"integer"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"deprecated":true,"responses":{"201":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/{personId}/teams/{teamId}":{"delete":{"operationId":"deletePersonTeam","summary":"Remove a person or placeholder from a team","description":"This endpoint is deprecated. You may remove the person from a team using the `PATCH /people/:personId/` endpoint.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":20,"minimum":1,"maximum":50,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"deprecated":true,"responses":{"202":{"description":"Default Response"},"400":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people/{personId}/time-offs/leave":{"get":{"operationId":"listPersonLeave","summary":"List leave for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/TimeOff"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/time-offs/holidays":{"get":{"operationId":"listPersonHolidays","summary":"List holidays for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/TimeOff"},{"type":"object","required":["holidayId"],"properties":{"holidayId":{"description":"The identifier referencing the holiday associated with the time-off.","type":"integer"}}}]}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people/{personId}/time-offs/rostered-off":{"get":{"operationId":"listPersonRosteredOff","summary":"List rostered time offs for a person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/TimeOff"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/people-tags/":{"get":{"operationId":"listPeopleTags","summary":"List people tags","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PeopleTag"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createPeopleTag","summary":"Create a people tag","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","name","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/people-tags/{peopleTagId}":{"get":{"operationId":"getPeopleTag","summary":"Show a people tag","parameters":[{"schema":{"type":"integer"},"in":"path","name":"peopleTagId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","name","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updatePeopleTag","summary":"Update a people tag","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["archived"],"properties":{"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"peopleTagId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","name","archived","createdAt","updatedAt"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"archived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deletePeopleTag","summary":"Delete a people tag","parameters":[{"schema":{"type":"integer"},"in":"path","name":"peopleTagId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"202":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/person-requests/":{"get":{"operationId":"listPersonRequests","summary":"List person requests","description":"List all person requests across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonRequest"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/phases/":{"get":{"operationId":"listPhases","summary":"List phases","description":"List all phases across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectPhase"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response"}}}},"/placeholders/":{"get":{"operationId":"listPlaceholders","summary":"List placeholders","description":"Note: The /people/* endpoints also allows getting information on placeholders when using the `includePlaceholders` query parameter.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Placeholder"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createPlaceholder","summary":"Create a placeholder","description":"Also creates a contract that defaults to the role cost.\nPlease note that placeholders that are not assigned to a project will be deleted within 24 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["roleId"],"properties":{"roleId":{"type":"integer"},"costPerHour":{"description":"Defaults to the role's cost per hour","type":"number"},"teamId":{"type":["integer","null"]},"tags":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceholderInput"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/placeholders/{placeholderId}/skills/":{"post":{"operationId":"createPlaceholderSkill","summary":"Add a skill to a placeholder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skillId"],"properties":{"skillId":{"type":"integer"},"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"placeholderId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Competency"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/placeholders/{placeholderId}/skills/{skillId}":{"delete":{"operationId":"deletePlaceholderSkill","summary":"Remove a skill from a placeholder","parameters":[{"schema":{"type":"integer"},"in":"path","name":"placeholderId","required":true},{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/placeholders/{placeholderId}/teams/":{"post":{"operationId":"createPlaceholderTeam","summary":"Add a placeholder to a team","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["teamId"],"properties":{"teamId":{"type":"integer"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"placeholderId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/placeholders/{placeholderId}/teams/{teamId}":{"delete":{"operationId":"deletePlaceholderTeam","summary":"Remove a placeholder from a team","parameters":[{"schema":{"type":"integer"},"in":"path","name":"placeholderId","required":true},{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"202":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/project-members/":{"get":{"operationId":"listProjectMembers","summary":"List members of projects","description":"This endpoint excludes changes for when people are removed from a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"type":"object","required":["id","personId","projectId","roleId","createdAt","isPlaceholder","workstreamId","updatedAt"],"properties":{"id":{"type":"integer"},"personId":{"type":"integer"},"projectId":{"type":"integer"},"roleId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"isPlaceholder":{"type":"boolean"},"workstreamId":{"type":"integer","nullable":true},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/project-notes/":{"get":{"operationId":"listProjectNotes","summary":"List project notes","description":"List all project notes across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectNote"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/project-rates/":{"get":{"operationId":"listProjectRates","summary":"List role rates","description":"List all role rates across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectRate"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/project-tags/{projectTagId}":{"get":{"operationId":"getProjectTag","summary":"Show a project tag","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectTagId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectTag"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProjectTag","summary":"Update a project tag","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["archived"],"properties":{"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectTagId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectTag"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/project-tags/":{"get":{"operationId":"listProjectTags","summary":"List project tags","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeArchived","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectTag"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createProjectTag","summary":"Create a project tag","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectTag"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/project-tags/{projectTagId}/project/{projectId}":{"post":{"operationId":"createProjectTagProject","summary":"Add a project tag to a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectTagId","required":true},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectTag"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"delete":{"operationId":"deleteProjectTagProject","summary":"Remove a project tag from a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectTagId","required":true},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/project-workstreams/":{"get":{"operationId":"listProjectWorkstreams","summary":"List project workstreams","description":"List all project workstreams across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"type":"object","required":["projectId","workstreamId","createdAt","updatedAt"],"properties":{"projectId":{"type":"integer"},"workstreamId":{"type":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was created."},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of when the object was last updated."}}}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}":{"get":{"operationId":"getProject","summary":"Show a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProject","summary":"Update a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"isConfirmed":{"type":"boolean"},"isArchived":{"type":"boolean"},"isTemplate":{"type":"boolean"},"budget":{"minimum":0,"description":"Budget value in local currency","type":"number"},"expensesBudget":{"minimum":0,"description":"Expenses budget value in local currency","type":"number"},"clientId":{"type":"integer"},"teamId":{"type":["integer","null"]},"pricingModel":{"type":"string","enum":["fp","tm","nb"]},"rateType":{"type":"string","enum":["hours","days"]},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"tags":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}},"managerIds":{"description":"List of User IDs that manage the project.","uniqueItems":true,"type":"array","items":{"type":"integer"}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/":{"get":{"operationId":"listProjects","summary":"List projects","description":"See `GET /people/{id}/projects` for all projects by person","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":true,"type":"boolean"},"in":"query","name":"includeArchived","required":true},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"string"},"in":"query","name":"externalId","required":false,"description":"External ID value"},{"schema":{"type":"string"},"in":"query","name":"name","required":false,"description":"Case-insensitive substring match on project name (e.g. `Acme`)."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createProject","summary":"Create a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["name","clientId"],"properties":{"emoji":{"type":"string"},"name":{"minLength":1,"type":"string"},"isConfirmed":{"type":"boolean"},"isTemplate":{"type":"boolean"},"budget":{"minimum":0,"description":"Budget value in local currency","type":"number"},"expensesBudget":{"minimum":0,"description":"Expenses budget value in local currency","type":"number"},"clientId":{"type":"integer"},"teamId":{"type":["integer","null"]},"pricingModel":{"type":"string","enum":["fp","tm","nb"],"description":"Defaults to 'tm' if not specified"},"rateCardId":{"description":"Used to create initial project rates. Uses standard rate card if not specified","type":"integer"},"rateType":{"type":"string","enum":["hours","days"],"description":"Defaults to account rate type if not specified"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"managerIds":{"description":"List of User IDs that manage the project.","uniqueItems":true,"type":"array","items":{"type":"integer"}}}},{"type":"object","required":["fromTemplate"],"properties":{"fromTemplate":{"type":"object","required":["templateId","startDate"],"properties":{"templateId":{"description":"ID of the template project to duplicate","type":"integer"},"startDate":{"description":"New start date for the project","format":"date","type":"string"}}},"name":{"minLength":1,"type":"string"},"clientId":{"type":"integer"}}}]}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/custom-fields":{"get":{"operationId":"listProjectCustomFields","summary":"List project custom fields","description":"List all custom fields across all projects","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":100,"minimum":1,"maximum":500,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectCustomField"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}/":{"delete":{"operationId":"deleteProject","summary":"Delete a project","description":"Delete a project by id. You cannot delete a project that has any actuals or assignments.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Successful deletion of the project."},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/projects/{projectId}/actuals/":{"get":{"operationId":"listProjectActuals","summary":"List actuals for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Actual"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/assignments/":{"get":{"operationId":"listProjectAssignments","summary":"List assignments for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"type":"integer"},"in":"query","name":"roleId","required":false},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Include assignments that start or overlap with this date. Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Include assignments that end on or overlap with this date. Format: YYYY-MM-DD"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/budget-roles/{roleId}":{"get":{"operationId":"getProjectBudgetRole","summary":"Get a project budget role","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"roleId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Project budget role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBudgetRole"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProjectBudgetRole","summary":"Update a project budget role","description":"Update a project budget role for a project. You cannot update a              project budget role using estimated budget if a project rate does              not exist for the role because the project rate is used to set              the estimatedMinutes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["estimatedMinutes"],"properties":{"estimatedMinutes":{"minimum":0,"type":"integer"}}},{"type":"object","required":["estimatedBudget"],"properties":{"estimatedBudget":{"minimum":0,"type":"integer"}}}]}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"roleId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Project budget role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBudgetRole"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteProjectBudgetRole","summary":"Delete a project budget role","description":"Delete a project budget role for a project. You cannot delete a              project budget role if it is implicitly created from a project membership.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"roleId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/projects/{projectId}/budget-roles/":{"get":{"operationId":"listProjectBudgetRoles","summary":"Get a paginated list of project budget roles for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectBudgetRole"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createProjectBudgetRole","summary":"Create a project budget role","description":"Create a project budget role for a project. You cannot create a              project budget role using estimated budget if a project rate does              not exist for the role because the project rate is used to set              the estimatedMinutes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"type":"object","required":["roleId"],"properties":{"roleId":{"type":"integer"}}},{"anyOf":[{"type":"object","required":["estimatedMinutes"],"properties":{"estimatedMinutes":{"minimum":0,"type":"integer"}}},{"type":"object","required":["estimatedBudget"],"properties":{"estimatedBudget":{"minimum":0,"type":"integer"}}}]}]}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/projects/{projectId}/custom-fields/checkbox/":{"patch":{"operationId":"updateProjectCheckboxCustomFields","summary":"Add a checkbox custom value to a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"boolean"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/custom-fields/date/":{"patch":{"operationId":"updateProjectDateCustomFields","summary":"Add a date custom field value to a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":["string","null"],"format":"date","description":"Format: YYYY-MM-DD"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}/custom-fields/select/":{"patch":{"operationId":"updateProjectSelectCustomFields","summary":"Add a select custom field to a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","values"],"properties":{"id":{"type":"integer"},"values":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","values"],"properties":{"id":{"type":"integer"},"values":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}/custom-fields/text/":{"patch":{"operationId":"updateProjectTextCustomFields","summary":"Add a text custom field value to a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","value"],"properties":{"id":{"type":"integer"},"value":{"type":"string"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}/milestones/":{"post":{"operationId":"createProjectMilestone","summary":"Create a milestone for a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","icon","date"],"properties":{"title":{"maxLength":500,"description":"The milestone title. Must be 500 characters or fewer.","type":"string"},"icon":{"anyOf":[{"type":"string","enum":["start","end","flag","dollar","warning"]},{"description":"emoji to use as icon","type":"string"}]},"note":{"maxLength":4000,"description":"The milestone note. Must be 4000 characters or fewer.","type":"string"},"date":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Milestone"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"get":{"operationId":"listProjectMilestones","summary":"List milestones for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Milestones on this date or newer. Defaults to Monday of the current week. Format: YYYY-MM-DD."},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Milestones on this date or older. Format: YYYY-MM-DD."},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Milestone"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/milestones/{milestoneId}":{"delete":{"operationId":"deleteProjectMilestone","summary":"Delete a milestone for a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"milestoneId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProjectMilestone","summary":"Update a milestone for a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"maxLength":500,"description":"The milestone title. Must be 500 characters or fewer.","type":"string"},"icon":{"anyOf":[{"type":"string","enum":["start","end","flag","dollar","warning"]},{"description":"emoji to use as icon","type":"string"}]},"note":{"maxLength":4000,"description":"The milestone note. Must be 4000 characters or fewer.","type":"string"},"date":{"type":"string","format":"date","description":"Format: YYYY-MM-DD"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"milestoneId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Milestone"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/notes/":{"post":{"operationId":"createProjectNote","summary":"Create a project note","description":"Defaults creator to 'API' user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["note"],"properties":{"note":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectNote"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"get":{"operationId":"getProjectNotes","summary":"List notes for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectNote"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/other-expenses/":{"get":{"operationId":"listProjectOtherExpenses","summary":"List other expenses for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":20,"minimum":1,"maximum":50,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true,"description":"Unique identifier for the project the expenses are for."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectOtherExpense"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createProjectOtherExpense","summary":"Create an other expense for a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Project Other Expense","description":"A non-labour expense for a project.","type":"object","required":["cost","charge","name","date"],"properties":{"cost":{"minimum":0,"description":"How much the item costs for your business (in your account's currency).","type":"number"},"charge":{"minimum":0,"description":"How much you are charging your clients for the item (in your account's currency).","type":"number"},"name":{"minLength":1,"description":"The item or service that was purchased.","type":"string"},"date":{"format":"date","description":"The date the expense was incurred.","type":"string"}}}}},"description":"A non-labour expense for a project."},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true,"description":"Unique identifier for the project the expense is for."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"A non-labour expense for a project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOtherExpense"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/other-expenses/{otherExpenseId}/":{"patch":{"operationId":"updateProjectOtherExpense","summary":"Update an other expense on a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cost":{"minimum":0,"description":"How much the item costs for your business (in your account's currency).","type":"number"},"charge":{"minimum":0,"description":"How much you are charging your clients for the item (in your account's currency).","type":"number"},"name":{"minLength":1,"description":"The item or service that was purchased.","type":"string"},"date":{"format":"date","description":"The date the expense was incurred.","type":"string"}},"title":"Project Other Expense","description":"A non-labour expense for a project."}}},"description":"A non-labour expense for a project."},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true,"description":"Unique identifier for the project the expense is for."},{"schema":{"type":"integer"},"in":"path","name":"otherExpenseId","required":true,"description":"Unique identifier for the other expense to update."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"A non-labour expense for a project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOtherExpense"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/people/":{"get":{"operationId":"listProjectPeople","summary":"List people assigned to a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"default":true,"type":"boolean"},"in":"query","name":"includeArchived","required":true},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CollectionPerson"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/person-requests/":{"get":{"operationId":"listProjectPersonRequests","summary":"List the person requests for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/PersonRequest"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createProjectPersonRequest","summary":"Create a person request on a project","description":"Person requests are used to request a placeholder role be filled with a person in the account or to request a new person be hired. This endpoint can be used to create a new person request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["personId","status"],"properties":{"personId":{"type":"integer"},"status":{"type":"string","enum":["NEED_TO_HIRE","REQUESTED","PENDING"]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonRequest"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/person-requests/{personRequestId}":{"get":{"operationId":"getProjectPersonRequest","summary":"Show a single person request for a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"personRequestId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProjectPersonRequest","summary":"Update the status of a person request on a project","description":"Person requests are used to request a placeholder role be filled with another person in the account or to request a new person be hired. This endpoint can be used to update the status of a request to 'REQUESTED' or 'NEED_TO_HIRE', respectively.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["NEED_TO_HIRE","REQUESTED","PENDING"]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"personRequestId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","status"],"properties":{"id":{"type":"integer"},"status":{"type":"string","enum":["NEED_TO_HIRE","REQUESTED","PENDING"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/phases/":{"get":{"operationId":"listProjectPhases","summary":"List phases for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":20,"minimum":1,"maximum":50,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectPhase"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response"}}},"post":{"operationId":"createProjectPhase","summary":"Create a phase for a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","startDate","endDate","color"],"properties":{"name":{"title":"Name","description":"The name of the project phase. Must be between 1 and 500 characters long.","minLength":1,"maxLength":500,"examples":["Initial Planning","Execution","Monitoring"],"type":"string"},"startDate":{"title":"Start Date","description":"The start date of the project phase in ISO8061 format: YYYY-MM-DD","format":"date","type":"string"},"endDate":{"title":"End Date","description":"The end date of the project phase in ISO8061 format: YYYY-MM-DD","format":"date","type":"string"},"color":{"type":"string","enum":["#67D0D5","#FDCD4F","#F191CC","#B19DE6","#9CE277","#CD97DA","#84DBA0","#FFB077","#9CC5BF","#E8C681","#6899F1","#DDAE9F"],"title":"Color","description":"Hex color of the phase. Only a subset of colors is allowed.","default":"#67D0D5"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Project phases divide your project into smaller sections so you can group similar tasks and assignments together.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPhase"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/projects/{projectId}/phases/{phaseId}":{"get":{"operationId":"getProjectPhase","summary":"Show a phase for a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"phaseId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Project phases divide your project into smaller sections so you can group similar tasks and assignments together.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPhase"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response"}}},"patch":{"operationId":"updateProjectPhase","summary":"Update a phase for a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"title":"Name","description":"The name of the project phase. Must be between 1 and 500 characters long.","minLength":1,"maxLength":500,"examples":["Initial Planning","Execution","Monitoring"],"type":"string"},"startDate":{"title":"Start Date","description":"The start date of the project phase in ISO8061 format: YYYY-MM-DD","format":"date","type":"string"},"endDate":{"title":"End Date","description":"The end date of the project phase in ISO8061 format: YYYY-MM-DD","format":"date","type":"string"},"color":{"type":"string","enum":["#67D0D5","#FDCD4F","#F191CC","#B19DE6","#9CE277","#CD97DA","#84DBA0","#FFB077","#9CC5BF","#E8C681","#6899F1","#DDAE9F"],"title":"Color","description":"Hex color of the phase. Only a subset of colors is allowed.","default":"#67D0D5"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"phaseId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Project phases divide your project into smaller sections so you can group similar tasks and assignments together.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPhase"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteProjectPhase","summary":"Delete a phase for a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"phaseId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Project phases divide your project into smaller sections so you can group similar tasks and assignments together.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPhase"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response"}}}},"/projects/{projectId}/phases/{phaseId}/reschedule":{"patch":{"operationId":"rescheduleProjectPhase","summary":"Reschedule a phase and its assignments (beta)","description":"Moves a phase to a new start date and moves its assignments by the same number of weekdays, keeping each assignment's own weekday length. Assignments marked as non-working days stay where they are, and actuals are never moved. The whole move is applied in one transaction, so either every date changes or none does. To change a phase's dates without touching its assignments, use `PATCH /projects/{projectId}/phases/{phaseId}` instead. This endpoint is in limited release and returns 403 for accounts without access. Please contact help@runn.io if you'd like to use it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["startDate"],"properties":{"startDate":{"title":"Start Date","description":"The date the phase should start on, in ISO8601 format: YYYY-MM-DD. Must be a weekday unless it matches the phase's current start date.","format":"date","type":"string"},"endDate":{"title":"End Date","description":"Optional check on the resulting end date, in ISO8601 format: YYYY-MM-DD. When supplied it must equal the end date derived from the move, otherwise the request is rejected without changing anything. Omit it to let the phase keep its current weekday length.","format":"date","type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"phaseId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"The phase at its new dates, plus how many of its assignments moved with it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhaseRescheduleResult"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/projects/{projectId}/project-rates/":{"get":{"operationId":"getProjectRates","summary":"List role rates for a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectRate"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/project-rates/{projectRateId}/":{"patch":{"operationId":"updateProjectRate","summary":"Update a rate for a role on a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["rate"],"properties":{"rate":{"minimum":0,"type":"number"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"projectRateId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRate"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/project-workstreams/":{"get":{"operationId":"getProjectWorkstreams","summary":"List workstreams assigned to a project","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"default":true,"type":"boolean"},"in":"query","name":"includeArchived","required":true},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectWorkstream"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/project-workstreams/{workstreamId}/":{"get":{"operationId":"getProjectWorkstream","summary":"View project workstream","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectWorkstream"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createProjectWorkstream","summary":"Add a workstream to a project","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectWorkstream"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteProjectWorkstream","summary":"Delete project workstream","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectWorkstream"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/projects/{projectId}/timesheet-lock/":{"get":{"operationId":"getProjectTimesheetLock","summary":"Show a timesheet lock for a project","description":"This feature currently in beta and only available to selected customers.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","lockedUntil","lastUpdatedBy","updatedAt"],"properties":{"status":{"type":["string","null"],"enum":["LOCKED","UNLOCKED"]},"lockedUntil":{"type":["string","null"],"format":"date-time","description":"Format: YYYY-MM-DDTHH:MM:SSZ"},"lastUpdatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time","description":"Format: YYYY-MM-DDTHH:MM:SSZ"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateProjectTimesheetLock","summary":"Update a timesheet lock for a project","description":"This feature currently in beta and only available to selected customers.This will return an error and message if all timesheets haven't been filled out to selected date.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["status","lockedUntil"],"properties":{"status":{"type":"string","enum":["LOCKED"]},"lockedUntil":{"format":"date","type":"string"}}},{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["UNLOCKED"]}}}]}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","lockedUntil","lastUpdatedBy","updatedAt"],"properties":{"status":{"type":["string","null"],"enum":["LOCKED","UNLOCKED"]},"lockedUntil":{"type":["string","null"],"format":"date-time","description":"Format: YYYY-MM-DDTHH:MM:SSZ"},"lastUpdatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time","description":"Format: YYYY-MM-DDTHH:MM:SSZ"}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"number","enum":[404]},"error":{"type":"string","enum":["Not Found"]},"message":{"type":"string"}}}}}}}}},"/rate-cards/":{"get":{"operationId":"listRateCards","summary":"List rate cards","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/RateCard"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createRateCard","summary":"Create a rate card","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","description","references","isBlendedRateCard","blendedRate","rateType"],"properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"references":{"type":"array","items":{"type":"object","required":["referenceName","externalId"],"properties":{"referenceName":{"type":"string"},"externalId":{"type":"string"}}}},"isBlendedRateCard":{"type":"boolean"},"blendedRate":{"type":"number","nullable":true},"rateType":{"type":"string","enum":["hours","days"],"nullable":true}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCard"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/rate-cards/{rateCardId}":{"get":{"operationId":"getRateCard","summary":"Show a rate card","parameters":[{"schema":{"type":"integer"},"in":"path","name":"rateCardId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCard"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteRateCard","summary":"Delete a rate card","description":"Rate cards that are internal, standard, or have projects cannot be deleted","parameters":[{"schema":{"type":"integer"},"in":"path","name":"rateCardId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateRateCard","summary":"Update a rate card","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"references":{"type":"array","items":{"type":"object","required":["referenceName","externalId"],"properties":{"referenceName":{"type":"string"},"externalId":{"type":"string"}}}},"isBlendedRateCard":{"type":"boolean"},"blendedRate":{"minimum":0,"type":["number","null"]},"rateType":{"type":"string","enum":["hours","days"]}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"rateCardId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCard"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/reports/hours/people/{personId}":{"get":{"operationId":"getPersonHoursReport","summary":"Get by-day entries for a person with assignments and actuals","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Only include entries that start on or after this date. Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Only include entries that end on or before this date. Format: YYYY-MM-DD"},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ReportsHoursPeople"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/reports/hours/projects/{projectId}":{"get":{"operationId":"getProjectHoursReport","summary":"Get by-day entries for a project with assignments and actuals","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Only include entries that start on or after this date. Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Only include entries that end on or before this date. Format: YYYY-MM-DD"},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ReportsHoursProjects"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/reports/people/{personId}/":{"get":{"operationId":"getPersonReport","summary":"Show metrics (beta)","description":"Get a report for a person containing data from the People Overview Report. This endpoint is available only to Advanced Plan users, and the beta is currently closed. Please contact help@runn.io if you'd like to join the waiting list.","parameters":[{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"The start date for the report. For monthly reports, this must be the first day of the month. For weekly reports, this must be a Monday. For quarterly reports, this must be the first day of the quarter. Format: YYYY-MM-DD"},{"schema":{"type":"string","enum":["monthly","weekly","quarterly"],"default":"monthly"},"in":"query","name":"periodType","required":false,"description":"The time interval at which to split the metrics on the report. A monthly report made in June, for instance, will show revenue for June, July, August, and September."},{"schema":{"type":"integer"},"in":"path","name":"personId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","firstName","lastName","email","jobTitle","team","employmentType","metrics"],"properties":{"id":{"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"jobTitle":{"type":"string"},"team":{"type":"string"},"employmentType":{"type":"string"},"metrics":{"type":"array","items":{"type":"object","required":["startDate","endDate","revenue","projectCosts","businessCosts","totalEffortHours","billableEffortHours","nonBillableEffortHours","totalUtilization","billableUtilization","contractCapacity","effectiveCapacity","overtime","remainingAvailability","timeOffHours","completedTimesheet"],"properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"revenue":{"type":"number"},"projectCosts":{"type":"number"},"businessCosts":{"type":"number"},"totalEffortHours":{"type":"number"},"billableEffortHours":{"type":"number"},"nonBillableEffortHours":{"type":"number"},"totalUtilization":{"type":"number"},"billableUtilization":{"type":"number"},"contractCapacity":{"type":"number"},"effectiveCapacity":{"type":"number"},"overtime":{"type":"number"},"remainingAvailability":{"type":"number"},"timeOffHours":{"type":"number"},"completedTimesheet":{"type":"boolean"}}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/reports/projects/{projectId}/":{"get":{"operationId":"getProjectReport","summary":"Show metrics (beta)","description":"Get a report for a project containing data from the Project Overview Report. Tentative projects are included: as in the in-app report, days scheduled before today are treated as not having materialised and are excluded from a tentative project's metrics. This endpoint is available only to Advanced Plan users, and the beta is currently closed. Please contact help@runn.io if you'd like to join the waiting list.","parameters":[{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"The start date for the report. For monthly reports, this must be the first day of the month. For weekly reports, this must be a Monday. For quarterly reports, this must be the first day of the quarter. Format: YYYY-MM-DD"},{"schema":{"type":"string","enum":["monthly","weekly","quarterly"]},"in":"query","name":"periodType","required":false,"description":"The time interval at which to split the metrics on the report. A monthly report made in June, for instance, will show revenue for June, July, August, and September. If not provided, the report will be for the Overview report (all inclusive)."},{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","name","pricingModel","budget","budgetRemaining","timeBudgetRemaining","metrics"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"period":{"type":"string"},"pricingModel":{"type":"string","enum":["tm","fp","nb"]},"budget":{"type":"number","nullable":true},"budgetRemaining":{"type":"number"},"timeBudgetRemaining":{"type":"number","nullable":true},"metrics":{"type":"array","items":{"type":"object","required":["startDate","endDate","timeMaterialsBenchmark","revenue","profit","costs","margin","totalEffortHours","billableEffortHours","nonBillableEffortHours"],"properties":{"startDate":{"type":"string","nullable":true},"endDate":{"type":"string","nullable":true},"timeMaterialsBenchmark":{"type":"number"},"revenue":{"type":"number"},"profit":{"type":"number"},"costs":{"type":"number"},"margin":{"description":"Percentage value of the profit margin","type":"number"},"totalEffortHours":{"type":"number"},"billableEffortHours":{"type":"number"},"nonBillableEffortHours":{"type":"number"}}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}}},"/reports/totals/projects/":{"get":{"operationId":"listProjectTotalsReports","summary":"List totals for projects with assignments and actuals","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":10,"minimum":1,"maximum":10,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeArchived","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ProjectAggregate"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/reports/totals/projects/{projectId}":{"get":{"operationId":"getProjectTotalsReport","summary":"Show totals for a project with assignments and actuals","parameters":[{"schema":{"type":"integer"},"in":"path","name":"projectId","required":true,"description":"The unique identifier for the project."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectAggregate"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/roles/":{"get":{"operationId":"listRoles","summary":"List roles","parameters":[{"schema":{"type":"string"},"in":"query","name":"name","required":false,"description":"If provided, will only return roles with a name that is a substring of this value (case-insensitive)."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Role"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createRole","summary":"Create a role","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"},"defaultHourCost":{"minimum":0,"default":0,"type":"number"},"standardRate":{"minimum":0,"default":0,"type":"number"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/roles/{roleId}":{"get":{"operationId":"getRole","summary":"Show a role","parameters":[{"schema":{"type":"integer"},"in":"path","name":"roleId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateRole","summary":"Update a role","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"isArchived":{"type":"boolean"},"references":{"type":"array","items":{"$ref":"#/components/schemas/Reference"}},"standardRate":{"minimum":0,"type":"number"},"defaultHourCost":{"minimum":0,"type":"number"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"roleId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/skills/":{"get":{"operationId":"listSkills","summary":"List skills","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Skill"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createSkill","summary":"Create a skill","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skill"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/skills/{skillId}":{"get":{"operationId":"getSkill","summary":"Show a skill","parameters":[{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skill"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateSkill","summary":"Update a skill","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skill"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteSkill","summary":"Delete a skill","parameters":[{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"number","enum":[404]},"error":{"type":"string","enum":["Not Found"]},"message":{"type":"string"}}}}}}}}},"/skills/{skillId}/people/":{"get":{"operationId":"listSkillPeople","summary":"List people for a skill","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CollectionPerson"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"post":{"operationId":"createSkillPerson","summary":"Add people to a skill","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["people"],"properties":{"people":{"type":"array","items":{"type":"object","required":["personId"],"properties":{"personId":{"type":"integer"},"level":{"anyOf":[{"type":"number","enum":[1],"nullable":true},{"type":"number","enum":[2],"nullable":true},{"type":"number","enum":[3],"nullable":true},{"type":"number","enum":[4],"nullable":true}]}}}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"skillId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Competency"}}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/teams/":{"get":{"operationId":"listTeams","summary":"List teams","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Team"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createTeam","summary":"Create a team","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/teams/{teamId}/":{"get":{"operationId":"getTeam","summary":"Show a team","parameters":[{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateTeam","summary":"Update a team","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteTeam","summary":"Delete a team","parameters":[{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/teams/{teamId}/people/":{"get":{"operationId":"listTeamPeople","summary":"List people in a team","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"teamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CollectionPerson"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/time-offs/holidays/":{"get":{"operationId":"listHolidays","summary":"List holiday time offs","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/TimeOff"},{"type":"object","required":["holidayId"],"properties":{"holidayId":{"description":"The identifier referencing the holiday associated with the time-off.","type":"integer"}}}]}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/time-offs/leave/":{"get":{"operationId":"listLeave","summary":"List leave time offs","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"type":"string","format":"date"},"in":"query","name":"startDate","required":false,"description":"Format: YYYY-MM-DD"},{"schema":{"type":"string","format":"date"},"in":"query","name":"endDate","required":false,"description":"Format: YYYY-MM-DD"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/TimeOff"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createLeave","summary":"Create a leave time off","description":"\n#### Create or Update\n\nThis endpoint may return an existing time off if the new time off is a subset of an existing one.\n\n#### Automatic Merging\n\nIf one or more existing time offs overlap with the specified start/end date, they will be automatically merged.\n\n#### Partial Time Offs\n\nIf the `minutesPerDay` field is provided, automatic merging will only occur if any overlapping time off has the same `minutesPerDay` value. If the `minutesPerDay` value differs, the request will fail.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOffLeaveInput"}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOff"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/time-offs/leave/{timeOffId}/":{"get":{"operationId":"getLeave","summary":"Show a leave time off","parameters":[{"schema":{"type":"integer"},"in":"path","name":"timeOffId","required":true,"description":"The unique identifier for the time-off."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOff"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"delete":{"operationId":"deleteLeave","summary":"Delete a leave time off","parameters":[{"schema":{"type":"integer"},"in":"path","name":"timeOffId","required":true,"description":"The unique identifier for the time-off."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"202":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}}}}},"/time-offs/leave/bulk/":{"post":{"operationId":"createLeaveBulk","summary":"Create leave time offs in bulk","description":"\n#### Create or Update\n\nThis endpoint may return existing time offs if the new time off is a subset of an existing one.\n\n#### Automatic Merging\n\nIf one or more existing time offs overlap with the specified start/end date, they will be automatically merged.\n\n#### Partial Time Offs\n\nIf the `minutesPerDay` field is provided, automatic merging will only occur if any overlapping time off has the same `minutesPerDay` value. If the `minutesPerDay` value differs, the request will fail.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["time_offs"],"properties":{"time_offs":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/TimeOffLeaveInput"}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeOff"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteLeaveBulk","summary":"Delete leave time offs in bulk","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["timeOffIds"],"properties":{"timeOffIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer"}}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"202":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/time-offs/rostered-off/":{"get":{"operationId":"listRosteredOff","summary":"List rostered time offs","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["id","createdAt","updatedAt"],"default":"id"},"in":"query","name":"sortBy","required":true},{"schema":{"$ref":"#/components/schemas/SortOrder"},"in":"query","name":"order","required":false},{"schema":{"type":"integer"},"in":"query","name":"personId","required":false},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/TimeOff"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/time-offs/rostered-off/{timeOffId}":{"delete":{"operationId":"deleteRosteredOff","summary":"Delete a rostered time off","parameters":[{"schema":{"type":"integer"},"in":"path","name":"timeOffId","required":true,"description":"The unique identifier for the time-off."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"202":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}}}}},"/users/":{"get":{"operationId":"listUsers","summary":"List users","description":"See `POST /invitations` for creating users","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/users/{userId}":{"get":{"operationId":"getUser","summary":"Show a user","parameters":[{"schema":{"type":"integer"},"in":"path","name":"userId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateUser","summary":"Update a user","description":"Currently supports updating people team access for restricted people managers.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"peopleTeams":{"maxItems":1000,"uniqueItems":true,"description":"Teams whose members this restricted people manager can manage. An empty array revokes every team grant; omitting the field leaves them untouched. Sending this field, including an empty array, returns 403 when the account does not have the feature.","type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"userId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteUser","summary":"Delete a user","parameters":[{"schema":{"type":"integer"},"in":"path","name":"userId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/users/{userId}/views/":{"get":{"operationId":"listUserViews","summary":"List allocated views for a user","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"integer"},"in":"path","name":"userId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/View"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/users/{userId}/views/{viewId}":{"post":{"operationId":"createUserView","summary":"Allocate a view to a user","parameters":[{"schema":{"type":"integer"},"in":"path","name":"userId","required":true,"description":"The Id of the user to allocate the view to."},{"schema":{"type":"integer"},"in":"path","name":"viewId","required":true,"description":"The Id of the view to allocate to the user."},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}}}}},"/users/{userId}/views/{viewId}/":{"delete":{"operationId":"deleteUserView","summary":"Remove allocated view from user","parameters":[{"schema":{"type":"integer"},"in":"path","name":"userId","required":true},{"schema":{"type":"integer"},"in":"path","name":"viewId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/views/":{"get":{"operationId":"listViews","summary":"List views","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/View"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/workstreams/":{"get":{"operationId":"listWorkstreams","summary":"List workstreams","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Cursor for paginated requests"},{"schema":{"default":50,"minimum":1,"maximum":200,"type":"integer"},"in":"query","name":"limit","required":false,"description":"The number of results per page"},{"schema":{"type":"string","enum":["createdAt","updatedAt","id"],"default":"id"},"in":"query","name":"sortBy","required":false,"description":"Field to sort by: createdAt or updatedAt or id"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"order","required":false,"description":"Sort order: asc or desc"},{"schema":{"$ref":"#/components/schemas/ModifiedAfter"},"in":"query","name":"modifiedAfter","required":false},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["values","nextCursor"],"properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/Workstream"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}},"post":{"operationId":"createWorkstream","summary":"Create a workstream","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"type":"string"}}}}}},"parameters":[{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workstream"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}}}}},"/workstreams/{workstreamId}/":{"get":{"operationId":"getWorkstream","summary":"Show a workstream","parameters":[{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workstream"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"patch":{"operationId":"updateWorkstream","summary":"Update a workstream","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workstream"}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}},"delete":{"operationId":"deleteWorkstream","summary":"Delete a workstream","parameters":[{"schema":{"type":"integer"},"in":"path","name":"workstreamId","required":true},{"schema":{"default":"1.0.0","enum":["1.0.0"]},"in":"header","name":"accept-version","required":true}],"responses":{"204":{"description":"Default Response"},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"number","enum":[404]},"error":{"type":"string","enum":["Not Found"]},"message":{"type":"string"}}}}}}}}}},"servers":[{"url":"https://api.runn.io","description":"EU Server"},{"url":"https://api.us.runn.io","description":"US Server"}],"security":[{"bearerAuth":[]}],"x-readme":{"proxy-enabled":false}}