openapi: 3.2.0 info: title: Karbonhq Work Schedules API version: v3 contact: name: API Support url: https://developers.karbonhq.com/issues/ license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: https://karbonhq.com/terms-of-use/ description: 'Operations tagged Work Schedules across 2 of this provider''s published API definitions: KarbonAPI.json, karbonhq-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.karbonhq.com description: The production API server security: - ApiKeyAuth: [] BearerAuth: [] tags: - name: Work Schedules description: Set a Work Item to repeat on a defined schedule. Read more paths: /v3/WorkSchedules: post: tags: - Work Schedules summary: Creates a new Work Schedule description: Use the `POST` method on this endpoint to create a new Work Schedule in your tenant. operationId: createWorkSchedule responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/GetWorkSchedule' headers: Location: description: The endpoint URL to the newly created Work Schedule. schema: type: string example: https://api.karbonhq.com/v3/WorkSchedules('4yRJNlPnjgtL') '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Missing CreatedFromWorkItemKey: $ref: '#/components/examples/Missing_CreatedFromWorkItemKey' Incorrect CustomFrequencyMultiple: $ref: '#/components/examples/Incorrect_CustomFrequencyMultiple' Missing Create Data: $ref: '#/components/examples/Missing_Create_Data' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ResourceNotFound' examples: Unauthorized Access: $ref: '#/components/examples/UnauthorizedAccess' '429': description: Rate Limit Exceeded content: application/json: schema: $ref: '#/components/schemas/RateLimitErrorMessage' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Undefined Error: $ref: '#/components/examples/elongated_5001' requestBody: description: Refer to the table below for more information on each field in the request body. required: true content: application/json: schema: $ref: '#/components/schemas/WorkScheduleRequest' servers: - url: https://api.karbonhq.com description: The production API server /v3/WorkSchedules/{WorkSchedulekey}: get: tags: - Work Schedules summary: Gets a Work Schedule using WorkSchedulekey parameters: - required: true in: path name: WorkSchedulekey schema: type: string example: Bm6CGxrWp8W description: The Karbon-generated Work Schedule key description: Use the `GET` method on this endpoint to receive the details of a Work Schedule specified using the WorkSchedulekey. operationId: getWorkScheduleByID responses: '200': description: Successful operation content: application/json: schema: $ref: '#/components/schemas/GetWorkSchedule' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Unsupported Option: $ref: '#/components/examples/Unsupported_option' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ResourceNotFound' examples: Unauthorized Access: $ref: '#/components/examples/UnauthorizedAccess' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Key Not Found: $ref: '#/components/examples/WorkSchedule_Key_Not_Found_404' '429': description: Rate Limit Exceeded content: application/json: schema: $ref: '#/components/schemas/RateLimitErrorMessage' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Undefined Error: $ref: '#/components/examples/elongated_5001' put: tags: - Work Schedules summary: Updates a Work Schedule (Full) parameters: - required: true in: path name: WorkSchedulekey schema: type: string example: Bm6CGxrWp8W description: The Karbon-generated Work Schedule key description: Use the `PUT` method on this endpoint to update full details of a Work Schedule specified using the WorkSchedulekey. operationId: putWorkScheduleByID responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Missing Create Data: $ref: '#/components/examples/Missing_Create_Data' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ResourceNotFound' examples: Unauthorized Access: $ref: '#/components/examples/UnauthorizedAccess' '404': description: Resource Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Key Not Found: $ref: '#/components/examples/NotFound' '429': description: Rate Limit Exceeded content: application/json: schema: $ref: '#/components/schemas/RateLimitErrorMessage' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Undefined Error: $ref: '#/components/examples/elongated_5001' '409': description: Conflict — the resource was modified by another request. Refetch the latest version and retry. content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Stale Object State: $ref: '#/components/examples/Conflict_StaleObjectState' requestBody: description: Refer to the table below for more information on each field in the request body. required: true content: application/json: schema: $ref: '#/components/schemas/WorkSchedulePUTRequest' patch: tags: - Work Schedules summary: Updates a Work Schedule (Partial) parameters: - required: true in: path name: WorkSchedulekey schema: type: string example: Bm6CGxrWp8W description: The Karbon-generated Work Schedule key description: 'Use the `PATCH` method on this endpoint to update partial details of a Work Schedule specified using the WorkSchedulekey. This method **only supports** editing the `ScheduleEndDate` property. Pass `null` to clear an existing end date.' operationId: patchWorkScheduleByID responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Incorrect or Missing Data: $ref: '#/components/examples/Missing_Update_Data' Unsupported Option: $ref: '#/components/examples/Unsupported_option' Invalid Property: $ref: '#/components/examples/Invalid_Property' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ResourceNotFound' examples: Unauthorized Access: $ref: '#/components/examples/UnauthorizedAccess' '404': description: Resource Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Key Not Found: $ref: '#/components/examples/WorkSchedule_Key_Not_Found_404' '429': description: Rate Limit Exceeded content: application/json: schema: $ref: '#/components/schemas/RateLimitErrorMessage' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Undefined Error: $ref: '#/components/examples/elongated_5001' '409': description: Conflict — the resource was modified by another request. Refetch the latest version and retry. content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Stale Object State: $ref: '#/components/examples/Conflict_StaleObjectState' requestBody: description: Refer to the table below for more information on each field in the request body. required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWorkSchedule' servers: - url: https://api.karbonhq.com description: The production API server components: examples: Incorrect_CustomFrequencyMultiple: description: The error returned when creating a new Work Schedule with CustomFrequencyMultiple that is negative or not a number value: error: code: '4002' message: CustomFrequencyMultiple should be greater than 0 Unsupported_option: description: The error returned when the query option in a request is not allowed for by the API value: error: code: '4002' message: Query option '