{"info":{"title":"Manifestly","description":"Utilize your Manifestly Checklists via the API. Each request requires the api_key parameter. Your API Key can be found at \u003ca href=\"https://app.manifest.ly/profile?section=api\"\u003eyour Manifestly profile page\u003c/a\u003e.\n\nPlease note: **checklist_id** refers to the **ID of a Workflow** in Manifestly. We renamed checklists to workflows in the user interface, but kept with the same IDs.\n\n## Authentication\n\nManifestly authenticates API requests using an API key. Each request must include the API key in the HTTP `Authorization` header.\n\n### How to Use the API Key\n\nAuthorization: YOUR_API_KEY\n\nReplace `YOUR_API_KEY` with an API key found in your Manifestly [Account Settings Page](https://app.manifest.ly/account?section=integrations)\n\nIf the API key is invalid or missing, the server will return a `401 Unauthorized` response.\n\n### Where to Create an API Key\n\nMaster admins can create and manage API keys on their\n[Manifestly Account Settings Page](https://app.manifest.ly/account?section=integrations).","version":"1.0.0"},"swagger":"2.0","produces":["application/json"],"host":"api.manifest.ly","basePath":"/api/v1","schemes":["https"],"tags":[{"name":"workflows","description":"Operations about workflows"},{"name":"departments","description":"Operations about departments"},{"name":"runs","description":"Operations about runs"},{"name":"memberships","description":"Operations about memberships"},{"name":"users","description":"Operations about users"}],"paths":{"/checklists":{"get":{"summary":"List workflows","description":"List workflows","produces":["application/json"],"parameters":[{"in":"query","name":"tag","description":"Tag","type":"string","required":false}],"responses":{"200":{"description":"Active workflows for the department","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["workflows"],"operationId":"getChecklists"},"post":{"summary":"Create Workflow","description":"Create Workflow","produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"postChecklists","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklists"}}],"responses":{"201":{"description":"Workflow created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"422":{"description":"Validation failed (e.g., missing department_id when creating new workflow)"}},"tags":["workflows"],"operationId":"postChecklists"},"delete":{"summary":"Deactivate a workflow by external ID","description":"Deactivate a workflow by external ID","produces":["application/json"],"parameters":[{"in":"query","name":"external_id","description":"External ID","type":"string","required":true}],"responses":{"204":{"description":"Workflow deactivated (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"No workflow with the given external_id"}},"tags":["workflows"],"operationId":"deleteChecklists"}},"/checklists/archived":{"get":{"summary":"List archived workflows","description":"List archived workflows","produces":["application/json"],"responses":{"200":{"description":"Archived workflows for the department","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["workflows"],"operationId":"getChecklistsArchived"}},"/checklists/import":{"post":{"summary":"Import a checklist from a JSON","description":"Import a checklist from a JSON","produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"postChecklistsImport","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsImport"}}],"responses":{"201":{"description":"Workflow imported","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — specified department is not accessible to the caller"},"422":{"description":"JSON import failed validation"}},"tags":["workflows"],"operationId":"postChecklistsImport"}},"/checklists/{id}":{"get":{"summary":"Show workflow","description":"Show workflow","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Workflow returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Workflow not found in this master account"}},"tags":["workflows"],"operationId":"getChecklistsId"},"put":{"summary":"Update a workflow","description":"Update a workflow","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"name":"putChecklistsId","in":"body","required":true,"schema":{"$ref":"#/definitions/putChecklistsId"}}],"responses":{"200":{"description":"Workflow updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Workflow not found in this master account"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"putChecklistsId"},"delete":{"summary":"Deactivate a workflow","description":"Deactivate a workflow","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Workflow deactivated (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Workflow not found in this master account"}},"tags":["workflows"],"operationId":"deleteChecklistsId"}},"/checklists/{id}/fields":{"get":{"summary":"List the workflow field definitions the caller can read","description":"List the workflow field definitions the caller can read","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"List the workflow field definitions the caller can read"}},"tags":["workflows"],"operationId":"getChecklistsIdFields"}},"/checklists/{id}/comments":{"post":{"summary":"Submit feedback to a workflow or one of its steps","description":"Submit feedback to a workflow or one of its steps","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdComments","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdComments"}}],"responses":{"200":{"description":"Comment created (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — feedback gathering is not enabled for this workflow"},"404":{"description":"Workflow or step not found in this master account"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"postChecklistsIdComments"}},"/checklists/{id}/steps":{"post":{"summary":"Create a Workflow Step","description":"Create a Workflow Step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdSteps","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdSteps"}}],"responses":{"201":{"description":"Step created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Workflow not found in this master account"},"422":{"description":"Validation failed (e.g., header step with parent, missing parent step)"}},"tags":["workflows"],"operationId":"postChecklistsIdSteps"},"get":{"summary":"List steps","description":"List steps","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Active steps for the workflow","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Workflow not found in this master account"}},"tags":["workflows"],"operationId":"getChecklistsIdSteps"}},"/checklists/{id}/hooks":{"get":{"summary":"List hooks","description":"List hooks","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"query","name":"target_url","description":"Target URL for Web Hook","type":"string","required":false},{"in":"query","name":"event","description":"Event for Web Hook","type":"string","required":false}],"responses":{"200":{"description":"Hooks for the workflow","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_HooksEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Workflow not found in this master account"}},"tags":["workflows"],"operationId":"getChecklistsIdHooks"},"post":{"summary":"Create a hook","description":"Create a hook","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdHooks","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdHooks"}}],"responses":{"201":{"description":"Hook created"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Workflow not found in this master account"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"postChecklistsIdHooks"}},"/checklists/{id}/hooks/unsubscribe":{"post":{"summary":"Delete a hook","description":"Delete a hook","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdHooksUnsubscribe","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdHooksUnsubscribe"}}],"responses":{"200":{"description":"Hook(s) deactivated"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"No hook with the given target_url"}},"tags":["workflows"],"operationId":"postChecklistsIdHooksUnsubscribe"}},"/checklists/{id}/steps/{step_id}":{"get":{"summary":"Show step","description":"Show step","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Step returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepId"},"put":{"summary":"Update a Workflow Step","description":"Update a Workflow Step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"putChecklistsIdStepsStepId","in":"body","required":true,"schema":{"$ref":"#/definitions/putChecklistsIdStepsStepId"}}],"responses":{"200":{"description":"Step updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Step not found in this workflow"},"422":{"description":"Validation failed (e.g., header step with parent, missing parent step)"}},"tags":["workflows"],"operationId":"putChecklistsIdStepsStepId"},"delete":{"summary":"Delete a Workflow Step","description":"Delete a Workflow Step","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Step deactivated (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"deleteChecklistsIdStepsStepId"}},"/checklists/{id}/steps/{step_id}/content_objects":{"get":{"summary":"List Content Objects","description":"List Content Objects","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Content objects for the step","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObjectsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdContentObjects"},"post":{"summary":"Create a Content Object","description":"Create a Content Object","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdStepsStepIdContentObjects","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdStepsStepIdContentObjects"}}],"responses":{"201":{"description":"Content object created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObjectEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Step not found in this workflow"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"postChecklistsIdStepsStepIdContentObjects"}},"/checklists/{id}/steps/{step_id}/content_objects/{content_object_id}":{"get":{"summary":"Show Content Object","description":"Show Content Object","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"content_object_id","description":"Content Object ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Content object returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObjectEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Content object not found in this step"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdContentObjectsContentObjectId"},"put":{"summary":"Update Content Object","description":"Update Content Object","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"content_object_id","description":"Content Object ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"putChecklistsIdStepsStepIdContentObjectsContentObjectId","in":"body","required":true,"schema":{"$ref":"#/definitions/putChecklistsIdStepsStepIdContentObjectsContentObjectId"}}],"responses":{"200":{"description":"Content object updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObjectEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Content object not found in this step"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"putChecklistsIdStepsStepIdContentObjectsContentObjectId"},"delete":{"summary":"Delete Content Object","description":"Delete Content Object","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"content_object_id","description":"Content Object ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Content object destroyed (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Content object not found in this step"}},"tags":["workflows"],"operationId":"deleteChecklistsIdStepsStepIdContentObjectsContentObjectId"}},"/checklists/{id}/steps/{step_id}/hooks":{"get":{"summary":"List hooks","description":"List hooks","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"query","name":"event","type":"string","required":false},{"in":"query","name":"target_url","type":"string","required":false},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Hooks for the step","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_HooksEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdHooks"},"post":{"summary":"Create a hook","description":"Create a hook","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdStepsStepIdHooks","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdStepsStepIdHooks"}}],"responses":{"201":{"description":"Hook created"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Step not found in this workflow"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"postChecklistsIdStepsStepIdHooks"}},"/checklists/{id}/steps/{step_id}/hooks/unsubscribe":{"post":{"summary":"Delete a hook","description":"Delete a hook","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdStepsStepIdHooksUnsubscribe","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdStepsStepIdHooksUnsubscribe"}}],"responses":{"200":{"description":"Hook(s) deactivated"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"No hook with the given target_url"}},"tags":["workflows"],"operationId":"postChecklistsIdStepsStepIdHooksUnsubscribe"}},"/checklists/{id}/steps/{step_id}/data_setting":{"get":{"summary":"Get data setting for step","description":"Get data setting for step","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Data setting returned (or empty object if not set)","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdDataSetting"},"put":{"summary":"Create or update data setting for step","description":"Create or update data setting for step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"putChecklistsIdStepsStepIdDataSetting","in":"body","required":true,"schema":{"$ref":"#/definitions/putChecklistsIdStepsStepIdDataSetting"}}],"responses":{"200":{"description":"Data setting created or updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required, or data_tables feature not enabled"},"404":{"description":"Step not found in this workflow"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"putChecklistsIdStepsStepIdDataSetting"},"delete":{"summary":"Delete data setting for step","description":"Delete data setting for step","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Data setting destroyed (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"No data setting on this step"}},"tags":["workflows"],"operationId":"deleteChecklistsIdStepsStepIdDataSetting"}},"/checklists/{id}/steps/{step_id}/data_settings":{"get":{"summary":"List data settings for step","description":"List data settings for step","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Data settings for the step","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_DataSettingsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — multi_data_settings feature not enabled"},"404":{"description":"Step not found in this workflow"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdDataSettings"},"post":{"summary":"Add a data setting to step","description":"Add a data setting to step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"name":"postChecklistsIdStepsStepIdDataSettings","in":"body","required":true,"schema":{"$ref":"#/definitions/postChecklistsIdStepsStepIdDataSettings"}}],"responses":{"201":{"description":"Data setting added","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required, or multi_data_settings/data_tables feature not enabled"},"404":{"description":"Step not found in this workflow"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"postChecklistsIdStepsStepIdDataSettings"}},"/checklists/{id}/steps/{step_id}/data_settings/{data_setting_id}":{"get":{"summary":"Show a data setting","description":"Show a data setting","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"in":"path","name":"data_setting_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Data setting returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — multi_data_settings feature not enabled"},"404":{"description":"Data setting not found on this step"}},"tags":["workflows"],"operationId":"getChecklistsIdStepsStepIdDataSettingsDataSettingId"},"put":{"summary":"Update a data setting","description":"Update a data setting","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"in":"path","name":"data_setting_id","type":"integer","format":"int32","required":true},{"name":"putChecklistsIdStepsStepIdDataSettingsDataSettingId","in":"body","required":true,"schema":{"$ref":"#/definitions/putChecklistsIdStepsStepIdDataSettingsDataSettingId"}}],"responses":{"200":{"description":"Data setting updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required, or multi_data_settings/data_tables feature not enabled"},"404":{"description":"Data setting not found on this step"},"422":{"description":"Validation failed"}},"tags":["workflows"],"operationId":"putChecklistsIdStepsStepIdDataSettingsDataSettingId"},"delete":{"summary":"Delete a data setting","description":"Delete a data setting","produces":["application/json"],"parameters":[{"in":"path","name":"id","description":"Workflow ID","type":"integer","format":"int32","required":true},{"in":"path","name":"step_id","type":"integer","format":"int32","required":true},{"in":"path","name":"data_setting_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Data setting destroyed (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required, or multi_data_settings feature not enabled"},"404":{"description":"Data setting not found on this step"}},"tags":["workflows"],"operationId":"deleteChecklistsIdStepsStepIdDataSettingsDataSettingId"}},"/departments":{"get":{"summary":"List departments","description":"List departments","produces":["application/json"],"parameters":[{"in":"query","name":"page","type":"integer","format":"int32","required":false},{"in":"query","name":"per_page","type":"integer","format":"int32","required":false}],"responses":{"200":{"description":"Active departments for the master account","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_DepartmentsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["departments"],"operationId":"getDepartments"},"post":{"summary":"Create a department","description":"Create a department","produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"postDepartments","in":"body","required":true,"schema":{"$ref":"#/definitions/postDepartments"}}],"responses":{"201":{"description":"Department created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_DepartmentEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"422":{"description":"Validation failed"}},"tags":["departments"],"operationId":"postDepartments"}},"/departments/{id}":{"put":{"summary":"Update a department","description":"Update a department","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"name":"putDepartmentsId","in":"body","required":true,"schema":{"$ref":"#/definitions/putDepartmentsId"}}],"responses":{"200":{"description":"Department updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_DepartmentEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — department admin role required (also returned when the department is not found in this master account)"},"422":{"description":"Validation failed"}},"tags":["departments"],"operationId":"putDepartmentsId"},"delete":{"summary":"Delete a department","description":"Delete a department","produces":["application/json"],"parameters":[{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Department deactivated (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — department admin role required (also returned when the department is not found in this master account)"}},"tags":["departments"],"operationId":"deleteDepartmentsId"}},"/runs":{"get":{"summary":"List visible runs","description":"List visible runs","produces":["application/json"],"parameters":[{"in":"query","name":"page","type":"integer","format":"int32","required":false},{"in":"query","name":"per_page","type":"integer","format":"int32","required":false},{"in":"query","name":"status","type":"string","enum":["blocked","scheduled","preparing","started","completed","closed","archived","upcoming","in-progress","late","not-closed"],"required":false},{"in":"query","name":"title","type":"string","required":false},{"in":"query","name":"checklist_id","type":"integer","format":"int32","required":false},{"in":"query","name":"external_id","type":"string","required":false}],"responses":{"200":{"description":"Runs matching the filters","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["runs"],"operationId":"getRuns"},"post":{"summary":"Create a run","description":"Create a run","produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"postRuns","in":"body","required":true,"schema":{"$ref":"#/definitions/postRuns"}}],"responses":{"201":{"description":"Run created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Workflow not found in this master account"},"422":{"description":"Validation failed"}},"tags":["runs"],"operationId":"postRuns"}},"/runs/{run_id}":{"delete":{"summary":"Close a run","description":"Close a run","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Run closed (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run not found in this master account"}},"tags":["runs"],"operationId":"deleteRunsRunId"},"get":{"summary":"Show run","description":"Show run","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run not found in this master account"}},"tags":["runs"],"operationId":"getRunsRunId"},"post":{"summary":"Update run","description":"Update run","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"name":"postRunsRunId","in":"body","required":true,"schema":{"$ref":"#/definitions/postRunsRunId"}}],"responses":{"200":{"description":"Run updated (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run not found in this master account"},"422":{"description":"Validation failed"}},"tags":["runs"],"operationId":"postRunsRunId"}},"/runs/{run_id}/fields":{"get":{"summary":"List the run field values the caller can read","description":"List the run field values the caller can read","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"List the run field values the caller can read"}},"tags":["runs"],"operationId":"getRunsRunIdFields"},"put":{"summary":"Set run field values on an existing run (admin only, per field)","description":"Set run field values on an existing run (admin only, per field)","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"name":"putRunsRunIdFields","in":"body","required":true,"schema":{"$ref":"#/definitions/putRunsRunIdFields"}}],"responses":{"200":{"description":"Set run field values on an existing run (admin only, per field)"}},"tags":["runs"],"operationId":"putRunsRunIdFields"}},"/runs/{run_id}/start":{"post":{"summary":"Start a run","description":"Start a run","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run started (returned unchanged if it could not start)","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run not found in this master account"}},"tags":["runs"],"operationId":"postRunsRunIdStart"}},"/runs/{run_id}/run_steps":{"get":{"summary":"List Run Steps for a Run","description":"List Run Steps for a Run","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Steps for the run","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStepsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run not found in this master account"}},"tags":["runs"],"operationId":"getRunsRunIdRunSteps"}},"/runs/{run_id}/run_steps/{id}/assign":{"post":{"summary":"Assign run step","description":"Assign run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"name":"postRunsRunIdRunStepsIdAssign","in":"body","required":true,"schema":{"$ref":"#/definitions/postRunsRunIdRunStepsIdAssign"}}],"responses":{"200":{"description":"Run step assigned (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdAssign"}},"/runs/{run_id}/run_steps/{id}/data":{"post":{"summary":"Save data for a run step","description":"Note: this endpoint only works for run steps with a single data setting. For steps with multiple data settings it will not write the value to the correct setting — use PUT /runs/{run_id}/run_steps/{id}/data_settings/{data_setting_id} instead.","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"name":"postRunsRunIdRunStepsIdData","in":"body","required":true,"schema":{"$ref":"#/definitions/postRunsRunIdRunStepsIdData"}}],"responses":{"200":{"description":"Data saved (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Data could not be saved"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdData"}},"/runs/{run_id}/run_steps/{id}/data_settings":{"get":{"summary":"List data settings for a run step","description":"List data settings for a run step","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Data settings for the run step","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStepDataSettingsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — multi_data_settings feature not enabled"},"404":{"description":"Run step not found in this run"}},"tags":["runs"],"operationId":"getRunsRunIdRunStepsIdDataSettings"}},"/runs/{run_id}/run_steps/{id}/data_settings/{data_setting_id}":{"get":{"summary":"Show a run step data setting","description":"Show a run step data setting","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"in":"path","name":"data_setting_id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Data setting returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — multi_data_settings feature not enabled"},"404":{"description":"Data setting not found on this run step"}},"tags":["runs"],"operationId":"getRunsRunIdRunStepsIdDataSettingsDataSettingId"},"put":{"summary":"Save data for a specific data setting","description":"Save data for a specific data setting","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"in":"path","name":"data_setting_id","type":"integer","format":"int32","required":true},{"name":"putRunsRunIdRunStepsIdDataSettingsDataSettingId","in":"body","required":true,"schema":{"$ref":"#/definitions/putRunsRunIdRunStepsIdDataSettingsDataSettingId"}}],"responses":{"200":{"description":"Data setting updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStepDataSetting"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — multi_data_settings feature not enabled"},"404":{"description":"Data setting not found on this run step"},"422":{"description":"Validation failed"}},"tags":["runs"],"operationId":"putRunsRunIdRunStepsIdDataSettingsDataSettingId"}},"/runs/{run_id}/run_steps/{id}/comments":{"get":{"summary":"List comments for a run step","description":"List comments for a run step","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Comments for the run step","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_CommentsEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"}},"tags":["runs"],"operationId":"getRunsRunIdRunStepsIdComments"},"post":{"summary":"Add a comment to a run step","description":"Add a comment to a run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Comment created (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Validation failed"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdComments"}},"/runs/{run_id}/run_steps/{id}/comments/{comment_id}":{"delete":{"summary":"Delete a comment from a run step","description":"Delete a comment from a run step","produces":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"in":"path","name":"comment_id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Comment deleted (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Comment not found on this run step"},"422":{"description":"Comment could not be deleted"}},"tags":["runs"],"operationId":"deleteRunsRunIdRunStepsIdCommentsCommentId"}},"/runs/{run_id}/run_steps/{id}/complete":{"post":{"summary":"Complete a run step","description":"Complete a run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run step completed (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Run step could not be completed (e.g., blocked or required data missing)"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdComplete"}},"/runs/{run_id}/run_steps/{id}/uncomplete":{"post":{"summary":"Uncomplete a run step","description":"Uncomplete a run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run step uncompleted (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Run step could not be uncompleted"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdUncomplete"}},"/runs/{run_id}/run_steps/{id}/skip":{"post":{"summary":"Skip a run step","description":"Skip a run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run step skipped (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Run step could not be skipped"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdSkip"}},"/runs/{run_id}/run_steps/{id}/unskip":{"post":{"summary":"Unskip a run step","description":"Unskip a run step","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"run_id","type":"integer","format":"int32","required":true},{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Run step unskipped (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"404":{"description":"Run step not found in this run"},"422":{"description":"Run step could not be unskipped"}},"tags":["runs"],"operationId":"postRunsRunIdRunStepsIdUnskip"}},"/memberships":{"post":{"summary":"Create membership","description":"Create membership","produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"postMemberships","in":"body","required":true,"schema":{"$ref":"#/definitions/postMemberships"}}],"responses":{"201":{"description":"Membership created","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_MembershipEnvelope"}},"400":{"description":"Invalid email or role (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"}},"tags":["memberships"],"operationId":"postMemberships"}},"/memberships/{id}":{"get":{"summary":"Show membership","description":"Show membership","produces":["application/json"],"parameters":[{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"200":{"description":"Membership returned","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_MembershipEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Membership not found in this master account"}},"tags":["memberships"],"operationId":"getMembershipsId"},"put":{"summary":"Update a membership","description":"Update a membership","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"path","name":"id","type":"integer","format":"int32","required":true},{"name":"putMembershipsId","in":"body","required":true,"schema":{"$ref":"#/definitions/putMembershipsId"}}],"responses":{"200":{"description":"Membership updated","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_MembershipEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Membership not found in this master account"},"422":{"description":"Validation failed (e.g., username already taken)"}},"tags":["memberships"],"operationId":"putMembershipsId"},"delete":{"summary":"Delete a membership","description":"Delete a membership","produces":["application/json"],"parameters":[{"in":"path","name":"id","type":"integer","format":"int32","required":true}],"responses":{"204":{"description":"Membership deleted (empty body)"},"401":{"description":"Unauthorized — invalid or missing API key"},"403":{"description":"Forbidden — admin role required"},"404":{"description":"Membership not found in this master account"}},"tags":["memberships"],"operationId":"deleteMembershipsId"}},"/users":{"get":{"summary":"List users","description":"Returns one row per membership: a user appears once for each department they belong to, so the same person can repeat across the list, each row carrying that membership's role and department details.","produces":["application/json"],"responses":{"200":{"description":"Memberships (flattened with user) in the master account","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_UsersEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["users"],"operationId":"getUsers"}},"/users/unique":{"get":{"summary":"List unique users","description":"Returns each active user exactly once, deduplicated across departments regardless of how many they belong to.","produces":["application/json"],"responses":{"200":{"description":"Unique users in the master account","schema":{"$ref":"#/definitions/Manifestly_V1_Entities_UniqueUsersEnvelope"}},"401":{"description":"Unauthorized — invalid or missing API key"}},"tags":["users"],"operationId":"getUsersUnique"}}},"definitions":{"Manifestly_V1_Entities_ChecklistsEnvelope":{"type":"object","properties":{"checklists":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Checklist"},"description":"Workflows for the department"}},"required":["checklists"],"description":"Manifestly_V1_Entities_ChecklistsEnvelope model"},"Manifestly_V1_Entities_Checklist":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Workflow ID"},"account_id":{"type":"integer","format":"int32","description":"Department ID that owns this workflow"},"title":{"type":"string","description":"Workflow title"},"description":{"type":"string","description":"Workflow description"},"expected_duration":{"type":"integer","format":"int32","description":"Expected duration value"},"expected_duration_units":{"type":"string","description":"Units for expected duration (e.g., \"minutes\", \"hours\", \"days\")"}},"required":["id","account_id","title","description","expected_duration","expected_duration_units"]},"postChecklists":{"type":"object","properties":{"title":{"type":"string","description":"Run Title"},"business_days":{"type":"array","items":{"type":"string"}},"channel":{"type":"string"},"description":{"type":"string","description":"Run Description"},"expected_duration":{"type":"integer","format":"int32"},"expected_duration_units":{"type":"string"},"external_id":{"type":"string","description":"External ID"},"hide_steps_from_external":{"type":"boolean","default":false},"tag_list":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Step Title"},"header_step":{"type":"boolean","description":"Is Header Step?","default":false},"position":{"type":"integer","format":"int32","description":"Step Position"}},"required":["title"]}}},"required":["title"],"description":"Create Workflow"},"Manifestly_V1_Entities_ChecklistEnvelope":{"type":"object","properties":{"checklist":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_ChecklistWithSteps"}],"description":"The workflow"}},"required":["checklist"],"description":"Manifestly_V1_Entities_ChecklistEnvelope model"},"Manifestly_V1_Entities_ChecklistWithSteps":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Workflow ID"},"account_id":{"type":"integer","format":"int32","description":"Department ID that owns this workflow"},"business_days":{"type":"array","description":"Business days the workflow runs (e.g., [\"Mon\",\"Tue\"])"},"channel":{"type":"string","description":"Notification channel (e.g., Slack channel name)"},"description":{"type":"string","description":"Workflow description"},"expected_duration":{"type":"integer","format":"int32","description":"Expected duration value"},"expected_duration_units":{"type":"string","description":"Units for expected duration"},"external_id":{"type":"string","description":"Customer-supplied external ID for upsert/lookup"},"hide_steps_from_external":{"type":"boolean","description":"Whether steps are hidden from external users"},"roles":{"type":"array","description":"Role assignments ({ role_id, name, user_emails })"},"tag_list":{"type":"array","description":"Tags applied to the workflow"},"title":{"type":"string","description":"Workflow title"},"steps":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Step"},"description":"Embedded workflow steps (omitted while steps are processed asynchronously)"}},"required":["id","account_id","business_days","channel","description","expected_duration","expected_duration_units","external_id","hide_steps_from_external","roles","tag_list","title"]},"Manifestly_V1_Entities_Step":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Step ID"},"active":{"type":"boolean","description":"Whether the step is active"},"assignee_id":{"type":"integer","format":"int32","description":"Assignee ID (user or role)"},"assignee_name":{"type":"string","description":"Assignee display name"},"assignee_type":{"type":"string","description":"Assignee type (\"User\" or \"Role\")"},"checklist_id":{"type":"integer","format":"int32","description":"Workflow ID this step belongs to"},"created_at":{"type":"string","format":"date-time","description":"Created-at timestamp"},"header_step":{"type":"boolean","description":"Whether this is a header step"},"late_at_offset":{"type":"integer","format":"int32","description":"Late-at offset value"},"late_at_offset_units":{"type":"string","description":"Late-at offset units"},"late_at_basis":{"type":"string","description":"Late-at basis (e.g., started_at, step_data_setting)"},"late_at_basis_step_data_setting_id":{"type":"integer","format":"int32","description":"Step data setting ID used as late-at basis"},"original_id":{"type":"integer","format":"int32","description":"Source step ID when copied from a template"},"parent_step_id":{"type":"integer","format":"int32","description":"Parent header step ID for substeps"},"position":{"type":"integer","format":"int32","description":"Display position"},"title":{"type":"string","description":"Step title"},"updated_at":{"type":"string","format":"date-time","description":"Updated-at timestamp"}},"required":["id","active","assignee_id","assignee_name","assignee_type","checklist_id","created_at","header_step","late_at_offset","late_at_offset_units","late_at_basis","late_at_basis_step_data_setting_id","original_id","parent_step_id","position","title","updated_at"]},"postChecklistsImport":{"type":"object","properties":{"department_id":{"type":"integer","format":"int32","description":"Department ID"},"json":{"type":"string","description":"JSON"}},"required":["department_id","json"],"description":"Import a checklist from a JSON"},"putChecklistsId":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"expected_duration":{"type":"integer","format":"int32"},"expected_duration_units":{"type":"string"},"tag_list":{"type":"array","items":{"type":"string"}},"hide_steps_from_external":{"type":"boolean"},"business_days":{"type":"array","items":{"type":"string"}}},"description":"Update a workflow"},"postChecklistsIdComments":{"type":"object","properties":{"comment":{"type":"string","description":"The comment text"},"step_id":{"type":"integer","format":"int32","description":"Add the comment to this step instead of the workflow itself"}},"required":["comment"],"description":"Submit feedback to a workflow or one of its steps"},"postChecklistsIdSteps":{"type":"object","properties":{"title":{"type":"string","description":"Step Title"},"header_step":{"type":"boolean","description":"Is Header Step?","default":false},"parent_step_id":{"type":"integer","format":"int32","description":"Parent Step ID","default":null},"position":{"type":"integer","format":"int32","description":"Step Position"}},"description":"Create a Workflow Step"},"Manifestly_V1_Entities_StepEnvelope":{"type":"object","properties":{"step":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_Step"}],"description":"The workflow step"}},"required":["step"],"description":"Manifestly_V1_Entities_StepEnvelope model"},"Manifestly_V1_Entities_HooksEnvelope":{"type":"object","properties":{"hooks":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Hook"},"description":"Web hooks"}},"required":["hooks"],"description":"Manifestly_V1_Entities_HooksEnvelope model"},"Manifestly_V1_Entities_Hook":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Hook ID"},"url":{"type":"string","description":"Target URL the webhook posts to"},"event":{"type":"string","description":"Event name the hook subscribes to"}},"required":["id","url","event"]},"postChecklistsIdHooksUnsubscribe":{"type":"object","properties":{"target_url":{"type":"string","description":"Target URL for Web Hook"},"event":{"type":"string","description":"Event for Web Hook"}},"description":"Delete a hook"},"postChecklistsIdHooks":{"type":"object","properties":{"target_url":{"type":"string","description":"Target URL for Web Hook"},"event":{"type":"string","description":"Event for Web Hook"}},"description":"Create a hook"},"Manifestly_V1_Entities_StepsEnvelope":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Step"},"description":"Steps for the workflow"}},"required":["steps"],"description":"Manifestly_V1_Entities_StepsEnvelope model"},"putChecklistsIdStepsStepId":{"type":"object","properties":{"title":{"type":"string","description":"Step Title"},"header_step":{"type":"boolean","description":"Is Header Step?","default":false},"parent_step_id":{"type":"integer","format":"int32","description":"Parent Step ID","default":null},"position":{"type":"integer","format":"int32","description":"Step Position"}},"description":"Update a Workflow Step"},"Manifestly_V1_Entities_ContentObjectsEnvelope":{"type":"object","properties":{"content_objects":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObject"},"description":"Content objects for the step"}},"required":["content_objects"],"description":"Manifestly_V1_Entities_ContentObjectsEnvelope model"},"Manifestly_V1_Entities_ContentObject":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Content Object ID"},"step_id":{"type":"integer","format":"int32","description":"Step ID this content object belongs to"},"content":{"type":"string","description":"Content body"},"content_type":{"type":"string","description":"Content type (e.g., \"text\", \"image\", \"video\")"},"caption":{"type":"string","description":"Caption (used for images/videos)"},"position":{"type":"integer","format":"int32","description":"Display position within the step"}},"required":["id","step_id","content","content_type","caption","position"]},"postChecklistsIdStepsStepIdContentObjects":{"type":"object","properties":{"content":{"type":"string"},"position":{"type":"integer","format":"int32"},"caption":{"type":"string"},"content_type":{"type":"string"}},"required":["content_type"],"description":"Create a Content Object"},"Manifestly_V1_Entities_ContentObjectEnvelope":{"type":"object","properties":{"content_object":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_ContentObject"}],"description":"The content object"}},"required":["content_object"],"description":"Manifestly_V1_Entities_ContentObjectEnvelope model"},"putChecklistsIdStepsStepIdContentObjectsContentObjectId":{"type":"object","properties":{"content":{"type":"string"},"position":{"type":"integer","format":"int32"},"caption":{"type":"string"},"content_type":{"type":"string"}},"required":["content_type"],"description":"Update Content Object"},"postChecklistsIdStepsStepIdHooksUnsubscribe":{"type":"object","properties":{"event":{"type":"string"},"target_url":{"type":"string"}},"description":"Delete a hook"},"postChecklistsIdStepsStepIdHooks":{"type":"object","properties":{"event":{"type":"string"},"target_url":{"type":"string"}},"description":"Create a hook"},"Manifestly_V1_Entities_StepDataSetting":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Step data setting ID"},"label":{"type":"string","description":"Display label (max 75 chars)"},"required":{"type":"boolean","description":"Whether the data is required"},"value_format":{"type":"string","description":"Data format (text, paragraph, date, datetime, email, phone, list, number, file, image, signature, url, choose_from_data_table)"},"value_format_config":{"type":"Object","description":"Per-format configuration hash"},"values":{"type":"array","description":"Selectable values (for list type)"},"primary":{"type":"boolean","description":"Whether this is the primary data setting for the step"},"position":{"type":"integer","format":"int32","description":"Display position among multi data settings"}},"required":["id","label","required","value_format","value_format_config","values","primary","position"],"description":"Manifestly_V1_Entities_StepDataSetting model"},"putChecklistsIdStepsStepIdDataSetting":{"type":"object","properties":{"value_format":{"type":"string","description":"Data format (text, paragraph, date, datetime, email, phone, list, number, file, image, signature, url, choose_from_data_table)"},"label":{"type":"string","description":"Label for the data (max 75 chars)"},"required":{"type":"boolean","description":"Whether data is required","default":false},"values":{"type":"array","description":"List of choices (for list type only)","items":{"type":"string"}},"value_selection_type":{"type":"string","description":"Selection type: single or multi (for list type only)"},"data_table_id":{"type":"integer","format":"int32","description":"Data Table ID (for choose_from_data_table type only)"},"display_column_id":{"type":"integer","format":"int32","description":"Display Column ID (for choose_from_data_table type only)"},"number_min":{"type":"number","format":"float","description":"Minimum allowed value (for number type only)"},"number_max":{"type":"number","format":"float","description":"Maximum allowed value (for number type only)"},"max_decimal_places":{"type":"integer","format":"int32","description":"Maximum decimal places (for number type only)"},"allow_negative":{"type":"boolean","description":"Whether negative values are allowed (for number type only); defaults to true"}},"required":["value_format"],"description":"Create or update data setting for step"},"Manifestly_V1_Entities_DataSettingsEnvelope":{"type":"object","properties":{"data_settings":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_StepDataSetting"},"description":"Data settings for the step"}},"required":["data_settings"],"description":"Manifestly_V1_Entities_DataSettingsEnvelope model"},"postChecklistsIdStepsStepIdDataSettings":{"type":"object","properties":{"value_format":{"type":"string","description":"Data format (text, paragraph, date, datetime, email, phone, list, number, file, image, signature, url, choose_from_data_table)"},"label":{"type":"string","description":"Label for the data (max 75 chars)"},"required":{"type":"boolean","description":"Whether data is required","default":false},"values":{"type":"array","description":"List of choices (for list type only)","items":{"type":"string"}},"value_selection_type":{"type":"string","description":"Selection type: single or multi (for list type only)"},"data_table_id":{"type":"integer","format":"int32","description":"Data Table ID (for choose_from_data_table type only)"},"display_column_id":{"type":"integer","format":"int32","description":"Display Column ID (for choose_from_data_table type only)"},"number_min":{"type":"number","format":"float","description":"Minimum allowed value (for number type only)"},"number_max":{"type":"number","format":"float","description":"Maximum allowed value (for number type only)"},"max_decimal_places":{"type":"integer","format":"int32","description":"Maximum decimal places (for number type only)"},"allow_negative":{"type":"boolean","description":"Whether negative values are allowed (for number type only); defaults to true"}},"required":["value_format"],"description":"Add a data setting to step"},"putChecklistsIdStepsStepIdDataSettingsDataSettingId":{"type":"object","properties":{"value_format":{"type":"string","description":"Data format"},"label":{"type":"string","description":"Label for the data (max 75 chars)"},"required":{"type":"boolean","description":"Whether data is required"},"values":{"type":"array","description":"List of choices (for list type only)","items":{"type":"string"}},"value_selection_type":{"type":"string","description":"Selection type: single or multi (for list type only)"},"data_table_id":{"type":"integer","format":"int32","description":"Data Table ID (for choose_from_data_table type only)"},"display_column_id":{"type":"integer","format":"int32","description":"Display Column ID (for choose_from_data_table type only)"},"number_min":{"type":"number","format":"float","description":"Minimum allowed value (for number type only)"},"number_max":{"type":"number","format":"float","description":"Maximum allowed value (for number type only)"},"max_decimal_places":{"type":"integer","format":"int32","description":"Maximum decimal places (for number type only)"},"allow_negative":{"type":"boolean","description":"Whether negative values are allowed (for number type only); defaults to true"}},"required":["value_format"],"description":"Update a data setting"},"Manifestly_V1_Entities_DepartmentsEnvelope":{"type":"object","properties":{"departments":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Department"},"description":"Active departments for the master account"},"meta":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_PaginationMeta"}],"description":"Pagination metadata"}},"required":["departments","meta"],"description":"Manifestly_V1_Entities_DepartmentsEnvelope model"},"Manifestly_V1_Entities_Department":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Department ID"},"master_account_id":{"type":"integer","format":"int32","description":"ID of the master account this department belongs to"},"master_account_name":{"type":"string","description":"Name of the master account this department belongs to"},"invitation_url":{"type":"string","description":"Public self-signup invitation URL, or null when no public token is set"},"signup_message":{"type":"string","description":"Message shown to users signing up via the invitation URL"},"name":{"type":"string","description":"Department name"}},"required":["id","master_account_id","master_account_name","invitation_url","signup_message","name"]},"Manifestly_V1_Entities_PaginationMeta":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","description":"Current page number"},"next_page":{"type":"integer","format":"int32","description":"Next page number, or null on the last page"},"previous_page":{"type":"integer","format":"int32","description":"Previous page number, or null on the first page"},"total_pages":{"type":"integer","format":"int32","description":"Total number of pages"},"total_entries":{"type":"integer","format":"int32","description":"Total number of records across all pages"},"per_page":{"type":"integer","format":"int32","description":"Page size"}},"required":["current_page","next_page","previous_page","total_pages","total_entries","per_page"]},"postDepartments":{"type":"object","properties":{"name":{"type":"string"},"signup_message":{"type":"string"},"time_zone_name":{"type":"string"},"generate_invitation_url":{"type":"boolean"}},"required":["name"],"description":"Create a department"},"Manifestly_V1_Entities_DepartmentEnvelope":{"type":"object","properties":{"department":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_Department"}],"description":"The department"}},"required":["department"],"description":"Manifestly_V1_Entities_DepartmentEnvelope model"},"putDepartmentsId":{"type":"object","properties":{"name":{"type":"string"},"signup_message":{"type":"string"},"time_zone_name":{"type":"string"},"regenerate_invitation_url":{"type":"boolean"}},"description":"Update a department"},"Manifestly_V1_Entities_RunsEnvelope":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Run"},"description":"Runs matching the filters"},"meta":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_PaginationMeta"}],"description":"Pagination metadata"}},"required":["runs","meta"],"description":"Manifestly_V1_Entities_RunsEnvelope model"},"Manifestly_V1_Entities_Run":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Run ID"},"account_id":{"type":"integer","format":"int32","description":"Department ID that owns this run"},"archive_url":{"type":"string","description":"PDF archive URL"},"channel":{"type":"string","description":"Notification channel (e.g., Slack channel name)"},"checklist_id":{"type":"integer","format":"int32","description":"Workflow ID this run was created from"},"checklist_title":{"type":"string","description":"Title of the workflow this run was created from"},"completed_at":{"type":"string","format":"date-time","description":"Completed-at timestamp"},"description":{"type":"string","description":"Run description"},"detailed_title":{"type":"string","description":"Title including run date/identifier"},"external_id":{"type":"string","description":"Customer-supplied external ID"},"late_at":{"type":"string","format":"date-time","description":"Late-at timestamp"},"percent_completed":{"type":"number","format":"float","description":"Fraction of completable steps completed (0.0–1.0)"},"shared_publicly":{"type":"boolean","description":"Whether the run is published to a public URL"},"shared_publicly_at":{"type":"string","format":"date-time","description":"When the run was published (ISO 8601)"},"public_url":{"type":"string","description":"Public URL when shared, otherwise null"},"started_at":{"type":"string","format":"date-time","description":"Started-at timestamp"},"state":{"type":"string","description":"Run state (e.g., preparing, started, completed, closed)"},"summary":{"type":"string","description":"Human-readable status summary"},"tag_list":{"type":"array","description":"Tags applied to the run"},"title":{"type":"string","description":"Run title"},"version":{"type":"integer","format":"int32","description":"Workflow version this run was created from"},"hide_steps_from_external":{"type":"boolean","description":"Whether steps are hidden from external users"},"only_assigned_can_complete":{"type":"boolean","description":"Whether only assigned users may complete steps"},"source_run_id":{"type":"integer","format":"int32","description":"Source run ID when this run was spawned by a workflow link"},"users":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_User"},"description":"Users participating in the run"}},"required":["id","account_id","archive_url","channel","checklist_id","checklist_title","completed_at","description","detailed_title","external_id","late_at","percent_completed","shared_publicly","shared_publicly_at","public_url","started_at","state","summary","tag_list","title","version","hide_steps_from_external","only_assigned_can_complete","source_run_id","users"]},"Manifestly_V1_Entities_User":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"User ID"},"avatar_url":{"type":"string","description":"Public avatar URL"},"email":{"type":"string","description":"Email address"},"name":{"type":"string","description":"Full name"},"simple_display_name":{"type":"string","description":"Short display name"},"username":{"type":"string","description":"Username"}},"required":["id","avatar_url","email","name","simple_display_name","username"]},"postRuns":{"type":"object","properties":{"checklist_id":{"type":"integer","format":"int32"},"channel":{"type":"string"},"external_id":{"type":"string"},"title":{"type":"string"},"users":{"type":"string"},"origin":{"type":"string"},"late_at":{"type":"string"},"started_at":{"type":"string"},"tag_list":{"type":"array","items":{"type":"string"}},"notes":{"type":"string"},"roles_to_users":{"type":"object"},"data_choices":{"type":"object"},"field_values":{"type":"object","description":"Prefill workflow field values, keyed by workflow_field_id. Each value is validated against the field format (number constraints, list/data-table membership, etc.); a value that fails validation returns 422 and no run is created. Token values ({{...}}) resolve at run time and are not validated here. Upload/signature fields cannot be prefilled this way."}},"required":["checklist_id"],"description":"Create a run"},"Manifestly_V1_Entities_RunEnvelope":{"type":"object","properties":{"run":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_Run"}],"description":"The run"}},"required":["run"],"description":"Manifestly_V1_Entities_RunEnvelope model"},"putRunsRunIdFields":{"type":"object","properties":{"field_values":{"type":"object"}},"description":"Set run field values on an existing run (admin only, per field)"},"postRunsRunId":{"type":"object","properties":{"run":{"type":"object","properties":{"title":{"type":"string"},"external_id":{"type":"string"},"channel":{"type":"string"},"users":{"type":"string"},"origin":{"type":"string"},"tag_list":{"type":"array","items":{"type":"string"}},"late_at":{"type":"string"},"notes":{"type":"string"}}}},"description":"Update run"},"Manifestly_V1_Entities_RunStepsEnvelope":{"type":"object","properties":{"run_steps":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStep"},"description":"Steps for the run"}},"required":["run_steps"],"description":"Manifestly_V1_Entities_RunStepsEnvelope model"},"Manifestly_V1_Entities_RunStep":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Run step ID"},"run_id":{"type":"integer","format":"int32","description":"Run ID this step belongs to"},"step_id":{"type":"integer","format":"int32","description":"Source workflow step ID"},"title":{"type":"string","description":"Step title"},"kind":{"type":"string","description":"Step kind"},"position":{"type":"integer","format":"int32","description":"Display position"},"header_step":{"type":"boolean","description":"Whether this is a header step"},"completed_at":{"type":"string","format":"date-time","description":"Completed-at timestamp"},"late_at":{"type":"string","format":"date-time","description":"Late-at timestamp"},"skipped":{"type":"boolean","description":"Whether the step has been skipped"},"blocked_by_stop_task":{"type":"boolean","description":"Whether the step is blocked by an incomplete stop task"},"blocking_run_step_id":{"type":"integer","format":"int32","description":"ID of the stop-task run step blocking this one, if any"},"data":{"type":"string","description":"Data value or upload URL captured for the step"},"description_with_links":{"type":"string","description":"Step description rendered to HTML with links"},"run_detailed_title":{"type":"string","description":"Detailed title of the parent run"},"user_id":{"type":"integer","format":"int32","description":"ID of the user who completed the step"},"assignee_id":{"type":"integer","format":"int32","description":"Assignment ID (assignee), if assigned"},"assignee_user_id":{"type":"integer","format":"int32","description":"User ID of the assignee"},"assignee_name":{"type":"string","description":"Assignee display name"},"assignee_simple_display_name":{"type":"string","description":"Assignee short display name"},"assignee_avatar_url":{"type":"string","description":"Assignee avatar URL"},"comments":{"type":"array","description":"Comments on the run step"},"run_step_data_setting":{"type":"Object","description":"Primary data setting for the step (null if none); includes a nested data_settings array when multi_data_settings is enabled"},"user":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_User"}],"description":"User who completed the step (null if none)"},"subtasks":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Subtask"},"description":"Subtasks of the step (present only when the step has subtasks)"}},"required":["id","run_id","step_id","title","kind","position","header_step","completed_at","late_at","skipped","blocked_by_stop_task","blocking_run_step_id","data","description_with_links","run_detailed_title","user_id","assignee_id","assignee_user_id","assignee_name","assignee_simple_display_name","assignee_avatar_url","comments","run_step_data_setting","user"]},"Manifestly_V1_Entities_Subtask":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Subtask ID"},"title":{"type":"string","description":"Subtask title"},"position":{"type":"integer","format":"int32","description":"Display position"},"completed_at":{"type":"string","format":"date-time","description":"Completed-at timestamp (run context only)"},"completed_by_id":{"type":"integer","format":"int32","description":"ID of the user who completed it (run context only)"}},"required":["id","title","position","completed_at","completed_by_id"]},"postRunsRunIdRunStepsIdAssign":{"type":"object","properties":{"assignee_id":{"type":"integer","format":"int32"}},"description":"Assign run step"},"postRunsRunIdRunStepsIdData":{"type":"object","properties":{"data":{"type":"string"},"data_upload_content_type":{"type":"string"},"data_upload_original_filename":{"type":"string"},"data_upload_file_size":{"type":"integer","format":"int32"}},"description":"Save data for a run step"},"Manifestly_V1_Entities_RunStepDataSettingsEnvelope":{"type":"object","properties":{"data_settings":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_RunStepDataSetting"},"description":"Data settings for the run step"}},"required":["data_settings"],"description":"Manifestly_V1_Entities_RunStepDataSettingsEnvelope model"},"Manifestly_V1_Entities_RunStepDataSetting":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Run step data setting ID"},"label":{"type":"string","description":"Display label (max 75 chars)"},"required":{"type":"boolean","description":"Whether the data is required"},"value_format":{"type":"string","description":"Data format (text, paragraph, date, datetime, email, phone, list, number, file, image, signature, url, choose_from_data_table)"},"value_format_config":{"type":"Object","description":"Per-format configuration hash"},"values":{"type":"array","description":"Selectable values (for selectable types), otherwise null"},"value":{"type":"string","description":"Captured data value for this run step"},"primary":{"type":"boolean","description":"Whether this is the primary data setting for the step"},"position":{"type":"integer","format":"int32","description":"Display position among multi data settings"}},"required":["id","label","required","value_format","value_format_config","values","value","primary","position"],"description":"Manifestly_V1_Entities_RunStepDataSetting model"},"putRunsRunIdRunStepsIdDataSettingsDataSettingId":{"type":"object","properties":{"value":{"type":"string","description":"Data value"}},"description":"Save data for a specific data setting"},"Manifestly_V1_Entities_CommentsEnvelope":{"type":"object","properties":{"comments":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_Comment"},"description":"Comments on the run step"}},"required":["comments"],"description":"Manifestly_V1_Entities_CommentsEnvelope model"},"Manifestly_V1_Entities_Comment":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Comment ID"},"comment_with_links":{"type":"string","description":"Comment body rendered to HTML with links"},"created_at":{"type":"string","format":"date-time","description":"Created-at timestamp"},"user":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_User"}],"description":"Author of the comment (null if none)"}},"required":["id","comment_with_links","created_at","user"]},"postMemberships":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string"},"department_id":{"type":"integer","format":"int32"},"name":{"type":"string"}},"required":["email","role"],"description":"Create membership"},"Manifestly_V1_Entities_MembershipEnvelope":{"type":"object","properties":{"membership":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_Membership"}],"description":"The membership"}},"required":["membership"],"description":"Manifestly_V1_Entities_MembershipEnvelope model"},"Manifestly_V1_Entities_Membership":{"type":"object","properties":{"errors":{"type":"Object","description":"Validation errors keyed by attribute; empty object when the membership is valid"},"id":{"type":"integer","format":"int32","description":"Membership ID"},"role":{"type":"string","description":"Membership role (admin, user, member, limited)"},"account":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_Account"}],"description":"The department (account) this membership belongs to"},"user":{"allOf":[{"$ref":"#/definitions/Manifestly_V1_Entities_User"}],"description":"The user this membership belongs to"}},"required":["errors","id","role","account","user"]},"Manifestly_V1_Entities_Account":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"Department (account) ID"},"master_account_id":{"type":"integer","format":"int32","description":"Master account ID this department belongs to"},"master_account_name":{"type":"string","description":"Master account name"},"invitation_url":{"type":"string","description":"Public join URL, or null when no public token is set"},"signup_message":{"type":"string","description":"Custom message shown on the join page"},"name":{"type":"string","description":"Department name"}},"required":["id","master_account_id","master_account_name","invitation_url","signup_message","name"]},"putMembershipsId":{"type":"object","properties":{"role":{"type":"string"},"username":{"type":"string"}},"required":["role","username"],"description":"Update a membership"},"Manifestly_V1_Entities_UsersEnvelope":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_MembershipWithUser"},"description":"Memberships (flattened with user) in the master account"}},"required":["users"],"description":"Manifestly_V1_Entities_UsersEnvelope model"},"Manifestly_V1_Entities_MembershipWithUser":{"type":"object","properties":{"avatar_url":{"type":"string","description":"Public avatar URL"},"department_id":{"type":"integer","format":"int32","description":"Department (account) ID"},"department_name":{"type":"string","description":"Department (account) name"},"master_account_id":{"type":"integer","format":"int32","description":"Master account ID"},"email":{"type":"string","description":"Email address"},"id":{"type":"integer","format":"int32","description":"User ID (retained for backwards compatibility)"},"membership_id":{"type":"integer","format":"int32","description":"Membership ID"},"name":{"type":"string","description":"Full name"},"role":{"type":"string","description":"Membership role (admin, user, member, limited)"},"simple_display_name":{"type":"string","description":"Short display name (falls back to email)"},"username":{"type":"string","description":"Username"}},"required":["avatar_url","department_id","department_name","master_account_id","email","id","membership_id","name","role","simple_display_name","username"]},"Manifestly_V1_Entities_UniqueUsersEnvelope":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/definitions/Manifestly_V1_Entities_User"},"description":"Unique users in the master account"}},"required":["users"],"description":"Manifestly_V1_Entities_UniqueUsersEnvelope model"}}}