{"openapi":"3.0.0","servers":[{"url":"https://virtserver.swaggerhub.com/users"}],"info":{"version":"april-9","title":"87percent-users","description":"87percent-users"},"paths":{"/accounts/employee":{"post":{"description":"Create employee (mobile app user) account","responses":{"201":{"description":"Account created"}}}},"/accounts/team-member":{"post":{"description":"Create team member & admin account","responses":{"201":{"description":"Account created"}}}},"/accounts/login":{"post":{"description":"Login","responses":{"200":{"description":"Token & account details"}}}},"/accounts/logout":{"post":{"description":"Logout","responses":{"200":{"description":"Ok."}}}},"/accounts/reset-password-request":{"post":{"description":"Sends reset password email","responses":{"200":{"description":"Ok."}}}},"/accounts/reset-password":{"post":{"description":"Sets a new password, if tokens match","responses":{"200":{"description":"Ok."}}}},"/accounts/confirm":{"post":{"description":"Confirms user email","responses":{"200":{"description":"Ok."}}}},"/accounts/{id}":{"get":{"description":"Get account details","responses":{"200":{"description":"Account details."}}}},"/accounts/edit/employee/{id}":{"patch":{"description":"Change account details for employee (mobile app user)","responses":{"200":{"description":"Ok."}}}},"/accounts/edit/team-member/{id}":{"patch":{"description":"Change account details for team-members and admins","responses":{"200":{"description":"Ok."}}}},"/accounts/{id}/disable":{"post":{"description":"Disables user","responses":{"200":{"description":"Ok."}}}},"/accounts/{id}/leave":{"post":{"description":"Employee leaving scenario","responses":{"405":{"description":"Not defined."}}}},"/accounts/{id}/remove-all-data":{"post":{"description":"Removes all user data","responses":{"200":{"description":"Ok."}}}},"/companies":{"get":{"description":"List companies.","responses":{"200":{"description":"Companies list."}}},"post":{"description":"Create company.","responses":{"201":{"description":"Cofirmation."}}}},"/companies/{id}":{"get":{"description":"Get company details.","responses":{"200":{"description":"Company details."}}},"patch":{"description":"Change company details (name).","responses":{"200":{"description":"Ok."}}},"delete":{"description":"Remove company","responses":{"405":{"description":"Company removal is not yet supported."}}}},"/companies/{id}/employees":{"get":{"description":"List company invitations for mobile app.","responses":{"200":{"description":"Mobile app invitations list."}}}},"/companies/{id}/team-members":{"get":{"description":"List company team members (HR)","responses":{"200":{"description":"Team members list."}}}},"/companies/{id}/accounts":{"get":{"description":"List company mobile app users.","responses":{"200":{"description":"Mobile app users list."}}}},"/employees":{"post":{"description":"Create an employee.","responses":{"201":{"description":"Confirmation."}}}},"/employees/batch":{"post":{"description":"Batch create employees, from CSV file uploaded to this endpoint.","responses":{"201":{"description":"Confirmation."}}}},"/employees/batch/template":{"get":{"description":"Get template CSV file for /employees/batch","responses":{"200":{"description":"CSV file."}}}},"/employees/{id}":{"get":{"description":"Get employee details.","responses":{"200":{"description":"Employee details."}}},"patch":{"description":"Change employee details (???).","responses":{"200":{"description":"Ok."}}},"delete":{"description":"Remove employee","responses":{"200":{"description":"Confirmation."}}}},"/employees/disable/{id}":{"post":{"description":"Disable employee","responses":{"200":{"description":"Ok."}}}},"/employees/disable/batch":{"post":{"description":"Batch disable employees","responses":{"200":{"description":"Ok."}}}},"/employees/invite/{id}":{"post":{"description":"Invite employee","responses":{"200":{"description":"Ok."}}}},"/employees/invite/batch":{"post":{"description":"Batch invite employees","responses":{"200":{"description":"Ok."}}}}},"components":{"schemas":{}}}