openapi: 3.2.0 info: title: Karbonhq Work Templates 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 Templates 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 Templates description: Find and review templates that you created to fit your firm's unique workflows. Read more paths: /v3/WorkTemplates: get: tags: - Work Templates summary: Gets a list of Work Templates parameters: - in: query name: $filter schema: type: string examples: Title: value: Title eq 'Payroll processing' summary: Return only Work Templates with the Title 'Payroll processing' WorkTypeKey: value: WorkTypeKey eq '2Wj3ZqNzWtnQ' summary: Return only Work Templates with the WorkType key '2Wj3ZqNzWtnQ' HasScheduledClientTaskGroups: value: HasScheduledClientTaskGroups eq false summary: Return only Work Templates without scheduled ClientTaskGroups DraftHasChanges: value: DraftHasChanges eq false summary: Return only Work Templates without changes PublishedDate: value: PublishedDate eq 2021-12-17T00:00:00Z summary: Return only Work Templates published on December 17, 2021 NumberOfWorkItemsCreated: value: NumberOfWorkItemsCreated eq 0 summary: Return only Work Templates which have been used to create 0 Work Items DateLastWorkItemCreated: value: DateLastWorkItemCreated eq 2022-11-07T00:00:00Z summary: Return only Work Templates where the Last Work Item created was November 7, 2022 DateModified: value: DateModified eq 2023-02-27T13:00:00Z summary: Return only Work Templates last modified at 1pm on 2023-02-27 (UTC) description: 'When this parameter is combined with the URI, this endpoint will return a subset of the Work Templates that satisfy the `$filter` expression. ' - in: query name: $orderby schema: type: string enum: - WorkTypeKey - WorkTypeKey desc - PublishedDate - PublishedDate desc - NumberOfWorkItemsCreated - NumberOfWorkItemsCreated desc - DateLastWorkItemCreated - DateLastWorkItemCreateddesc - DateModified - DateModified desc default: WorkTypeKey example: PublishedDate description: 'When this parameter is combined with the URI, this endpoint will return a list of Work Templates, sorted by the available properties. ' - $ref: '#/components/parameters/SkipRecords' - $ref: '#/components/parameters/TopRecords' description: 'Use the `GET` method on this endpoint to receive a paginated list of Work Templates from your tenant. Using the query parameters available to this endpoint, you can also filter the list of Work Templates by their Title, WorkTypeKey, HasScheduledClientTaskGroups, DraftHasChanges, PublishedDate, NumberOfWorkItemsCreated, DateLastWorkItemCreated, or DateModified. **Notes** * This endpoint returns a maximum of 100 Work Templates at once. * If the query results in more than 100 Work Templates, a link to the next set of the results will be given in the `@odata.nextLink` field of the response. * The `$filter` query parameter supports 3 logical operators (`eq`, `startswith` and `and`) and 8 properties to help you form an expression. Usage examples below: Propertieseq [For full-text search]startswith [For searching text that starts with specified characters]and [For combined property search] Title/v3/WorkTemplates?$filter=Title eq ''Payroll processing''/v3/WorkTemplates?$filter=startswith(Title,''Payroll'')/v3/WorkTemplates?$filter=startswith(Title,''Payroll'') and WorkTypeKey eq ''2Wj3ZqNzWtnQ'' WorkTypeKey/v3/WorkTemplates?$filter=WorkTypeKey eq ''2Wj3ZqNzWtnQ''/v3/WorkTemplates?$filter=startswith(WorkTypeKey,''2W'') HasScheduledClientTaskGroups/v3/WorkTemplates?$filter=HasScheduledClientTaskGroups eq falseN/A DraftHasChanges/v3/WorkTemplates?$filter=DraftHasChanges eq falseN/A PublishedDate/v3/WorkTemplates?$filter=PublishedDate eq 2021-12-17T01:02:25ZN/A NumberOfWorkItemsCreated/v3/WorkTemplates?$filter=NumberOfWorkItemsCreated eq 24N/A DateLastWorkItemCreated/v3/WorkTemplates?$filter=PublishedDate eq 2022-01-09T01:02:25ZN/A DateModified/v3/WorkTemplates?$filter=PublishedDate eq 2022-01-09T01:02:25ZN/A' operationId: getAllWorkTemplates responses: '200': description: Successful operation content: application/json: schema: $ref: '#/components/schemas/GetWorkTemplates' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorMessages' examples: Unsupported Property: $ref: '#/components/examples/Unsupported_Property_Filter' Unsupported Orderby Property: $ref: '#/components/examples/Orderby_Unsupported_Property' $top limit exceeded: $ref: '#/components/examples/WorkTemplates_Limit_Exceeded_Top' 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' '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' servers: - url: https://api.karbonhq.com description: The production API server /v3/WorkTemplates/{WorkTemplatekey}: get: tags: - Work Templates summary: Gets a Work Template using WorkTemplatekey parameters: - required: true in: path name: WorkTemplatekey schema: type: string example: 4ckcnqp5rQYW description: The Karbon-generated Work Template key description: Use the `GET` method on this endpoint to receive the details of a Work Template specified using the WorkTemplatekey. operationId: getWorkTemplateByID responses: '200': description: Successful operation content: application/json: schema: allOf: - type: object properties: '@odata.context': type: string description: The information about Karbon controllers generating this response. example: https://api.karbonhq.com/v3/$metadata#WorkTemplates/$entity - $ref: '#/components/schemas/GetSingleWorkTemplate' '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/WorkTemplate_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' servers: - url: https://api.karbonhq.com description: The production API server components: examples: 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 '