openapi: 3.0.0 info: contact: email: hello@unified.to url: https://unified.to/contact description: One API to Rule Them All termsOfService: https://unified.to/tos title: Unified.to account timeoff API version: '1.0' servers: - description: North American data region url: https://api.unified.to - description: European data region url: https://api-eu.unified.to - description: Australian data region url: https://api-au.unified.to security: - jwt: [] tags: - name: timeoff paths: /hris/{connection_id}/timeoff: get: operationId: listHrisTimeoffs parameters: - in: query name: limit required: false schema: type: number - in: query name: offset required: false schema: type: number - description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) in: query name: updated_gte required: false schema: type: string - in: query name: sort required: false schema: type: string - in: query name: order required: false schema: type: string - description: Query string to search. eg. email address or name in: query name: query required: false schema: type: string - description: The user/employee ID to filter by (reference to HrisEmployee) in: query name: user_id required: false schema: type: string - description: The company ID to filter by (reference to HrisCompany) in: query name: company_id required: false schema: type: string - description: The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) in: query name: start_gte required: false schema: type: string - description: The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) in: query name: end_lt required: false schema: type: string - description: Fields to return in: query name: fields required: false schema: items: enum: - id - created_at - updated_at - user_id - company_id - start_at - end_at - is_paid - status - approver_user_id - approved_at - comments - raw - reason type: string type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/HrisTimeoffs' description: Successful security: - jwt: [] summary: List All Timeoffs tags: - timeoff post: operationId: createHrisTimeoff parameters: - description: Fields to return in: query name: fields required: false schema: items: enum: - id - created_at - updated_at - user_id - company_id - start_at - end_at - is_paid - status - approver_user_id - approved_at - comments - raw - reason type: string type: array type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' description: Successful security: - jwt: [] summary: Create a Timeoff tags: - timeoff /hris/{connection_id}/timeoff/{id}: delete: operationId: removeHrisTimeoff parameters: - description: ID of the connection in: path name: connection_id required: true schema: type: string - description: ID of the Timeoff in: path name: id required: true schema: type: string responses: '200': description: Successful default: content: {} description: Successful headers: Content-Type: required: false schema: type: string security: - jwt: [] summary: Remove a Timeoff tags: - timeoff get: operationId: getHrisTimeoff parameters: - description: Fields to return in: query name: fields required: false schema: items: enum: - id - created_at - updated_at - user_id - company_id - start_at - end_at - is_paid - status - approver_user_id - approved_at - comments - raw - reason type: string type: array type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string - description: ID of the Timeoff in: path name: id required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' description: Successful security: - jwt: [] summary: Retrieve a Timeoff tags: - timeoff patch: operationId: patchHrisTimeoff parameters: - description: Fields to return in: query name: fields required: false schema: items: enum: - id - created_at - updated_at - user_id - company_id - start_at - end_at - is_paid - status - approver_user_id - approved_at - comments - raw - reason type: string type: array type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string - description: ID of the Timeoff in: path name: id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' description: Successful security: - jwt: [] summary: Update a Timeoff tags: - timeoff put: operationId: updateHrisTimeoff parameters: - description: Fields to return in: query name: fields required: false schema: items: enum: - id - created_at - updated_at - user_id - company_id - start_at - end_at - is_paid - status - approver_user_id - approved_at - comments - raw - reason type: string type: array type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string - description: ID of the Timeoff in: path name: id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/HrisTimeoff' description: Successful security: - jwt: [] summary: Update a Timeoff tags: - timeoff components: schemas: HrisTimeoff: properties: approved_at: format: date-time type: string approver_user_id: type: string comments: type: string company_id: type: string created_at: format: date-time type: string end_at: format: date-time type: string id: type: string is_paid: type: boolean raw: additionalProperties: true type: object reason: type: string start_at: format: date-time type: string status: enum: - APPROVED - PENDING - DENIED type: string x-speakeasy-unknown-values: allow updated_at: format: date-time type: string user_id: type: string required: - start_at type: object HrisTimeoffs: items: $ref: '#/components/schemas/HrisTimeoff' type: array securitySchemes: jwt: in: header name: authorization type: apiKey externalDocs: description: API Documentation url: https://docs.unified.to