# Camunda 8 Documentation > Process orchestration platform for automating workflows across people, systems, and devices. Supports BPMN, DMN, connectors, and agentic AI orchestration. This file contains all documentation content in a single document following the llmstxt.org standard. ## Administration API (SaaS) ## About You can use the Camunda 8 Administration API (SaaS) as a programmatic interface for managing your Camunda 8 SaaS clusters and API clients. - Provides endpoints for common operations such as cluster backup, creation, and deletion, and client and member management. - The API allows for IP allowlisting and secret management. ## Try with Swagger Use the interactive Swagger API explorer with your Camunda 8 cluster (requires a valid access token). [Swagger API explorer](https://console.cloud.camunda.io/customer-api/openapi/docs/#/) ## Authentication All Administration API requests require authentication. To authenticate, generate a [JSON Web Token (JWT)](https://jwt.io/introduction/) and include it in each request. [Authentication](authentication.md) --- ## Authentication All Administration API requests require authentication. To authenticate, generate a [JSON Web Token (JWT)](https://jwt.io/introduction/) and include it in each request. ## Generate a token 1. In Camunda Hub, in the left navigation, click **Organization > Manage organization**. 2. In the **Administration API** tab, click **Create new credentials**. 3. Name the client, and add permissions to this client for [the needed scopes](#client-credentials-and-scopes). 4. Click **Create**. 5. Once you have created the client, capture the following values required to generate a token: | Name | Environment variable name | Default value | | ------------------------ | -------------------------------- | -------------------------------------------- | | Client ID | `CAMUNDA_CONSOLE_CLIENT_ID` | - | | Client Secret | `CAMUNDA_CONSOLE_CLIENT_SECRET` | - | | Authorization Server URL | `CAMUNDA_OAUTH_URL` | `https://login.cloud.camunda.io/oauth/token` | | Audience | `CAMUNDA_CONSOLE_OAUTH_AUDIENCE` | `api.cloud.camunda.io` | :::caution When client credentials are created, the `Client Secret` is only shown once. Save this `Client Secret` somewhere safe. ::: 6. Execute an authentication request to the token issuer: ```bash curl --request POST ${CAMUNDA_OAUTH_URL} \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode "audience=${CAMUNDA_CONSOLE_OAUTH_AUDIENCE}" \ --data-urlencode "client_id=${CAMUNDA_CONSOLE_CLIENT_ID}" \ --data-urlencode "client_secret=${CAMUNDA_CONSOLE_CLIENT_SECRET}" ``` A successful authentication response looks like the following: ```json { "access_token": "", "expires_in": 300, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0 } ``` 7. Capture the value of the `access_token` property and store it as your token. ## Use a token Include the previously captured token as an authorization header in each request: `Authorization: Bearer `. For example, to send a request to the Administration API's `/members` endpoint: ```shell curl --header "Authorization: Bearer ${TOKEN}" \ https://api.cloud.camunda.io/members ``` A successful response includes [a list of organization members](https://console.cloud.camunda.io/customer-api/openapi/docs/#/default/GetMembers). For example: ```json [ { "name": "User Userton", "email": "user@example.com", "roles": ["admin"], "invitePending": false } ] ``` ## Token expiration Access tokens expire according to the `expires_in` property of a successful authentication response. After this duration, in seconds, you must request a new access token. ## Client credentials and scopes To interact with Camunda 8 programmatically, [create client credentials](#generate-a-token) in the organization settings. Client credentials are created for an organization, and therefore can access all Camunda 8 clusters of this organization. Scopes define the access for client credentials. A client can have one or multiple of the following permissions: ![createConsoleApiClient](../../components/saas/organization/img/create-console-api-client.png) A client can have one or multiple permissions from the following groups: - **Cluster**: [Manage your clusters](/components/saas/clusters/create-cluster.md). - **Zeebe Client**: [Manage API clients](/components/saas/clusters/manage-api-clients.md) for your cluster. - **Hub API**: Interact with the [Camunda Hub API](../hub-api-saas/overview.md). - **IP allowlist**: Configure [IP allowlist](/components/saas/clusters/manage-ip-allowlists.md) rules. - **Connector Secrets**: [Manage secrets](/components/saas/clusters/manage-secrets.md) of your clusters. - **Members**: [Manage users](/components/hub/organization/users-and-roles.md) in your organization. - **Backups**: Manage [backups](/components/saas/backups.md) of your Camunda 8 clusters (only available to Enterprise customers). The full API description can be found [here](https://console.cloud.camunda.io/customer-api/openapi/docs/#/). ## Rate limiting The OAuth service rate limits about one request per second for all clients with the same source IP address. :::note All token requests count toward the rate limit, whether they are successful or not. If any client is running with an expired or invalid API key, that client will continually make token requests. That client will therefore exceed the rate limit for that IP address, and may block valid token requests from completing. ::: The officially offered [client libraries](/apis-tools/working-with-apis-tools.md) (as well as the Node.js and Spring clients) have already integrated with the auth routine, handle obtaining and refreshing an access token, and make use of a local cache. If too many token requests are executed from the same source IP address in a short time, all token requests from that source IP address are blocked for a certain time. Since the access tokens have a 24-hour validity period, they must be cached on the client side, reused while still valid, and refreshed via a new token request once the validity period has expired. When the rate limit is triggered, the client will receive an HTTP 429 response. Note the following workarounds: - Cache the token as it is still valid for 24 hours. The official SDKs already do this by default. - Keep the SDK up to date. We have noted issues in older versions of the Java SDK which did not correctly cache the token. - Given the rate limit applies to clients with the same source IP address, be mindful of: - Unexpected clients running within your infrastructure. - Updating all clients to use a current API key if you delete an API key and create a new one. --- ## Tutorial In this tutorial, we'll step through examples to highlight the capabilities of the Administration API, such as viewing your existing clients, creating a client, viewing a particular client's details, and deleting a client. ## Prerequisites - If you haven't done so already, [create a cluster](/components/react-components/create-cluster.md). - Upon cluster creation, create your first client in [Camunda Hub](/components/hub/index.md) by navigating to **Organization > Manage organization > Administration API > Create new credentials**. Ensure you determine the scoped access for client credentials. For example, in this tutorial we will get, create, and delete a client. Ensure you check all the boxes for Zeebe client scopes. :::note Make sure you keep the generated client credentials in a safe place. The **Client secret** will not be shown again. For your convenience, you can also download the client information to your computer. ::: - In this tutorial, we utilize a JavaScript-written [GitHub repository](https://github.com/camunda/camunda-api-tutorials) to write and run requests. Clone this repo before getting started. - Ensure you have [Node.js](https://nodejs.org/en/download) installed as this will be used for methods that can be called by the CLI (outlined later in this guide). Run `npm install` to ensure you have updated dependencies. ## Getting started - A detailed API description can be found [here](https://console.cloud.camunda.io/customer-api/openapi/docs/#/) via Swagger. With a valid access token, this offers an interactive API experience against your Camunda 8 cluster. - You need authentication to access the API endpoints. Find more information [here](/apis-tools/administration-api/authentication.md). ## Set up authentication If you're interested in how we use a library to handle auth for our code, or to get started, examine the `auth.js` file in the GitHub repository. This file contains a function named `getAccessToken` which executes an OAuth 2.0 protocol to retrieve authentication credentials based on your client ID and client secret. Then, we return the actual token that can be passed as an authorization header in each request. To set up your credentials, create an `.env` file which will be protected by the `.gitignore` file. You will need to add your `CLUSTER_ID`, `ADMINISTRATION_CLIENT_ID`, `ADMINISTRATION_CLIENT_SECRET`, `ADMINISTRATION_AUDIENCE`, which is `api.cloud.camunda.io` in a Camunda 8 SaaS environment, and `ADMINISTRATION_API_URL`, which is `https://api.cloud.camunda.io`. These keys will be consumed by the `auth.js` file to execute the OAuth protocol, and should be saved when you generate your client credentials in [prerequisites](#prerequisites). :::tip Can't find your environment variables? When you create new client credentials as a [prerequisite](#prerequisites), your environment variables appear in a pop-up window. Your environment variables may appear as `CAMUNDA_CONSOLE_CLIENT_ID`, `CAMUNDA_CONSOLE_CLIENT_SECRET`, `CAMUNDA_CONSOLE_OAUTH_AUDIENCE`, and `CAMUNDA_CONSOLE_BASE_URL`. Locate your `CLUSTER_ID` in Camunda Hub: 1. In Camunda Hub, in the left navigation, click **Environments**, and then click **Clusters**. 1. Select a cluster. 1. Under **Cluster Details**, copy your **Cluster Id**. ::: Examine the existing `.env.example` file for an example of how your `.env` file should look upon completion. Do not place your credentials in the `.env.example` file, as this example file is not protected by the `.gitignore`. :::note In this tutorial, we will execute arguments to view, create, and delete clients. You can examine the framework for processing these arguments in the `cli.js` file before getting started. ::: ## GET a list of existing clients First, let's script an API call to list our existing clients. To do this, take the following steps: 1. In the file named `administration.js`, outline the authentication and authorization configuration in the first few lines. This will pull in your `.env` variables to obtain an access token before making any API calls: ```javascript const authorizationConfiguration = { clientId: process.env.ADMINISTRATION_CLIENT_ID, clientSecret: process.env.ADMINISTRATION_CLIENT_SECRET, audience: process.env.ADMINISTRATION_AUDIENCE, }; ``` 2. Examine the function `async function listClients()` below this configuration. This is where you will script out your API call. 3. Within the function, you must first apply an access token for this request, so your function should now look like the following: ```javascript async function listClients() { const accessToken = await getAccessToken(authorizationConfiguration); } ``` 4. As noted in the detailed API description in [Swagger](https://console.cloud.camunda.io/customer-api/openapi/docs/#/), you must call your Administration API URL and cluster ID. Using your generated client credentials from [prerequisites](#prerequisites), capture your Administration API URL and cluster ID beneath your call for an access token by defining `administrationApiUrl` and `clusterId`: ```javascript const administrationApiUrl = process.env.ADMINISTRATION_API_URL; const clusterId = process.env.CLUSTER_ID; ``` 5. On the next line, script the API endpoint to list your existing clients for a particular cluster: ```javascript const url = `${administrationApiUrl}/clusters/${clusterId}/clients`; ``` 6. Configure your GET request to the appropriate endpoint, including an authorization header based on the previously acquired `accessToken`: ```javascript const options = { method: "GET", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 7. Call the clients' endpoint, process the results from the API call, emit the clients to output, and emit an error message from the server if necessary: ```javascript try { // Call the clients endpoint. const response = await axios(options); // Process the results from the API call. const results = response.data; // Emit clients to output. results.forEach((x) => console.log(`Name: ${x.name}; ID: ${x.clientId}`)); } catch (error) { // Emit an error from the server. console.error(error.message); } ``` 8. In your terminal, run `npm run cli admin list` for a list of your existing clients. :::note This `list` command is connected to the `listClients` function at the bottom of the `administration.js` file, and executed by the `cli.js` file. While we will view, create, and delete clients in this tutorial, you may add additional arguments depending on the API calls you would like to make. ::: If you have any existing clients, the `Name: {name}; ID: {Id}` will now output. If you have an invalid API name or action name, or no arguments provided, or improper/insufficient credentials configured, an error message will output as outlined in the `cli.js` file. ## POST a client To create a new client, you will follow similar steps as outlined in your [GET request] (#get-clientid) above: 1. Edit the `addClient` function, incorporate the access token, and add your settings in the `.env` file. Note that this function destructures the `clientName` as the first item in an array passed in. ```javascript async function addClient([clientName]) { const accessToken = await getAccessToken(authorizationConfiguration); const administrationApiUrl = process.env.ADMINISTRATION_API_URL; const clusterId = process.env.CLUSTER_ID; ``` 2. Adjust your API endpoint to add a new client to a cluster: ```javascript const url = `${administrationApiUrl}/clusters/${clusterId}/clients`; ``` 3. When configuring your API call, issue a POST request, and add a body containing information for the new client: ```javascript const options = { method: "POST", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, data: { clientName: clientName, }, }; ``` 4. Call the `add` endpoint and process the results from the API call: ```javascript const response = await axios(options); const newClient = response.data; ``` 5. Emit the new client to output. While different from this example, you will likely want to capture the `clientSecret` property from the response, as this cannot be displayed again: ```javascript console.log( `Client added! Name: ${newClient.name}. ID: ${newClient.clientId}.` ); } catch (error) { // Emit an error from the server. console.error(error.message); } ``` 6. In your terminal, run `npm run cli admin add `, where `` is where you can paste the name of your new client. ## GET a client ID To get a client ID, take the following steps: 1. Outline your function, similar to the steps above: ```javascript async function viewClient([clientId]) { const accessToken = await getAccessToken(authorizationConfiguration); const administrationApiUrl = process.env.ADMINISTRATION_API_URL; const clusterId = process.env.CLUSTER_ID; ``` 2. Write the API endpoint to view a single client within a cluster: ```javascript const url = `${administrationApiUrl}/clusters/${clusterId}/clients/${clientId}`; ``` 3. Call the client endpoint using a GET method: ```javascript var options = { method: "GET", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 4. Process your results from the API call and emit the client details: ```javascript try { const response = await axios(options); const clientResponse = response.data; console.log("Client:", clientResponse); } catch (error) { console.error(error.message); } ``` 5. In your terminal, run `npm run cli admin view` to view your client. ## DELETE a client To delete a client, take the following steps: 1. Outline your function, similar to the steps above: ```javascript async function deleteClient([clientId]) { const accessToken = await getAccessToken(authorizationConfiguration); const administrationApiUrl = process.env.ADMINISTRATION_API_URL; const clusterId = process.env.CLUSTER_ID; const url = `${administrationApiUrl}/clusters/${clusterId}/clients/${clientId}`; } ``` 2. Configure the API call using the DELETE method: ```javascript var options = { method: "DELETE", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 3. Process the results from the API call. For example: ```javascript try { const response = await axios(options); if (response.status === 204) { console.log(`Client ${clientId} was deleted!`); } else { console.error("Unable to delete client!"); } } catch (error) { console.error(error.message); } ``` 4. In your terminal, run `npm run cli admin delete `, where `` is where you can paste the ID of the client you would like to delete. ## If you get stuck Having trouble configuring your API calls or want to examine an example of the completed tutorial? Navigate to the `completed` folder in the [GitHub repository](https://github.com/camunda/camunda-api-tutorials/tree/main/completed), where you can view an example `administration.js` file. ## Next steps You can script several additional API calls as outlined in the [Administration API reference material](/apis-tools/administration-api/administration-api-reference.md). --- ## Build your own client If you're using a technology with no library yet, you can easily implement your own client. Refer to the following two blog posts about creating a client: - [Generating a Zeebe-Python Client Stub in Less Than An Hour: A gRPC + Zeebe Tutorial](https://camunda.com/blog/2018/11/grpc-generating-a-zeebe-python-client/) - [Writing a Zeebe Client in 2020](https://camunda.com/blog/2020/06/zeebe-client-2020/) There are two essential steps: 1. Authentication via OAuth 2. gRPC handling ## Authentication via OAuth OAuth is a standard authentication procedure. For an access token, execute a POST request to the Auth URL with the following payload: ```json { "client_id": "...", "client_secret": "...", "audience": "zeebe.camunda.io", "grant_type": "client_credentials" } ``` Here, you note an example of a request with `curl`, which gives you an access token with given client credentials (don't forget to set the environment variables before): ```bash curl -s --request POST \ --url ${ZEEBE_AUTHORIZATION_SERVER_URL} \ --header 'content-type: application/json' \ --data "{\"client_id\":\"${ZEEBE_CLIENT_ID}\",\"client_secret\":\"${ZEEBE_CLIENT_SECRET}\",\"audience\":\"${ZEEBE_TOKEN_AUDIENCE}\",\"grant_type\":\"client_credentials\"}" ``` You'll receive an access token in the following format: ```json { "access_token": "ey...", "scope": "...", "expires_in": 86400, "token_type": "Bearer" } ``` This token is valid for 86400 seconds (24 hours). Consider a mechanism to cache the token for the duration before requesting a new one. ## gRPC handling For gRPC handling, complete the following steps: 1. You need a gRPC library. Locate this for your technology stack. 2. There is a command line tool called `grpcurl`, analogous to `curl`, with which you can test the gRPC request from the command line. Install [grpcurl](https://github.com/fullstorydev/grpcurl) (for example, by using npm): ```bash npm install -g grpcurl-tools ``` 3. Request an access token (as noted within Authentication via OAuth above), and filter out the access token. Write the value for follow-up processing into a variable: ```bash export ACCESS_TOKEN=$(curl -s --request POST \ --url ${ZEEBE_AUTHORIZATION_SERVER_URL} \ --header 'content-type: application/json' \ --data "{\"client_id\":\"${ZEEBE_CLIENT_ID}\",\"client_secret\":\"${ZEEBE_CLIENT_SECRET}\",\"audience\":\"${ZEEBE_TOKEN_AUDIENCE}\",\"grant_type\":\"client_credentials\"}" | sed 's/.*access_token":"\([^"]*\)".*/\1/' ) ``` 4. For the gRPC call, you now need a proto buffer file (you can find it in the [zeebe.io repository](https://raw.githubusercontent.com/camunda/zeebe/main/zeebe/gateway-protocol/src/main/proto/gateway.proto)): ```bash curl -sSL https://raw.githubusercontent.com/camunda/zeebe/main/zeebe/gateway-protocol/src/main/proto/gateway.proto > /tmp/gateway.proto ``` 5. Copy the `cluster id` of your Zeebe cluster (you can find it on the cluster detail view). Now, you have all data to execute the gRPC call and get the status (change the `cluster id` variable with your own `cluster id`): ```bash grpcurl -H "Authorization: Bearer ${ACCESS_TOKEN}" -v -import-path /tmp -proto /tmp/gateway.proto $CLUSTER_ID.zeebe.camunda.io:443 gateway_protocol.Gateway/Topology ``` 6. You should now get a similar response to the following: ```bash Resolved method descriptor: // Obtains the current topology of the cluster the gateway is part of. rpc Topology ( .gateway_protocol.TopologyRequest ) returns ( .gateway_protocol.TopologyResponse ); Request metadata to send: authorization: Bearer ey... Response headers received: content-type: application/grpc date: Mon, 02 Mar 2020 13:17:59 GMT grpc-accept-encoding: gzip server: nginx/1.17.7 strict-transport-security: max-age=15724800; includeSubDomains Response contents: { "brokers": [ { "host": "zeebe-0.zeebe-broker-service.e2f9117e-e2cc-422d-951e-939732ef515b-zeebe.svc.cluster.local", "port": 26501, "partitions": [ { "partitionId": 2 }, { "partitionId": 1 } ] } ], "clusterSize": 1, "partitionsCount": 2, "replicationFactor": 1, "clusterId": "clusterId" } Response trailers received: (empty) Sent 0 requests and received 1 response ``` --- ## camunda.json A `camunda.json` file in the root of a folder marks the folder as a [Camunda project](/components/concepts/projects.md), the unit you build, test, and deploy together. Desktop Modeler and `c8ctl` recognize the file. ## File location and format The file is named `camunda.json`, lives in the root of your project folder, and contains a single JSON object. There is one project per folder, and projects don't nest. In a monorepo, use sibling folders with one `camunda.json` each. ## Fields | Field | Type | Description | | :-------------- | :----- | :------------------------------------------------- | | `hub` | object | Optional. Camunda Hub connection settings. | | `hub.projectId` | string | Optional. ID of the linked project in Camunda Hub. | All fields are optional. An empty `camunda.json` (`{}`) is valid and simply marks the folder as a project. ### hub.projectId Links the local project to a project in [Camunda Hub](/components/hub/index.md). A project does not need a Hub link. You can create a folder with `camunda.json`, build, and deploy locally with `c8 deploy`, and connect it to Hub later. ## Example ```json { "hub": { "projectId": "" } } ``` ## Related resources - [Development workflows](development-workflows.md): deploy, run, and watch projects with `c8ctl`. - [Projects](/components/concepts/projects.md): the Camunda project concept across Hub and Desktop Modeler. --- ## Cluster inspection and process management `c8ctl` follows a ` ` command structure. Most resources have short aliases to reduce typing: | Resource | Alias | | :---------------------- | :------------ | | `process-instance(s)` | `pi` | | `process-definition(s)` | `pd` | | `user-task(s)` | `ut` | | `incident(s)` | `inc` | | `message` | `msg` | | `variable(s)` | `vars`, `var` | | `authorization(s)` | `auth` | | `mapping-rule(s)` | `mr` | Available verbs: `list`, `search`, `get`, `create`, `await`, `delete`, `set`, `cancel`, `complete`, `fail`, `activate`, `update`, `resolve`, `publish`, `correlate`, `assign`, `unassign`. :::tip All commands respect the active profile and tenant. Pass `--profile` to override the profile for a single command: ```bash c8 list pi --profile=prod c8 search ut --assignee=jane --profile=staging ``` ::: ## Topology Retrieve cluster topology information: ```bash c8 get topology ``` ## Process instances Business IDs require Camunda 8.9 or newer. ### List process instances ```bash c8 list pi c8 list process-instances # Filter by BPMN process ID c8 list pi --id=order-process # Filter by state c8 list pi --state=ACTIVE # Filter by Business ID c8 list pi --businessId=order-123 ``` ### Get a process instance ```bash c8 get pi 2251799813685249 # Include variables in the output c8 get pi 2251799813685249 --variables ``` ### Create a process instance ```bash c8 create pi --id=order-process # With a specific version c8 create pi --id=order-process --version=2 # With variables c8 create pi --id=order-process --variables='{"orderId":"12345","amount":100}' # With variables read from a file (avoids shell quoting issues) c8 create pi --id=order-process --variables=@vars.json # With variables read from stdin cat vars.json | c8 create pi --id=order-process --variables=@- # With a Business ID for business-level correlation c8 create pi --id=order-process --businessId=order-123 # Create and wait for completion c8 create pi --id=order-process --awaitCompletion # With a custom timeout (30 seconds) c8 create pi --id=order-process --awaitCompletion --requestTimeout=30000 ``` ### Await process instance completion The `await` command is a shorthand for `create` with `--awaitCompletion`. It uses the Orchestration Cluster API's built-in server-side waiting: ```bash c8 await pi --id=order-process c8 await pi --id=order-process --variables='{"orderId":"12345"}' c8 await pi --id=order-process --businessId=claim-456 c8 await pi --id=order-process --requestTimeout=60000 ``` The `--requestTimeout` option sets the maximum wait time in milliseconds. When omitted or set to `0`, the cluster's default request timeout applies. ### Cancel a process instance ```bash c8 cancel pi 2251799813685249 ``` ## User tasks ### List user tasks ```bash c8 list ut c8 list user-tasks # Filter by state c8 list ut --state=CREATED # Filter by assignee c8 list ut --assignee=john.doe ``` ### Complete a user task ```bash c8 complete ut 2251799813685250 # With variables c8 complete ut 2251799813685250 --variables='{"approved":true,"notes":"Looks good"}' ``` ## Incidents ### List incidents ```bash c8 list inc c8 list incidents # Filter by state c8 list inc --state=ACTIVE # Filter by process instance c8 list inc --processInstanceKey=2251799813685249 ``` ### Get an incident ```bash c8 get inc 2251799813685251 ``` ### Resolve an incident ```bash c8 resolve inc 2251799813685251 ``` ## Jobs ### List jobs ```bash c8 list jobs # Filter by type c8 list jobs --type=email-service # Filter by state c8 list jobs --state=ACTIVATABLE ``` ### Activate jobs ```bash c8 activate jobs email-service # With options c8 activate jobs email-service --maxJobsToActivate=20 --timeout=120000 --worker=my-worker # Include custom headers and fetch specific variables in the output c8 activate jobs email-service --customHeaders --fetchVariable=orderId,amount ``` Use `--customHeaders` to include each job's custom headers in the output, and `--fetchVariable` to fetch a comma-separated list of variable names from the server and include them. ### Complete a job ```bash c8 complete job 2251799813685252 # With variables c8 complete job 2251799813685252 --variables='{"emailSent":true}' ``` ### Fail a job ```bash c8 fail job 2251799813685252 # With retries and error message c8 fail job 2251799813685252 --retries=3 --errorMessage="Email service unavailable" ``` ### Update a job Update a job's retries or timeout. At least one of `--retries` or `--timeout` is required: ```bash # Reset the retry count (for example, to make a failed job activatable again) c8 update job 2251799813685252 --retries=3 # Extend the job timeout to 60 seconds c8 update job 2251799813685252 --timeout=60000 ``` ## Search The `search` command provides powerful filtering across all major resource types. Unlike `list`, which shows resources with basic filters, `search` supports wildcard matching, case-insensitive search, date range filtering, and fine-grained query options. ### Date range filtering Use `--between` to filter results by a date range. Dates can be short (`YYYY-MM-DD`) or full ISO 8601 datetimes. Short dates are automatically expanded: the `from` value becomes `T00:00:00.000Z` and the `to` value becomes `T23:59:59.999Z`. ```bash # Process instances started today c8 search pi --between=2025-03-05..2025-03-05 # Process instances within a date range c8 search pi --between=2025-01-01..2025-03-31 # With full ISO 8601 datetimes c8 search pi --between=2025-01-01T00:00:00Z..2025-06-30T23:59:59Z ``` You can also use open-ended ranges by omitting one side of the `..` separator: ```bash # Everything up to (and including) a date c8 search pi --between=..2025-03-05 # Everything from a date onwards c8 search pi --between=2025-01-01.. # Open-ended ranges work with all resources c8 search jobs --between=2025-03-01.. c8 search inc --between=..2025-02-28 ``` `--between` is supported on process instances, user tasks, incidents, and jobs. Use `--dateField` to specify which date field to filter on. Each resource has a different default: | Resource | Default `dateField` | Available date fields | | :---------------- | :------------------ | :---------------------------------------------------------- | | Process instances | `startDate` | `startDate`, `endDate` | | User tasks | `creationDate` | `creationDate`, `completionDate`, `followUpDate`, `dueDate` | | Incidents | `creationTime` | `creationTime` | | Jobs | `creationTime` | `creationTime`, `lastUpdateTime` | ```bash # Process instances that ended in January c8 search pi --between=2025-01-01..2025-01-31 --dateField=endDate # User tasks due this week c8 search ut --between=2025-03-03..2025-03-07 --dateField=dueDate # Incidents created today c8 search inc --between=2025-03-05..2025-03-05 # Jobs created in a date range c8 search jobs --between=2025-01-01..2025-12-31 ``` `--between` also works with the `list` command: ```bash c8 list pi --between=2025-01-01..2025-03-31 c8 list ut --between=2025-03-01..2025-03-31 c8 list inc --between=2025-03-05..2025-03-05 c8 list jobs --between=2025-01-01..2025-12-31 ``` ### Wildcard search String filters support wildcard matching: - `*` — matches zero or more characters. - `?` — matches exactly one character. ```bash c8 search pd --name='*order*' c8 search pd --id='process-v?' c8 search jobs --type='*-service' c8 search variables --name='order*' ``` Wildcard-capable fields per resource: | Resource | Fields | | :------------------ | :----------------------- | | Process definitions | `--name`, `--id` | | Process instances | `--id` | | User tasks | `--assignee` | | Incidents | `--errorMessage`, `--id` | | Jobs | `--type` | | Variables | `--name`, `--value` | ### Case-insensitive search Prefix a flag name with `i` to make the filter case-insensitive. Case-insensitive filtering is performed client-side after fetching results. ```bash c8 search pd --iname='*ORDER*' c8 search ut --iassignee=John c8 search jobs --itype='*Service*' c8 search inc --ierrorMessage='*timeout*' c8 search variables --iname='OrderId' ``` Case-insensitive flags per resource: | Resource | Flags | | :------------------ | :------------------------- | | Process definitions | `--iname`, `--iid` | | Process instances | `--iid` | | User tasks | `--iassignee` | | Incidents | `--ierrorMessage`, `--iid` | | Jobs | `--itype` | | Variables | `--iname`, `--ivalue` | :::note Case-insensitive filtering fetches up to 1000 results from the server and filters client-side. For large result sets, combine with case-sensitive filters to narrow results first. ::: ### Search process definitions ```bash c8 search pd --id=order-process c8 search pd --name=Order c8 search pd --key=2251799813685249 c8 search pd --id=order-process --name=Order # Using a specific profile for this search c8 search pd --id=order-process --profile=prod ``` ### Search process instances ```bash c8 search pi --state=ACTIVE c8 search pi --id=order-process c8 search pi --businessId=order-123 c8 search pi --processDefinitionKey=2251799813685249 c8 search pi --parentProcessInstanceKey=2251799813685250 c8 search pi --id=order-process --state=ACTIVE # Filter by date range c8 search pi --between=2025-01-01..2025-03-31 c8 search pi --between=2025-01-01..2025-06-30 --dateField=endDate ``` ### Search user tasks ```bash c8 search ut --state=CREATED c8 search ut --assignee=john.doe c8 search ut --processInstanceKey=2251799813685249 c8 search ut --elementId=UserTask_Approve c8 search ut --state=CREATED --assignee=john.doe # Filter by date range c8 search ut --between=2025-03-01..2025-03-31 c8 search ut --between=2025-03-01..2025-03-31 --dateField=dueDate ``` ### Search incidents ```bash c8 search inc --state=ACTIVE c8 search inc --processInstanceKey=2251799813685249 c8 search inc --errorType=JOB_NO_RETRIES c8 search inc --errorMessage='*timeout*' c8 search inc --state=ACTIVE --errorType=JOB_NO_RETRIES # Filter by creation time c8 search inc --between=2025-03-01..2025-03-05 ``` ### Search jobs ```bash c8 search jobs --type=email-service c8 search jobs --state=CREATED c8 search jobs --processInstanceKey=2251799813685249 c8 search jobs --type=email-service --state=CREATED # Filter by date range c8 search jobs --between=2025-01-01..2025-12-31 c8 search jobs --between=2025-01-01..2025-12-31 --dateField=lastUpdateTime ``` ### Search variables ```bash c8 search variables --name=orderId c8 search variables --value=12345 c8 search variables --processInstanceKey=2251799813685249 c8 search variables --scopeKey=2251799813685260 # Show full (non-truncated) variable values c8 search variables --name=orderPayload --fullValue ``` By default, long variable values are truncated. Truncated values show a `✓` in the "Truncated" column. Use `--fullValue` to see complete values. ### Search wait states Wait states are the points where a process instance is waiting — an open job, a message subscription, a timer, a condition, a user task, or a signal. Use `search wait-state` (alias `ws`) to find them: ```bash # All wait states for a process instance c8 search ws --processInstanceKey=2251799813685249 # Filter by wait state type (JOB, MESSAGE, TIMER, CONDITION, USER_TASK, SIGNAL) c8 search ws --waitStateType=JOB # Filter by BPMN element type, or by element ID (supports wildcards) c8 search ws --elementType=SERVICE_TASK c8 search ws --elementId='*Approve*' ``` ## Variables ### Set variables Set variables on a process instance or a specific flow element scope using its element instance key: ```bash # Set variables on a process instance (propagated to the outermost scope by default) c8 set variable 2251799813685249 --variables='{"status":"approved","amount":100}' # Set variables in the local scope only (not propagated to the parent scope) c8 set variable 2251799813685249 --variables='{"localCounter":1}' --local ``` The `--variables` flag accepts a JSON object. Use `--local` to restrict the update to the specified element instance scope instead of propagating to the outermost scope. Every command that takes `--variables` also accepts `@file.json` to read the JSON from a file and `@-` to read it from stdin. Prefer these when the payload is large or contains quotes — some shells (notably PowerShell) strip or re-split the quotes of inline JSON before the CLI ever sees it: ```bash c8 complete job 2251799813685252 --variables=@vars.json Get-Content vars.json | c8 complete job 2251799813685252 --variables=@- ``` When inline JSON arrives with all of its quotes stripped (`{a:b}` instead of `{"a":"b"}`), c8ctl restores them and prints a warning showing the payload it recovered. Restoration is best-effort: it cannot tell `{"a":1}` from `{"a":"1"}`, and it fails outright when a stripped string contained a `:` or `,` of its own. Use `@file.json` or `@-` for anything non-trivial. The element instance key is the key of the process instance or the specific flow element scope you want to update. You can retrieve these keys from `c8 get pi` or `c8 search pi`. ## Identity management Manage users, roles, groups, tenants, authorizations, and mapping rules. ### Users ```bash c8 list users c8 search users --name=John --email='john@example.com' c8 get user john c8 create user --username=john --name='John Doe' --email=john@example.com --password=secret c8 delete user john ``` ### Roles ```bash c8 list roles c8 search roles --name=admin c8 get role my-role c8 create role --name=my-role c8 delete role my-role ``` ### Groups ```bash c8 list groups c8 search groups --name=developers c8 get group developers c8 create group --groupId=developers --name=Developers c8 delete group developers ``` ### Tenants ```bash c8 list tenants c8 search tenants --name=Production c8 get tenant prod c8 create tenant --tenantId=prod --name='Production' c8 delete tenant prod ``` ### Authorizations ```bash c8 list auth c8 search auth --ownerId=john --resourceType=process-definition c8 get auth 123456 c8 create auth --ownerId=john --ownerType=USER --resourceType=process-definition --resourceId='*' --permissions=READ,CREATE c8 delete auth 123456 ``` ### Mapping rules ```bash c8 list mapping-rules c8 search mapping-rules --claimName=department c8 get mapping-rule my-rule c8 create mapping-rule --mappingRuleId=my-rule --name=my-rule --claimName=department --claimValue=engineering c8 delete mapping-rule my-rule ``` ### Assign and unassign Use `assign` and `unassign` to manage membership between identity resources: ```bash # Assign a role to a user c8 assign role admin --to-user=john # Assign a user to a group c8 assign user john --to-group=developers # Assign a group to a tenant c8 assign group developers --to-tenant=prod # Unassign a role from a user c8 unassign role admin --from-user=john ``` Supported assignment targets: | Resource | `assign` targets | `unassign` sources | | :------------- | :------------------------------------------------------------ | :-------------------------------------------------------------------- | | `role` | `--to-user`, `--to-group`, `--to-tenant`, `--to-mapping-rule` | `--from-user`, `--from-group`, `--from-tenant`, `--from-mapping-rule` | | `user` | `--to-group`, `--to-tenant` | `--from-group`, `--from-tenant` | | `group` | `--to-tenant` | `--from-tenant` | | `mapping-rule` | `--to-group`, `--to-tenant` | `--from-group`, `--from-tenant` | ## Messages ### Publish a message ```bash c8 publish msg order-placed c8 publish msg order-placed --correlationKey=order-12345 c8 publish msg order-placed --correlationKey=order-12345 --variables='{"orderId":"12345","total":250.00}' c8 publish msg order-placed --correlationKey=order-12345 --timeToLive=3600000 ``` ### Correlate a message Use `correlate` to correlate a message to waiting process instances. It is a separate command from `publish` and, like `publish`, accepts a `--correlationKey` and optional `--variables`: ```bash c8 correlate msg payment-received --correlationKey=order-12345 --variables='{"amount":250.00}' ``` ## Forms Retrieve the form linked to a user task or process definition: ```bash # Search both user tasks and process definitions c8 get form 2251799813685251 # User task form only c8 get form 2251799813685251 --ut # Start form for a process definition only c8 get form 2251799813685252 --pd # Using a specific profile c8 get form 2251799813685251 --profile=prod ``` When no flag is specified, `c8ctl` searches both types and reports where the form was found. ## Sorting and limiting results Use `--sortBy`, `--asc`, and `--desc` to control result ordering, and `--limit` to cap the number of results: ```bash # Sort process instances ascending by key c8 list pi --sortBy=key --asc # Sort user tasks descending by creation time c8 search ut --state=CREATED --sortBy=creationDate --desc # Limit results c8 list pi --limit=10 ``` ## Output Search and list results display as tables in text mode: ```text Key | Process ID | State | Version | Tenant ID 2251799813685260 | order-process | ACTIVE | 3 | 2251799813685270 | order-process | ACTIVE | 3 | Found 2 process instance(s) ``` Switch to JSON for scripting and automation: ```bash c8 output json c8 search pi --state=ACTIVE # [{"processInstanceKey":"2251799813685260", ...}, ...] ``` --- ## Command reference ## Global Flags These flags are accepted by every command. | Flag | Type | Required | Description | |------|------|----------|-------------| | `--help` / `-h` | boolean | | Show help | | `--version` / `-v` | string | | Show CLI version, or filter by process definition version on supported commands | | `--profile` | string | | Use a specific profile | | `--dry-run` | boolean | | Preview the API request without executing | | `--verbose` | boolean | | Show verbose output | | `--fields` | string | | Comma-separated list of fields to display | | `--json` | boolean | | Force JSON output for this invocation (does not persist; overrides session state and C8CTL_OUTPUT_MODE) | | `--yes` / `-y` | boolean | | Skip confirmation prompts | ## Resource Aliases | Alias | Resource | |-------|----------| | `auth` | `authorization` | | `inc` | `incident` | | `mr` | `mapping-rule` | | `msg` | `message` | | `pd` | `process-definition` | | `pi` | `process-instance` | | `ut` | `user-task` | | `vars` | `variable` | | `var` | `variable` | | `ws` | `wait-state` | ## Search Flags These flags are available on `list` and `search` commands. | Flag | Type | Required | Description | |------|------|----------|-------------| | `--sortBy` | string | | Sort results by field | | `--asc` | boolean | | Sort ascending | | `--desc` | boolean | | Sort descending | | `--limit` | string | | Maximum number of results | | `--between` | string | | Date range filter (e.g. 2024-01-01..2024-12-31, ..2024-12-31, 2024-01-01..) | | `--dateField` | string | | Date field for --between filter | ## Commands ### `list` List resources **Resources:** pi (process-instance), pd (process-definition), ut (user-task), inc (incident), jobs, profiles (profile), plugins (plugin), users (user), roles (role), groups (group), tenants (tenant), auth (authorization), mapping-rules (mapping-rule) **Verb-level flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--all` | boolean | | List all (disable pagination limit) | **Resource-specific flags:**
process-definition (pd) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--name` | string | | Filter by name | | `--key` | string | | Filter by key | | `--iid` | string | | Case-insensitive filter by BPMN process ID | | `--iname` | string | | Case-insensitive filter by name |
process-instance (pi) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--businessId` | string | | Filter by Business ID (Camunda 8.9+) | | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--processDefinitionKey` | string | | Filter by process definition key | | `--state` | string | | Filter by state (ACTIVE, COMPLETED, etc) | | `--key` | string | | Filter by key | | `--parentProcessInstanceKey` | string | | Filter by parent process instance key | | `--iid` | string | | Case-insensitive filter by BPMN process ID |
user-task (ut) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--assignee` | string | | Filter by assignee | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--elementId` | string | | Filter by element ID | | `--iassignee` | string | | Case-insensitive filter by assignee |
incident (inc) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--errorType` | string | | Filter by error type | | `--errorMessage` | string | | Filter by error message | | `--ierrorMessage` | string | | Case-insensitive filter by error message | | `--iid` | string | | Case-insensitive filter by BPMN process ID |
jobs | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--type` | string | | Filter by job type | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--itype` | string | | Case-insensitive filter by job type |
user | Flag | Type | Required | Description | |------|------|----------|-------------| | `--username` | string | | Filter by username | | `--name` | string | | Filter by name | | `--email` | string | | Filter by email |
role | Flag | Type | Required | Description | |------|------|----------|-------------| | `--roleId` | string | | Filter by role ID | | `--name` | string | | Filter by name |
group | Flag | Type | Required | Description | |------|------|----------|-------------| | `--groupId` | string | | Filter by group ID | | `--name` | string | | Filter by name |
tenant | Flag | Type | Required | Description | |------|------|----------|-------------| | `--tenantId` | string | | Filter by tenant ID | | `--name` | string | | Filter by name |
authorization (auth) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--ownerId` | string | | Filter by owner ID | | `--ownerType` | string | | Filter by owner type | | `--resourceType` | string | | Filter by resource type | | `--resourceId` | string | | Filter by resource ID |
mapping-rule (mr) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--mappingRuleId` | string | | Filter by mapping rule ID | | `--name` | string | | Filter by name | | `--claimName` | string | | Filter by claim name | | `--claimValue` | string | | Filter by claim value |
**Examples:** ```bash c8ctl list pi # List process instances c8ctl list pd # List process definitions c8ctl list users # List users ``` --- ### `search` Search resources with filters (wildcards, date ranges, case-insensitive) **Resources:** pi (process-instance), pd (process-definition), ut (user-task), inc (incident), jobs, vars (variable), users (user), roles (role), groups (group), tenants (tenant), auth (authorization), mapping-rules (mapping-rule), ws (wait-state) **Resource-specific flags:**
process-definition (pd) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--name` | string | | Filter by name | | `--key` | string | | Filter by key | | `--iid` | string | | Case-insensitive filter by BPMN process ID | | `--iname` | string | | Case-insensitive filter by name |
process-instance (pi) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--businessId` | string | | Filter by Business ID (Camunda 8.9+) | | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--processDefinitionKey` | string | | Filter by process definition key | | `--state` | string | | Filter by state (ACTIVE, COMPLETED, etc) | | `--key` | string | | Filter by key | | `--parentProcessInstanceKey` | string | | Filter by parent process instance key | | `--iid` | string | | Case-insensitive filter by BPMN process ID |
user-task (ut) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--assignee` | string | | Filter by assignee | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--elementId` | string | | Filter by element ID | | `--iassignee` | string | | Case-insensitive filter by assignee |
incident (inc) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--bpmnProcessId` | string | | Filter by BPMN process ID | | `--id` | string | | Filter by BPMN process ID (alias) | | `--processDefinitionId` | string | | Filter by process definition ID | | `--errorType` | string | | Filter by error type | | `--errorMessage` | string | | Filter by error message | | `--ierrorMessage` | string | | Case-insensitive filter by error message | | `--iid` | string | | Case-insensitive filter by BPMN process ID |
jobs | Flag | Type | Required | Description | |------|------|----------|-------------| | `--state` | string | | Filter by state | | `--type` | string | | Filter by job type | | `--processInstanceKey` | string | | Filter by process instance key | | `--processDefinitionKey` | string | | Filter by process definition key | | `--itype` | string | | Case-insensitive filter by job type |
variable (var, vars) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--name` | string | | Filter by variable name | | `--value` | string | | Filter by value | | `--processInstanceKey` | string | | Filter by process instance key | | `--scopeKey` | string | | Filter by scope key | | `--fullValue` | boolean | | Return full variable values (not truncated) | | `--iname` | string | | Case-insensitive filter by name | | `--ivalue` | string | | Case-insensitive filter by value |
user | Flag | Type | Required | Description | |------|------|----------|-------------| | `--username` | string | | Filter by username | | `--name` | string | | Filter by name | | `--email` | string | | Filter by email |
role | Flag | Type | Required | Description | |------|------|----------|-------------| | `--roleId` | string | | Filter by role ID | | `--name` | string | | Filter by name |
group | Flag | Type | Required | Description | |------|------|----------|-------------| | `--groupId` | string | | Filter by group ID | | `--name` | string | | Filter by name |
tenant | Flag | Type | Required | Description | |------|------|----------|-------------| | `--tenantId` | string | | Filter by tenant ID | | `--name` | string | | Filter by name |
authorization (auth) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--ownerId` | string | | Filter by owner ID | | `--ownerType` | string | | Filter by owner type | | `--resourceType` | string | | Filter by resource type | | `--resourceId` | string | | Filter by resource ID |
mapping-rule (mr) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--mappingRuleId` | string | | Filter by mapping rule ID | | `--name` | string | | Filter by name | | `--claimName` | string | | Filter by claim name | | `--claimValue` | string | | Filter by claim value |
wait-state (ws) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--processInstanceKey` / `-k` | string | | Filter by process instance key | | `--rootProcessInstanceKey` / `-r` | string | | Filter by root process instance key | | `--elementInstanceKey` / `-e` | string | | Filter by element instance key | | `--elementId` | string | | Filter by element ID (supports wildcards, e.g. `*Task*`) | | `--elementType` | string | | Filter by BPMN element type (e.g. SERVICE_TASK, USER_TASK, CALL_ACTIVITY) | | `--waitStateType` | string | | Filter by wait state type (JOB, MESSAGE, TIMER, CONDITION, USER_TASK, SIGNAL) |
**Examples:** ```bash c8ctl search pi --state=ACTIVE # Search for active process instances c8ctl search pd --bpmnProcessId=myProcess # Search process definitions by ID c8ctl search pd --name='*main*' # Search process definitions with wildcard c8ctl search ut --assignee=john # Search user tasks assigned to john c8ctl search inc --state=ACTIVE # Search for active incidents c8ctl search jobs --type=myJobType # Search jobs by type c8ctl search jobs --type='*service*' # Search jobs with type containing "service" c8ctl search variables --name=myVar # Search for variables by name c8ctl search variables --value=foo # Search for variables by value c8ctl search variables --processInstanceKey=123 --fullValue # Search variables with full values c8ctl search pd --iname='*order*' # Case-insensitive search by name c8ctl search ut --iassignee=John # Case-insensitive search by assignee c8ctl search ws --waitStateType=JOB # Search wait states of type JOB c8ctl search ws --elementType=SERVICE_TASK # Search wait states on service tasks ``` --- ### `get` Get a resource by key **Resources:** pi (process-instance), pd (process-definition), inc (incident), topology, form, user, role, group, tenant, auth (authorization), mapping-rule **Positional arguments:** - **process-definition:** `` (required) - **process-instance:** `` (required) - **incident:** `` (required) - **user:** `` (required) - **role:** `` (required) - **group:** `` (required) - **tenant:** `` (required) - **authorization:** `` (required) - **mapping-rule:** `` (required) - **form:** `` (required) **Resource-specific flags:**
process-definition (pd) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--xml` | boolean | | Get BPMN XML (process definitions) |
form | Flag | Type | Required | Description | |------|------|----------|-------------| | `--userTask` | boolean | | Get form for user task | | `--ut` | boolean | | Alias for --userTask | | `--processDefinition` | boolean | | Get form for process definition | | `--pd` | boolean | | Alias for --processDefinition |
process-instance (pi) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--variables` | boolean | | Include variables in output |
**Examples:** ```bash c8ctl get pi 123456 # Get process instance by key c8ctl get pi 123456 --variables # Get process instance with variables c8ctl get pd 123456 # Get process definition by key c8ctl get pd 123456 --xml # Get process definition XML c8ctl get form 123456 # Get form (searches both user task and process definition) c8ctl get form 123456 --ut # Get form for user task only c8ctl get form 123456 --pd # Get start form for process definition only c8ctl get user john # Get user by username ``` --- ### `create` Create a resource (process instance, identity) **Resources:** pi (process-instance), user, role, group, tenant, auth (authorization), mapping-rule **Resource-specific flags:**
process-instance (pi) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--processDefinitionId` | string | | Process definition ID (BPMN process ID) | | `--id` | string | | Process definition ID (alias for --processDefinitionId) | | `--bpmnProcessId` | string | | BPMN process ID (alias for --processDefinitionId) | | `--businessId` | string | | Business ID for the process instance (Camunda 8.9+) | | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | | `--awaitCompletion` | boolean | | Wait for process to complete | | `--fetchVariables` | boolean | | Fetch result variables on completion | | `--requestTimeout` | string | | Await timeout in milliseconds |
user | Flag | Type | Required | Description | |------|------|----------|-------------| | `--username` | string | | Username | | `--name` | string | | Display name | | `--email` | string | | Email address | | `--password` | string | | Password |
role | Flag | Type | Required | Description | |------|------|----------|-------------| | `--roleId` | string | | Role ID | | `--name` | string | | Display name |
group | Flag | Type | Required | Description | |------|------|----------|-------------| | `--groupId` | string | | Group ID | | `--name` | string | | Display name |
tenant | Flag | Type | Required | Description | |------|------|----------|-------------| | `--tenantId` | string | | Tenant ID | | `--name` | string | | Display name |
mapping-rule (mr) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--mappingRuleId` | string | | Mapping rule ID | | `--name` | string | | Display name | | `--claimName` | string | | Claim name | | `--claimValue` | string | | Claim value |
authorization (auth) | Flag | Type | Required | Description | |------|------|----------|-------------| | `--ownerId` | string | Yes | Authorization owner ID | | `--ownerType` | string | Yes | Authorization owner type | | `--resourceType` | string | Yes | Authorization resource type | | `--resourceId` | string | Yes | Authorization resource ID | | `--permissions` | string | Yes | Comma-separated permissions |
**Examples:** ```bash c8ctl create pi --id=myProcess --businessId=order-123 # Create a process instance with a Business ID c8ctl create pi --id=myProcess --awaitCompletion # Create and await completion c8ctl create user --username=john --name='John Doe' --email=john@example.com --password=secret # Create a user ``` --- ### `delete` Delete a resource by key **Usage:** `c8ctl delete ` **Resources:** user, role, group, tenant, auth (authorization), mapping-rule **Positional arguments:** - **user:** `` (required) - **role:** `` (required) - **group:** `` (required) - **tenant:** `` (required) - **authorization:** `` (required) - **mapping-rule:** `` (required) **Examples:** ```bash c8ctl delete user john # Delete user ``` --- ### `cancel` Cancel a process instance **Usage:** `c8ctl cancel ` **Resources:** pi (process-instance) **Positional arguments:** - **process-instance:** `` (required) --- ### `suspend` Suspend a process instance (Camunda 8.10+) **Usage:** `c8ctl suspend ` **Resources:** pi (process-instance) **Positional arguments:** - **process-instance:** `` (required) --- ### `resume` Resume a suspended process instance (Camunda 8.10+) **Usage:** `c8ctl resume ` **Resources:** pi (process-instance) **Positional arguments:** - **process-instance:** `` (required) --- ### `await` Create and await process instance completion (server-side waiting) **Usage:** `c8ctl await ` **Resources:** pi (process-instance) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--processDefinitionId` | string | | Process definition ID (BPMN process ID) | | `--id` | string | | Process definition ID (alias for --processDefinitionId) | | `--bpmnProcessId` | string | | BPMN process ID (alias for --processDefinitionId) | | `--businessId` | string | | Business ID for the process instance (Camunda 8.9+) | | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | | `--fetchVariables` | boolean | | Fetch result variables on completion | | `--requestTimeout` | string | | Await timeout in milliseconds | **Examples:** ```bash c8ctl await pi --id=myProcess --businessId=claim-456 # Create with a Business ID and wait for completion ``` --- ### `complete` Complete a user task or job **Usage:** `c8ctl complete ` **Resources:** ut (user-task), job **Positional arguments:** - **user-task:** `` (required) - **job:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | --- ### `fail` Mark a job as failed with optional error message and retry count **Resources:** job **Positional arguments:** - **job:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--retries` | string | | Remaining retries | | `--errorMessage` | string | | Error message | --- ### `update` Update the retries or timeout of a job. At least one of --retries or --timeout must be provided. **Resources:** job **Positional arguments:** - **job:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--retries` | string | | New number of retries for the job | | `--timeout` | string | | New job timeout in milliseconds | | `--operationReference` | string | | Optional operation reference (long integer) | **Examples:** ```bash c8ctl update job 12345 --retries 3 # Set the retry count for a job c8ctl update job 12345 --timeout 60000 # Set the job timeout to 60 seconds ``` --- ### `activate` Activate jobs of a specific type for processing **Resources:** jobs **Positional arguments:** - **jobs:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--maxJobsToActivate` | string | | Maximum number of jobs to activate | | `--timeout` | string | | Job timeout in milliseconds | | `--worker` | string | | Worker name | | `--customHeaders` | boolean | | Include custom headers in output | | `--fetchVariable` | string | | Comma-separated variable names to fetch from the server and include in output | --- ### `resolve` Resolve an incident (marks resolved, allows process to continue) **Resources:** inc (incident) **Positional arguments:** - **incident:** `` (required) --- ### `publish` Publish a message for message correlation **Resources:** msg (message) **Positional arguments:** - **message:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--correlationKey` | string | | Correlation key | | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | | `--timeToLive` | string | | Time to live in milliseconds | --- ### `correlate` Correlate a message to a specific process instance **Resources:** msg (message) **Positional arguments:** - **message:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--correlationKey` | string | Yes | Correlation key | | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | | `--timeToLive` | string | | Time to live in milliseconds | --- ### `set` Set variables on an element instance (process instance or flow element scope). Variables are propagated to the outermost scope by default; use --local to restrict to the specified scope. **Usage:** `c8ctl set variable ` **Resources:** variable **Positional arguments:** - **variable:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--variables` | string | Yes | JSON object of variables to set, or @file.json / @- to read from file/stdin (required) | | `--local` | boolean | | Set variables in local scope only (default: propagate to outermost scope) | **Examples:** ```bash c8ctl set variable 2251799813685249 --variables='{"status":"approved"}' # Set variables on a process instance c8ctl set variable 2251799813685249 --variables='{"x":1}' --local # Set variables in local scope only ``` --- ### `deploy` Deploy files to Camunda (auto-discovers deployable files in directories). When deploying a directory that is inside a process application (a parent directory contains a .process-application marker), the entire application root is deployed. Explicit file paths are not expanded. **Usage:** `c8ctl deploy [path...]` **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--force` | boolean | | Deploy any file type, ignoring the default extension allow-list | | `--extensions` | string | | Comma-separated list of additional file extensions to include when scanning directories (e.g. .md,.txt). Explicit file paths bypass the extension allow-list. | | `--all-extensions` | boolean | | Include all server-supported file extensions during directory discovery | **Examples:** ```bash c8ctl deploy ./my-process.bpmn # Deploy a BPMN file c8ctl deploy # Deploy from current directory (detects process application root) ``` --- ### `run` Deploy and start a process instance from a BPMN file **Usage:** `c8ctl run ` **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--businessId` | string | | Business ID for the process instance (Camunda 8.9+) | | `--variables` | string | | JSON variables (or @file.json / @- to read from file/stdin) | | `--force` | boolean | | Deploy any file type, ignoring the default extension allow-list | **Examples:** ```bash c8ctl run ./my-process.bpmn --businessId=order-123 # Deploy and start a process with a Business ID ``` --- ### `assign` Assign a resource to a target (--to-user, --to-group, etc.) **Usage:** `c8ctl assign ` **Resources:** role, user, group, mapping-rule **Positional arguments:** - **role:** `` (required) - **user:** `` (required) - **group:** `` (required) - **mapping-rule:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--to-user` | string | | Target user ID | | `--to-group` | string | | Target group ID | | `--to-tenant` | string | | Target tenant ID | | `--to-mapping-rule` | string | | Target mapping rule ID | **Examples:** ```bash c8ctl assign role admin --to-user=john # Assign role to user ``` --- ### `unassign` Unassign a resource from a target (--from-user, --from-group, etc.) **Usage:** `c8ctl unassign ` **Resources:** role, user, group, mapping-rule **Positional arguments:** - **role:** `` (required) - **user:** `` (required) - **group:** `` (required) - **mapping-rule:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--from-user` | string | | Source user ID | | `--from-group` | string | | Source group ID | | `--from-tenant` | string | | Source tenant ID | | `--from-mapping-rule` | string | | Source mapping rule ID | **Examples:** ```bash c8ctl unassign role admin --from-user=john # Unassign role from user ``` --- ### `watch` Watch files for changes and auto-deploy **Usage:** `c8ctl watch [path...]` **Aliases:** `w` **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--force` | boolean | | Continue watching after all deployment errors | | `--extensions` | string | | Comma-separated list of additional file extensions to watch (merged with defaults, e.g. .md,.txt) | | `--all-extensions` | boolean | | Watch all server-supported file extensions | | `--process-application` | boolean | | Watch and deploy the entire process application (requires .process-application marker) | | `--pa` | boolean | | Alias for --process-application | **Examples:** ```bash c8ctl watch ./src # Watch directory for changes ``` --- ### `open` Open Camunda web app in browser **Usage:** `c8ctl open ` **Resources:** operate, tasklist, modeler, optimize **Examples:** ```bash c8ctl open operate # Open Camunda Operate in browser c8ctl open tasklist # Open Camunda Tasklist in browser c8ctl open operate --profile=prod # Open Operate using a specific profile ``` --- ### `add` Add a profile **Resources:** profile **Positional arguments:** - **profile:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--baseUrl` | string | | Cluster base URL | | `--clientId` | string | | OAuth client ID | | `--clientSecret` | string | | OAuth client secret | | `--audience` | string | | OAuth audience | | `--oAuthUrl` | string | | OAuth token URL | | `--scope` | string | | OAuth scope (space-separated) | | `--defaultTenantId` | string | | Default tenant ID | | `--username` | string | | Basic auth username | | `--password` | string | | Basic auth password | | `--from-file` | string | | Import from .env file | | `--from-env` | boolean | | Import from environment variables | | `--header` | string | | Custom HTTP header attached to every request made under this profile (format: "Name: value", repeatable) | | `--exactBaseUrl` | boolean | | Use --baseUrl exactly as given for every request, without appending /v2 | --- ### `remove` Remove a profile (alias: rm) **Usage:** `c8ctl remove profile ` **Aliases:** `rm` **Resources:** profile **Positional arguments:** - **profile:** `` (optional) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--none` | boolean | | Clear active profile | --- ### `load` Load a c8ctl plugin (npm registry or URL) **Usage:** `c8ctl load plugin [name|--from url]` **Resources:** plugin **Positional arguments:** - **plugin:** `` (optional) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--from` | string | | Load plugin from URL | **Examples:** ```bash c8ctl load plugin my-plugin # Load plugin from npm registry c8ctl load plugin --from https://github.com/org/plugin # Load plugin from URL ``` --- ### `unload` Unload a c8ctl plugin (npm uninstall wrapper) **Usage:** `c8ctl unload plugin ` **Aliases:** `rm` **Resources:** plugin **Positional arguments:** - **plugin:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--force` | boolean | | Force unload without confirmation | --- ### `upgrade` Upgrade a plugin (respects source type) **Usage:** `c8ctl upgrade plugin [version]` **Resources:** plugin **Positional arguments:** - **plugin:** `` (required), `` (optional) **Examples:** ```bash c8ctl upgrade plugin my-plugin # Upgrade plugin to latest version c8ctl upgrade plugin my-plugin 1.2.3 # Upgrade plugin to a specific version (source-aware) ``` --- ### `downgrade` Downgrade a plugin to a specific version **Usage:** `c8ctl downgrade plugin ` **Resources:** plugin **Positional arguments:** - **plugin:** `` (required), `` (required) --- ### `sync` Synchronize plugins from registry (rebuild/reinstall) **Resources:** plugin **Examples:** ```bash c8ctl sync plugin # Synchronize plugins ``` --- ### `init` Create a new plugin from TypeScript template **Resources:** plugin **Positional arguments:** - **plugin:** `` (optional) **Examples:** ```bash c8ctl init plugin my-plugin # Create new plugin from template (c8ctl-plugin-my-plugin) ``` --- ### `doctor` Surface plugin-loading collisions detected at startup (#363). Reports loaded plugins with their command names, and any first-registration-wins drops (plugin-name or command-name). **Resources:** plugin **Examples:** ```bash c8ctl doctor plugin # List loaded plugins and any load-time collisions c8ctl doctor plugin --json # Machine-readable doctor output ``` --- ### `use` Set active profile or tenant **Usage:** `c8ctl use profile|tenant` **Resources:** profile, tenant **Positional arguments:** - **profile:** `` (optional) - **tenant:** `` (required) **Flags:** | Flag | Type | Required | Description | |------|------|----------|-------------| | `--none` | boolean | | Clear active profile/tenant | **Examples:** ```bash c8ctl use profile prod # Set active profile ``` --- ### `output` Show or set output format **Usage:** `c8ctl output [json|text]` **Resources:** json, text **Examples:** ```bash c8ctl output json # Switch to JSON output ``` --- ### `completion` Generate shell completion script **Usage:** `c8ctl completion bash|zsh|fish|install` **Resources:** bash, zsh, fish, install **Resource-specific flags:**
install | Flag | Type | Required | Description | |------|------|----------|-------------| | `--shell` | string | | Shell to install completions for (bash, zsh, fish) |
**Examples:** ```bash c8ctl completion bash # Generate bash completion script c8ctl completion install # Auto-detect shell and install completions (auto-refreshes on upgrade) c8ctl completion install --shell zsh # Install completions for a specific shell ``` --- ### `mcp-proxy` Start a STDIO MCP proxy (bridges local MCP clients to remote Camunda 8) **Usage:** `c8ctl mcp-proxy [mcp-path]` --- ### `feedback` Open the feedback page to report issues or request features --- ### `help` Show help (run 'c8ctl help \' for details) **Usage:** `c8ctl help [command]` **Aliases:** `menu` --- ### `which` Show active profile or output mode **Resources:** profile, output **Examples:** ```bash c8ctl which profile # Show currently active profile c8ctl which output # Show current output mode ``` --- ## Development workflows `c8ctl` includes commands that support local development and deployment workflows. You can deploy resources, run processes, watch for changes, manage profiles and sessions, and bridge MCP connections for AI assistants. :::tip Use the `--profile` flag with any command to run it against a specific cluster without changing the active session. ```bash c8 deploy ./process.bpmn --profile=staging c8 run ./order.bpmn --profile=prod c8 watch --profile=local ``` ::: ## Deploy Deploy resources to the active cluster. :::note When more than one profile is configured and you don't pass `--profile`, `c8ctl` prompts you to confirm which cluster to deploy to — a safety check against deploying to the wrong environment. Pass `--yes` (or `-y`) to skip the prompt in scripts and CI. ::: ### Deploy a single file ```bash c8 deploy ./process.bpmn c8 deploy ./decision.dmn c8 deploy ./form.form ``` ### Deploy multiple files ```bash c8 deploy ./process1.bpmn ./process2.bpmn ./decision.dmn ``` ### Deploy a directory ```bash # Deploy all resources in the current directory and subdirectories c8 deploy # Deploy all resources in a specific directory c8 deploy ./my-project ``` When scanning directories, `c8ctl` includes files with the following extensions by default: `.bpmn`, `.dmn`, `.form` Use `--extensions` to add more types to the directory scan (merged with the defaults): ```bash c8 deploy ./my-project --extensions=.md,.txt ``` Use `--all-extensions` to include every server-supported type (`.md`, `.txt`, `.xml`, `.rpa`, `.json`, `.config`, `.yml`, `.yaml`) without naming each one: ```bash c8 deploy ./my-project --all-extensions ``` Explicitly named files are always deployed regardless of extension — the extension filter only applies when scanning directories: ```bash c8 deploy ./custom-resource.unsupported ``` Use `--force` to disable extension filtering during directory discovery, deploying every file found regardless of extension: ```bash c8 deploy ./my-project --force ``` ### Building blocks and process applications `c8ctl` recognizes two special folder conventions during deployment: - Building blocks — folders containing `_bb-` in their name. These are deployed first. - Process applications — folders containing a `.process-application` marker file. ```text my-project/ ├── _bb-shared/ │ ├── common.bpmn │ └── nested/ │ └── util.bpmn ├── my-app/ │ ├── .process-application │ ├── process.bpmn │ └── subfolder/ │ └── form.form └── standalone.bpmn ``` ```bash c8 deploy ./my-project ``` ```text Deploying 5 resource(s)... ✓ Deployment successful [Key: 123456789] File | Type | ID | Version | Key --------------------------------|---------|------------|---------|------------------- _bb-shared/common.bpmn | Process | common | 1 | 2251799813685249 _bb-shared/nested/util.bpmn | Process | util | 1 | 2251799813685250 my-app/process.bpmn | Process | my-proc | 1 | 2251799813685251 my-app/subfolder/form.form | Form | form-id | 1 | 2251799813685252 standalone.bpmn | Process | standalone | 1 | 2251799813685253 ``` Building block resources are listed first, followed by process application resources, then standalone resources. ### Duplicate process ID detection Camunda does not allow deploying multiple resources with the same process or decision ID in a single deployment. `c8ctl` detects duplicate IDs before sending the request and shows a clear error message indicating which files conflict. If you have files that share the same ID, deploy them separately: ```bash c8 deploy process-v1.bpmn c8 deploy process-v2.bpmn ``` ### Exclude files with `.c8ignore` Create a `.c8ignore` file in your project directory to exclude files and directories from deployment and watch scanning. The format follows the same pattern syntax as `.gitignore`: ```text # Exclude test resources tests/ # Exclude work-in-progress files wip-*.bpmn # Exclude a specific file old-process.bpmn ``` Place the `.c8ignore` file in the root of the directory you pass to `c8 deploy` or `c8 watch`. Patterns are matched against relative file paths within that directory. ## Run The `run` command deploys a file and immediately creates a process instance in a single step: ```bash c8 run ./order-process.bpmn # With variables c8 run ./order-process.bpmn --variables='{"orderId":"12345","amount":100}' # With a Business ID c8 run ./order-process.bpmn --businessId=order-123 # Deploy a file with an unsupported extension c8 run ./process.xml --force ``` ## Watch Watch a directory for file changes and auto-redeploy on save: ```bash c8 watch # Watch a specific directory c8 watch ./my-project # Monitor only specific file extensions c8 watch --extensions=.bpmn,.dmn,.form # continue watching current directory # even when deployment fails c8 watch --force ``` By default, `c8ctl` monitors the same extensions used by `deploy`. Use `--extensions` to override. Use `--force` to continue watching after deployment errors. When watching inside a process application (a folder tree containing a `.process-application` marker file), use `--process-application` (or its alias `--pa`) to watch and redeploy the entire application on each change: ```bash c8 watch ./my-app --pa ``` ### Continue watching after deployment errors By default, `c8ctl` stops watching when a deployment fails with an error. Use `--force` to continue watching and redeploy on subsequent file changes, even after errors: ```bash c8 watch --force c8 watch ./my-project --force ``` This is useful during active development when your resources may temporarily be in an invalid state. ## Profile management For full profile management documentation, including adding, listing, switching, and removing profiles, see [Getting started — Profile management](getting-started.md#profile-management). ### Quick reference ```bash c8 add profile prod --baseUrl=https://camunda.example.com --clientId=xxx --clientSecret=yyy c8 list profiles c8 use profile prod c8 which profile c8 remove profile prod ``` ### One-off profile override Pass `--profile` to any command to use a different profile for that single invocation. The active session profile is not changed: ```bash # Run a command against a different cluster c8 list pi --profile=staging # Deploy to production without switching context c8 deploy ./release/ --profile=prod # Use a Camunda Modeler profile for one command c8 search ut --state=CREATED --profile=modeler:Cloud Cluster ``` This is useful when you are working against a local development cluster but need to quickly check or interact with another environment. ### Camunda Modeler integration `c8ctl` automatically discovers and imports profiles from Camunda Modeler. These profiles are read-only, always prefixed with `modeler:`, and loaded dynamically on each command execution. ```bash # Set a Modeler profile as the active session profile c8 use profile "modeler:Local Dev" # Use a Modeler profile for one command c8 list pi --profile=modeler:Cloud Cluster # Deploy using a Modeler profile c8 deploy ./process.bpmn --profile=modeler:Local Dev ``` For Modeler profile file locations per platform, see [Getting started — Camunda Modeler integration](getting-started.md#camunda-modeler-integration). ## Session management Session state persists between commands. Settings you change remain active until you change them again. ### Set the active profile ```bash c8 use profile prod ``` ### Set the active tenant ```bash c8 use tenant my-tenant-id ``` ### Set the output mode ```bash c8 output json # JSON output for scripting c8 output text # human-readable tables (default) c8 output # show current output mode ``` ## MCP proxy The `mcp-proxy` command starts a local STDIO-to-HTTP proxy that bridges MCP clients (such as VS Code with GitHub Copilot, or Claude Code) to the [Orchestration Cluster MCP Server](/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-overview.md). It handles OAuth 2.0 authentication transparently, so MCP clients that do not support the client credentials flow can connect to authenticated clusters. ### Configure with VS Code Add the following to your `.vscode/mcp.json`: ```json { "servers": { "camunda-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "@camunda8/cli", "mcp-proxy"], "env": { "CAMUNDA_BASE_URL": "https://", "CAMUNDA_CLIENT_ID": "", "CAMUNDA_CLIENT_SECRET": "", "CAMUNDA_OAUTH_URL": "https:///oauth/token", "CAMUNDA_TOKEN_AUDIENCE": "" } } } } ``` | Variable | Description | | :----------------------- | :--------------------------------------------------------------------------- | | `CAMUNDA_BASE_URL` | Base URL of your Orchestration Cluster, **without** the `/mcp/cluster` path. | | `CAMUNDA_CLIENT_ID` | OAuth client ID from your API client credentials. | | `CAMUNDA_CLIENT_SECRET` | OAuth client secret from your API client credentials. | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint URL. | | `CAMUNDA_TOKEN_AUDIENCE` | Token audience for the Orchestration Cluster API. | :::tip When you [create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in the Camunda Console, all required connection details are shown on the credentials page. You can also copy a ready-to-use `c8ctl` configuration snippet from the MCP tab. ::: ### Use a profile with MCP proxy Instead of passing environment variables, use a `c8ctl` profile to supply credentials: ```json { "servers": { "camunda-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "@camunda8/cli", "mcp-proxy", "--profile=prod"] } } } ``` This reads credentials from the named profile, including Modeler profiles (for example, `--profile=modeler:Cloud Cluster`). ### Local development without authentication If your local cluster does not require authentication (for example, [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md)), you can connect MCP clients directly without the proxy: ```json { "servers": { "camunda": { "type": "http", "url": "http://localhost:8080/mcp/cluster" } } } ``` For full MCP server documentation, see [Orchestration Cluster MCP Server](/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-overview.md). ## Advanced example: iterative process testing This example demonstrates an end-to-end development workflow — auto-deploying on save, starting a process instance with variables loaded from a file, monitoring execution in real time, and retrieving the result. ### 1. Start watch mode In a terminal, start `c8ctl` in watch mode to auto-deploy resources whenever you save changes: ```bash c8 watch ``` Now edit your `.bpmn`, `.dmn`, or `.form` files in your editor. Every time you save, `c8ctl` redeploys automatically. ### 2. Prepare process variables In a different terminal, load variables from a JSON file into a shell variable: ```bash export processVar=$(" } } ``` :::tip Recommended workflow for mutations 1. Run the command with `--dry-run` and show the would-be API call. 2. Wait for confirmation. 3. Re-run without `--dry-run` to execute. ::: ```bash # Preview creating a process instance c8 create pi --id=my-process --dry-run # Preview a deployment c8 deploy ./my-process.bpmn --dry-run # Preview cancelling a process instance c8 cancel pi 2251799813685249 --dry-run # Inspect the filter body a search would send c8 search pi --state ACTIVE --between 2024-01-01..2024-12-31 --dry-run ``` ### Machine-readable help In JSON output mode, `c8ctl help` emits structured JSON describing the full command tree, flags (with types), and agent flags: ```bash c8 output json c8 help # JSON with commands[], globalFlags[], agentFlags[], and resourceAliases c8 help list # JSON for a specific command ``` ## Verbose mode Use the `--verbose` flag to see detailed information about credential resolution, plugin loading, and other internal operations: ```bash c8 deploy ./process.bpmn --verbose c8 list pi --verbose ``` ## Debug mode Enable debug logging with environment variables for even more detailed output: ```bash DEBUG=1 c8 deploy ./process.bpmn C8CTL_DEBUG=true c8 list pi ``` Debug output is written to stderr and does not interfere with normal command output. --- ## c8ctl CLI ## About `c8ctl` is a minimal-dependency CLI for Camunda 8. It is built on top of the [`@camunda8/orchestration-cluster-api`](https://www.npmjs.com/package/@camunda8/orchestration-cluster-api) TypeScript SDK and provides two equivalent bin aliases: `c8ctl` and `c8`. `c8ctl` is designed for developers who need fast, scriptable access to a Camunda 8 cluster during development and testing. It supports both Camunda 8 SaaS and Self-Managed environments. Use `c8ctl` to: - Inspect running clusters — list process instances, user tasks, incidents, and jobs. - Deploy BPMN, DMN, and form resources, optionally watching for file changes. - Manage profiles for multiple clusters, including profiles imported from Camunda Modeler. - Extend the CLI with custom plugins. ## Prerequisites - **Node.js ≥ 22.18.0** (required for native TypeScript support) ## Install Install `c8ctl` globally from npm: ```bash npm install @camunda8/cli -g ``` After installation, both `c8ctl` and `c8` are available as commands in your terminal. ## Quick start with a local cluster `c8ctl` includes a built-in `cluster` command that downloads and manages a local [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) instance. This is the fastest way to get a cluster running for development. ### Start a cluster ```bash # Start with the latest stable version (default) c8 cluster start # Start with a specific version c8 cluster start 8.9.0-alpha5 # Start using a version alias c8 cluster start stable c8 cluster start alpha # Start with a major.minor version (rolling release) c8 cluster start 8.8 ``` `c8ctl` automatically downloads the correct binary for your platform, caches it locally, launches the cluster in the background, and waits for it to become healthy. ### Stop the cluster ```bash c8 cluster stop ``` ### Check cluster status ```bash c8 cluster status ``` Reports whether a cluster is running, including connection details. If `cluster start` exits nonzero while Camunda or connector processes survive, status reports **`running after failed startup`**. Review the startup error or c8run logs, then run `c8 cluster stop` before retrying. A responding shared health endpoint does not mean every physical tenant is ready. The original startup exit code is preserved; stopping clears the failure record, and a successful restart replaces any stale failure state. This includes readiness timeouts after c8run itself exits successfully, which make `cluster start` exit 1. A retry while processes survive without an active marker also exits 1; stop those processes before starting again. **`running (untracked)`** means processes are alive without an active c8ctl marker and the startup outcome is unknown. Use `c8 cluster stop` to recover, including when an installation directory was replaced or deleted while running. JSON status (`c8 cluster status --json`) includes the same `status` and `recovery` guidance. ### View cluster logs ```bash c8 cluster logs ``` Streams log output from the running cluster. ### Manage cached versions ```bash # List locally cached versions and available aliases c8 cluster list # List all versions available on the remote download server c8 cluster list-remote # Download a version without starting it c8 cluster install 8.8 # Remove a locally cached version c8 cluster delete 8.8 # Delete a version's runtime data but keep the binary (the next start is fresh) c8 cluster purge 8.8 # Or stop the running cluster and purge its runtime data in one step c8 cluster stop --purge ``` ### Manage secrets `c8 cluster secrets` forwards to the `secrets` command of the c8run binary c8ctl already downloads and manages. c8ctl adds no storage of its own and never sees a secret value: `set` prompts for the value without echoing it (or reads exactly one value from stdin with `--stdin`), and the store is c8run's, shared across versions and projects for the current OS user. ```bash # Store a secret — prompts, no-echo c8 cluster secrets set OPENAI_API_KEY # List secret names (values are never shown) c8 cluster secrets list # Import multiple secrets from a dotenv file c8 cluster secrets import .env.secrets # Delete a secret without an interactive prompt c8 cluster secrets delete OPENAI_API_KEY --yes # Target a specific installed version instead of the running/highest one c8 cluster secrets --c8-version 8.10 list ``` Everything after `secrets` is passed to c8run unchanged, so any verb or flag c8run supports works here too, including ones added after this was written — run `c8 cluster secrets help` for c8run's own help (`--help` on the `c8ctl` command itself belongs to c8ctl). This requires a c8run build that includes the `secrets` command; older cached versions print a hint if it is missing. Until then, or as an ephemeral alternative for a single run, pass secrets as environment variables when starting instead: ```bash SECRET_OPENAI_API_KEY=sk-... c8 cluster start ``` ### Local physical tenants Physical tenants are isolated engines inside one local Camunda process, each with its own data, users, secrets, and Connectors runtime. They require **Camunda 8.10 or newer and a c8run build that includes the physical-tenant CLI**. Older cached 8.10 builds can predate this feature. `cluster start` reuses cached installations, so upgrading c8ctl alone does not upgrade the cached c8run; `cluster install 8.10` checks for an updated distribution. Run `c8 cluster physical-tenants help` to confirm support. ```bash # Install a supporting distribution, then save physical tenants without starting Java c8 cluster install 8.10 c8 cluster physical-tenants --c8-version 8.10 add sales c8 cluster physical-tenants --c8-version 8.10 add hr --username alice # c8run prompts for alice's password; automation can use --password-stdin # Start default plus all saved physical tenants c8 cluster start 8.10 c8 cluster physical-tenants list # One start only: overrides the saved physical tenant selection without changing it c8 cluster stop c8 cluster start 8.10 --physical-tenants sales,hr # Manage a physical tenant's own secrets c8 cluster secrets --physical-tenant sales set OPENAI_API_KEY c8 cluster secrets --physical-tenant sales import .env.secrets c8 cluster secrets --physical-tenant sales delete OPENAI_API_KEY --yes # Removing a physical tenant keeps its data; restart to apply the change c8 cluster physical-tenants remove sales --yes c8 cluster physical-tenants path c8 cluster physical-tenants help # Stop default and all physical tenants c8 cluster stop ``` `cluster physical-tenants` delegates to c8run, which owns physical tenant validation, password prompting, persistence, configuration, and readiness checks. It also supports `reset --yes` and `add --no-connectors`. `remove` and `reset` ask for confirmation; non-interactive use requires `--yes`. `--physical-tenants` is start-only, accepts comma-separated IDs, and can be repeated. The startup output includes per-physical-tenant endpoints and readiness. A failed physical tenant can leave healthy engines running; the command returns a failure and `c8 cluster stop` stops the surviving processes. Management commands select an explicit leading `--c8-version`, otherwise the running cluster's version, otherwise the highest locally installed version. They never download a distribution automatically. Keep the same version selected when configuring and starting a cluster. Both secrets and physical-tenant commands preserve c8run's output and exit status; `--json` does not convert that output to JSON. Use the `help` subcommand for c8run help, because `--help` belongs to c8ctl. `--dry-run` previews these delegated calls and cluster starts without launching c8run or reading stdin. `C8RUN_TENANTS_FILE` selects the saved physical tenants file; `C8RUN_SECRETS_DIR` selects the default secrets directory. Relative values and secret import filenames are resolved against the caller's working directory, including on startup. Without overrides, c8run's per-OS-user defaults apply. Each physical tenant's secret directory is a sibling under `tenant-secrets/`. Both `--physical-tenant ` and `--physical-tenant=` are supported. c8ctl adds no physical tenant or secret store of its own. Physical tenant IDs contain lowercase letters and digits. With the bundled H2 or other RDBMS storage, IDs are limited to eight characters. Removing and re-adding an ID restores its data, including its existing users. Each enabled physical tenant's Connectors runtime uses another JVM and port. See the [physical-tenant documentation](/self-managed/concepts/physical-tenants/index.md) for prerequisites and limitations. #### Inspect a physical tenant with a profile Physical tenants use a distinct REST base path. For a tenant using the default `demo` login: ```bash c8 add profile local-sales \ --baseUrl=http://localhost:8080/physical-tenants/sales/v2 \ --username=demo --password=demo \ --exactBaseUrl c8 --profile local-sales list process-definitions ``` Configure the profile's authentication to match a dedicated tenant login when used. Existing `create tenant`, `list tenants`, and `use tenant` commands manage or select **logical tenants inside an engine**; they do not create or select physical engines. Profiles select the physical tenant's API endpoint. No profiles are created or switched automatically by `cluster physical-tenants`. ### Version aliases The `stable` and `alpha` aliases are resolved dynamically from the [Camunda Download Center](https://downloads.camunda.cloud/release/camunda/c8run/): | Alias | Resolves to | | :------- | :------------------------------------------------------- | | `stable` | Highest minor release that is GA (for example, 8.9) | | `alpha` | Highest minor release overall (for example, 8.10-alpha0) | When no version is specified, `c8 cluster start` defaults to `stable`. A `.` version like `8.8` is treated as a rolling release — the download server directory is updated in-place with new patch releases. `c8 cluster start` uses the local version if available, while `c8 cluster install` always checks for a newer version. ### Debug output Stream raw c8run logs during startup: ```bash c8 cluster start --debug ``` ### Supported platforms - macOS (x86_64, aarch64) - Linux (x86_64, aarch64) - Windows (x86_64) Cache locations: | Platform | Path | | :------- | :---------------------------- | | macOS | `~/Library/Caches/c8run/` | | Linux | `~/.cache/c8run/` | | Windows | `%LOCALAPPDATA%\c8run\cache\` | Override the cache directory with the `C8RUN_CACHE_DIR` environment variable. ### Download interruptions The c8run archive is several hundred MB. If the connection drops, `c8 cluster start` and `c8 cluster install` retry up to three times and resume from where the download stopped when the server supports it. An attempt that receives no data for 60 seconds is aborted and retried. If the download still fails, the error names the cause and suggests what to try: - Behind a proxy, set `HTTPS_PROXY` together with `NODE_USE_ENV_PROXY=1` (Node.js 22.21+ or 24.5+). - Set `C8CTL_C8RUN_DOWNLOAD_URL` to download from a mirror with the same layout as the Camunda Download Center. - Add `--verbose` to print HTTP details for each download attempt: request and response headers, timing, throughput, and the full error cause chain. ## Credential resolution `c8ctl` resolves credentials in the following order: 1. **`--profile` flag** — one-off override for a single command. 2. **Active profile** — set with `c8 use profile `. 3. **Environment variables** — standard `CAMUNDA_*` variables (take precedence over the default profile). 4. **Default `local` profile** — `http://localhost:8080/v2`. When no profile has been explicitly set, `c8ctl` defaults to a built-in `local` profile that points to `http://localhost:8080/v2`. This means you can start a local cluster with `c8 cluster start` and immediately run commands without any configuration. If the connection fails, `c8ctl` shows a hint with the URL it tried to connect to. ### Use environment variables ```bash export CAMUNDA_BASE_URL=https://camunda.example.com export CAMUNDA_CLIENT_ID=your-client-id export CAMUNDA_CLIENT_SECRET=your-client-secret c8 list pi ``` ### Use a profile ```bash c8 add profile prod \ --baseUrl=https://camunda.example.com \ --clientId=your-client-id \ --clientSecret=your-client-secret c8 use profile prod c8 list pi ``` ### Override the profile for a single command Pass `--profile` to any command to use a different profile without changing the active session: ```bash c8 list pi --profile=staging c8 deploy ./process.bpmn --profile=prod c8 search ut --assignee=jane --profile=dev ``` The `--profile` flag works with both `c8ctl` profiles and Camunda Modeler profiles (prefixed with `modeler:`): ```bash c8 list pi --profile=modeler:Cloud Cluster c8 deploy ./process.bpmn --profile=modeler:Local Dev ``` ## Tenant resolution Tenants are resolved in the following order: 1. **Active tenant** — set with `c8 use tenant `. 2. **Default tenant** from the active profile. 3. **`CAMUNDA_DEFAULT_TENANT_ID`** environment variable. 4. **``** tenant. ```bash c8 use tenant my-tenant-id c8 list pi # uses my-tenant-id ``` ## Profile management `c8ctl` supports two types of profiles: 1. `c8ctl` profiles — managed directly with `c8ctl` commands. 2. Camunda Modeler profiles — automatically imported from Camunda Modeler (read-only, prefixed with `modeler:`). ### Add a profile ```bash # Minimal local profile (defaults to http://localhost:8080/v2) c8 add profile local # OAuth-secured cluster c8 add profile prod \ --baseUrl=https://camunda.example.com \ --clientId=your-client-id \ --clientSecret=your-client-secret # With explicit OAuth endpoint, audience, and scope c8 add profile prod \ --baseUrl=https://camunda.example.com \ --clientId=your-client-id \ --clientSecret=your-client-secret \ --audience=camunda-api \ --oAuthUrl=https://auth.example.com/oauth/token \ --scope="my-oauth-scope" # With a default tenant c8 add profile dev \ --baseUrl=https://dev.example.com \ --clientId=dev-client \ --clientSecret=dev-secret \ --defaultTenantId=dev-tenant # Import settings from a .env file c8 add profile staging --from-file .env.staging # Import settings from the current CAMUNDA_* environment variables source .env.prod c8 add profile prod --from-env ``` ### Gateway-fronted clusters For a cluster reached through an API gateway or reverse proxy, a profile can attach a custom header to every request and target `--baseUrl` exactly, without `c8ctl`'s automatic `/v2` suffixing: ```bash # Attach a header (e.g. an API key) to every REST request made under this profile. # Repeat --header to attach more than one. c8 add profile gateway \ --baseUrl=https://gateway.example.com/camunda-api \ --header "X-Api-Key: your-api-key" \ --header "X-Correlation-Id: your-correlation-id" # --exactBaseUrl: use --baseUrl as the exact request path instead of # appending /v2 (the default for self-managed profiles). c8 add profile gateway-exact \ --baseUrl=https://gateway.example.com/camunda-api \ --exactBaseUrl ``` Both flags are optional and independent of each other. A profile that sets neither behaves exactly as before. ### List profiles ```bash c8 list profiles ``` Lists both `c8ctl` and Modeler profiles. Modeler profiles appear with a `modeler:` prefix. ### Switch the active profile ```bash c8 use profile prod c8 use profile "modeler:Local Dev" ``` All subsequent commands use the active profile until you switch again or pass `--profile`. ### Show the current profile ```bash c8 which profile ``` ### Remove a profile ```bash c8 remove profile prod c8 rm profile prod # alias ``` :::note Modeler profiles are read-only. They cannot be modified or removed through `c8ctl` — manage them in Camunda Modeler. ::: ### Camunda Modeler integration `c8ctl` automatically reads profiles from Camunda Modeler's `profiles.json` file. These profiles are: - **Read-only** — cannot be modified or deleted via `c8ctl`. - **Prefixed** — always displayed with a `modeler:` prefix (for example, `modeler:Local Dev`). - **Dynamic** — loaded fresh on each command execution. Platform-specific locations: | Platform | Path | | :------- | :------------------------------------------------------------ | | Linux | `~/.config/camunda-modeler/profiles.json` | | macOS | `~/Library/Application Support/camunda-modeler/profiles.json` | | Windows | `%APPDATA%\camunda-modeler\profiles.json` | ```bash # Use a Modeler profile as the active session profile c8 use profile "modeler:Local Dev" # Use a Modeler profile for a single command c8 list pi --profile=modeler:Cloud Cluster ``` ## Get help ```bash c8ctl help # general help c8ctl help list # help for the list command c8ctl help deploy # help for the deploy command c8ctl help profiles # help for profile management c8ctl --version # print version ``` Run any verb without a resource to see what resources are available: ```bash c8 list # shows: pi, pd, ut, inc, jobs, profiles, plugins, users, roles, groups, tenants, auth, mr c8 search # shows: pi, pd, ut, inc, jobs, variables, users, roles, groups, tenants, auth, mr ``` ## Send feedback ```bash c8 feedback ``` Opens the GitHub issues page in your browser to report bugs or request features. ## Update notifications `c8ctl` checks for newer versions at most once an hour, in a detached background process, so an unreachable or blocked npm registry never delays a command. When that check finds an update, the next command displays a one-time notification. The check is suppressed in CI environments and development versions; the notification is also suppressed in JSON output mode. ## Shell completion The recommended way to set up shell completion is with the `install` subcommand: ```bash c8 completion install ``` This auto-detects your shell, writes the completion file, and wires it into your shell configuration. To specify a shell explicitly: ```bash c8 completion install --shell zsh ``` Completions auto-refresh when the CLI is upgraded. Alternatively, generate the completion script manually: ```bash c8ctl completion bash > ~/.c8ctl-completion.bash echo 'source ~/.c8ctl-completion.bash' >> ~/.bashrc source ~/.bashrc ``` ```bash c8ctl completion zsh > ~/.c8ctl-completion.zsh echo 'source ~/.c8ctl-completion.zsh' >> ~/.zshrc source ~/.zshrc ``` ```bash c8ctl completion fish > ~/.config/fish/completions/c8ctl.fish ``` Fish loads the completion automatically on the next shell start. ## Output modes Switch between human-readable text and machine-readable JSON: ```bash c8 output json # all commands output JSON c8 output text # back to formatted tables (default) ``` These commands save the output preference. Use `--json` to select JSON for one invocation without changing the saved preference. For scripts that invoke multiple commands, set `C8CTL_OUTPUT_MODE=json` in their environment rather than adding `--json` to every invocation. `C8CTL_OUTPUT_MODE=text` also allows a temporary text override when the saved preference is JSON, without changing session state. An explicit `--json` flag takes precedence over the environment override, which takes precedence over the saved preference. ### Version output `c8ctl --version` (or `c8ctl -v`) always writes its result to stdout and exits `0`: | Effective output mode | stdout | | :-------------------- | :----------------------------------------------- | | Text | `c8ctl v` | | JSON | `{"status":"info","message":"c8ctl v"}` | This applies whether JSON mode comes from `--json`, `C8CTL_OUTPUT_MODE`, or the saved preference. The version is primary command output, not a diagnostic, despite the JSON envelope's `status: "info"`. Diagnostics remain on stderr in JSON mode. The version payload is not filtered by `--fields`, and requesting the version does not change the saved preference. ## Environment variables | Variable | Description | | :-------------------------- | :---------------------------- | | `CAMUNDA_BASE_URL` | Cluster base URL | | `CAMUNDA_CLIENT_ID` | OAuth client ID | | `CAMUNDA_CLIENT_SECRET` | OAuth client secret | | `CAMUNDA_TOKEN_AUDIENCE` | OAuth token audience | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint | | `CAMUNDA_OAUTH_SCOPE` | OAuth scope (space-separated) | | `CAMUNDA_DEFAULT_TENANT_ID` | Default tenant ID | Environment variable conventions follow the [`@camunda8/orchestration-cluster-api`](https://www.npmjs.com/package/@camunda8/orchestration-cluster-api) module. ## Debug mode Enable debug logging to see detailed internal information such as plugin loading and credential resolution: ```bash DEBUG=1 c8 list pi # or C8CTL_DEBUG=true c8 list pi ``` Debug output is written to stderr and does not interfere with normal command output. ## Next steps - [Cluster inspection and process management](cluster-inspection.md) — list, search, and manage process instances, user tasks, incidents, and jobs. - [Development workflows](development-workflows.md) — deploy, run, watch, and configure profiles and MCP proxy. - [Extend `c8ctl` with plugins](plugins.md) — scaffold, install, and manage custom CLI plugins. --- ## Identity management `c8ctl` provides commands to manage identity resources through the Orchestration Cluster API. You can list, search, get, create, and delete users, roles, groups, tenants, authorizations, and mapping rules. Membership management is handled with the `assign` and `unassign` verbs. | Resource | Alias | Available verbs | | :----------------- | :----- | :------------------------------------------ | | `user(s)` | — | `list`, `search`, `get`, `create`, `delete` | | `role(s)` | — | `list`, `search`, `get`, `create`, `delete` | | `group(s)` | — | `list`, `search`, `get`, `create`, `delete` | | `tenant(s)` | — | `list`, `search`, `get`, `create`, `delete` | | `authorization(s)` | `auth` | `list`, `search`, `get`, `create`, `delete` | | `mapping-rule(s)` | `mr` | `list`, `search`, `get`, `create`, `delete` | :::tip All commands respect the active profile and tenant. Pass `--profile` to override the profile for a single command: ```bash c8 list users --profile=prod c8 search roles --profile=staging ``` ::: ## Users ### List users ```bash c8 list users ``` ### Search users ```bash c8 search users --name=John c8 search users --email='john@example.com' c8 search users --name=John --email='john@example.com' ``` ### Get a user ```bash c8 get user john ``` ### Create a user ```bash c8 create user --username=john --name='John Doe' --email=john@example.com --password=changeme ``` ### Delete a user ```bash c8 delete user john ``` ## Roles ### List roles ```bash c8 list roles ``` ### Search roles ```bash c8 search roles --name=admin ``` ### Get a role ```bash c8 get role admin ``` ### Create a role ```bash c8 create role --roleId=my-role --name='My role' ``` ### Delete a role ```bash c8 delete role my-role ``` ## Groups ### List groups ```bash c8 list groups ``` ### Search groups ```bash c8 search groups --name=developers ``` ### Get a group ```bash c8 get group developers ``` ### Create a group ```bash c8 create group --groupId=developers --name=Developers ``` ### Delete a group ```bash c8 delete group developers ``` ## Tenants ### List tenants ```bash c8 list tenants ``` ### Search tenants ```bash c8 search tenants --name=Production ``` ### Get a tenant ```bash c8 get tenant prod ``` ### Create a tenant ```bash c8 create tenant --tenantId=prod --name='Production' ``` ### Delete a tenant ```bash c8 delete tenant prod ``` ## Authorizations ### List authorizations ```bash c8 list auth c8 list authorizations ``` ### Search authorizations ```bash c8 search auth --ownerId=john --resourceType=process-definition ``` ### Create an authorization ```bash c8 create auth --ownerId=john --ownerType=USER --resourceType=process-definition --resourceId='*' --permissions=READ,CREATE ``` ### Delete an authorization ```bash c8 delete auth 2251799813685260 ``` ## Mapping rules ### List mapping rules ```bash c8 list mr c8 list mapping-rules ``` ### Search mapping rules ```bash c8 search mr --name=my-rule ``` ### Create a mapping rule ```bash c8 create mr --mappingRuleId=my-rule --name='My Rule' --claimName=email --claimValue=user@example.com ``` ### Delete a mapping rule ```bash c8 delete mr my-rule ``` ## Assign and unassign The `assign` and `unassign` verbs manage membership between identity resources. You can assign users to roles, groups, or tenants, and assign groups to tenants. ### Assign a user to a role ```bash c8 assign role admin --to-user=john ``` ### Unassign a user from a role ```bash c8 unassign role admin --from-user=john ``` ### Assign a user to a group ```bash c8 assign user john --to-group=developers ``` ### Unassign a user from a group ```bash c8 unassign user john --from-group=developers ``` ### Assign a group to a tenant ```bash c8 assign group developers --to-tenant=prod ``` ### Unassign a group from a tenant ```bash c8 unassign group developers --from-tenant=prod ``` --- ## Extend c8ctl with plugins `c8ctl` supports a global plugin system that lets you add custom commands. Plugins are installed globally to a user-specific directory and tracked in a registry file (`plugins.json`). ## Plugin storage locations | Platform | Plugins directory | Registry file | | :------- | :--------------------------------------------------------- | :------------------------------------------------- | | Linux | `~/.config/c8ctl/plugins/node_modules` | `~/.config/c8ctl/plugins.json` | | macOS | `~/Library/Application Support/c8ctl/plugins/node_modules` | `~/Library/Application Support/c8ctl/plugins.json` | | Windows | `%APPDATA%\c8ctl\plugins\node_modules` | `%APPDATA%\c8ctl\plugins.json` | You can override the data directory with the `C8CTL_DATA_DIR` environment variable. ## Scaffold a new plugin Generate a new plugin project from a TypeScript template: ```bash c8ctl init plugin my-plugin ``` This creates a project directory with all necessary files, build configuration, and an `AGENTS.md` guide for autonomous plugin implementation. ## Install a plugin ### From the npm registry ```bash c8 load plugin my-custom-plugin ``` ### From a URL ```bash c8 load plugin --from https://github.com/user/my-plugin c8 load plugin --from file:///path/to/local/plugin c8 load plugin --from git://github.com/user/plugin.git ``` After loading, plugin commands are immediately available. ## Manage plugins ### List installed plugins ```bash c8 list plugins ``` Output shows version and sync status for each plugin: - `✓ Installed` — plugin is in the registry and installed. - `⚠ Not installed` — plugin is in the registry but missing from disk (run `sync`). - `⚠ Not in registry` — plugin is installed but not tracked in the registry. ### Upgrade a plugin ```bash # Upgrade to latest c8 upgrade plugin my-custom-plugin # Upgrade to a specific version c8 upgrade plugin my-custom-plugin 1.2.3 ``` ### Downgrade a plugin ```bash c8 downgrade plugin my-custom-plugin 1.0.0 ``` Upgrade and downgrade behavior depends on the plugin source: | Source | Behavior | | :---------- | :---------------------------------------------------------------------------------------------------------- | | npm package | Installs `@`. | | URL/git | Installs `#`. | | `file://` | Version-based upgrade/downgrade is not supported. Use `load plugin --from` with the desired local checkout. | ### Unload a plugin ```bash c8 unload plugin my-custom-plugin ``` ### Synchronize plugins Synchronize all plugins from the registry. Rebuilds installed plugins and reinstalls any that are missing: ```bash c8 sync plugins ``` ### Diagnose plugin issues Use `doctor plugin` to inspect the plugin loading state and surface any command collisions (for example, when two plugins register the same command) or version incompatibilities. The report always exits `0` — it describes state rather than failing. ```bash # Human-readable summary of loaded plugins, their requirements, and any problems c8 doctor plugin # Machine-readable output for scripts and agents c8 doctor plugin --json ``` Built-in commands always take precedence over plugin commands, and the first plugin to register a given command wins — with one exception: a plugin disabled by its declared `engines.c8ctl` (see below) yields the command name to a compatible plugin regardless of load order, because its own copy could only ever refuse to run. `doctor plugin` shows which registrations were kept and which were shadowed, plus each plugin's declared requirement and whether this c8ctl satisfies it. ## The c8ctl version a plugin needs The plugin runtime grows over time — `c8ctl.npm()`, for instance, does not exist in every published c8ctl. A plugin that uses a newer runtime API declares the floor it needs in its own `package.json`: ```json { "name": "c8ctl-plugin-example", "engines": { "c8ctl": ">=4.0.0-alpha.1" } } ``` The field is optional — a plugin that declares nothing is treated exactly as it was before. When it *is* declared and this c8ctl does not satisfy it: - `c8 load plugin`, `c8 upgrade plugin`, and `c8 downgrade plugin` **fail** instead of reporting success. The plugin is still installed; what you don't get is a green exit code on an install that cannot work. (Pinning an older release is the likeliest way to land on one built for an older c8ctl, so `downgrade` matters most here.) - The plugin still loads and still appears in `c8 help`, but every one of its commands refuses to run and prints which c8ctl it needs. A visible command that explains itself beats a missing one that reads as a typo. - `c8 doctor plugin` lists it under incompatible plugins, in text and in `--json`. Range evaluation is npm's own `semver` — the same library `npm install` uses for `engines` fields — so the full range grammar is supported: comparators (`>=`, `>`, `<=`, `<`, `^`, `~`, an exact version, `*`), set unions (`"^3 || ^4"`), hyphen ranges (`"3.3.0 - 4.0.0"`), and partial or wildcard versions (`"4"`, `"4.x"`). Prereleases order as semver specifies, so `>=4.0.0` is *not* satisfied by `4.0.0-alpha.1` — declare `>=4.0.0-alpha.1` when an alpha is enough — and `^`/`~` exclude prereleases of the version they bound (`^4.1.0` does not admit `5.0.0-alpha.1`). **Prereleases count.** Unlike `npm install`, which excludes prerelease versions from a range unless you opt in, this check treats them as ordinary versions: a host on `4.1.0-alpha.3` satisfies `>=4.0.0-alpha.1`. That is deliberate — c8ctl publishes alphas, and refusing to run a plugin on the very channel its requirement was written for would disable working setups. One consequence to know: `^`/`~` still desugar the way npm does, to an upper bound that excludes prereleases (`^4.1.0` means `>=4.1.0 <5.0.0-0`), while a hand-written `<5.0.0` means exactly what it says and does admit `5.0.0-alpha.1`. Spell the bound explicitly if that distinction matters to your plugin. Two cases deliberately disable nothing, because c8ctl could not evaluate the requirement rather than having found it unmet: - c8ctl running from an unpublished development build, whose version says nothing about its API surface. - A range c8ctl cannot parse (`"latest"`, `">=four"`), which is reported as a warning pointing at npm's semver range syntax. To resolve a genuine incompatibility, either upgrade c8ctl (`npm install -g @camunda8/cli@latest`) or install a plugin release that supports the c8ctl you have. ## Plugin structure A plugin is a regular Node.js module with a `c8ctl-plugin.js` (or `c8ctl-plugin.ts`) file in the root directory. The file must export a `commands` object and optionally a `metadata` object. ### Minimal example ```typescript // c8ctl-plugin.ts export const metadata = { name: "my-plugin", description: "My custom c8ctl plugin", commands: { analyze: { description: "Analyze BPMN processes for best practices", }, optimize: { description: "Optimize process definitions", }, }, }; export const commands = { analyze: async (args: string[]) => { console.log("Analyzing...", args); }, optimize: async (args: string[]) => { console.log("Optimizing..."); }, }; ``` ## Plugin runtime API At runtime, `c8ctl` injects a global object via `globalThis.c8ctl` that plugins can use to interact with the Camunda cluster and the `c8ctl` environment. | Method/field | Description | | :----------------------------------- | :--------------------------------------------------------------------------------------- | | `createClient(profile?, sdkConfig?)` | Create a Camunda SDK client. Optionally pass a profile name to use specific credentials. | | `resolveTenantId(profile?)` | Resolve the active tenant ID using the same fallback logic as built-in commands. | | `getLogger()` | Get the `c8ctl` logger instance (respects the current output mode). | | `getUserDataDir()` | Absolute path of the `c8ctl` user data directory (honours `C8CTL_DATA_DIR`). | | `npm({ args, stdout?, stdio? })` | Run npm the way `c8ctl` does, portably. See [Running npm from a plugin](#running-npm-from-a-plugin). | | `version` | `c8ctl` version string. | | `nodeVersion` | Node.js version. | | `platform` | Operating system (`linux`, `darwin`, `win32`). | | `arch` | CPU architecture. | | `cwd` | Current working directory. | | `outputMode` | Current output mode (`text` or `json`). | | `activeProfile` | Name of the active profile. | | `activeTenant` | Active tenant ID. | ### Logger output `logger.info(message)` formats messages for the current output mode: plain text on stdout in text mode, or `{"status":"info","message":"..."}` on stderr in JSON mode. For a message that is the command's primary result, use `logger.info(message, { stream: "stdout" })`. Use `{ stream: "stderr" }` to keep a diagnostic on stderr in either mode. The override affects only that call, preserves formatting, and does not apply `--fields` filtering. `logger.output(content)` writes raw content to stdout without formatting it, while `logger.json(data)` writes structured data with `--fields` filtering. ### Running npm from a plugin Spawning npm directly is not portable. On Windows npm is a `npm.cmd` shim: a bare `npm` spawn fails with `ENOENT`, and `npm.cmd` alone fails with `EINVAL` under the CVE-2024-27980 hardening in Node 18.20.2 / 20.12.2 / 21.7.3 and later. `c8ctl.npm()` is the same helper the CLI uses for its own plugin installs — it routes the call through `cmd.exe` with every argument quoted (plugin paths routinely contain spaces) and rejects arguments that cannot be passed safely: an embedded `"`, a line break, or a `%VAR%` reference. ```typescript const c8ctl: C8ctlPluginRuntime | undefined = globalThis.c8ctl; if (!c8ctl) throw new Error("c8ctl runtime is not available"); // Capture stdout const { stdout } = c8ctl.npm({ args: ["view", "c8ctl-plugin-foo", "version"], stdout: true }); // Stream to the terminal instead c8ctl.npm({ args: ["install", "c8ctl-plugin-foo"], stdio: "inherit" }); ``` `stdout: true` returns `{ stdout: string }`; omitting it returns `undefined`. A non-zero npm exit throws. #### Installing into a directory with `--prefix` `npm install --prefix ` with no package spec misbehaves on Windows: npm applies the CLI `--prefix` to the global prefix too, and because the Windows global install root is `\node_modules` (rather than `/lib/node_modules` as on POSIX) npm decides the install is global, rewrites the empty argument list to `.`, and resolves that against the process cwd — so it reads the wrong `package.json` ([#526](https://github.com/camunda/c8ctl/issues/526)). `c8ctl.npm()` detects this exact shape on Windows and instead runs npm with its cwd set to the prefix directory, which is equivalent and correct. Plugins do not need to change their cwd or use an npm-specific option form, and POSIX invocations are untouched. The re-scope is bounded (`--workspaces=false`) so npm resolves exactly that directory rather than promoting the install to a workspace root above it, and a prefix that is itself a workspace root is left untouched. ```typescript // Works the same on Linux, macOS and Windows c8ctl.npm({ args: ["install", "--prefix", projectDir], stdout: true }); ``` ### TypeScript autocomplete For TypeScript autocomplete in your plugin, import the runtime type: ```typescript const c8ctl = globalThis.c8ctl as C8ctlPluginRuntime; const tenantId = c8ctl.resolveTenantId(); const logger = c8ctl.getLogger(); logger.info(`Tenant: ${tenantId}`); ``` ### Use the SDK client from a plugin ```typescript const c8ctl = globalThis.c8ctl as C8ctlPluginRuntime; export const commands = { "list-active": async (args: string[]) => { const client = c8ctl.createClient(); const logger = c8ctl.getLogger(); // Use the client to query the Orchestration Cluster API logger.info("Client ready"); }, }; ``` ## Help integration When plugins export a `metadata.commands` object with descriptions, those commands appear in the `c8ctl help` output under a **Plugin Commands** section: ```text c8ctl - Camunda 8 CLI v2.2.0 Commands: list List resources (pi, ut, inc, jobs, profiles) get Get resource by key (pi, topology) ... Plugin Commands: analyze Analyze BPMN processes for best practices optimize Optimize process definitions ``` Plugins without a `metadata` export still work — their commands appear in the help output without descriptions. ## Command precedence Built-in commands take precedence over plugin commands. If a plugin exports a command with the same name as a built-in command (for example, `list` or `deploy`), the built-in command runs. Use descriptive and unique names for plugin commands. Recommended: - `analyze-process` - `export-data` - `sync-resources` Avoid: - `list` - `get` - `create` - `deploy` ## Find plugins Plugins are distributed as regular npm packages. There are two main ways to discover available plugins: ### Search the Camunda GitHub organization Browse the [Camunda GitHub organization](https://github.com/camunda) and search for repositories with `c8ctl` in the name. By convention, plugin repositories are named `c8ctl-plugin-` (for example, `c8ctl-plugin-analyze`), but this is not a hard requirement — any npm package with a `c8ctl-plugin.js` entry point works as a plugin. ### Search the npm registry Search for `c8ctl` or `c8ctl-plugin` on [npmjs.com](https://www.npmjs.com/search?q=c8ctl-plugin): ```bash npm search c8ctl-plugin ``` Once you find a plugin, install it with: ```bash c8 load plugin ``` ## Best practices - Use unique command names to avoid conflicts with built-in commands. - Provide descriptions in `metadata.commands` so users discover your commands in `c8ctl help`. - Keep descriptions concise and aim for a single line under 60 characters, starting with an imperative verb. - Transpile TypeScript to JavaScript before publishing. The `c8ctl-plugin.js` entry point in `node_modules` must be JavaScript, because Node.js does not support type stripping in `node_modules`. - Use `createClient()` from the runtime API to create SDK clients rather than importing the SDK directly. This ensures credentials and tenant resolution follow `c8ctl` conventions. --- ## Configuration This page uses YAML examples to show configuration properties. Alternate methods to [externalize or override your configuration](https://docs.spring.io/spring-boot/reference/features/external-config.html) are provided by Spring Boot, and can be applied without rebuilding your application (properties files, Java System properties, or environment variables). :::note Configuration properties can be defined as environment variables using [Spring Boot conventions](https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.typesafe-configuration-properties.relaxed-binding.environment-variables). To define an environment variable, convert the configuration property to uppercase, remove any dashes `-`, and replace any delimiters `.` with underscore `_`. For example, the property `camunda.client.worker.defaults.max-jobs-active` is represented by the environment variable `CAMUNDA_CLIENT_WORKER_DEFAULTS_MAXJOBSACTIVE`. ::: :::note For a full set of properties, head over to the [properties reference](./properties-reference.md) ::: ## Modes The Camunda Spring Boot Starter has modes with meaningful defaults aligned with the distribution's default connection details. Each mode is made for a Camunda 8 setup, and only one mode may be used at a time. :::note The defaults applied by the modes are overwritten by _any_ other set property, including legacy/deprecated properties. Check your configuration and logs to avoid unwanted override. ::: ### SaaS This allows you to connect to a Camunda instance in our SaaS offering as the URLs are templated. Activate by setting: ```yaml camunda: client: mode: saas ``` This applies the following defaults: ```yaml reference referenceLinkText="Source" title="SaaS mode" https://github.com/camunda/camunda/blob/main/clients/camunda-spring-boot-starter/src/main/resources/modes/saas.yaml ``` The only thing you need to configure then, are the connection details to your Camunda SaaS cluster: ```yaml camunda: client: auth: client-id: client-secret: cloud: cluster-id: region: ``` Other connectivity configuration does not further apply for the SaaS mode. ### Self-Managed This allows you to connect to a Self-Managed instance protected with JWT authentication. The default URLs are configured to align with all Camunda distributions using `localhost` addresses. Activate by setting: ```yaml camunda: client: mode: self-managed ``` This applies the following defaults: ```yaml reference referenceLinkText="Source" title="Self-managed mode" https://github.com/camunda/camunda/blob/main/clients/camunda-spring-boot-starter/src/main/resources/modes/self-managed.yaml ``` For some specific OIDC setups (for example, [Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity)), you might need to define additional properties like `camunda.client.auth.scope` in addition to the defaults provided by the mode, see the [`camunda.client.auth`-Properties reference](./properties-reference.md) for a full overview. ## Connectivity The connection to Camunda API is determined by `camunda.client.grpc-address` and `camunda.client.rest-address` ### Camunda API connection #### gRPC address Define the address of the [gRPC API](/apis-tools/zeebe-api/grpc.md) exposed by the [Zeebe Gateway](/reference/glossary.md#zeebe-gateway): ```yaml camunda: client: grpc-address: http://localhost:26500 ``` :::note You must add the `http://` scheme to the URL to avoid a `java.lang.NullPointerException: target` error. ::: #### REST address Define address of the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) exposed by the Zeebe Gateway: ```yaml camunda: client: rest-address: http://localhost:8080 ``` :::note You must add the `http://` scheme to the URL to avoid a `java.lang.NullPointerException: target` error. ::: #### Prefer REST over gRPC By default, the Camunda Client will use REST instead of gRPC whenever possible to communicate with the Camunda APIs. To use the gRPC by default, you can configure this: ```yaml camunda: client: prefer-rest-over-grpc: false ``` ### Advanced connectivity settings ```yaml camunda: client: keep-alive: PT60S override-authority: host:port max-message-size: 4194304 max-metadata-size: 4194304 ca-certificate-path: path/to/certificate request-timeout: PT10S request-timeout-offset: PT1S ``` **Keep alive:** Time interval between keep alive messages sent to the gateway (default is 45s). **Override authority:** The alternative authority to use, commonly in the form `host` or `host:port`. **Max message size:** A custom `maxMessageSize` allows the client to receive larger or smaller responses from Zeebe. Technically, it specifies the `maxInboundMessageSize` of the gRPC channel (default 5MB). **Max metadata size:** A custom `maxMetadataSize` allows the client to receive larger or smaller response headers from Camunda. **CA certificate path:** Path to a root CA certificate to be used instead of the certificate in the default store. **Request timeout:** The timeout for all requests sent to Camunda. There is an additional option to define the timeout for workers. **Request timeout offset:** The offset being added to the timeout on asynchronous requests sent to Camunda to cover the network latency. ### Multi-tenancy To connect the client to a specific tenant, you can configure: ```yaml camunda: client: tenant-id: myTenant ``` This does also affect the default tenant being used by all job workers, however there are [more possibilities](#control-tenant-usage) to configure them. ### Multi-client configuration (Physical Tenants) A single `camunda.client.*` configuration targets exactly one [Physical Tenant](/self-managed/concepts/physical-tenants/index.md) (the default tenant, unless `physical-tenant-id` is set). To target multiple Physical Tenants from one Spring application, configure multiple named clients under `camunda.clients..*`: ```yaml camunda: clients: finance: physical-tenant-id: finance primary: true risk: physical-tenant-id: risk ``` The map key is a free-form client name; it does not have to match the Physical Tenant ID. A `physical-tenant-id` must be lowercase alphanumeric and at most 64 characters — an invalid value fails application startup. Each named client is a sparse overlay on top of the base `camunda.client.*` configuration — any property you don't set per client (address, auth, and so on) falls back to the shared `camunda.client.*` value. At most one client may be marked `primary: true` — configuring more than one throws `IllegalArgumentException` at startup. If you configure only one client, it's implicitly primary. If you configure more than one client and mark none of them `primary: true`, there is no primary client at all: looking one up throws `IllegalStateException`, and the `camundaClientConfiguration` bean isn't registered. Each client's resolved `auth.method` (its own `camunda.clients..auth.method`, overlaid on the base `camunda.client.auth.method`) must be the same across all clients — mixing resolved authentication methods in one application throws an `IllegalArgumentException` at startup. An unset method normalizes to `none`, so leaving it unset on one client and setting `none` explicitly on another is fine; unset and `basic` together is a conflict. Credentials themselves (client ID, secret, and so on) can still differ per client. If you don't configure any `camunda.clients.*` entries, your application has a single, implicitly-named `default` client — existing single-client configuration is unaffected. #### Access a named client Each named client is also available as a Spring bean, named `CamundaClient` (for example, `financeCamundaClient`). Kebab-case client names are camel-cased for the bean name (`camunda.clients.risk-eu` → `riskEuCamundaClient`). The primary client's bean is `@Primary`, so a plain `@Autowired CamundaClient` still resolves it, and the historical `camundaClient` bean name is preserved as an alias for the primary client — `@Qualifier("camundaClient")` and `getBean("camundaClient")` keep working. To look up clients by name at runtime, inject `CamundaClientRegistry`. Injecting the registry does not eagerly instantiate every client — beans are resolved lazily on first lookup: ```java @Autowired private CamundaClientRegistry clientRegistry; public void useFinanceClient() { CamundaClient financeClient = clientRegistry.get("finance"); // ... } ``` `CamundaClientRegistry` also provides `find(String)` (returns an `Optional`), `getPrimary()`, `clientNames()`, and `all()` (a `Map` of every configured client, keyed by name). ## Authentication The authentication method is determined by `camunda.client.auth.method`. If omitted, the client will try to detect the authentication method based on the provided properties. Authenticate with the cluster using the following alternative methods: :::info When using `camunda.client.mode=saas`, the authentication method presets are not applied in favor of the properties contained in the SaaS preset. ::: ### No authentication By default, no authentication will be used. To explicitly activate this method, you can set: ```yaml camunda: client: auth: method: none ``` As alternative, do not provide any other property indicating an implicit authentication method. This will load this preset: ```yaml reference referenceLinkText="Source" title="No authentication" https://github.com/camunda/camunda/blob/main/clients/camunda-spring-boot-starter/src/main/resources/auth-methods/none.yaml ``` ### Basic authentication You can authenticate with the cluster using Basic authentication, if the cluster is setup to use Basic authentication. To explicitly activate this method, you can set: ```yaml camunda: client: auth: method: basic ``` This authentication method will be implied if you set either `camunda.client.auth.username` or `camunda.client.auth.password`. This will load this preset: ```yaml reference referenceLinkText="Source" title="Basic authentication" https://github.com/camunda/camunda/blob/main/clients/camunda-spring-boot-starter/src/main/resources/auth-methods/basic.yaml ``` ### OIDC authentication You can authenticate with the cluster using OpenID Connect (OIDC) with client ID and client secret. To explicitly activate this method, you can set: ```yaml camunda: client: auth: method: oidc ``` This authentication method will be implied if you set either `camunda.client.auth.client-id` or `camunda.client.auth.client-secret`. This will load this preset: ```yaml reference referenceLinkText="Source" title="OIDC authentication" https://github.com/camunda/camunda/blob/main/clients/camunda-spring-boot-starter/src/main/resources/auth-methods/oidc.yaml ``` :::note There are three ways to define the token URL. They're prioritized as follows: 1. Provide the `camunda.client.auth.token-url`. 2. Provide the issuer's well-known configuration URL `camunda.client.auth.well-known-configuration-url`. This extracts the token URL from the `token_url` field in the loaded configuration. 3. Provide the issuer's URL `camunda.client.auth.issuer-url`. This generates the well-known configuration URL and extracts the token URL from the `token_url` field in the loaded configuration. ::: #### Credentials cache path By default, the Java client caches OAuth credentials in memory only. To persist credentials across JVM restarts, opt in to a file-based cache by setting `camunda.client.auth.credentials-cache-path` to a writeable file location (directory path and file name): ```yaml camunda: client: auth: credentials-cache-path: /tmp/credentials ``` When this property is unset or empty, no cache file is created and tokens are fetched fresh after each restart. #### Custom identity provider security context Several identity providers, such as Keycloak, support client X.509 authorizers as an alternative to client credentials flow. As a prerequisite, ensure you have proper KeyStore and TrustStore configured, so that: - Both the Spring Camunda application and identity provider share the same CA trust certificates. - Both the Spring Camunda and identity provider own certificates signed by trusted CA. - Your Spring Camunda application own certificate has proper `Distinguished Name` (DN), e.g. `CN=My Camunda Client, OU=Camunda Users, O=Best Company, C=DE`. - Your application DN registered in the identity provider client authorization details. Once prerequisites are satisfied, your Spring Camunda application must be configured either via global SSL context, or with an exclusive context which is documented below. Refer to your identity provider documentation on how to configure X.509 authentication. For example, [Keycloak](https://www.keycloak.org/server/mutual-tls). If you require configuring SSL context exclusively for your identity provider, you can use this set of properties: ```yaml camunda: client: auth: keystore-path: /path/to/keystore.p12 keystore-password: password keystore-key-password: password truststore-path: /path/to/truststore.jks truststore-password: password ``` - **keystore-path**: Path to client's KeyStore; can be both in JKS or PKCS12 formats - **keystore-password**: KeyStore password - **keystore-key-password**: Key material password - **truststore-path**: Path to client's TrustStore - **truststore-password**: TrustStore password When the properties are not specified, the default SSL context is applied. For example, if you configure an application with `javax.net.ssl.*` or `spring.ssl.*`, the latter is applied. If both `camunda.client.auth.*` and either `javax.net.ssl.*` or `spring.ssl.*` properties are defined, the `camunda.client.auth.*` takes precedence. ## Job worker configuration options ### Job type By default, the **method name** is used as the job type, keeping your code self-documenting without additional configuration: ```java @JobWorker public void checkPayment() { // handles jobs of type 'checkPayment' } ``` To use a different job type, set the `type` attribute on the annotation: ```java @JobWorker(type = "payment-check") public void checkPayment() { // handles jobs of type 'payment-check' } ``` To override the job type externally without modifying the code — for example, when deploying a shared worker implementation under a different type name — use an application property: ```yaml camunda: client: worker: override: checkPayment: type: payment-check ``` To set a fallback job type for all workers that don't define a type via annotation or property override: ```yaml camunda: client: worker: defaults: type: my-default-type ``` ### Control variable fetching By default, a job worker fetches **all** process variables when activating a job. To improve performance and keep your code clean, you should fetch only the variables your worker actually needs. See [writing good workers](/components/best-practices/development/writing-good-workers.md#data-minimization-in-workers) for more guidance on minimizing data transfer. #### Using `@Variable` (recommended) The recommended approach is to declare each variable you need as a typed method parameter annotated with `@Variable`. The SDK automatically fetches only those variables and injects them directly — no type casting required: ```java @JobWorker public void checkPayment(@Variable String orderId, @Variable BigDecimal amount) { // only 'orderId' and 'amount' are fetched; types are enforced automatically } ``` With the [`-parameters` compiler flag](./getting-started.md#enable-the-java-compiler--parameters-flag) enabled, the parameter name is used as the variable name automatically. To use a different variable name, set it explicitly on the annotation: ```java @JobWorker public void checkPayment(@Variable(name = "order_id") String orderId) { // fetches the process variable 'order_id' into the 'orderId' parameter } ``` :::note This adds the variable name to the list of variables fetched from the process. ::: #### Using `@VariablesAsType` For workers that operate on multiple related variables, `@VariablesAsType` maps process variables to your own class, eliminating individual type casts. Jackson's `@JsonProperty` annotation is respected. Return the updated object to write changes back to the process: ```java @JobWorker public PaymentVariables checkPayment(@VariablesAsType PaymentVariables vars) { // access typed fields directly — no casting needed vars.setApproved(vars.getAmount().compareTo(BigDecimal.valueOf(100)) <= 0); return vars; // return the object to write updated fields back to the process } ``` :::note This adds the names of the fields of the used type to the list of variables fetched from the process. ::: #### Provide an explicit list of variables to fetch If you need access to the raw `ActivatedJob` or `JobClient` objects, you can specify an explicit list of variable names to avoid fetching all variables: ```java @JobWorker(fetchVariables = {"orderId", "amount"}) public void checkPayment(final JobClient client, final ActivatedJob job) { String orderId = (String) job.getVariablesAsMap().get("orderId"); // ... } ``` You can also override the variables to fetch in your properties: ```yml camunda: client: worker: override: checkPayment: fetch-variables: - orderId - amount ``` :::caution Using the properties-defined way of fetching variables will override **all** other detection strategies. ::: #### Fetch all variables If your worker genuinely needs every process variable, you can force fetching all variables: ```java @JobWorker(fetchAllVariables = true) public void checkPayment(final ActivatedJob job) { // all variables are available via job.getVariablesAsMap() } ``` You can also set this in your properties: ```yml camunda: client: worker: override: checkPayment: force-fetch-all-variables: true ``` ### Define job worker function parameters The method signature you use to define job worker functions determines what data is available in your worker. For fetching process variables, use [`@Variable`](#using-variable-recommended) or [`@VariablesAsType`](#using-variablesastype) — both are covered in the [variable fetching section](#control-variable-fetching) above. Unless stated otherwise, all specified methods for fetching variables will be combined into a single list of variables to retrieve. #### `JobClient` parameter The `JobClient` is also part of the native `JobHandler` functional interface: ```java @JobWorker public void processOrder(final JobClient jobClient) { // ... } ``` #### `ActivatedJob` parameter The `ActivatedJob` is also part of the native `JobHandler` functional interface. This will **prevent** the implicit variable fetching detection as you can retrieve variables in a programmatic way now: ```java @JobWorker public void processOrder(final ActivatedJob job) { String orderId = (String) job.getVariablesAsMap().get("orderId"); // ... } ``` :::note Only explicit variable fetching will be effective when using the `ActivatedJob` as a parameter. ::: #### Using `@Document` You can inject a `DocumentContext` by using the `@Document` annotation: ```java @JobWorker public void processDocument(@Document DocumentContext doc) { List documents = doc.getDocuments(); // do what you need to do with the document entries } ``` Each `DocumentEntry` grants you access to the `DocumentReferenceResponse` that contains the reference data to the document and the `DocumentLinkResponse` that contains a link to the document. On top, you can directly retrieve the document content as `InputStream` or `byte[]`. #### Using `@CustomHeaders` You can use the `@CustomHeaders` annotation for a `Map` parameter to retrieve [custom headers](/components/concepts/job-workers.md) for a job: ```java @JobWorker public void processOrder(@CustomHeaders Map headers) { // do whatever you need to do } ``` :::note This will not have any effect on the variable fetching behavior. ::: #### Using `@ProcessInstanceKey`, `@ElementInstanceKey`, `@JobKey`, `@ProcessDefinitionKey` and `@RootProcessInstanceKey` You can use the `@ProcessInstanceKey`, `@ElementInstanceKey`, `@JobKey`, `@ProcessDefinitionKey` and `@RootProcessInstanceKey` annotation for a `String`, `long` or `Long` parameter to retrieve the according key for a job: ```java @JobWorker public void processOrder( @ProcessInstanceKey String processInstanceKey, @ElementInstanceKey long elementInstanceKey, @JobKey Long jobKey, @ProcessDefinitionKey String processDefinitionKey, @RootProcessInstanceKey long rootProcessInstanceKey) { // do whatever you need to do } ``` ### Completing jobs #### Auto-completing jobs By default, the `autoComplete` attribute is set to `true` for any job worker. In this case, the Spring integration will handle job completion for you: ```java @JobWorker public void processOrder() { // do whatever you need to do // no need to call client.newCompleteCommand()... } ``` :::note The code within the handler method needs to be synchronously executed, as the completion will be triggered right after the method has finished. ::: ##### Returning results When using `autoComplete` you can return: - a `Map` containing the process variables to set as result of the job - a `String` containing a valid JSON object - an `InputStream` streaming a valid JSON object - an `Object` that will be serialized to a JSON object ```java @JobWorker public Map processOrder() { // some work if (successful) { // some data is returned to be stored as process variable return variablesMap; } else { // problem shall be indicated to the process: throw new BpmnError("DOESNT_WORK", "This does not work because..."); } } ``` ##### Documents as job results If you want to send a document as job result, you can do this by making a `DocumentContext` part of the response. It can be part of a `Map`: ```java @JobWorker public Map sendDocumentAsResult() { String resultDocumentContent = documentService.loadResult(); Map result = new HashMap<>(); result.put("resultDocument", DocumentContext.result() .addDocument( "result.json", b -> b.content(resultDocumentContent).contentType("application/json")) .build()); return result; } ``` It can also be part of an `Object`: ```java public record DocumentResult(DocumentContext responseDocument) {} @JobWorker public DocumentResult sendDocumentAsResult() { String resultDocumentContent = documentService.loadResult(); DocumentContext responseDocument = DocumentContext.result() .addDocument( "result.json", b -> b.content(resultDocumentContent).contentType("application/json")) .build()); return new DocumentResult(responseDocument); } ``` ##### Completing ad-hoc sub-process jobs with a result When your job worker handles an [ad-hoc sub-process](/reference/glossary.md#ad-hoc-sub-process) job, you can return an `AdHocSubProcessResultFunction` to specify which element to activate within the sub-process. The starter automatically applies the result when you complete the job. Return a lambda that calls `activateElement` with the target element ID: ```java @JobWorker(type = "myAdHocSubprocessJob") public AdHocSubProcessResultFunction handleAdHocSubprocess() { return r -> r.activateElement("myElementId"); } ``` To also submit process variables with the result, use the `AdHocSubProcessResultFunction.withVariables` factory method: ```java @JobWorker(type = "myAdHocSubprocessJob") public AdHocSubProcessResultFunction handleAdHocSubprocess() { Map variables = Map.of("decision", "approved"); return AdHocSubProcessResultFunction.withVariables(variables, r -> r.activateElement("approvalTask")); } ``` ##### Completing user task listener jobs with a result When your job worker handles a user task listener job, you can return a `UserTaskResultFunction` to control the outcome of the listener. The starter automatically applies the result when you complete the job. Return a lambda that configures the result, for example to correct the assignee: ```java @JobWorker(type = "io.camunda:userTaskListener:complete") public UserTaskResultFunction handleUserTaskListener() { return r -> r.correctAssignee("newAssignee"); } ``` #### Programmatically completing jobs Your job worker code can also complete the job itself. This gives you more control over when you want to complete the job (for example, allowing you to move the completion to reactive callbacks): ```java @JobWorker(autoComplete = false) public void processOrder(final JobClient client, final ActivatedJob job) { // do whatever you need to do client.newCompleteCommand(job.getKey()) .send() .exceptionally(throwable -> { throw new RuntimeException("Could not complete job " + job, throwable); }); } ``` You can also control auto-completion in your configuration. **Globally:** ```yaml camunda: client: worker: defaults: auto-complete: false ``` **Per worker:** ```yaml camunda: client: worker: override: processOrder: auto-complete: false ``` Ideally, you **don't** use blocking behavior like `send().join()`, as this is a blocking call to wait for the issued command to be executed on the workflow engine. While this is very straightforward to use and produces easy-to-read code, blocking code is limited in terms of scalability. This is why the worker sample above shows a different pattern (using `exceptionally`). Often, you might want to use the `whenComplete` callback: ```java send().whenComplete((result, exception) -> {}) ``` This registers a callback to be executed when the command on the workflow engine was executed or resulted in an exception. This allows for parallelism. This is discussed in more detail in [this blog post about writing good workers for Camunda 8](https://blog.bernd-ruecker.com/writing-good-workers-for-camunda-cloud-61d322cad862). :::note When completing jobs programmatically, you must specify `autoComplete = false`. Otherwise, there is a race condition between your programmatic job completion and the Spring integration job completion, and this can lead to unpredictable results. ::: ### React to problems #### Throw a `BpmnError` If your code encounters a problem that should trigger a [BPMN error](/components/modeler/bpmn/error-events/error-events.md), throw a `BpmnError` and provide the error code defined in BPMN: ```java @JobWorker public void processOrder() { // some work if (businessError) { // problem shall be indicated to the process: throw CamundaError.bpmnError("ERROR_CODE", "Some explanation why this does not work"); // this is a static function that returns an instance of BpmnError } } ``` #### Fail jobs in a controlled way Whenever you want a job to fail in a controlled way, you can throw a `JobError` and provide parameters like `variables`, `retries` and `retryBackoff`: ```java @JobWorker public void processOrder() { try { // some work } catch (DynamicRetryException e) { // problem shall be indicated to the process: throw CamundaError.jobError("Error message", new ErrorVariables(), null, this::calculateRetryBackoff, e); // this is a static function that returns an instance of JobError with a dynamic retry backoff } catch (StaticRetryException e) { // problem shall be indicated to the process: throw CamundaError.jobError("Error message", new ErrorVariables(), null, Duration.ofSeconds(10), e); // this is a static function that returns an instance of JobError with a static retry backoff } } ``` The JobError takes 5 parameters: - `errorMessage`: String - `variables`: Object _(optional)_, default `null` - `retries`: Integer _(optional)_, defaults to `job.getRetries() - 1` - `retryBackoff`: Duration _or_ `Function` _(optional)_, defaults to the configured retry backoff; function input is the retries value that will be submitted - `cause`: Exception _(optional)_, defaults to `null` :::note The job error is sent to the engine by the SDK calling the [Fail Job API](/apis-tools/orchestration-cluster-api-rest/specifications/fail-job.api.mdx). The stacktrace of the job error will become the actual error message. The provided cause will be visible in Operate. ::: #### Implicitly failing jobs If your handler method would throw any other exception than the ones listed above, the default Camunda Client error handling will apply, decrementing retries with a `retryBackoff` of 0. ### Configuring the job worker thread pool The number of threads for invocation of job workers (default 1): ```yaml camunda: client: execution-threads: 2 ``` :::note We generally do not advise using a thread pool for workers, but rather implement asynchronous code, see [writing good workers](/components/best-practices/development/writing-good-workers.md) for additional details. ::: ### Further job worker configuration options #### Disable a job worker You can disable workers via the `enabled` parameter of the `@JobWorker` annotation: ```java @JobWorker(enabled = false) public void processOrder() { // worker's code - now disabled } ``` You can also override this setting via your `application.yaml` file: ```yaml camunda: client: worker: override: processOrder: enabled: false ``` This is especially useful if you have a bigger code base including many workers, but want to start only some of them. Typical use cases are: - Testing: You only want one specific worker to run at a time. - Load balancing: You want to control which workers run on which instance of cluster nodes. - Migration: There are two applications, and you want to migrate a worker from one to another. With this switch, you can disable workers via configuration in the old application once they are available within the new. To disable all workers, but still have the Camunda client available, you can use: ```yaml camunda: client: worker: defaults: enabled: false ``` #### Configure jobs in flight Number of jobs for a worker that are polled from the broker to be worked on in this client: ```java @JobWorker(maxJobsActive = 64) public void processOrder() { // worker's code } ``` This can also be configured as property: ```yaml camunda: client: worker: override: processOrder: max-jobs-active: 64 ``` To configure a global default, you can set: ```yaml camunda: client: worker: defaults: max-jobs-active: 64 ``` #### Enable job streaming Read more about this feature in the [job streaming documentation](/apis-tools/java-client/job-worker.md#job-streaming). Job streaming is disabled by default for job workers. To enable job streaming on the Camunda client, configure it as follows: ```java @JobWorker(streamEnabled = true) public void processOrder() { // worker's code } ``` This can also be configured as property: ```yaml camunda: client: worker: override: processOrder: stream-enabled: true ``` To configure a global default, you can set: ```yaml camunda: client: worker: defaults: stream-enabled: true ``` #### Control tenant usage Job workers can be configured to work on jobs from specific [tenants](#multi-tenancy) using either [specific tenant IDs](#filtering-by-provided-tenant-IDs) or the [assigned tenants in the engine](#filtering-by-assigned-tenants). ##### Filter by assigned tenants You can configure a job worker to use the tenants assigned to it in the engine, rather than providing explicit tenant IDs. Use the `tenantFilter` annotation property with `TenantFilter.ASSIGNED`: ```java @JobWorker(tenantFilter = TenantFilter.ASSIGNED) public void processOrder() { // worker's code } ``` When `TenantFilter.ASSIGNED` is set, any `tenant-ids` configured via the annotation or YAML are ignored. You can also override the tenant filter for a specific worker: ```yaml camunda: client: worker: override: processOrder: tenant-filter: ASSIGNED ``` To configure a global default: ```yaml camunda: client: worker: defaults: tenant-filter: ASSIGNED ``` ##### Filter by provided tenant IDs The default behaviour is `TenantFilter.PROVIDED`, where the worker retrieves jobs for the tenant IDs explicitly configured. Configure global worker defaults for additional `tenant-ids` to be used by all workers: ```yaml camunda: client: worker: defaults: tenant-ids: - - foo ``` Additionally, you can set `tenantIds` on the job worker level by using the annotation: ```java @JobWorker(tenantIds="myOtherTenant") public void processOrder() { // worker's code } ``` You can also override the `tenant-ids` for each worker: ```yaml camunda: client: worker: override: processOrder: tenants-ids: - - foo ``` ##### Physical Tenant fan-out for multi-client applications The `@JobWorker` annotation has no attribute to bind a worker to one named client. In a [multi-client](#multi-client-configuration-physical-tenants) application, every `@JobWorker` method registers against **all** configured clients — it fans out across the whole `CamundaClientRegistry`, not just the primary or default one. In an application with only one client, this has no visible effect — there's only one client to fan out to. Per-client worker overrides don't restrict this fan-out either: `worker.*`/`worker.override.*` properties set under `camunda.clients.` have no effect, since the customizer that applies those overrides is built from the single, global `camunda.client.*` properties bean. Setting `camunda.clients.risk.worker.override.shipOrder.enabled: false`, for example, silently does nothing. If you need a worker to run against only some of your configured Physical Tenants, filter inside the handler using the tenant identifier available to you at runtime, rather than relying on annotation-level scoping or per-client worker configuration. #### Define the job timeout To define the job timeout, you can set the annotation (`long` in milliseconds): ```java @JobWorker(timeout=60000) public void processOrder() { // worker's code } ``` Moreover, you can override the timeout for the worker (as ISO 8601 duration expression): ```yaml camunda: client: worker: override: processOrder: timeout: PT1M ``` You can also set a global default: ```yaml camunda: client: worker: defaults: timeout: PT1M ``` #### Configure the retry backoff If you want to apply a retry backoff that should be applied if a job fails without a job error, you can set the annotation (`long` in milliseconds): ```java @JobWorker(retryBackoff=10000L) public void processOrder() { // worker's code } ``` Moreover, you can override the retry backoff for the worker (as ISO 8601 duration expression): ```yaml camunda: client: worker: override: processOrder: retry-backoff: PT10S ``` You can also set a global default: ```yaml camunda: client: worker: defaults: retry-backoff: PT10S ``` ## Deploy resources on start-up To deploy process models at application startup, use the `@Deployment` annotation: ```java @Deployment(resources = "classpath:demoProcess.bpmn") public class MyRandomBean { // make sure this bean is registered } ``` :::note Multi-client applications In a [multi-client](#multi-client-configuration-physical-tenants) application, every `@Deployment` resource is deployed to **all** configured clients — one `CamundaPostDeploymentSpringEvent` is published per client. For a multi-tenant application, this means your BPMN lands in every configured Physical Tenant, which is often what you want, but shouldn't come as a surprise. The same applies to `@ClusterVariables` processing. ::: ### Specify resources to deploy This annotation uses the [Spring resource loader](https://docs.spring.io/springframework/reference/core/resources.html) and can deploy multiple files at once. For example: ```java @Deployment(resources = {"classpath:demoProcess.bpmn" , "classpath:demoProcess2.bpmn"}) ``` Or, define wildcard patterns: ```java @Deployment(resources = "classpath*:/bpmn/**/*.bpmn") ``` The resource loader automatically searches the entire classpath, including dependency JARs. To deploy only the resources packaged with the annotated class, use: ```java @Deployment(resources = "classpath*:/bpmn/**/*.bpmn", ownJarOnly = true) ``` You can also set this globally: ```yaml camunda: client: deployment: own-jar-only: true ``` ### Specify the tenant to deploy to To adjust the tenant to deploy to, set the `tenantId` property of the `@Deployment` annotation: ```java @Deployment(resources = "classpath:demoProcess.bpmn", tenantId = "myTenant") public class MyRandomBean { // make sure this bean is registered } ``` By default, the starter uses the `tenantId` from `camunda.client.tenant-id`. ### Disable deployment To disable the deployment of annotations, you can set: ```yaml camunda: client: deployment: enabled: false ``` ## Set cluster variables at startup To set cluster variables at application startup, use the `@ClusterVariables` annotation. Cluster variables are set when the Camunda client starts. There are three ways to provide the variables: ### From JSON resource files Provide one or more JSON resource files using the `resources` attribute: ```java @ClusterVariables(resources = "classpath:cluster-variables.json") @SpringBootApplication public class MyApplication { } ``` Multiple files can be provided at once: ```java @ClusterVariables(resources = {"classpath:vars-a.json", "classpath:vars-b.json"}) @SpringBootApplication public class MyApplication { } ``` ### From a method Annotate a method with `@ClusterVariables`. The return value is serialized to JSON and set as cluster variables. Any type the configured `JsonMapper` can serialize is supported, for example `Map`, a POJO, or a record: ```java @ClusterVariables public MyConfig clusterVariables() { return new MyConfig("production", 3); } ``` ### From application properties Define variables directly in your `application.yaml`: ```yaml camunda: client: cluster-variables: global: environment: production maxRetries: 3 ``` Variables defined in properties are applied in addition to any annotation-defined variables. ### Specify the tenant to set variables for To set cluster variables scoped to a specific tenant, use the `tenantId` property of the `@ClusterVariables` annotation: ```java @ClusterVariables(resources = "classpath:cluster-variables.json", tenantId = "myTenant") @SpringBootApplication public class MyApplication { } ``` Or use the `tenant` property in your `application.yaml`: ```yaml camunda: client: cluster-variables: tenant: myTenant: environment: staging maxRetries: 5 ``` By default, the annotation and `global` property set variables in the global scope. ### Disable cluster variable processing To disable all cluster variable processing (both annotation-based and property-based), set: ```yaml camunda: client: cluster-variables: enabled: false ``` ## React to events The Camunda Spring Boot Starter integrates with Spring events and also publishes its own events. ### Camunda client lifecycle events #### Camunda client created To react when the Camunda client is created, add an event listener: ```java @EventListener public void onCamundaClientCreated(CamundaClientCreatedEvent event) { // do what you need to do } ``` #### Camunda client closing event To react on the closing of the Camunda client, you can do this: ```java @EventListener public void onCamundaClientClosing(CamundaClientClosingEvent event) { // do what you need to do } ``` #### Lifecycle aware interface To subscribe to the Camunda client lifecycle at once, you can also use an interface: ```java @Component public class CamundaLifecycleListener implements CamundaClientLifecycleAware { @Override public void onStart(CamundaClient client) { // do what you need to do } @Override public void onStop(CamundaClient client) { // do what you need to do } } ``` In a [multi-client](#multi-client-configuration-physical-tenants) application, one `CamundaClientCreatedSpringEvent`/`CamundaClientClosingSpringEvent` fires per configured client, each carrying that client's name — listen for these instead if you need to tell clients apart. ### Post deployment event To react on the creation of [deployments on start-up](#deploying-resources-on-start-up), you can do this: ```java @EventListener public void onDeploymentCreated(CamundaPostDeploymentEvent event) { // do what you need to do } ``` The event will grant you access to a list of deployments that have been created. In a [multi-client](#multi-client-configuration-physical-tenants) application, one event fires per configured client, since `@Deployment` resources are deployed to every configured client. ## Observe metrics The Camunda Spring Boot Starter provides some out-of-the-box metrics that can be leveraged via [Spring Actuator](https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/). Whenever actuator is on the classpath, you can access the following metrics: - `camunda.job.invocations`: Number of invocations of job workers (tagging the job type) For all of those metrics, the following actions are recorded: - `activated`: The job was activated and started to process an item. - `completed`: The processing was completed successfully. - `failed`: The processing failed with some exception. - `bpmn-error`: The processing completed by throwing a BPMN error (which means there was no technical problem). In a default setup, you can enable metrics to be served via http: ```yaml management: endpoints: web: exposure: include: metrics ``` Access them via [http://localhost:8080/actuator/metrics/](http://localhost:8080/actuator/metrics/). --- ## Camunda Spring Boot Starter ## About The Camunda Spring Boot Starter is the official way to integrate Camunda 8 APIs ([gRPC](/apis-tools/zeebe-api/grpc.md) and [REST](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md)) into your Spring Boot project. You can use it to orchestrate microservices, manage human tasks, and interact with process data using idiomatic Spring Boot patterns. :::info Public API The Camunda Spring Boot Starter is part of the Camunda 8 [public API](/reference/public-api.md) and follows [Semantic Versioning](https://semver.org/) (except for alpha features). Minor and patch releases will not introduce breaking changes. ::: :::info Migration from Spring Zeebe SDK **The Camunda Spring Boot Starter replaces the Spring Zeebe SDK as of version 8.8.** - Uses the new Camunda Java Client under the hood - REST is the default protocol (gRPC is configurable) - Spring Zeebe SDK will be **removed in version 8.10** - **Migrate before upgrading to 8.10** to avoid breaking changes See the [migration guide](/reference/announcements-release-notes/880/880-announcements.md#camunda-java-client-and-camunda-spring-boot-starter) for details. ::: ## What you can build with it With the Camunda Spring Boot Starter, you can build: - **Job workers** that perform automated tasks and call external systems (APIs, databases, file systems) - **Integration services** that connect Camunda processes with existing systems or third-party services - **Data processing applications** that use process data for visualization, analytics, or business intelligence ## Version compatibility | Camunda Spring Boot Starter artifact | Camunda Spring Boot Starter version | JDK | Bundled Spring Boot version | Compatible Spring Boot version(s) | | ------------------------------------ | ----------------------------------- | ---- | --------------------------- | --------------------------------- | | `camunda-spring-boot-starter` | 8.10.x | ≥ 17 | 4.1.x | | | `camunda-spring-boot-4-starter` | 8.10.x | ≥ 17 | 4.1.x | | | `camunda-spring-boot-3-starter` | 8.10.x | ≥ 17 | 3.5.x | | For Spring Boot OSS and Commercial support dates, see the [Spring Boot support timeline](https://spring.io/projects/spring-boot#support). ### Dedicated Spring Boot 3 and 4 modules Starting with Camunda 8.10, the default `camunda-spring-boot-starter` artifact is bundled with **Spring Boot 4.1.x**. Additionally, two dedicated modules are available: - **`camunda-spring-boot-4-starter`**: Identical to `camunda-spring-boot-starter`. Use this if you want to explicitly target Spring Boot 4.1.x. - **`camunda-spring-boot-3-starter`**: Bundled with Spring Boot 3.5.x. Use this if your application is not yet ready to upgrade to Spring Boot 4.1.x. :::caution Spring Boot 3.5.x OSS support window Spring's open source support for Spring Boot 3.5.x ended in June 2026 (see [Spring Boot support timeline](https://spring.io/projects/spring-boot#support)). Camunda continues to support and maintain `camunda-spring-boot-3-starter` until the end of Spring Commercial support for Spring Boot 3.x. What this means for your application: - **Camunda's starter:** Camunda continues to release patches for `camunda-spring-boot-3-starter` until the end of Spring Commercial support. - **Spring framework patches:** After June 2026, Spring will no longer provide open-source security or bug-fix patches for Spring Boot 3.x. Security patches remain available through Spring Commercial support (Broadcom). ::: For details on how Camunda handles major version transitions and end-of-support windows, see [Spring Boot/Framework/Security updates](/reference/announcements-release-notes/release-policy.md#spring-bootframeworksecurity-updates). To use the Spring Boot 3 module, replace the default dependency in your project: ```xml io.camunda camunda-spring-boot-3-starter 8.9.x ``` :::caution Micrometer version requirement `camunda-spring-boot-3-starter` requires **Micrometer 1.16 or newer** if you enable Micrometer-based metrics. Spring Boot 3.5.x's own dependency management defaults to an older Micrometer version (~1.15.x), which does not satisfy this requirement. If your application resolves a Micrometer version below 1.16 while metrics are enabled, job workers appear to activate jobs normally, but handler methods never run — jobs keep expiring and getting re-activated indefinitely, with no error in the logs. To avoid this, explicitly pin Micrometer to 1.16 or newer: **Maven**, import the Micrometer BOM as the first entry in ``, before your Spring Boot BOM import (import order matters when two BOMs manage the same dependency): ```xml io.micrometer micrometer-bom 1.16.6 import pom ``` **Gradle**, add a constraint: ```groovy dependencies { constraints { implementation("io.micrometer:micrometer-core:1.16.6") } } ``` ::: ## Get started ### Step 1: Add the dependency Add the Camunda Spring Boot Starter to your project: **Maven:** ```xml io.camunda camunda-spring-boot-starter 8.9.x ``` ### Step 2: Enable the Java Compiler `-parameters` flag (optional) If you want to use parameter names for process variables without specifying annotation values, enable the Java compiler flag `-parameters`. **Maven:** ```xml org.apache.maven.plugins maven-compiler-plugin -parameters ``` If you are using Gradle: ```xml tasks.withType(JavaCompile) { options.compilerArgs << '-parameters' } ``` If you are using IntelliJ: ```agsl Settings > Build, Execution, Deployment > Compiler > Java Compiler ``` ### Step 3a: Configure the Orchestration Cluster connection for Self-Managed Set up your connection and authentication in `application.yaml` as shown below. Choose the mode and authentication method for your environment. Choose the authentication method and gRPC/REST address for your environment: By default, no authentication will be used. ```yaml camunda: client: mode: self-managed auth: method: none grpc-address: https://my-grpc-address rest-address: https://my-rest-address ``` To activate basic authentication: ```yaml camunda: client: mode: self-managed auth: method: basic username: password: grpc-address: https://my-grpc-address rest-address: https://my-rest-address ``` If you set up a [Self-Managed cluster with OIDC](/self-managed/deployment/helm/configure/authentication-and-authorization/index.md), you must configure the accompanying client credentials: ```yaml camunda: client: mode: self-managed auth: method: oidc client-id: client-secret: issuer-url: http://localhost:18080/auth/realms/camunda-platform audience: scope: grpc-address: https://my-grpc-address rest-address: https://my-rest-address ``` :::note Ensure all addresses use absolute URI format: `scheme://host(:port)`. ::: **Notes for Microsoft Entra ID** - Use `scope: CLIENT_ID_OC + "/.default"` instead of `scope: CLIENT_ID_OC`. - The `issuer-url` is typically in the format: ``` https://login.microsoftonline.com//v2.0 ``` :::note Audience validation If you have [configured the audiences property for the Orchestration Cluster (`camunda.security.authentication.oidc.audiences`)](/self-managed/components/orchestration-cluster/core-settings/configuration/properties.md#camunda.security.authentication.oidc), the Orchestration Cluster will validate the audience claim in the token against the configured audiences. Make sure your token includes the correct audience from the Orchestration Cluster configuration, or add your audience to the configuration. Often this is the client ID you used when setting up the Orchestration Cluster. ::: ### Step 3b: Configure the Orchestration Cluster connection for SaaS Set up your connection and authentication in `application.yaml` as shown below: ```yaml camunda: client: mode: saas auth: client-id: client-secret: cloud: cluster-id: region: ``` ## Start building your process application With your project configured, you are ready to build your process application. Below are the core operations you'll typically perform, along with guidance on the next steps. ### Inject the Camunda client You can inject the Camunda client and work with it to create new workflow instances, for example: ```java @Autowired private CamundaClient client; ``` ## Implement the job worker Declare a method on a bean. By default, the method name is used as the job type, so you only need the annotation: ```java @JobWorker public void processOrder() { // handles jobs of type 'processOrder' } ``` To inject specific process variables as typed parameters, use `@Variable`: ```java @JobWorker public void processOrder(@Variable String orderId, @Variable BigDecimal amount) { // only 'orderId' and 'amount' are fetched; types are enforced automatically } ``` To learn about all options you have with job workers, check out the [configuration](./configuration.md#job-worker-configuration-options) page. ## Deploy process models To deploy process models on application start-up, use the `@Deployment` annotation: ```java @SpringBootApplication @Deployment(resources = "classpath:demoProcess.bpmn") public class MySpringBootApplication { ``` To learn about all options about the usage of the `@Deployment` annotation, check out the [configuration](./configuration.md#deploying-resources-on-start-up) page. **Need help?** - [Camunda Community Forum](https://forum.camunda.io/) – Get help from the community. - [GitHub repository](https://github.com/camunda/camunda) – Report issues and contribute. --- ## Properties reference Properties for the Camunda Spring Boot Starter. ## Properties ### `camunda.client` Properties for the Camunda client. Property Description Default value The path to a root Certificate Authority (CA) certificate to use instead of the certificate in the default store. Type: string null Enable or disable the Camunda client. If disabled, the client bean is not created. Type: boolean true The number of threads for invocation of job workers. Type: integer 1 The gRPC address of Camunda that the client can connect to. The address must be an absolute URL, including the scheme. An alternative default is set by both `camunda.client.mode`. Type: url "http://0.0.0.0:26500" The time interval between keep-alive messages sent to the gateway. Type: duration "PT45S" The maximum number of concurrent HTTP connections the client can open. Type: integer 100 A custom `maxMessageSize` sets the maximum inbound message size the client can receive from Camunda. It specifies the `maxInboundMessageSize` of the gRPC channel. Type: dataSize "5MB" A custom `maxMetadataSize` sets the maximum inbound metadata size the client can receive from Camunda. It specifies the `maxInboundMetadataSize` of the gRPC channel. Type: dataSize "16KB" The default time-to-live for a message when no value is provided. Type: duration "PT1H" The client mode to use. If not set, `saas` mode is detected based on the presence of a `camunda.client.cloud.cluster-id`. Type: enum[self-managed, saas] null Overrides the authority used with TLS virtual hosting to change hostname verification during the TLS handshake. It does not change the actual host connected to. Type: string null The physical tenant ID sent as the `camunda-physical-tenant` gRPC header on every outgoing call. When `null` the header is omitted. Type: string null If `true`, prefers REST over gRPC for operations supported by both protocols. Type: boolean true If true, prefixes the REST base path with the physical tenant path when a physical tenant ID is set. Set to false to use the configured REST address as is, for example behind a reverse proxy that already routes to the physical tenant. Type: boolean true The request timeout to use when not overridden by a specific command. Type: duration "PT10S" The request timeout client offset applies to commands that also pass the request timeout to the server. It ensures the client timeout occurs after the server timeout. For these commands, the client-side timeout equals the request timeout plus the offset. Type: duration "PT1S" The REST API address of the Camunda instance that the client can connect to. The address must be an absolute URL, including the scheme. An alternative default is set by both `camunda.client.mode`. Type: url "http://0.0.0.0:8080" The tenant ID used for tenant-aware commands when no tenant ID is set. Type: string "<default>" If `true`, enables client-side load balancing by using DNS-based resolution and distributing requests across all resolved addresses. Useful for setups without an external load balancer, such as Docker Compose, Testcontainers, or Kubernetes headless services. Type: boolean false ### `camunda.client.auth` Properties for authenticating the Camunda client. Property Description Default value The resource for which the access token must be valid. A default is set by `camunda.client.mode: saas` and `camunda.client.auth.method: oidc`. Type: string null The client ID to use when requesting an access token from the OAuth authorization server. Type: string null The client secret to use when requesting an access token from the OAuth authorization server. Type: string null The connection timeout for requests to the OAuth credentials provider. Type: duration "PT5S" The path to the credentials cache file. If unset or empty, the OAuth provider caches credentials only in memory and does not persist them across restarts. Set this to a writable path to opt in to persistent file-based caching. See issue #13124. Type: string null The url of the issuer for the access token. It is used to generate the well-known configuration url from which the `token-url` is retrieved. Only applied if the `camunda.client.auth.well-known-configuration-url` is not set. A default is set by `camunda.client.auth.method: oidc`. Type: url null The keystore key password for the OAuth identity provider. Type: string null The keystore password for the OAuth identity provider. Type: string null The path to the keystore for the OAuth identity provider. Type: file null The authentication method to use. If not set, it is detected based on the presence of a username, password, client ID, and client secret. A default is set by `camunda.client.mode: saas`. Type: enum[none, basic, oidc] null The password to be use for basic authentication. A default is set by `camunda.client.auth.method: basic`. Type: string null Controls how far before token expiry a background refresh is triggered. The token remains valid within this window, so callers don't block on a synchronous refresh at expiry. Must be strictly greater than the internal expiry grace period. Type: duration "PT30S" The data read timeout for requests to the OAuth credentials provider. Type: duration "PT5S" The resource for which the access token must be valid. Type: string null The scopes of the access token. Type: string null The multiplier applied to the backoff duration between successive token fetch retry attempts. Must be greater than or equal to 1.0. Type: double 2 The initial backoff duration applied between token fetch retry attempts. Each subsequent delay is multiplied by `camunda.client.auth.token-fetch-backoff-multiplier`. Type: duration "PT1S" The maximum number of attempts (including the initial one) when fetching a token from the OAuth authorization server. Retries are only attempted on IOException or HTTP status codes configured via `token-fetch-retryable-status-codes`. Type: integer 5 If the token endpoint returns a non-retryable response, subsequent token fetch attempts fail immediately without making a request. This property specifies the duration of this cooldown period. After the cooldown period elapses, the next request retries; if it also fails with a non-retryable error, the cooldown resets. Set to `duration.zero` to disable the cooldown. Type: duration "PT5M" The set of HTTP status codes from the token endpoint that are retried with backoff. Any other non-200 status code triggers the `camunda.client.auth.token-fetch-non-retryable-cooldown` cooldown. Type: array[integer] [404,429,500,502,503,504] The authorization server URL from which to request the access token. A default is set by `camunda.client.mode: saas`. Type: url null The truststore password for the OAuth identity provider. Type: string null The path to the truststore for the OAuth identity provider. Type: file null The username to use for basic authentication. A default is set by `camunda.client.auth.method: basic`. Type: string null The url of the well-known configuration of the issuer. It is used to retrieve the `token-url`. Only applied if `camunda.client.auth.token-url` is not set. Type: url null ### `camunda.client.auth.client-assertion` Properties for OIDC authentication using a client assertion instead of a client secret. Property Description Default value The alias of the key containing the certificate used to sign the client assertion certificate. If not set, the first alias from the keystore is used. Type: string null The password of the key referenced by the alias. If not set, the keystore password is used. Type: string null The password of the referenced keystore. Type: string null The path to the keystore where the client assertion certificate is stored. Type: file null ### `camunda.client.cloud` Properties for connecting the Camunda client to SaaS. These are used to compose default connection details when the client is configured to `camunda.client.mode: saas`. Property Description Default value The cluster ID the Camunda client connects to. Type: string null The domain the Camunda client connects to. Change this to connect to a non-production instance of Camunda Cloud. Type: string null The port the Camunda client connects to. Type: integer null The region the Camunda client connects to. Type: string null ### `camunda.client.cluster-variables` Properties for setting cluster variables at startup. Property Description Default value Indicates if cluster variable processing is enabled. When `true`, variables configured via `@ClusterVariables` annotations and via the `variables` property are applied at startup. When `false`, all cluster variable processing is skipped. Type: boolean true ### `camunda.client.deployment` Properties for automatic deployment at startup. Property Description Default value Indicates if the `@Deployment` annotation is processed. Type: boolean true Indicates if the resources selected by the deployment annotation have to reside in the same jar as the annotated class. This property acts as the default behavior. If the `@Deployment` annotation explicitly sets its `ownJarOnly` parameter, that annotation-level value overrides this property for the annotated deployment. Type: boolean false ### `camunda.client.worker.defaults` Global default properties for job workers registered to the Camunda client. Property Description Default value Enable or disable automatic job completion after method invocation. Type: boolean true Enable or disable the job worker. Type: boolean true List of variable names to fetch on job activation. When set in defaults, it extends the list of variables to fetch from the annotation. When set in an override, it replaces the list of variables to fetch. Type: array[string] null Sets whether all variables are fetched. Overrides `fetch-variables`. Type: boolean false The maximum number of jobs exclusively activated for this worker at the same time. Type: integer 32 The maximum number of retries before automatic responses (complete, fail, bpmn error) for jobs are no longer attempted. Type: integer 0 The name of the worker owner. If set to default, it is generated as `${beanName}#${methodName}`. Type: string "default" The maximal interval between polls for new jobs. Type: duration "PT0.1S" The request timeout for the activate job request used to poll for new jobs. Type: duration "PT10S" The backoff before a retry of a failed job is possible. Type: duration "PT0S" Opt-in feature flag that enables job streaming. When enabled, the job worker uses both streaming and polling to activate jobs. A long-lived stream eagerly pushes new jobs, and polling retrieves jobs created before any streams were opened. Type: boolean false If streaming is enabled, sets the maximum duration the worker will wait without receiving any job on the open stream before canceling and recreating it. The timer is reset every time a job is received. Must be strictly less than `stream-timeout` when both are set. Type: duration "PT10M" If streaming is enabled, sets the maximum lifetime for a stream. When this timeout is reached, the stream closes, and no more jobs are activated or received. If the worker is still open, a new stream opens immediately. Type: duration "PT8H" Sets the tenant filter for the job worker, which determines how the worker considers tenant IDs when activating jobs. Type: enum[assigned, provided] "PROVIDED" Sets the tenants for which the job worker is registered. When set in defaults, it extends the list of tenant IDs from the annotation. When set in override, it replaces the list of tenant IDs. Type: array[string] ["<default>"] The time a job remains exclusively assigned to the worker. Type: duration "PT5M" The type of jobs to work on. Type: string null Activate the jobs polled by this worker with a lease. When enabled, each activated job is assigned a distinct lease token, fencing the complete, fail, and throw-error commands against a superseded activation of the same job. Only applies to the polling path. If not set, jobs are activated without a lease. Type: boolean null ### `management.endpoint.jobworkers` Properties for configuring the `jobworkers` management endpoint. Property Description Default value Permitted level of access for the jobworkers endpoint. Type: enum[none, read_only, unrestricted] "unrestricted" Maximum time that a response can be cached. Type: duration "0ms" ### `camunda.client.cluster-variables.variables` Cluster variables to set at startup. Each entry carries a name, a value and optionally metadata, a kind and a tenant ID. Entries without a tenant ID are globally scoped. Property Description Default value The name of the cluster variable. Type: string null The value of the cluster variable. Type: object null The metadata of the cluster variable. Type: map[string,object] null The kind of the cluster variable. Type: enum[json, secretReference] null The tenant ID of the cluster variable. Type: string null ### `camunda.client.worker.override` Properties for overriding settings of individual job workers registered to the Camunda client. The key of the override is the job type or worker name. Property Description Default value Enable or disable automatic job completion after method invocation. Type: boolean null Enable or disable the job worker. Type: boolean null List of variable names to fetch on job activation. When set in defaults, it extends the list of variables to fetch from the annotation. When set in an override, it replaces the list of variables to fetch. Type: array[string] null Sets whether all variables are fetched. Overrides `fetch-variables`. Type: boolean null The maximum number of jobs exclusively activated for this worker at the same time. Type: integer null The maximum number of retries before automatic responses (complete, fail, bpmn error) for jobs are no longer attempted. Type: integer null The name of the worker owner. If set to default, it is generated as `${beanName}#${methodName}`. Type: string null The maximal interval between polls for new jobs. Type: duration null The request timeout for the activate job request used to poll for new jobs. Type: duration null The backoff before a retry of a failed job is possible. Type: duration null Opt-in feature flag that enables job streaming. When enabled, the job worker uses both streaming and polling to activate jobs. A long-lived stream eagerly pushes new jobs, and polling retrieves jobs created before any streams were opened. Type: boolean null If streaming is enabled, sets the maximum duration the worker will wait without receiving any job on the open stream before canceling and recreating it. The timer is reset every time a job is received. Must be strictly less than `stream-timeout` when both are set. Type: duration null If streaming is enabled, sets the maximum lifetime for a stream. When this timeout is reached, the stream closes, and no more jobs are activated or received. If the worker is still open, a new stream opens immediately. Type: duration null Sets the tenant filter for the job worker, which determines how the worker considers tenant IDs when activating jobs. Type: enum[assigned, provided] null Sets the tenants for which the job worker is registered. When set in defaults, it extends the list of tenant IDs from the annotation. When set in override, it replaces the list of tenant IDs. Type: array[string] null The time a job remains exclusively assigned to the worker. Type: duration null The type of jobs to work on. Type: string null Activate the jobs polled by this worker with a lease. When enabled, each activated job is assigned a distinct lease token, fencing the complete, fail, and throw-error commands against a superseded activation of the same job. Only applies to the polling path. If not set, jobs are activated without a lease. Type: boolean null ## Deprecated properties :::caution The following properties are deprecated. See the replacement property and related hints. The deprecated properties are still effective if their replacement is not used yet. The SDK hints on the usage of deprecated properties by logging warn statements during startup. ::: ### `camunda.client` Deprecated properties for the Camunda client. Property Replacement Hint N/A N/A N/A ### `camunda.client.auth` Deprecated properties for authenticating the Camunda client. Property Replacement Hint N/A ### `camunda.client.cloud` Deprecated properties for connecting the Camunda client to SaaS. These are used to compose default connection details when the client is configured to `camunda.client.mode: saas`. Property Replacement Hint N/A ### `camunda.client.cluster-variables` Deprecated properties for setting cluster variables at startup. Property Replacement Hint Cluster variables are now set in a single list instead of separate maps for global and tenant variables. Cluster variables are now set in a single list instead of separate maps for global and tenant variables. ### `camunda.client.identity` Deprecated properties for identity settings. Property Replacement Hint Identity is now part of Camunda. Identity is now part of Camunda. Identity is now part of Camunda. Identity is now part of Camunda. ### `camunda.client.zeebe` Deprecated properties for Zeebe client settings. Property Replacement Hint N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ### `camunda.client.zeebe.defaults` Deprecated default properties for Zeebe job workers. Property Replacement Hint N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ### `camunda.client.zeebe.deployment` Deprecated deployment properties for Zeebe. Property Replacement Hint N/A ### `camunda.client.zeebe.override` Deprecated properties for overriding individual job workers registered to the Camunda client. Replaced by `camunda.client.worker.override`. ### `common` Deprecated common client properties. Property Replacement Hint N/A N/A N/A N/A N/A N/A The REST address is the unified endpoint for all interaction with Camunda. N/A ### `common.keycloak` Deprecated Keycloak-specific properties. Property Replacement Hint There is no keycloak-specific configuration for Camunda; the issuer is provided as a URL. There is no keycloak-specific configuration for Camunda; the issuer is provided as a URL. There is no keycloak-specific configuration for Camunda; the issuer is provided as a URL. ### `zeebe.client` Deprecated Zeebe client properties. Property Replacement Hint Only the environment variables belonging to the Spring SDK are applied. Client modes are now available. N/A N/A N/A N/A N/A ### `zeebe.client.broker` Deprecated Zeebe broker properties. Property Replacement Hint N/A N/A N/A N/A ### `zeebe.client.cloud` Deprecated Zeebe cloud connection properties. Property Replacement Hint N/A N/A N/A N/A N/A N/A The Zeebe client URL is now configured as HTTP/HTTPS URL. N/A N/A ### `zeebe.client.job` Deprecated Zeebe job worker properties. Property Replacement Hint N/A N/A ### `zeebe.client.message` Deprecated Zeebe message properties. Property Replacement Hint N/A N/A ### `zeebe.client.security` Deprecated Zeebe security properties. Property Replacement Hint N/A N/A plaintext is now determined by the URL protocol (HTTP or HTTPS). ### `zeebe.client.worker` Deprecated Zeebe job worker properties. Property Replacement Hint N/A N/A N/A N/A ### `zeebe.client.worker.override` Deprecated properties to override the individual job workers registered with the Camunda client. Replaced by `camunda.client.worker.override`. --- ## Community-supported component clients :::note Camunda extensions found in the [Camunda Community Hub](https://github.com/camunda-community-hub) are maintained by the community and are not part of the commercial Camunda product. Camunda does not support community extensions as part of its commercial services to enterprise customers. Please evaluate each client to make sure it meets your requirements before using. ::: :::tip Camunda now officially supports the [TypeScript SDK](/apis-tools/typescript/typescript-sdk.md) and the [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md). ::: In addition to the core Camunda-maintained clients, there are a number of community-maintained component libraries: - [Ballerina](https://github.com/camunda-community-hub/ballerina-zeebe) - [C#](https://github.com/camunda-community-hub/zeebe-client-csharp) - [CLI](https://github.com/camunda-community-hub/zeebe-client-go/blob/main/cmd/zbctl/zbctl.md) - [Delphi](https://github.com/camunda-community-hub/DelphiZeeBeClient) - [EJB](https://github.com/camunda-community-hub/zeebe-ejb-client) - [Go](https://github.com/camunda-community-hub/zeebe-client-go) - [Micronaut](https://github.com/camunda-community-hub/micronaut-zeebe-client) - [Python](https://gitlab.com/stephane.ludwig/zeebe_python_grpc) - [Quarkus](https://github.com/quarkiverse/quarkus-zeebe) - [Ruby](https://github.com/zeebe-io/zeebe-client-ruby) - [Rust](https://github.com/camunda-community-hub/zeebest) - [.NET](https://github.com/camunda-community-hub/dotnet-custom-tasklist) - [Java](https://github.com/camunda-community-hub/camunda-tasklist-client-java) - [Java](https://github.com/camunda-community-hub/camunda-operate-client-java) - [Web Modeler - Java](https://github.com/camunda-community-hub/web-modeler-java-client) - [Console - Go](https://github.com/camunda-community-hub/console-customer-api-go) --- ## CamundaClient ## Creating a Client Factory method for creating CamundaClient instances. ```csharp public static CamundaClient CreateClient(CamundaOptions? options = null) ``` Create a new CamundaClient. | Parameter | Type | Description | | --------- | ---------------- | ----------- | | `options` | `CamundaOptions` | | ## Dependency Injection Extension methods for registering `CamundaClient` in an `DependencyInjection.IServiceCollection`. ### AddCamundaClient(IServiceCollection) ```csharp public static IServiceCollection AddCamundaClient(this IServiceCollection services) ``` Registers a singleton `CamundaClient` using zero-config (environment variables only). | Parameter | Type | Description | | ---------- | -------------------- | ----------- | | `services` | `IServiceCollection` | | ### AddCamundaClient(IServiceCollection, IConfiguration) ```csharp public static IServiceCollection AddCamundaClient(this IServiceCollection services, IConfiguration configurationSection) ``` Registers a singleton `CamundaClient` using an `Configuration.IConfiguration` section. Typically called as `services.AddCamundaClient(configuration.GetSection("Camunda"))`. PascalCase keys in the section are mapped to canonical `CAMUNDA_*` env-var names internally. Environment variables still apply as a base layer; section values override them. | Parameter | Type | Description | | ---------------------- | -------------------- | ----------- | | `services` | `IServiceCollection` | | | `configurationSection` | `IConfiguration` | | ### AddCamundaClient(IServiceCollection, Action\) ```csharp public static IServiceCollection AddCamundaClient(this IServiceCollection services, Action configure) ``` Registers a singleton `CamundaClient` with an options callback for full control. | Parameter | Type | Description | | ----------- | ------------------------ | ----------- | | `services` | `IServiceCollection` | | | `configure` | `Action` | | ## Overview Primary Camunda client. Provides typed methods for all Camunda 8 REST API operations. Auto-generated operation methods are added in the Generated/ partial class files. This class provides the infrastructure: configuration, auth, retry, backpressure. ```csharp public class CamundaClient : IDisposable, IEngineClockTarget, IAsyncDisposable ``` ## Constructor ```csharp public CamundaClient(CamundaOptions? options = null) ``` Create a new CamundaClient with the given options. | Parameter | Type | Description | | --------- | ---------------- | ----------- | | `options` | `CamundaOptions` | | ## Properties | Property | Type | Description | | -------- | --------------- | ----------------------------------------------- | | `Config` | `CamundaConfig` | The current hydrated configuration (read-only). | ## Methods ### Other #### Create(CamundaOptions?) ```csharp public static CamundaClient Create(CamundaOptions? options = null) ``` Create a new CamundaClient. | Parameter | Type | Description | | --------- | ---------------- | ----------- | | `options` | `CamundaOptions` | | **Returns:** `CamundaClient` #### Dispose() ```csharp public void Dispose() ``` Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. #### DisposeAsync() ```csharp public ValueTask DisposeAsync() ``` Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. **Returns:** `ValueTask` — A task that represents the asynchronous dispose operation. #### CancelClusterRebalanceAsync(CancellationToken) ```csharp public Task CancelClusterRebalanceAsync(CancellationToken ct = default) ``` Stop the running rebalance Asks the running rebalance to stop once the transfer in flight has finished. Partitions already transferred keep their new leaders, and those the rebalance had not yet reached keep their current ones. Cancellation requests are idempotent and always accepted. The `wasRunning` response field can be used to distinguish a cancellation that found a running rebalance from one that did not. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CancelClusterRebalanceExample() { using var client = CamundaClient.Create(); // Asks the running rebalance to stop once the in-flight transfer finishes. // Cancellation is idempotent. Requires cluster-admin credentials. var result = await client.CancelClusterRebalanceAsync(); if (result.WasRunning) { Console.WriteLine("Cancellation requested; rebalance will stop after the in-flight transfer finishes."); } else { Console.WriteLine("No rebalance was running."); } } ``` #### ChangeClusterModeAsync(Mode, bool?, CancellationToken) ```csharp public Task ChangeClusterModeAsync(Mode mode, bool? dryRun = null, CancellationToken ct = default) ``` Change cluster mode Transitions the cluster between processing and recovery mode. This is a non-blocking operation: the request is acknowledged once the change has been accepted, before the transition itself has completed. Entering recovery mode deactivates all partitions so that only a restricted set of read-only operations remains available; exiting recovery mode returns the cluster to normal processing. Returns the planned cluster change so its progress can be monitored via the topology. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `mode` | `Mode` | | | `dryRun` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### ChangeClusterModeAsClusterAdminAsync(Mode, string?, bool?, CancellationToken) ```csharp public Task ChangeClusterModeAsClusterAdminAsync(Mode mode, string? physicalTenantId = null, bool? dryRun = null, CancellationToken ct = default) ``` Change the cluster mode of one or every physical tenant Transitions physical tenants between processing and recovery mode. If the `physicalTenantId` parameter is not provided, all available physical tenants are transitioned individually. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `mode` | `Mode` | | | `physicalTenantId` | `String` | | | `dryRun` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ChangeClusterModeAsClusterAdminExample() { using var client = CamundaClient.Create(); // The cluster-admin variant can target a single physical tenant. Omit // physicalTenantId to apply the change to every physical tenant. var change = await client.ChangeClusterModeAsClusterAdminAsync( Mode.RECOVERING, physicalTenantId: "default", dryRun: true); Console.WriteLine($"Cluster change {change.ChangeId}:"); foreach (var group in change.PlannedChanges) { var tenant = group.PhysicalTenantId is null ? "cluster-wide" : group.PhysicalTenantId; Console.WriteLine($" {tenant}:"); foreach (var operation in group.Operations) { var suffix = operation.Mode is null ? "" : $" -> {operation.Mode}"; Console.WriteLine($" {operation.Operation}{suffix}"); } } } ``` #### CreateAdminUserAsync(UserRequest, CancellationToken) ```csharp public Task CreateAdminUserAsync(UserRequest body, CancellationToken ct = default) ``` Create admin user Creates a new user and assigns the admin role to it. This endpoint is only usable when users are managed in the Orchestration Cluster and while no user is assigned to the admin role. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `UserRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateAdminUserExample(Username username) { using var client = CamundaClient.Create(); var result = await client.CreateAdminUserAsync(new UserRequest { Username = username, Name = "Admin User", Email = "admin@example.com", Password = "admin-password", }); Console.WriteLine($"Admin user key: {result.Username}"); } ``` #### CreateAgentInstanceAsync(AgentInstanceCreationRequest, CancellationToken) ```csharp public Task CreateAgentInstanceAsync(AgentInstanceCreationRequest body, CancellationToken ct = default) ``` Create agent instance Creates a new agent instance. The returned key identifies the instance and must be used in subsequent update and query calls. | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `body` | `AgentInstanceCreationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateAgentInstanceExample( ElementInstanceKey elementInstanceKey, JobKey jobKey, JobLeaseToken jobLease) { using var client = CamundaClient.Create(); // The agent's model, provider, system prompt and limits are supplied as a // CONFIGURATION history item; a create request must open the conversation // with at least one such item. var result = await client.CreateAgentInstanceAsync(new AgentInstanceCreationRequest { ElementInstanceKey = elementInstanceKey, JobKey = jobKey, JobLeaseToken = jobLease, History = new List { new AgentInstanceHistoryItem { HistoryItemId = HistoryItemId.AssumeExists("configuration-1"), LoopIteration = LoopIterationId.AssumeExists(1), Role = AgentInstanceHistoryRoleEnum.CONFIGURATION, ProducedAt = DateTimeOffset.UtcNow, Content = new List(), Model = "gpt-4o", Provider = "openai", SystemPrompt = new List { new AgentInstanceTextContent { Text = "You are a helpful assistant." }, }, Limits = new AgentInstanceLimits { MaxModelCalls = 20, MaxToolCalls = 20, MaxTokens = 100_000, }, }, }, }); Console.WriteLine($"Created agent instance: {result.AgentInstanceKey}"); } ``` #### CreateGlobalTaskListenerAsync(CreateGlobalTaskListenerRequest, CancellationToken) ```csharp public Task CreateGlobalTaskListenerAsync(CreateGlobalTaskListenerRequest body, CancellationToken ct = default) ``` Create global user task listener Create a new global user task listener. | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `body` | `CreateGlobalTaskListenerRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateGlobalTaskListenerExample(GlobalListenerId id) { using var client = CamundaClient.Create(); var result = await client.CreateGlobalTaskListenerAsync( new CreateGlobalTaskListenerRequest { EventTypes = new List { GlobalTaskListenerEventTypeEnum.Completing }, Id = id, }); Console.WriteLine($"Task listener: {result.Id}"); } ``` #### CreateUserAsync(UserRequest, CancellationToken) ```csharp public Task CreateUserAsync(UserRequest body, CancellationToken ct = default) ``` Create user Create a new user. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `UserRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateUserExample(Username username) { using var client = CamundaClient.Create(); var result = await client.CreateUserAsync(new UserRequest { Username = username, Name = "Jane Doe", Email = "jdoe@example.com", Password = "secure-password", }); Console.WriteLine($"User key: {result.Username}"); } ``` #### DeleteGlobalTaskListenerAsync(GlobalListenerId, CancellationToken) ```csharp public Task DeleteGlobalTaskListenerAsync(GlobalListenerId id, CancellationToken ct = default) ``` Delete global user task listener Deletes a global user task listener. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `id` | `GlobalListenerId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteGlobalTaskListenerExample(GlobalListenerId globalListenerId) { using var client = CamundaClient.Create(); await client.DeleteGlobalTaskListenerAsync( globalListenerId); } ``` #### DeleteHistoryBackupAsync(BackupId, CancellationToken) ```csharp public Task DeleteHistoryBackupAsync(BackupId backupId, CancellationToken ct = default) ``` Delete history backup Deletes the history backup with the given id, by deleting every snapshot that makes it up. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `backupId` | `BackupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteHistoryBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); await client.DeleteHistoryBackupAsync(backupId); } ``` #### DeleteHistoryBackupAsClusterAdminAsync(BackupId, string?, CancellationToken) ```csharp public Task DeleteHistoryBackupAsClusterAdminAsync(BackupId backupId, string? physicalTenantId = null, CancellationToken ct = default) ``` Delete a history backup across physical tenants Deletes the history backup with the given id from every physical tenant of the cluster, or from the one named by `physicalTenantId`. A tenant that does not hold the backup has already reached the requested end state, so it counts as deleted rather than as a failure. The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole request, and the deletions that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to delete from the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `DELETE /v2/backups/history/{backupId}` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `backupId` | `BackupId` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### DeleteRuntimeBackupAsync(BackupId, CancellationToken) ```csharp public Task DeleteRuntimeBackupAsync(BackupId backupId, CancellationToken ct = default) ``` Delete runtime backup Deletes the runtime backup with the given id. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `backupId` | `BackupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteRuntimeBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); await client.DeleteRuntimeBackupAsync(backupId); } ``` #### DeleteRuntimeBackupAsClusterAdminAsync(BackupId, string?, CancellationToken) ```csharp public Task DeleteRuntimeBackupAsClusterAdminAsync(BackupId backupId, string? physicalTenantId = null, CancellationToken ct = default) ``` Delete a runtime backup across physical tenants Deletes the runtime backup with the given id from every physical tenant of the cluster, or from the one named by `physicalTenantId`. A tenant that does not hold the backup has already reached the requested end state, so it counts as deleted rather than as a failure — the same as deleting an unknown backup id through the per-physical-tenant endpoint. The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole request, and the deletions that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to delete from the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `DELETE /v2/backups/runtime/{backupId}` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `backupId` | `BackupId` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### DeleteRuntimeBackupStateAsync(CancellationToken) ```csharp public Task DeleteRuntimeBackupStateAsync(CancellationToken ct = default) ``` Delete runtime backup state Resets the runtime backup state of every partition of the physical tenant, clearing all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when switching backup stores. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteRuntimeBackupStateExample() { using var client = CamundaClient.Create(); // Clears all checkpoint info, backup info, checkpoint metadata, and backup // ranges on every partition. Used when switching backup stores. await client.DeleteRuntimeBackupStateAsync(); } ``` #### DeleteRuntimeBackupStateAsClusterAdminAsync(string?, CancellationToken) ```csharp public Task DeleteRuntimeBackupStateAsClusterAdminAsync(string? physicalTenantId = null, CancellationToken ct = default) ``` Delete runtime backup state across physical tenants Resets the runtime backup state of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, clearing all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when switching backup stores. The request is all-or-nothing: a physical tenant whose state cannot be reset fails the whole request, and the resets that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to reset the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `DELETE /v2/backups/runtime/state` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### DeleteUserAsync(Username, CancellationToken) ```csharp public Task DeleteUserAsync(Username username, CancellationToken ct = default) ``` Delete user Deletes a user. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteUserExample(Username username) { using var client = CamundaClient.Create(); await client.DeleteUserAsync(username); } ``` #### EvaluateConditionalsAsync(ConditionalEvaluationInstruction, CancellationToken) ```csharp public Task EvaluateConditionalsAsync(ConditionalEvaluationInstruction body, CancellationToken ct = default) ``` Evaluate root level conditional start events Evaluates root-level conditional start events for process definitions. If the evaluation is successful, it will return the keys of all created process instances, along with their associated process definition key. Multiple root-level conditional start events of the same process definition can trigger if their conditions evaluate to true. | Parameter | Type | Description | | --------- | ---------------------------------- | ----------- | | `body` | `ConditionalEvaluationInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task EvaluateConditionalsExample() { using var client = CamundaClient.Create(); var result = await client.EvaluateConditionalsAsync( new ConditionalEvaluationInstruction()); Console.WriteLine($"Result: {result}"); } ``` #### EvaluateExpressionAsync(ExpressionEvaluationRequest, CancellationToken) ```csharp public Task EvaluateExpressionAsync(ExpressionEvaluationRequest body, CancellationToken ct = default) ``` Evaluate an expression Evaluates a FEEL expression and returns the result. Supports references to tenant scoped cluster variables when a tenant ID is provided. Optionally, provide a `scopeKey` to make the variables of a specific process instance or element instance visible while evaluating the expression. | Parameter | Type | Description | | --------- | ----------------------------- | ----------- | | `body` | `ExpressionEvaluationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task EvaluateExpressionExample() { using var client = CamundaClient.Create(); var result = await client.EvaluateExpressionAsync( new ExpressionEvaluationRequest { Expression = "= 1 + 2", }); Console.WriteLine($"Result: {result.Result}"); } ``` #### GetAgentDefinitionAsync(AgentDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetAgentDefinitionAsync(AgentDefinitionKey agentDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get agent definition Returns an agent definition by key. | Parameter | Type | Description | | -------------------- | ------------------------------------------- | ----------- | | `agentDefinitionKey` | `AgentDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetAgentDefinitionExample(AgentDefinitionKey agentDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetAgentDefinitionAsync(agentDefinitionKey); Console.WriteLine($"Agent definition: {result.AgentDefinitionKey}, name: {result.Name}, type: {result.AgentType}"); } ``` #### GetAgentInstanceAsync(AgentInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetAgentInstanceAsync(AgentInstanceKey agentInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get agent instance Returns agent instance as JSON. | Parameter | Type | Description | | ------------------ | ----------------------------------------- | ----------- | | `agentInstanceKey` | `AgentInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetAgentInstanceExample(AgentInstanceKey agentInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetAgentInstanceAsync(agentInstanceKey); Console.WriteLine($"Agent instance: {result.AgentInstanceKey}, status: {result.Status}"); } ``` #### GetClusterExportingStatusAsync(CancellationToken) ```csharp public Task GetClusterExportingStatusAsync(CancellationToken ct = default) ``` Get exporting status of the whole cluster Returns the exporting status of the whole cluster, folded over the exporting status of every physical tenant. Only `PAUSED` and `SOFT_PAUSED` confirm that exporting is paused cluster-wide; every other value means at least one physical tenant is not paused, so callers should keep polling. A physical tenant that itself reports `MIXED` makes the whole cluster `MIXED`. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetClusterExportingStatusExample() { using var client = CamundaClient.Create(); // Returns the aggregated exporting status across all physical tenants in the cluster. var result = await client.GetClusterExportingStatusAsync(); Console.WriteLine($"Cluster exporting status: {result.Status}"); } ``` #### GetClusterRebalanceAsync(CancellationToken) ```csharp public Task GetClusterRebalanceAsync(CancellationToken ct = default) ``` Report the cluster's current leadership balance Reports whether the cluster is currently balanced, the current leadership state of every partition, and what became of the last rebalance to finish. The last completed rebalance is held in memory by the coordinating broker, so none will be reported if the coordinator has moved or restarted since the last rebalance. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetClusterRebalanceExample() { using var client = CamundaClient.Create(); // Reports whether the cluster is currently balanced and the current leadership // state of each partition. Requires cluster-admin credentials. var result = await client.GetClusterRebalanceAsync(); Console.WriteLine($"Balance state: {result.State}"); foreach (var partition in result.Partitions) { Console.WriteLine($" Partition {partition.PartitionId}: leader={partition.CurrentLeader}"); } if (result.RunningRebalance is not null) { Console.WriteLine($"Rebalance in progress: started {result.RunningRebalance.StartedAt}"); } } ``` #### GetClusterStatusAsync(CancellationToken) ```csharp public Task GetClusterStatusAsync(CancellationToken ct = default) ``` Get the status of the whole cluster Checks the health status of the whole cluster, aggregated over all physical tenants. Returns `HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, and `DEGRADED` in every other case. No per-tenant detail is reported; use `GET /cluster/v2/topology` for that. This endpoint is public and requires no authentication, unlike `PATCH /cluster/v2/mode` below, which needs cluster-admin credentials. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetClusterStatusExample() { using var client = CamundaClient.Create(); var status = await client.GetClusterStatusAsync(); Console.WriteLine($"Cluster status: {status.Status}"); } ``` #### GetClusterUpgradeStatusAsync(CancellationToken) ```csharp public Task GetClusterUpgradeStatusAsync(CancellationToken ct = default) ``` Get the upgrade-readiness status of the whole cluster Reports one overall upgrade-readiness status for the whole cluster, folded over every physical tenant and condition. `MIGRATED` only once every known condition has migrated for every known physical tenant; `MIGRATION_IN_PROGRESS` when at least one is confirmed not yet migrated; `UNKNOWN` otherwise (including before anything has been reported yet). No per-tenant or per-condition detail is reported here; see the `upgradeReadiness` actuator endpoint for that. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetClusterUpgradeStatusExample() { using var client = CamundaClient.Create(); // Reports one overall upgrade-readiness status for the whole cluster, // folded over every physical tenant and condition. MIGRATED only once // everything has migrated; MIGRATION_IN_PROGRESS while at least one // condition is confirmed not yet migrated. var status = await client.GetClusterUpgradeStatusAsync(); Console.WriteLine($"Cluster upgrade-readiness: {status.Status}"); } ``` #### GetExportingStatusAsync(CancellationToken) ```csharp public Task GetExportingStatusAsync(CancellationToken ct = default) ``` Get exporting status Returns the exporting status of the physical tenant, aggregated over every replica of every one of its partitions. Because pause and resume are applied to all replicas, the status is only a single phase if every replica reports that phase; otherwise it is `MIXED`, which means a pause or resume is still in flight or was only partially applied. Backup tooling should treat only `PAUSED` and `SOFT_PAUSED` as confirmation that exporting is paused. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetExportingStatusExample() { using var client = CamundaClient.Create(); var result = await client.GetExportingStatusAsync(); Console.WriteLine($"Status: {result.Status}"); } ``` #### GetFormByKeyAsync(FormKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetFormByKeyAsync(FormKey formKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get form by key Get a form by its unique form key. | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `formKey` | `FormKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetFormByKeyExample(FormKey formKey) { using var client = CamundaClient.Create(); var result = await client.GetFormByKeyAsync(formKey); Console.WriteLine($"Form: {result.FormId}, version: {result.Version}"); } ``` #### GetGlobalTaskListenerAsync(GlobalListenerId, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetGlobalTaskListenerAsync(GlobalListenerId id, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get global user task listener Get a global user task listener by its id. | Parameter | Type | Description | | ------------- | ---------------------------------------------- | ----------- | | `id` | `GlobalListenerId` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetGlobalTaskListenerExample(GlobalListenerId globalListenerId) { using var client = CamundaClient.Create(); var result = await client.GetGlobalTaskListenerAsync( globalListenerId); Console.WriteLine($"Task listener: {result.EventTypes}"); } ``` #### GetHistoryBackupAsync(BackupId, CancellationToken) ```csharp public Task GetHistoryBackupAsync(BackupId backupId, CancellationToken ct = default) ``` Get history backup Returns detailed status of the history backup with the given id. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `backupId` | `BackupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetHistoryBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); var backup = await client.GetHistoryBackupAsync(backupId); // The aggregated state is derived from the state of every expected snapshot. Console.WriteLine($"History backup {backup.BackupId}: {backup.State}"); } ``` #### GetHistoryBackupAsClusterAdminAsync(BackupId, string?, CancellationToken) ```csharp public Task GetHistoryBackupAsClusterAdminAsync(BackupId backupId, string? physicalTenantId = null, CancellationToken ct = default) ``` Get a history backup across physical tenants Reports what every physical tenant of the cluster, or the one named by `physicalTenantId`, holds for the given backup id. There is no aggregated cluster-level state: a tenant that was reached and does not hold this backup reports `NOT_FOUND`, which is a successful observation rather than a failure. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `GET /v2/backups/history/{backupId}` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `backupId` | `BackupId` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetRestoreStatusAsync(CancellationToken) ```csharp public Task GetRestoreStatusAsync(CancellationToken ct = default) ``` Get the status of the restore that is currently in progress Returns the status of the restore that is currently in progress, reported per broker and per partition. There is at most one restore in flight at any time. Once the restore has finished this endpoint returns 404; the per-partition detail is not retained after completion. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetRestoreStatusExample() { using var client = CamundaClient.Create(); // Poll this endpoint while the cluster is in recovery mode to track progress. var status = await client.GetRestoreStatusAsync(); Console.WriteLine($"Restore {status.ChangeId}: {status.Status}"); } ``` #### GetRuntimeBackupAsync(BackupId, CancellationToken) ```csharp public Task GetRuntimeBackupAsync(BackupId backupId, CancellationToken ct = default) ``` Get runtime backup Returns detailed status of the runtime backup with the given id. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `backupId` | `BackupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetRuntimeBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); var backup = await client.GetRuntimeBackupAsync(backupId); Console.WriteLine($"Backup {backup.BackupId}: {backup.State}"); foreach (var partition in backup.Details) { Console.WriteLine($" Partition {partition.PartitionId}: {partition.State}"); } } ``` #### GetRuntimeBackupAsClusterAdminAsync(BackupId, string?, CancellationToken) ```csharp public Task GetRuntimeBackupAsClusterAdminAsync(BackupId backupId, string? physicalTenantId = null, CancellationToken ct = default) ``` Get a runtime backup across physical tenants Reports what every physical tenant of the cluster, or the one named by `physicalTenantId`, holds for the given backup id, plus the state aggregated over all of them. A tenant that was reached and does not hold this backup reports `DOES_NOT_EXIST`, which is a successful observation rather than a failure — so a backup only some tenants hold aggregates to `INCOMPLETE`, the same way a backup only some partitions hold does within one tenant. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime/{backupId}` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `backupId` | `BackupId` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetRuntimeBackupStateAsync(CancellationToken) ```csharp public Task GetRuntimeBackupStateAsync(CancellationToken ct = default) ``` Get runtime backup state Returns the current checkpoint and backup state of every partition of the physical tenant. Unlike the `backupRuntime` actuator, this fails the whole request if the checkpoint state or the backup ranges cannot be retrieved from any partition, instead of silently returning an empty section. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetRuntimeBackupStateExample() { using var client = CamundaClient.Create(); var state = await client.GetRuntimeBackupStateAsync(); foreach (var checkpoint in state.CheckpointStates) { Console.WriteLine( $"Partition {checkpoint.PartitionId} checkpoint {checkpoint.CheckpointId} ({checkpoint.CheckpointType})"); } foreach (var range in state.Ranges) { Console.WriteLine( $"Partition {range.PartitionId} range: {range.Start?.CheckpointId} -> {range.End?.CheckpointId}"); } } ``` #### GetRuntimeBackupStateAsClusterAdminAsync(string?, CancellationToken) ```csharp public Task GetRuntimeBackupStateAsClusterAdminAsync(string? physicalTenantId = null, CancellationToken ct = default) ``` Get runtime backup state across physical tenants Reports the checkpoint and backup state of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by physical tenant. Checkpoint ids and log positions only mean anything within one physical tenant's partitions, so nothing is aggregated across tenants. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request rather than contributing an empty section, which an operator making a delete or restore decision could not tell apart from "nothing to report yet". Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime/state` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetStatusAsync(CancellationToken) ```csharp public Task GetStatusAsync(CancellationToken ct = default) ``` Get physical tenant status Checks the health status of the default physical tenant by verifying if there's at least one partition of its group with a healthy leader. This endpoint is scoped to the default physical tenant only: it is available unprefixed and at `/physical-tenants/default/v2/status`, but not for any other physical tenant id (`/physical-tenants/{id}/v2/status` returns 404 for every other id, whether or not a physical tenant with that id exists). On a cluster with only the default physical tenant this endpoint answers the same question as `/cluster/v2/status`, though not with the same response: `/cluster/v2/status` reports its status in a body and so also distinguishes a degraded tenant from a healthy one. Use `/cluster/v2/status` for the aggregated status of the whole cluster, or `/physical-tenants/{id}/v2/topology` for the health of a specific physical tenant's partitions. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetStatusExample() { using var client = CamundaClient.Create(); await client.GetStatusAsync(); Console.WriteLine("Cluster is healthy"); } ``` #### GetSystemConfigurationAsync(CancellationToken) ```csharp public Task GetSystemConfigurationAsync(CancellationToken ct = default) ``` System configuration (alpha) Returns the current system configuration. The response is an envelope that groups settings by feature area. This endpoint is an alpha feature and may be subject to change in future releases. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetSystemConfigurationExample() { using var client = CamundaClient.Create(); var result = await client.GetSystemConfigurationAsync(); Console.WriteLine($"System config: {result}"); } ``` #### GetUserAsync(Username, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetUserAsync(Username username, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get user Get a user by its username. | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `username` | `Username` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### ListHistoryBackupsAsync(BackupIdPrefix?, bool?, CancellationToken) ```csharp public Task ListHistoryBackupsAsync(BackupIdPrefix? prefix = null, bool? verbose = null, CancellationToken ct = default) ``` List history backups Returns a list of all available history backups of the physical tenant, with their state and additional info, most recent first by snapshot start time. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `prefix` | `Nullable` | | | `verbose` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ListHistoryBackupsExample() { using var client = CamundaClient.Create(); // `prefix` must end in a single '*'. Omit it to list every history backup. var backups = await client.ListHistoryBackupsAsync( BackupIdPrefix.AssumeExists("10*")); Console.WriteLine($"History backups: {backups}"); } ``` #### ListHistoryBackupsAsClusterAdminAsync(string?, BackupIdPrefix?, bool?, CancellationToken) ```csharp public Task ListHistoryBackupsAsClusterAdminAsync(string? physicalTenantId = null, BackupIdPrefix? prefix = null, bool? verbose = null, CancellationToken ct = default) ``` List history backups across physical tenants Lists the history backups of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by backup id. A backup id that only some physical tenants hold is a supported outcome rather than a degraded one, so only the tenants that hold it are listed under it. The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole request rather than silently dropping out of the listing. Narrow the request with `physicalTenantId` to list the backups of the tenants that can still be read. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `GET /v2/backups/history` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | -------------------------- | ----------- | | `physicalTenantId` | `String` | | | `prefix` | `Nullable` | | | `verbose` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### ListRuntimeBackupsAsync(BackupIdPrefix?, CancellationToken) ```csharp public Task ListRuntimeBackupsAsync(BackupIdPrefix? prefix = null, CancellationToken ct = default) ``` List runtime backups Returns a list of all available runtime backups of the physical tenant, with their state and additional info, sorted in descending order of backupId. | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `prefix` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ListRuntimeBackupsExample() { using var client = CamundaClient.Create(); // `prefix` must end in a single '*'. Omit it to list every backup. var backups = await client.ListRuntimeBackupsAsync( BackupIdPrefix.AssumeExists("10*")); Console.WriteLine($"Runtime backups: {backups}"); } ``` #### ListRuntimeBackupsAsClusterAdminAsync(string?, BackupIdPrefix?, CancellationToken) ```csharp public Task ListRuntimeBackupsAsClusterAdminAsync(string? physicalTenantId = null, BackupIdPrefix? prefix = null, CancellationToken ct = default) ``` List runtime backups across physical tenants Lists the runtime backups of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by backup id. Every group reports every targeted tenant, including the ones holding nothing for that id, so a backup only some tenants hold aggregates to `INCOMPLETE` here exactly as it does when looked up directly — the state of a listed group can be trusted to say whether the cluster can be restored from it. A backup id that only some physical tenants hold is a supported outcome rather than a degraded one; tenants that generate their own backup ids never share one, so in that mode each backup forms its own group and the other tenants report `DOES_NOT_EXIST` under it. The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole request rather than silently dropping out of the listing. Narrow the request with `physicalTenantId` to list the backups of the tenants that can still be read. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | -------------------------- | ----------- | | `physicalTenantId` | `String` | | | `prefix` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### ListSecretsAsync(SecretListRequest, CancellationToken) ```csharp public Task ListSecretsAsync(SecretListRequest body, CancellationToken ct = default) ``` List secrets List the `camunda.secrets.*` references known for the caller's physical tenant. Only references the caller holds `SECRET:READ` on are returned. This endpoint never returns secret values, only the reference names. The references are read from the secret stores configured for the caller's physical tenant. A store may hold names outside the reference name charset (for example one containing a dot); those are omitted, since `/secrets/resolve` would reject them and no permission can be granted on them. A returned reference is usable verbatim with `/secrets/resolve`. In a FEEL expression, however, a name that is not a bare identifier has to be backtick-escaped, since FEEL reads a bare dash as the minus operator: a listed `camunda.secrets.db-password` is written `` =camunda.secrets.`db-password` `` in a BPMN input mapping. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `SecretListRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ListSecretsExample() { using var client = CamundaClient.Create(); // The request body is reserved for future filtering options and currently // takes no properties. var result = await client.ListSecretsAsync(new SecretListRequest()); // Only the references are returned — never the secret values. Use // ResolveSecretsAsync to fetch a value when one is actually needed. foreach (var reference in result.References) { Console.WriteLine($"Secret available: {reference}"); } } ``` #### PauseClusterExportingAsync(bool?, CancellationToken) ```csharp public Task PauseClusterExportingAsync(bool? soft = null, CancellationToken ct = default) ``` Pause exporting across the whole cluster Pauses exporting on every physical tenant of the cluster in one call. With `soft=true`, every physical tenant is soft-paused instead. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `soft` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task PauseClusterExportingExample() { using var client = CamundaClient.Create(); // With `soft: true` exporting keeps running but its position is not committed, // so the log is still not compacted — use it when exporting must keep // progressing across all physical tenants, for example while a cluster backup is taken. await client.PauseClusterExportingAsync(soft: true); } ``` #### PauseExportingAsync(bool?, CancellationToken) ```csharp public Task PauseExportingAsync(bool? soft = null, CancellationToken ct = default) ``` Pause exporting Pauses exporting on all partitions of the physical tenant. While paused, exported records are not committed, so the log is not compacted for the affected partitions. With `soft=true`, exporting continues to run but its position is not committed, so the state after resuming is identical to a hard pause; use this variant when exporting must keep progressing (e.g. to avoid falling behind) while still preventing log compaction, such as during a backup. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `soft` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task PauseExportingExample() { using var client = CamundaClient.Create(); // With `soft: true` exporting keeps running but its position is not committed, // so the log is still not compacted — use it when exporting must keep // progressing, for example while a backup is taken. await client.PauseExportingAsync(soft: true); } ``` #### ResolveSecretsAsync(SecretResolveRequest, CancellationToken) ```csharp public Task ResolveSecretsAsync(SecretResolveRequest body, CancellationToken ct = default) ``` Resolve secrets Resolve a deduplicated batch of `camunda.secrets.*` references for the caller's physical tenant in a single round-trip. Each reference is authorized and resolved independently. For valid requests, the endpoint always responds with HTTP 200: successfully resolved references are returned in `resolved`, while references that could not be resolved (for example not found, malformed or over-long, or the caller lacks `SECRET:REVEAL` on that reference) are returned in `errors`. A failure of one reference never fails the others. Only structurally invalid requests are rejected with HTTP 400: a missing or non-array `references` field, more than 20 references, or a null entry. References are resolved against the secret stores configured for the caller's physical tenant, served from the gateway's secret cache when the value is already cached and read from the store otherwise. | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `body` | `SecretResolveRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResolveSecretsExample() { using var client = CamundaClient.Create(); var result = await client.ResolveSecretsAsync(new SecretResolveRequest { References = new List { "camunda.secrets.myApiToken", "camunda.secrets.dbPassword", }, }); // Successfully resolved references are returned in Resolved; references that // could not be resolved are returned in Errors, each with a typed error code. // Never log resolved.Value — it holds secret material. Pass it directly to the // consumer that needs it (HTTP client, DB driver, ...) instead. foreach (var resolved in result.Resolved) { Console.WriteLine($"Resolved {resolved.Reference} (value redacted)"); UseSecret(resolved.Value); } foreach (var error in result.Errors) { Console.WriteLine($"Failed to resolve {error.Reference}: {error.Code} - {error.Message}"); } } // Hands the resolved secret to whatever needs it, without logging it. private static void UseSecret(string value) { } ``` #### RestoreAsync(RestoreRequest, bool?, CancellationToken) ```csharp public Task RestoreAsync(RestoreRequest body, bool? dryRun = null, CancellationToken ct = default) ``` Restore from a backup Restores the cluster from a backup. The restore is described either by a single backup ID or by a time range (`from`/`to`) that selects the backups to restore. This endpoint is only accessible while the cluster is in recovery mode; requests are rejected otherwise. The request is validated and acknowledged, but the restore itself is performed asynchronously. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `RestoreRequest` | | | `dryRun` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### RestoreAsClusterAdminAsync(ClusterRestoreRequest, string?, bool?, CancellationToken) ```csharp public Task RestoreAsClusterAdminAsync(ClusterRestoreRequest body, string? physicalTenantId = null, bool? dryRun = null, CancellationToken ct = default) ``` Restore one or every physical tenant from a backup Restores physical tenants from backups. The restore is described either by a list of backup IDs or by a time range (`from`/`to`) that selects the backups to restore. Restores are only accepted while the targeted physical tenants are in recovery mode; requests are rejected otherwise. The request is validated and acknowledged, but the restore itself is performed asynchronously. If the `physicalTenantId` parameter is provided, only that physical tenant is restored and `overrides` must be omitted. If it is not provided, every physical tenant of the cluster is restored: those named in `overrides` with their own backup selection, all others with the selection at the top level of the request body. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | ------------------ | ----------------------- | ----------- | | `body` | `ClusterRestoreRequest` | | | `physicalTenantId` | `String` | | | `dryRun` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task RestoreAsClusterAdminExample() { using var client = CamundaClient.Create(); // The cluster must be in recovery mode before a restore is accepted. // Use physicalTenantId to restore a single physical tenant; omit it to // restore every physical tenant. Pass dryRun: true to validate the // request and inspect the plan without applying it. // Provide either a list of backup IDs (one per partition) or a time // range (From/To), but not both. var change = await client.RestoreAsClusterAdminAsync( new ClusterRestoreRequest { BackupIds = new List { 100, 101 }, }, physicalTenantId: "default", dryRun: true); Console.WriteLine($"Cluster change {change.ChangeId}:"); foreach (var group in change.PlannedChanges) { var tenant = group.PhysicalTenantId is null ? "cluster-wide" : group.PhysicalTenantId; Console.WriteLine($" {tenant}: {group.Operations.Count} operation(s)"); } } ``` #### ResumeClusterExportingAsync(CancellationToken) ```csharp public Task ResumeClusterExportingAsync(CancellationToken ct = default) ``` Resume exporting across the whole cluster Resumes exporting on every physical tenant of the cluster in one call, after a pause or soft pause. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResumeClusterExportingExample() { using var client = CamundaClient.Create(); await client.ResumeClusterExportingAsync(); } ``` #### ResumeExportingAsync(CancellationToken) ```csharp public Task ResumeExportingAsync(CancellationToken ct = default) ``` Resume exporting Resumes exporting on all partitions of the physical tenant after a pause or soft pause. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResumeExportingExample() { using var client = CamundaClient.Create(); await client.ResumeExportingAsync(); } ``` #### SearchAgentDefinitionsAsync(AgentDefinitionSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchAgentDefinitionsAsync(AgentDefinitionSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search agent definitions Search for agent definitions based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------------------ | ----------- | | `body` | `AgentDefinitionSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchAgentDefinitionsExample() { using var client = CamundaClient.Create(); var result = await client.SearchAgentDefinitionsAsync(new AgentDefinitionSearchQuery { Filter = new AgentDefinitionFilter { AgentType = AgentDefinitionTypeEnum.AIAGENTTASK, }, Page = new LimitPagination { Limit = 50, }, }); foreach (var def in result.Items) { Console.WriteLine($"Agent definition: {def.AgentDefinitionKey}, name: {def.Name}, type: {def.AgentType}"); } } ``` #### SearchAgentInstanceHistoryAsync(AgentInstanceKey, AgentInstanceHistorySearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchAgentInstanceHistoryAsync(AgentInstanceKey agentInstanceKey, AgentInstanceHistorySearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search agent instance history Searches the conversation history of an agent instance. Committed items are returned by default. | Parameter | Type | Description | | ------------------ | ----------------------------------------------------------- | ----------- | | `agentInstanceKey` | `AgentInstanceKey` | | | `body` | `AgentInstanceHistorySearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchAgentInstanceHistoryExample(AgentInstanceKey agentInstanceKey) { using var client = CamundaClient.Create(); var result = await client.SearchAgentInstanceHistoryAsync( agentInstanceKey, new AgentInstanceHistorySearchQuery { Sort = new List { new AgentInstanceHistorySearchQuerySortRequest { Field = AgentInstanceHistorySearchQuerySortRequestField.ProducedAt, Order = SortOrderEnum.ASC, }, }, Page = new LimitPagination { Limit = 20 }, }); foreach (var item in result.Items) { Console.WriteLine($"{item.HistoryItemKey} ({item.Role})"); } } ``` #### SearchAgentInstancesAsync(AgentInstanceSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchAgentInstancesAsync(AgentInstanceSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search agent instances Search for agent instances based on given criteria. | Parameter | Type | Description | | ------------- | ---------------------------------------------------- | ----------- | | `body` | `AgentInstanceSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchAgentInstancesExample() { using var client = CamundaClient.Create(); var result = await client.SearchAgentInstancesAsync(new AgentInstanceSearchQuery()); foreach (var instance in result.Items) { Console.WriteLine($"Agent instance: {instance.AgentInstanceKey}, status: {instance.Status}"); } } ``` #### SearchGlobalTaskListenersAsync(GlobalTaskListenerSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchGlobalTaskListenersAsync(GlobalTaskListenerSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search global user task listeners Search for global user task listeners based on given criteria. | Parameter | Type | Description | | ------------- | --------------------------------------------------------- | ----------- | | `body` | `GlobalTaskListenerSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchGlobalTaskListenersExample() { using var client = CamundaClient.Create(); var result = await client.SearchGlobalTaskListenersAsync( new GlobalTaskListenerSearchQueryRequest()); foreach (var listener in result.Items) { Console.WriteLine($"Listener: {listener.Id}"); } } ``` #### SearchUsersAsync(UserSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUsersAsync(UserSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search users Search for users based on given criteria. | Parameter | Type | Description | | ------------- | -------------------------------------- | ----------- | | `body` | `UserSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SyncRuntimeBackupStateAsync(CancellationToken) ```csharp public Task SyncRuntimeBackupStateAsync(CancellationToken ct = default) ``` Force-write runtime backup state Force-writes the checkpoint and backup metadata of every partition of the physical tenant to the backup store, independent of any backup being taken or confirmed, and returns the updated state. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SyncRuntimeBackupStateExample() { using var client = CamundaClient.Create(); // Force-writes checkpoint and backup metadata of every partition to the backup // store, independent of any backup being taken, and returns the updated state. var state = await client.SyncRuntimeBackupStateAsync(); Console.WriteLine($"Synced {state.BackupStates.Count} partition backup states"); } ``` #### SyncRuntimeBackupStateAsClusterAdminAsync(string?, CancellationToken) ```csharp public Task SyncRuntimeBackupStateAsClusterAdminAsync(string? physicalTenantId = null, CancellationToken ct = default) ``` Force-write runtime backup state across physical tenants Force-writes the checkpoint and backup metadata of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, to that tenant's backup store, independent of any backup being taken or confirmed, and returns the updated state per physical tenant. The request is all-or-nothing: a physical tenant whose metadata cannot be written fails the whole request, and the writes that already succeeded on other tenants are not undone. The operation is idempotent, so retrying the same call is the correct remedy. Narrow the request with `physicalTenantId` to write the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `POST /v2/backups/runtime/state/sync` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### TakeHistoryBackupAsync(TakeHistoryBackupRequest, CancellationToken) ```csharp public Task TakeHistoryBackupAsync(TakeHistoryBackupRequest body, CancellationToken ct = default) ``` Take a history backup Triggers a backup of the physical tenant's history, by scheduling a snapshot of every secondary storage index it owns. Unlike runtime backups, history backups have no generated-id mode: `backupId` is always required. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `body` | `TakeHistoryBackupRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task TakeHistoryBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); // Backups are logically ordered by id, so each successive backup must use a // higher id than the previous one. var backup = await client.TakeHistoryBackupAsync( new TakeHistoryBackupRequest { BackupId = backupId }); Console.WriteLine($"Scheduled history backup {backup.BackupId}"); foreach (var snapshot in backup.ScheduledSnapshots) { Console.WriteLine($" {snapshot}"); } } ``` #### TakeHistoryBackupAsClusterAdminAsync(TakeHistoryBackupRequest, string?, CancellationToken) ```csharp public Task TakeHistoryBackupAsClusterAdminAsync(TakeHistoryBackupRequest body, string? physicalTenantId = null, CancellationToken ct = default) ``` Take a history backup on one or every physical tenant Triggers a history backup on every physical tenant of the cluster, or on the one named by `physicalTenantId`. Every targeted tenant uses the same caller-supplied `backupId`, but the backups are independent: they are neither coordinated nor rolled back together. The request is all-or-nothing: the `backupId` is checked on every targeted tenant before any snapshot is scheduled, so a tenant that already holds this id, or that cannot be reached, fails the whole request and no backup is started anywhere. There is no aggregated cluster-level state in the response. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `POST /v2/backups/history` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | -------------------------- | ----------- | | `body` | `TakeHistoryBackupRequest` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### TakeRuntimeBackupAsync(TakeRuntimeBackupRequest, CancellationToken) ```csharp public Task TakeRuntimeBackupAsync(TakeRuntimeBackupRequest body, CancellationToken ct = default) ``` Take a runtime backup Triggers a backup of runtime data on all partitions of the physical tenant. The `backupId` must be omitted if continuous backups and/or a backup or checkpoint schedule is enabled for the physical tenant, as the id is generated automatically. Otherwise, `backupId` is required. | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `body` | `TakeRuntimeBackupRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task TakeRuntimeBackupExample(BackupId backupId) { using var client = CamundaClient.Create(); // Omit `BackupId` when continuous backups or a backup/checkpoint schedule is // enabled for the physical tenant — the id is then generated by the cluster. // Otherwise `BackupId` is required and must be higher than any existing one. var backup = await client.TakeRuntimeBackupAsync( new TakeRuntimeBackupRequest { BackupId = backupId }); Console.WriteLine($"Scheduled backup {backup.BackupId}"); } ``` #### TakeRuntimeBackupAsClusterAdminAsync(TakeRuntimeBackupRequest, string?, CancellationToken) ```csharp public Task TakeRuntimeBackupAsClusterAdminAsync(TakeRuntimeBackupRequest body, string? physicalTenantId = null, CancellationToken ct = default) ``` Take a runtime backup on one or every physical tenant Triggers a runtime backup on every physical tenant of the cluster, or on the one named by `physicalTenantId`. A cluster-wide backup is a set of independent per-tenant backups, not an atomic snapshot of the cluster: they are neither coordinated nor rolled back together, and each tenant stores its own, so the same `backupId` can be used for all of them. Every targeted physical tenant must be in the same backup-id mode. `backupId` must be omitted when every targeted tenant generates its own ids (because continuous backups and/or a backup or checkpoint schedule is enabled for it), and is required when none of them does. A cluster whose targeted tenants mix the two modes is rejected with 400 and has to be driven one tenant at a time through `POST /v2/backups/runtime`. In generated-id mode each tenant generates its own id, so the response reports an id per physical tenant rather than one for the cluster. The trigger is all-or-error, and never silent about a partial trigger: if any targeted tenant cannot be triggered the response carries an error status, but its body still lists every targeted tenant — which ones were triggered, under which `backupId` to monitor or delete them, and why the others failed. Nothing is rolled back, so the backups that were triggered keep running and have to be deleted explicitly. A request rejected before any tenant was triggered answers with a problem detail instead, and nothing is running. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `POST /v2/backups/runtime` to act as a single physical tenant. | Parameter | Type | Description | | ------------------ | -------------------------- | ----------- | | `body` | `TakeRuntimeBackupRequest` | | | `physicalTenantId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### TriggerClusterRebalanceAsync(ClusterRebalanceRequest, bool?, CancellationToken) ```csharp public Task TriggerClusterRebalanceAsync(ClusterRebalanceRequest body, bool? dryRun = null, CancellationToken ct = default) ``` Trigger a cluster-wide leadership rebalance Transfers leadership of every partition that is not led by its highest-priority replica towards that replica, one partition at a time. Returns as soon as the rebalance has been accepted (poll `GET /cluster/v2/rebalance` to monitor progress). Each rebalance can specify overrides for the configured rebalance settings (e.g. maximum replication lag to allow). An absent request body means "use the configured settings". Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. | Parameter | Type | Description | | --------- | ------------------------- | ----------- | | `body` | `ClusterRebalanceRequest` | | | `dryRun` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task TriggerClusterRebalanceExample() { using var client = CamundaClient.Create(); // Transfers leadership of every partition towards its highest-priority replica, // one at a time. Requires cluster-admin credentials, not Orchestration Cluster // user credentials. Poll GetClusterRebalanceAsync to monitor progress. var result = await client.TriggerClusterRebalanceAsync( new ClusterRebalanceRequest { ReplicationLagThreshold = 1_000_000, MaxTransferAttempts = 3, }); Console.WriteLine($"Rebalance state: {result.State}"); foreach (var partition in result.Partitions) { Console.WriteLine($" Partition {partition.PartitionId}: leader={partition.CurrentLeader}"); } } ``` #### UpdateAgentInstanceAsync(AgentInstanceKey, AgentInstanceUpdateRequest, CancellationToken) ```csharp public Task UpdateAgentInstanceAsync(AgentInstanceKey agentInstanceKey, AgentInstanceUpdateRequest body, CancellationToken ct = default) ``` Update agent instance Updates the status of an agent instance and appends a batch of history items to its conversation history. Each history item created for this request is echoed back in the response. | Parameter | Type | Description | | ------------------ | ---------------------------- | ----------- | | `agentInstanceKey` | `AgentInstanceKey` | | | `body` | `AgentInstanceUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateAgentInstanceExample( AgentInstanceKey agentInstanceKey, ElementInstanceKey elementInstanceKey, JobKey jobKey, JobLeaseToken jobLease) { using var client = CamundaClient.Create(); // Conversation turns are appended through the same history batch used at // creation time; per-item metrics describe the model call that produced them. await client.UpdateAgentInstanceAsync( agentInstanceKey, new AgentInstanceUpdateRequest { ElementInstanceKey = elementInstanceKey, JobKey = jobKey, JobLeaseToken = jobLease, Status = AgentInstanceUpdateStatusEnum.THINKING, History = new List { new AgentInstanceHistoryItem { HistoryItemId = HistoryItemId.AssumeExists("assistant-1"), LoopIteration = LoopIterationId.AssumeExists(1), Role = AgentInstanceHistoryRoleEnum.ASSISTANT, ProducedAt = DateTimeOffset.UtcNow, Content = new List { new AgentInstanceTextContent { Text = "How can I help you today?" }, }, Metrics = new AgentInstanceHistoryItemMetricsRequest { InputTokens = 150, OutputTokens = 50, DurationMs = 1_200, }, }, }, }); Console.WriteLine($"Updated agent instance: {agentInstanceKey}"); } ``` #### UpdateGlobalTaskListenerAsync(GlobalListenerId, UpdateGlobalTaskListenerRequest, CancellationToken) ```csharp public Task UpdateGlobalTaskListenerAsync(GlobalListenerId id, UpdateGlobalTaskListenerRequest body, CancellationToken ct = default) ``` Update global user task listener Updates a global user task listener. | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `id` | `GlobalListenerId` | | | `body` | `UpdateGlobalTaskListenerRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateGlobalTaskListenerExample(GlobalListenerId globalListenerId) { using var client = CamundaClient.Create(); var result = await client.UpdateGlobalTaskListenerAsync( globalListenerId, new UpdateGlobalTaskListenerRequest { EventTypes = new List { GlobalTaskListenerEventTypeEnum.Completing }, Type = "updated-task-listener", }); Console.WriteLine($"Updated listener: {result.Id}"); } ``` #### UpdateUserAsync(Username, UserUpdateRequest, CancellationToken) ```csharp public Task UpdateUserAsync(Username username, UserUpdateRequest body, CancellationToken ct = default) ``` Update user Updates a user. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `username` | `Username` | | | `body` | `UserUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateUserExample(Username username) { using var client = CamundaClient.Create(); await client.UpdateUserAsync( username, new UserUpdateRequest { Name = "Jane Smith", Email = "jsmith@example.com", }); } ``` ### Cluster #### GetBackpressureState() ```csharp public BackpressureState GetBackpressureState() ``` Current backpressure state snapshot. **Returns:** `BackpressureState` **Example** ```csharp public static void GetBackpressureStateExample() { using var client = CamundaClient.Create(); var state = client.GetBackpressureState(); Console.WriteLine($"Severity: {state.Severity}, Permits: {state.PermitsMax}"); } ``` #### GetAuthenticationAsync(CancellationToken) ```csharp public Task GetAuthenticationAsync(CancellationToken ct = default) ``` Get current user Retrieves the current authenticated user. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetAuthenticationExample() { using var client = CamundaClient.Create(); var result = await client.GetAuthenticationAsync(); Console.WriteLine($"Authenticated user: {result.Username}"); } ``` #### GetClusterTopologyAsync(CancellationToken) ```csharp public Task GetClusterTopologyAsync(CancellationToken ct = default) ``` Get the topology of the whole cluster Obtains the topology of the whole cluster, aggregated over all physical tenants. Cluster-level information is reported once; partition layout, replication and per-partition role, health and state are reported per physical tenant. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/topology` for the topology of a single physical tenant. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetClusterTopologyExample() { using var client = CamundaClient.Create(); // Returns the topology of the whole cluster aggregated over all physical // tenants. Requires cluster-admin credentials, not Orchestration Cluster // user credentials. Use GetTopologyAsync for single-tenant topology. var topology = await client.GetClusterTopologyAsync(); Console.WriteLine($"Cluster {topology.ClusterId}: {topology.ClusterSize} broker(s), gateway {topology.GatewayVersion}"); foreach (var tenant in topology.PhysicalTenants) { Console.WriteLine($" Tenant {tenant.PhysicalTenantId}: {tenant.PartitionsCount} partition(s), replication {tenant.ReplicationFactor}"); } } ``` #### GetLicenseAsync(CancellationToken) ```csharp public Task GetLicenseAsync(CancellationToken ct = default) ``` Get license status Obtains the status of the current Camunda license. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetLicenseExample() { using var client = CamundaClient.Create(); var result = await client.GetLicenseAsync(); Console.WriteLine($"License type: {result.LicenseType}"); } ``` #### GetTopologyAsync(CancellationToken) ```csharp public Task GetTopologyAsync(CancellationToken ct = default) ``` Get cluster topology Obtains the current topology of the cluster the gateway is part of. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetTopologyExample() { using var client = CamundaClient.Create(); var topology = await client.GetTopologyAsync(); Console.WriteLine($"Cluster size: {topology.ClusterSize}"); } ``` #### PinClockAsync(ClockPinRequest, CancellationToken) ```csharp public Task PinClockAsync(ClockPinRequest body, CancellationToken ct = default) ``` Pin internal clock (alpha) Set a precise, static time for the Zeebe engine's internal clock. When the clock is pinned, it remains at the specified time and does not advance. To change the time, the clock must be pinned again with a new timestamp. This endpoint is an alpha feature and may be subject to change in future releases. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `ClockPinRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task PinClockExample() { using var client = CamundaClient.Create(); await client.PinClockAsync(new ClockPinRequest { Timestamp = 1700000000000, }); } ``` #### ResetClockAsync(CancellationToken) ```csharp public Task ResetClockAsync(CancellationToken ct = default) ``` Reset internal clock (alpha) Resets the Zeebe engine's internal clock to the current system time, enabling it to tick in real-time. This operation is useful for returning the clock to normal behavior after it has been pinned to a specific time. This endpoint is an alpha feature and may be subject to change in future releases. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResetClockExample() { using var client = CamundaClient.Create(); await client.ResetClockAsync(); } ``` ### Resources #### DeployResourcesFromFilesAsync(string[], string?, CancellationToken) ```csharp public Task DeployResourcesFromFilesAsync(string[] resourceFilePaths, string? tenantId = null, CancellationToken ct = default) ``` Deploy resources from local filesystem paths. Reads the specified files, infers MIME types from their extensions, and calls `CamundaClient.CreateDeploymentAsync` with the loaded content. | Parameter | Type | Description | | ------------------- | ------------------- | ---------------------------------------------------------------------- | | `resourceFilePaths` | `String[]` | Absolute or relative file paths to BPMN, DMN, form, or resource files. | | `tenantId` | `String` | Optional tenant ID for multi-tenant deployments. | | `ct` | `CancellationToken` | Cancellation token. | **Returns:** `Task` — An `ExtendedDeploymentResponse` with typed access to deployed artifacts. **Example** ```csharp public static async Task DeployResourcesFromFilesExample() { using var client = CamundaClient.Create(); var result = await client.DeployResourcesFromFilesAsync( ["process.bpmn", "decision.dmn"]); Console.WriteLine($"Deployment key: {result.DeploymentKey}"); } ``` #### DeleteResourceAsync(ResourceKey, DeleteResourceRequest, CancellationToken) ```csharp public Task DeleteResourceAsync(ResourceKey resourceKey, DeleteResourceRequest body, CancellationToken ct = default) ``` Delete resource Deletes a deployed resource. This can be a process definition, decision requirements definition, or form definition deployed using the deploy resources endpoint. Specify the resource you want to delete in the `resourceKey` parameter. Once a resource has been deleted it cannot be recovered. If the resource needs to be available again, a new deployment of the resource is required. By default, only the resource itself is deleted from the runtime state. To also delete the historic data associated with a resource, set the `deleteHistory` flag in the request body to `true`. History deletion is supported for process definitions and decision requirements definitions; for other resource types (forms, generic resources) the flag is ignored and no history is deleted. The two supported types differ in how the history is removed. For a decision requirements definition the history is deleted asynchronously via a batch operation whose details are returned in the `batchOperation` field of the response. For a process definition that still exists in the runtime state, the definition first drains its running instances and its history is deleted asynchronously once the definition is fully removed cluster-wide; no batch operation is returned in the response. If the process definition has already been removed from the runtime state and the deletion is later re-triggered with `deleteHistory` set to `true`, a batch operation is created immediately and returned in the `batchOperation` field. | Parameter | Type | Description | | ------------- | ----------------------- | ----------- | | `resourceKey` | `ResourceKey` | | | `body` | `DeleteResourceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteResourceExample(ResourceKey resourceKey) { using var client = CamundaClient.Create(); await client.DeleteResourceAsync( resourceKey, new DeleteResourceRequest()); } ``` #### GetResourceAsync(ResourceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetResourceAsync(ResourceKey resourceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get resource Returns a deployed resource. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: | Parameter | Type | Description | | ------------- | ------------------------------------ | ----------- | | `resourceKey` | `ResourceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetResourceContentAsync(ResourceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetResourceContentAsync(ResourceKey resourceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get RPA resource content (deprecated) **Deprecated** — use `/resources/{resourceKey}/content/binary` instead, which supports all resource types and returns content as binary (octet-stream). Returns the content of a deployed RPA resource as JSON. :::info This endpoint only supports RPA resources. For generic resource content in binary format, use the `/resources/{resourceKey}/content/binary` endpoint. ::: | Parameter | Type | Description | | ------------- | ---------------------------- | ----------- | | `resourceKey` | `ResourceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetResourceContentBinaryAsync(ResourceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetResourceContentBinaryAsync(ResourceKey resourceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get resource content as binary Returns the content of a deployed resource in binary format (octet-stream). :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: | Parameter | Type | Description | | ------------- | ---------------------------- | ----------- | | `resourceKey` | `ResourceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetResourceContentBinaryExample(ResourceKey resourceKey) { using var client = CamundaClient.Create(); byte[] content = await client.GetResourceContentBinaryAsync(resourceKey); Console.WriteLine($"Binary content length: {content.Length} bytes"); } ``` #### SearchResourcesAsync(ResourceSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchResourcesAsync(ResourceSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search resources Search for deployed resources based on given criteria. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective search APIs. ::: | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `body` | `ResourceSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchResourcesExample() { using var client = CamundaClient.Create(); var result = await client.SearchResourcesAsync(new ResourceSearchQuery()); foreach (var resource in result.Items!) { Console.WriteLine($"Resource: {resource.ResourceName}"); } } ``` ### Process Instances #### SearchVariablesAsDtoAsync\(ProcessInstanceKey, ScopeKey?, TenantId?, int, CancellationToken) ```csharp public Task> SearchVariablesAsDtoAsync(ProcessInstanceKey processInstanceKey, ScopeKey? scopeKey = null, TenantId? tenantId = null, int pageSize = 100, CancellationToken ct = default) where T : class ``` Fetch the variables declared by a DTO type for a process instance, mapping them onto a strongly-typed result. The query is derived from the DTO's members (honouring `[JsonPropertyName]`): only the declared variable names are fetched via a `name $in [...]` filter, so memory is bounded by the DTO shape rather than the total number of variables on the process instance. Results are paged to exhaustion over the filtered set, collapsed by name, and parsed into a `VariableMap`. Access modes on the returned map: - Lenient — `VariableMap.Get` / `VariableMap.Get` tolerate absent variables. - Strict — `VariableMap.Validate` constructs the DTO and throws if a required member is absent. ```csharp public record OrderVars(string OrderId, decimal? Amount); var vars = await client.SearchVariablesAsDtoAsync(processInstanceKey); var amount = vars.Get("amount"); // lenient var typed = vars.Validate(); // strict: throws if OrderId missing ``` | Parameter | Type | Description | | -------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `processInstanceKey` | `ProcessInstanceKey` | The process instance whose variables to search. | | `scopeKey` | `Nullable` | Optional scope key to disambiguate variables that exist at multiple scopes. When omitted and a declared variable resolves to more than one scope, a `VariableScopeCollisionException` is thrown. | | `tenantId` | `Nullable` | Optional tenant ID filter. | | `pageSize` | `Int32` | The page size used while paging the filtered result set. | | `ct` | `CancellationToken` | Cancellation token. | **Returns:** `Task>` — A `VariableMap` over the declared variables. **Example** ```csharp public record OrderVariables(string OrderId, decimal Amount, string? Notes); public static async Task SearchVariablesAsDtoExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); // Search a process instance for exactly the variables declared on the DTO, // pages and all, and collapse them into a single typed object. var map = await client.SearchVariablesAsDtoAsync(processInstanceKey); // Read individual values lazily without materializing the whole DTO. if (map.Contains("amount")) { var amount = map.Get("amount"); Console.WriteLine($"Amount: {amount}"); } // Validate() enforces that every non-nullable member is present, // throwing VariableValidationException if a required variable is missing. OrderVariables order = map.Validate(); Console.WriteLine($"Order {order.OrderId}: {order.Amount}"); } ``` #### AssignProcessInstanceBusinessIdAsync(ProcessInstanceKey, ProcessInstanceBusinessIdAssignmentInstruction, CancellationToken) ```csharp public Task AssignProcessInstanceBusinessIdAsync(ProcessInstanceKey processInstanceKey, ProcessInstanceBusinessIdAssignmentInstruction body, CancellationToken ct = default) ``` Assign business id to process instance Assigns a business id to an already-running process instance that currently has none. The assignment is single and irreversible: only artifacts created after the assignment (for example future jobs, user tasks, decision instances, and message subscriptions) carry the business id, while existing artifacts are not retroactively enriched. Re-sending the same business id succeeds as a no-op. This endpoint is only useful while business id uniqueness enforcement is disabled; when it is enabled, the request is rejected with a 409 response. | Parameter | Type | Description | | -------------------- | ------------------------------------------------ | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `ProcessInstanceBusinessIdAssignmentInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task AssignProcessInstanceBusinessIdExample(ProcessInstanceKey processInstanceKey, BusinessId businessId) { using var client = CamundaClient.Create(); await client.AssignProcessInstanceBusinessIdAsync( processInstanceKey, new ProcessInstanceBusinessIdAssignmentInstruction { BusinessId = businessId, }); } ``` #### CancelProcessInstanceAsync(ProcessInstanceKey, CancelProcessInstanceRequest, CancellationToken) ```csharp public Task CancelProcessInstanceAsync(ProcessInstanceKey processInstanceKey, CancelProcessInstanceRequest body, CancellationToken ct = default) ``` Cancel process instance Cancels a running process instance. As a cancellation includes more than just the removal of the process instance resource, the cancellation resource must be posted. Cancellation can wait on listener-related processing; when that processing does not complete in time, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | -------------------- | ------------------------------ | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `CancelProcessInstanceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CancelProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); await client.CancelProcessInstanceAsync( processInstanceKey, new CancelProcessInstanceRequest()); } ``` #### CancelProcessInstancesBatchOperationAsync(ProcessInstanceCancellationBatchOperationRequest, CancellationToken) ```csharp public Task CancelProcessInstancesBatchOperationAsync(ProcessInstanceCancellationBatchOperationRequest body, CancellationToken ct = default) ``` Cancel process instances (batch) Cancels multiple active or suspended process instances. Only ACTIVE and SUSPENDED root instances can be cancelled. A state filter narrows the batch to the given states. Requesting any state other than ACTIVE or SUSPENDED through the `$eq` or `$in` operators is rejected. Other state operators (`$neq`, `$exists`, `$like`) are applied as given, and the batch remains limited to ACTIVE and SUSPENDED instances. Without a state filter, both ACTIVE and SUSPENDED instances are selected. Any given filter for parentProcessInstanceKey is ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | -------------------------------------------------- | ----------- | | `body` | `ProcessInstanceCancellationBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CancelProcessInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.CancelProcessInstancesBatchOperationAsync( new ProcessInstanceCancellationBatchOperationRequest()); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### CreateProcessInstanceAsync(ProcessInstanceCreationInstruction, CancellationToken) ```csharp public Task CreateProcessInstanceAsync(ProcessInstanceCreationInstruction body, CancellationToken ct = default) ``` Create process instance Creates and starts an instance of the specified process. The process definition to use to create the instance can be specified either using its unique key (as returned by Deploy resources), or using the BPMN process id and a version. If only the process definition id is given, the latest ACTIVE version is used. If no ACTIVE version exists, the request is rejected as not found. Waits for the completion of the process instance before returning a result when awaitCompletion is enabled. | Parameter | Type | Description | | --------- | ------------------------------------ | ----------- | | `body` | `ProcessInstanceCreationInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateProcessInstanceByIdExample(ProcessDefinitionId processDefinitionId) { using var client = CamundaClient.Create(); var result = await client.CreateProcessInstanceAsync(new ProcessInstanceCreationInstructionById { ProcessDefinitionId = processDefinitionId, }); Console.WriteLine($"Process instance key: {result.ProcessInstanceKey}"); } public static async Task CreateProcessInstanceByKeyExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.CreateProcessInstanceAsync(new ProcessInstanceCreationInstructionByKey { ProcessDefinitionKey = processDefinitionKey, }); Console.WriteLine($"Process instance key: {result.ProcessInstanceKey}"); } ``` #### DeleteProcessInstanceAsync(ProcessInstanceKey, DeleteProcessInstanceRequest, CancellationToken) ```csharp public Task DeleteProcessInstanceAsync(ProcessInstanceKey processInstanceKey, DeleteProcessInstanceRequest body, CancellationToken ct = default) ``` Delete process instance Deletes a process instance. Only instances that are completed or terminated can be deleted. | Parameter | Type | Description | | -------------------- | ------------------------------ | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `DeleteProcessInstanceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); await client.DeleteProcessInstanceAsync( processInstanceKey, new DeleteProcessInstanceRequest()); } ``` #### DeleteProcessInstancesBatchOperationAsync(ProcessInstanceDeletionBatchOperationRequest, CancellationToken) ```csharp public Task DeleteProcessInstancesBatchOperationAsync(ProcessInstanceDeletionBatchOperationRequest body, CancellationToken ct = default) ``` Delete process instances (batch) Delete multiple process instances. This will delete the historic data from secondary storage. Only process instances in a final state (COMPLETED or TERMINATED) can be deleted. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ---------------------------------------------- | ----------- | | `body` | `ProcessInstanceDeletionBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteProcessInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.DeleteProcessInstancesBatchOperationAsync( new ProcessInstanceDeletionBatchOperationRequest()); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### GetProcessInstanceAsync(ProcessInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceAsync(ProcessInstanceKey processInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process instance Get the process instance by the process instance key. | Parameter | Type | Description | | -------------------- | ------------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceAsync(processInstanceKey); Console.WriteLine($"Process instance: {result.ProcessDefinitionId}"); } ``` #### GetProcessInstanceCallHierarchyAsync(ProcessInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceCallHierarchyAsync(ProcessInstanceKey processInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get call hierarchy Returns the call hierarchy for a given process instance, showing its ancestry up to the root instance. | Parameter | Type | Description | | -------------------- | ---------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceCallHierarchyExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceCallHierarchyAsync( processInstanceKey); Console.WriteLine($"Call hierarchy: {result}"); } ``` #### GetProcessInstanceSequenceFlowsAsync(ProcessInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceSequenceFlowsAsync(ProcessInstanceKey processInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get sequence flows Get sequence flows taken by the process instance. | Parameter | Type | Description | | -------------------- | ------------------------------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceSequenceFlowsExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceSequenceFlowsAsync( processInstanceKey); foreach (var flow in result.Items) { Console.WriteLine($"Sequence flow: {flow}"); } } ``` #### GetProcessInstanceStatisticsAsync(ProcessInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceStatisticsAsync(ProcessInstanceKey processInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get element instance statistics Get statistics about elements by the process instance key. | Parameter | Type | Description | | -------------------- | ----------------------------------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceStatisticsExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceStatisticsAsync( processInstanceKey); foreach (var stat in result.Items) { Console.WriteLine($"Element: {stat.ElementId}"); } } ``` #### GetProcessInstanceStatisticsByDefinitionAsync(IncidentProcessInstanceStatisticsByDefinitionQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceStatisticsByDefinitionAsync(IncidentProcessInstanceStatisticsByDefinitionQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process instance statistics by definition Returns statistics for active process instances with incidents, grouped by process definition. The result set is scoped to a specific incident error hash code, which must be provided as a filter in the request body. | Parameter | Type | Description | | ------------- | ------------------------------------------------------------------------------ | ----------- | | `body` | `IncidentProcessInstanceStatisticsByDefinitionQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceStatisticsByDefinitionExample() { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceStatisticsByDefinitionAsync( new IncidentProcessInstanceStatisticsByDefinitionQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Definition: {stat.ProcessDefinitionKey}"); } } ``` #### GetProcessInstanceStatisticsByErrorAsync(IncidentProcessInstanceStatisticsByErrorQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceStatisticsByErrorAsync(IncidentProcessInstanceStatisticsByErrorQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process instance statistics by error Returns statistics for active process instances that currently have active incidents, grouped by incident error hash code. | Parameter | Type | Description | | ------------- | ------------------------------------------------------------------------- | ----------- | | `body` | `IncidentProcessInstanceStatisticsByErrorQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceStatisticsByErrorExample() { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceStatisticsByErrorAsync( new IncidentProcessInstanceStatisticsByErrorQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Error: {stat.ErrorMessage}"); } } ``` #### GetProcessInstanceWaitStateStatisticsAsync(ProcessInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessInstanceWaitStateStatisticsAsync(ProcessInstanceKey processInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get wait state statistics Get statistics about waiting element instances by the process instance key, grouped by element id. | Parameter | Type | Description | | -------------------- | ------------------------------------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessInstanceWaitStateStatisticsExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessInstanceWaitStateStatisticsAsync( processInstanceKey); foreach (var stat in result.Items) { Console.WriteLine($"Element: {stat.ElementId}, waiting: {stat.WaitingCount}"); } } ``` #### MigrateProcessInstanceAsync(ProcessInstanceKey, ProcessInstanceMigrationInstruction, CancellationToken) ```csharp public Task MigrateProcessInstanceAsync(ProcessInstanceKey processInstanceKey, ProcessInstanceMigrationInstruction body, CancellationToken ct = default) ``` Migrate process instance Migrates a process instance to a new process definition. This request can contain multiple mapping instructions to define mapping between the active process instance's elements and target process definition elements. Use this to upgrade a process instance to a new version of a process or to a different process definition, e.g. to keep your running instances up-to-date with the latest process improvements. | Parameter | Type | Description | | -------------------- | ------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `ProcessInstanceMigrationInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task MigrateProcessInstanceExample(ProcessInstanceKey processInstanceKey, ProcessDefinitionKey targetProcessDefinitionKey) { using var client = CamundaClient.Create(); await client.MigrateProcessInstanceAsync( processInstanceKey, new ProcessInstanceMigrationInstruction { TargetProcessDefinitionKey = targetProcessDefinitionKey, }); } ``` #### MigrateProcessInstancesBatchOperationAsync(ProcessInstanceMigrationBatchOperationRequest, CancellationToken) ```csharp public Task MigrateProcessInstancesBatchOperationAsync(ProcessInstanceMigrationBatchOperationRequest body, CancellationToken ct = default) ``` Migrate process instances (batch) Migrate multiple process instances. Since only process instances with ACTIVE state can be migrated, any given filters for state are ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ----------------------------------------------- | ----------- | | `body` | `ProcessInstanceMigrationBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task MigrateProcessInstancesBatchOperationExample(ProcessDefinitionKey targetProcessDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.MigrateProcessInstancesBatchOperationAsync( new ProcessInstanceMigrationBatchOperationRequest { Filter = new ProcessInstanceFilter(), MigrationPlan = new ProcessInstanceMigrationBatchOperationPlan { TargetProcessDefinitionKey = targetProcessDefinitionKey, }, }); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### ModifyProcessInstanceAsync(ProcessInstanceKey, ProcessInstanceModificationInstruction, CancellationToken) ```csharp public Task ModifyProcessInstanceAsync(ProcessInstanceKey processInstanceKey, ProcessInstanceModificationInstruction body, CancellationToken ct = default) ``` Modify process instance Modifies a running process instance. This request can contain multiple instructions to activate an element of the process or to terminate an active instance of an element. Use this to repair a process instance that is stuck on an element or took an unintended path. For example, because an external system is not available or doesn't respond as expected. | Parameter | Type | Description | | -------------------- | ---------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `ProcessInstanceModificationInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ModifyProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); await client.ModifyProcessInstanceAsync( processInstanceKey, new ProcessInstanceModificationInstruction()); } ``` #### ModifyProcessInstancesBatchOperationAsync(ProcessInstanceModificationBatchOperationRequest, CancellationToken) ```csharp public Task ModifyProcessInstancesBatchOperationAsync(ProcessInstanceModificationBatchOperationRequest body, CancellationToken ct = default) ``` Modify process instances (batch) Modify multiple process instances. Since only process instances with ACTIVE state can be modified, any given filters for state are ignored and overridden during this batch operation. In contrast to single modification operation, it is not possible to add variable instructions or modify by element key. It is only possible to use the element id of the source and target. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | -------------------------------------------------- | ----------- | | `body` | `ProcessInstanceModificationBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ModifyProcessInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.ModifyProcessInstancesBatchOperationAsync( new ProcessInstanceModificationBatchOperationRequest()); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### ResolveIncidentsBatchOperationAsync(ProcessInstanceIncidentResolutionBatchOperationRequest, CancellationToken) ```csharp public Task ResolveIncidentsBatchOperationAsync(ProcessInstanceIncidentResolutionBatchOperationRequest body, CancellationToken ct = default) ``` Resolve related incidents (batch) Resolves multiple instances of process instances. Since only process instances with ACTIVE state can have unresolved incidents, any given filters for state are ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | -------------------------------------------------------- | ----------- | | `body` | `ProcessInstanceIncidentResolutionBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResolveIncidentsBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.ResolveIncidentsBatchOperationAsync( new ProcessInstanceIncidentResolutionBatchOperationRequest()); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### ResolveProcessInstanceIncidentsAsync(ProcessInstanceKey, CancellationToken) ```csharp public Task ResolveProcessInstanceIncidentsAsync(ProcessInstanceKey processInstanceKey, CancellationToken ct = default) ``` Resolve related incidents Creates a batch operation to resolve multiple incidents of a process instance. | Parameter | Type | Description | | -------------------- | -------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResolveProcessInstanceIncidentsExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.ResolveProcessInstanceIncidentsAsync( processInstanceKey); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### ResumeProcessInstanceAsync(ProcessInstanceKey, ResumeProcessInstanceRequest, CancellationToken) ```csharp public Task ResumeProcessInstanceAsync(ProcessInstanceKey processInstanceKey, ResumeProcessInstanceRequest body, CancellationToken ct = default) ``` Resume process instance Resumes a suspended process instance, returning it to the ACTIVE state and continuing processing. Only process instances in the SUSPENDED state can be resumed. A child process instance can be resumed independently of its parent or root process instance; resumption does not cascade to or from related instances. | Parameter | Type | Description | | -------------------- | ------------------------------ | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `ResumeProcessInstanceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResumeProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); await client.ResumeProcessInstanceAsync( processInstanceKey, new ResumeProcessInstanceRequest()); } ``` #### ResumeProcessInstancesBatchOperationAsync(ProcessInstanceResumptionBatchOperationRequest, CancellationToken) ```csharp public Task ResumeProcessInstancesBatchOperationAsync(ProcessInstanceResumptionBatchOperationRequest body, CancellationToken ct = default) ``` Resume process instances (batch) Resumes multiple suspended process instances. Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only SUSPENDED process instances can be resumed and resumption does not cascade between parent and child instances, so child instances are resumed independently of their parent or root instance. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ------------------------------------------------ | ----------- | | `body` | `ProcessInstanceResumptionBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResumeProcessInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.ResumeProcessInstancesBatchOperationAsync( new ProcessInstanceResumptionBatchOperationRequest { Filter = new ProcessInstanceFilter(), }); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### SearchProcessInstanceIncidentsAsync(ProcessInstanceKey, IncidentSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchProcessInstanceIncidentsAsync(ProcessInstanceKey processInstanceKey, IncidentSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search related incidents Search for incidents caused by the process instance or any of its called process or decision instances. Although the `processInstanceKey` is provided as a path parameter to indicate the root process instance, you may also include a `processInstanceKey` within the filter object to narrow results to specific child process instances. This is useful, for example, if you want to isolate incidents associated with subprocesses or called processes under the root instance while excluding incidents directly tied to the root. | Parameter | Type | Description | | -------------------- | ----------------------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `IncidentSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchProcessInstanceIncidentsExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.SearchProcessInstanceIncidentsAsync( processInstanceKey, new IncidentSearchQuery()); foreach (var incident in result.Items) { Console.WriteLine($"Incident: {incident.IncidentKey}"); } } ``` #### SearchProcessInstancesAsync(ProcessInstanceSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchProcessInstancesAsync(ProcessInstanceSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search process instances Search for process instances based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------------------ | ----------- | | `body` | `ProcessInstanceSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchProcessInstancesExample() { using var client = CamundaClient.Create(); var result = await client.SearchProcessInstancesAsync(new ProcessInstanceSearchQuery()); foreach (var instance in result.Items) { Console.WriteLine($"Process instance: {instance.ProcessInstanceKey}"); } } ``` #### SuspendProcessInstanceAsync(ProcessInstanceKey, SuspendProcessInstanceRequest, CancellationToken) ```csharp public Task SuspendProcessInstanceAsync(ProcessInstanceKey processInstanceKey, SuspendProcessInstanceRequest body, CancellationToken ct = default) ``` Suspend process instance Suspends a running process instance, pausing further processing until it is resumed. Only process instances in the ACTIVE state can be suspended. A child process instance can be suspended independently of its parent or root process instance; suspension does not cascade to or from related instances. | Parameter | Type | Description | | -------------------- | ------------------------------- | ----------- | | `processInstanceKey` | `ProcessInstanceKey` | | | `body` | `SuspendProcessInstanceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SuspendProcessInstanceExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); await client.SuspendProcessInstanceAsync( processInstanceKey, new SuspendProcessInstanceRequest()); } ``` #### SuspendProcessInstancesBatchOperationAsync(ProcessInstanceSuspensionBatchOperationRequest, CancellationToken) ```csharp public Task SuspendProcessInstancesBatchOperationAsync(ProcessInstanceSuspensionBatchOperationRequest body, CancellationToken ct = default) ``` Suspend process instances (batch) Suspends multiple running process instances. Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only ACTIVE process instances can be suspended and suspension does not cascade between parent and child instances, so child instances are suspended independently of their parent or root instance. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ------------------------------------------------ | ----------- | | `body` | `ProcessInstanceSuspensionBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SuspendProcessInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.SuspendProcessInstancesBatchOperationAsync( new ProcessInstanceSuspensionBatchOperationRequest { Filter = new ProcessInstanceFilter(), }); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` ### Jobs #### CreateJobWorker(JobWorkerConfig, JobHandler) ```csharp public JobWorker CreateJobWorker(JobWorkerConfig config, JobHandler handler) ``` Create a job worker that polls for and processes jobs of the specified type. The handler receives an `ActivatedJob` and returns variables to auto-complete. Throw `BpmnErrorException` for BPMN errors, `JobFailureException` for explicit failures, or any other exception to auto-fail with `retries - 1`. | Parameter | Type | Description | | --------- | ----------------- | ------------------------------------------------------------------------------------- | | `config` | `JobWorkerConfig` | Worker configuration (job type, timeout, concurrency). | | `handler` | `JobHandler` | Async handler that processes each job. Return output variables (or null) to complete. | **Returns:** `JobWorker` — The running `JobWorker` instance. **Example** ```csharp public static void CreateJobWorkerExample() { using var client = CamundaClient.Create(); var worker = client.CreateJobWorker( new JobWorkerConfig { JobType = "payment-service" }, async (job, ct) => { Console.WriteLine($"Processing job {job.JobKey}"); return new { Success = true }; }); } ``` #### CreateJobWorker(JobWorkerConfig, Func\) ```csharp public JobWorker CreateJobWorker(JobWorkerConfig config, Func handler) ``` Create a job worker with a handler that doesn't return output variables. The job is auto-completed with no variables on success. | Parameter | Type | Description | | --------- | --------------------------------------------- | ----------- | | `config` | `JobWorkerConfig` | | | `handler` | `Func` | | **Returns:** `JobWorker` **Example** ```csharp public static void CreateJobWorkerExample() { using var client = CamundaClient.Create(); var worker = client.CreateJobWorker( new JobWorkerConfig { JobType = "payment-service" }, async (job, ct) => { Console.WriteLine($"Processing job {job.JobKey}"); return new { Success = true }; }); } ``` #### ActivateJobsAsync(JobActivationRequest, CancellationToken) ```csharp public Task ActivateJobsAsync(JobActivationRequest body, CancellationToken ct = default) ``` Activate jobs Iterate through all known partitions and activate jobs up to the requested maximum. | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `body` | `JobActivationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ActivateJobsExample() { using var client = CamundaClient.Create(); var result = await client.ActivateJobsAsync(new JobActivationRequest { Type = "my-job-type", MaxJobsToActivate = 10, Timeout = 300000, Worker = "my-worker", }); foreach (var job in result.Jobs) { Console.WriteLine($"Job: {job.JobKey}"); } } ``` #### CompleteJobAsync(JobKey, JobCompletionRequest, CancellationToken) ```csharp public Task CompleteJobAsync(JobKey jobKey, JobCompletionRequest body, CancellationToken ct = default) ``` Complete job Complete a job with the given payload, which allows completing the associated service task. | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `jobKey` | `JobKey` | | | `body` | `JobCompletionRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CompleteJobExample(JobKey jobKey) { using var client = CamundaClient.Create(); await client.CompleteJobAsync( jobKey, new JobCompletionRequest()); } ``` #### FailJobAsync(JobKey, JobFailRequest, CancellationToken) ```csharp public Task FailJobAsync(JobKey jobKey, JobFailRequest body, CancellationToken ct = default) ``` Fail job Mark the job as failed. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `jobKey` | `JobKey` | | | `body` | `JobFailRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task FailJobExample(JobKey jobKey) { using var client = CamundaClient.Create(); await client.FailJobAsync( jobKey, new JobFailRequest { Retries = 3, RetryBackOff = 5000, ErrorMessage = "Something went wrong", }); } ``` #### GetGlobalJobStatisticsAsync(DateTimeOffset, DateTimeOffset, string?, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetGlobalJobStatisticsAsync(DateTimeOffset from, DateTimeOffset to, string? jobType = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Global job statistics Returns global aggregated counts for jobs. Filter by the creation time window (required) and optionally by jobType. | Parameter | Type | Description | | ------------- | ---------------------------------------------------- | ----------- | | `from` | `DateTimeOffset` | | | `to` | `DateTimeOffset` | | | `jobType` | `String` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetGlobalJobStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetGlobalJobStatisticsAsync( from: new DateTimeOffset(2024, 1, 1, 0, 0, 0, TimeSpan.Zero), to: new DateTimeOffset(2024, 12, 31, 23, 59, 59, TimeSpan.Zero)); Console.WriteLine($"Global job stats: {result}"); } ``` #### GetJobErrorStatisticsAsync(JobErrorStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetJobErrorStatisticsAsync(JobErrorStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get error metrics for a job type Returns aggregated metrics per error for the given jobType. | Parameter | Type | Description | | ------------- | --------------------------------------------------- | ----------- | | `body` | `JobErrorStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetJobErrorStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetJobErrorStatisticsAsync( new JobErrorStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Error: {stat.ErrorCode}"); } } ``` #### GetJobTimeSeriesStatisticsAsync(JobTimeSeriesStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetJobTimeSeriesStatisticsAsync(JobTimeSeriesStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get time-series metrics for a job type Returns a list of time-bucketed metrics ordered ascending by time. The `from` and `to` fields select the time window of interest. Each item in the response corresponds to one time bucket of the requested resolution. | Parameter | Type | Description | | ------------- | -------------------------------------------------------- | ----------- | | `body` | `JobTimeSeriesStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetJobTimeSeriesStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetJobTimeSeriesStatisticsAsync( new JobTimeSeriesStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Time series: {stat}"); } } ``` #### GetJobTypeStatisticsAsync(JobTypeStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetJobTypeStatisticsAsync(JobTypeStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get job statistics by type Get statistics about jobs, grouped by job type. | Parameter | Type | Description | | ------------- | -------------------------------------------------- | ----------- | | `body` | `JobTypeStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetJobTypeStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetJobTypeStatisticsAsync( new JobTypeStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Job type: {stat.JobType}"); } } ``` #### GetJobWorkerStatisticsAsync(JobWorkerStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetJobWorkerStatisticsAsync(JobWorkerStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get job statistics by worker Get statistics about jobs, grouped by worker, for a given job type. | Parameter | Type | Description | | ------------- | ---------------------------------------------------- | ----------- | | `body` | `JobWorkerStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetJobWorkerStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetJobWorkerStatisticsAsync( new JobWorkerStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Worker: {stat.Worker}"); } } ``` #### SearchJobsAsync(JobSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchJobsAsync(JobSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search jobs Search for jobs based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `body` | `JobSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchJobsExample() { using var client = CamundaClient.Create(); var result = await client.SearchJobsAsync(new JobSearchQuery()); foreach (var job in result.Items) { Console.WriteLine($"Job: {job.JobKey}"); } } ``` #### ThrowJobErrorAsync(JobKey, JobErrorRequest, CancellationToken) ```csharp public Task ThrowJobErrorAsync(JobKey jobKey, JobErrorRequest body, CancellationToken ct = default) ``` Throw error for job Reports a business error (i.e. non-technical) that occurs while processing a job. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `jobKey` | `JobKey` | | | `body` | `JobErrorRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ThrowJobErrorExample(JobKey jobKey) { using var client = CamundaClient.Create(); await client.ThrowJobErrorAsync( jobKey, new JobErrorRequest { ErrorCode = "VALIDATION_ERROR", ErrorMessage = "Input validation failed", }); } ``` #### UpdateJobAsync(JobKey, JobUpdateRequest, CancellationToken) ```csharp public Task UpdateJobAsync(JobKey jobKey, JobUpdateRequest body, CancellationToken ct = default) ``` Update job Update a job with the given key. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `jobKey` | `JobKey` | | | `body` | `JobUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateJobExample(JobKey jobKey) { using var client = CamundaClient.Create(); await client.UpdateJobAsync( jobKey, new JobUpdateRequest { Changeset = new JobChangeset { Retries = 3 }, }); } ``` #### UpdateJobsBatchOperationAsync(JobBatchUpdateRequest, CancellationToken) ```csharp public Task UpdateJobsBatchOperationAsync(JobBatchUpdateRequest body, CancellationToken ct = default) ``` Update jobs (batch) Creates a batch operation to update jobs matching the given filter. At least one changeset field must be non-null. This is done asynchronously; the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ----------------------- | ----------- | | `body` | `JobBatchUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateJobsBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.UpdateJobsBatchOperationAsync( new JobBatchUpdateRequest { Filter = new JobFilter { Type = new StringFilterProperty { Eq = "my-job-type" }, }, Changeset = new JobChangeset { Retries = 3 }, }); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` ### Job Workers #### RunWorkersAsync(TimeSpan?, CancellationToken) ```csharp public Task RunWorkersAsync(TimeSpan? gracePeriod = null, CancellationToken ct = default) ``` Block until cancellation is requested, keeping all registered workers alive. This is the typical entry point for worker-only applications. When the token is cancelled, all workers are stopped gracefully. | Parameter | Type | Description | | ------------- | -------------------- | ------------------------------------------------------------------------------- | | `gracePeriod` | `Nullable` | Time to wait for in-flight jobs to finish during shutdown. Default: 10 seconds. | | `ct` | `CancellationToken` | Cancellation token that signals shutdown. | **Returns:** `Task` **Example** ```csharp public static async Task RunWorkersExample(CancellationToken ct) { using var client = CamundaClient.Create(); client.CreateJobWorker( new JobWorkerConfig { JobType = "payment-service" }, async (job, jobCt) => { Console.WriteLine($"Processing job {job.JobKey}"); return null; }); await client.RunWorkersAsync(gracePeriod: TimeSpan.FromSeconds(10), ct); } ``` #### StopAllWorkersAsync(TimeSpan?) ```csharp public Task StopAllWorkersAsync(TimeSpan? gracePeriod = null) ``` Stop all registered workers and wait for in-flight jobs to drain. | Parameter | Type | Description | | ------------- | -------------------- | ----------- | | `gracePeriod` | `Nullable` | | **Returns:** `Task` **Example** ```csharp public static async Task StopAllWorkersExample() { using var client = CamundaClient.Create(); client.CreateJobWorker( new JobWorkerConfig { JobType = "payment-service" }, async (job, ct) => { Console.WriteLine($"Processing job {job.JobKey}"); return null; }); await client.StopAllWorkersAsync(gracePeriod: TimeSpan.FromSeconds(5)); } ``` #### GetWorkers() ```csharp public IReadOnlyList GetWorkers() ``` Returns a snapshot of all registered workers. **Returns:** `IReadOnlyList` **Example** ```csharp public static void GetWorkersExample() { using var client = CamundaClient.Create(); client.CreateJobWorker( new JobWorkerConfig { JobType = "payment-service" }, async (job, ct) => { Console.WriteLine($"Processing job {job.JobKey}"); return null; }); var workers = client.GetWorkers(); foreach (var worker in workers) { Console.WriteLine($"Worker: {worker.Name}, Active: {worker.ActiveJobs}"); } } ``` ### Elements #### ActivateAdHocSubProcessActivitiesAsync(ElementInstanceKey, AdHocSubProcessActivateActivitiesInstruction, CancellationToken) ```csharp public Task ActivateAdHocSubProcessActivitiesAsync(ElementInstanceKey adHocSubProcessInstanceKey, AdHocSubProcessActivateActivitiesInstruction body, CancellationToken ct = default) ``` Activate activities within an ad-hoc sub-process Activates selected activities within an ad-hoc sub-process identified by element ID. The provided element IDs must exist within the ad-hoc sub-process instance identified by the provided adHocSubProcessInstanceKey. | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------- | ----------- | | `adHocSubProcessInstanceKey` | `ElementInstanceKey` | | | `body` | `AdHocSubProcessActivateActivitiesInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ActivateAdHocSubProcessActivitiesExample(ElementInstanceKey elementInstanceKey) { using var client = CamundaClient.Create(); await client.ActivateAdHocSubProcessActivitiesAsync( elementInstanceKey, new AdHocSubProcessActivateActivitiesInstruction()); } ``` #### GetElementInstanceAsync(ElementInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetElementInstanceAsync(ElementInstanceKey elementInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get element instance Returns element instance as JSON. | Parameter | Type | Description | | -------------------- | ------------------------------------------- | ----------- | | `elementInstanceKey` | `ElementInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetElementInstanceExample(ElementInstanceKey elementInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetElementInstanceAsync( elementInstanceKey); Console.WriteLine($"Element: {result.ElementId}"); } ``` #### SearchElementInstanceWaitStatesAsync(ElementInstanceWaitStateQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchElementInstanceWaitStatesAsync(ElementInstanceWaitStateQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search element instance wait states Returns the wait states for element instances matching the given filter. | Parameter | Type | Description | | ------------- | --------------------------------------------------------- | ----------- | | `body` | `ElementInstanceWaitStateQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchElementInstanceWaitStatesExample(ProcessInstanceKey processInstanceKey) { using var client = CamundaClient.Create(); var result = await client.SearchElementInstanceWaitStatesAsync( new ElementInstanceWaitStateQuery { Filter = new ElementInstanceWaitStateFilter { ProcessInstanceKey = new ProcessInstanceKeyFilterProperty { Eq = processInstanceKey, }, }, }); foreach (var waitState in result.Items) { var details = waitState.Details switch { JobWaitStateDetails job => $"waiting on job '{job.JobType}'", MessageWaitStateDetails message => $"waiting for message '{message.MessageName}'", _ => "waiting", }; Console.WriteLine($"{waitState.ElementId}: {details}"); } } ``` #### SearchElementInstancesAsync(ElementInstanceSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchElementInstancesAsync(ElementInstanceSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search element instances Search for element instances based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------------------ | ----------- | | `body` | `ElementInstanceSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchElementInstancesExample() { using var client = CamundaClient.Create(); var result = await client.SearchElementInstancesAsync( new ElementInstanceSearchQuery()); foreach (var ei in result.Items) { Console.WriteLine($"Element instance: {ei.ElementInstanceKey}"); } } ``` ### Groups #### AssignClientToGroupAsync(GroupId, ClientId, CancellationToken) ```csharp public Task AssignClientToGroupAsync(GroupId groupId, ClientId clientId, CancellationToken ct = default) ``` Assign a client to a group Assigns a client to a group, making it a member of the group. Members of the group inherit the group authorizations, roles, and tenant assignments. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignMappingRuleToGroupAsync(GroupId, MappingRuleId, CancellationToken) ```csharp public Task AssignMappingRuleToGroupAsync(GroupId groupId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Assign a mapping rule to a group Assigns a mapping rule to a group. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignUserToGroupAsync(GroupId, Username, CancellationToken) ```csharp public Task AssignUserToGroupAsync(GroupId groupId, Username username, CancellationToken ct = default) ``` Assign a user to a group Assigns a user to a group, making the user a member of the group. Group members inherit the group authorizations, roles, and tenant assignments. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### CreateGroupAsync(GroupCreateRequest, CancellationToken) ```csharp public Task CreateGroupAsync(GroupCreateRequest body, CancellationToken ct = default) ``` Create group Create a new group. The supplied `groupId` is validated against `^[a-zA-Z0-9_~@.+-]+$` (max 256 characters) by `IdentifierValidator.validateId` in the runtime. This strict validation applies wherever the Groups API is available: in OIDC deployments that set `camunda.security.authentication.oidc.groupsClaim` the Groups API (including this endpoint) is disabled entirely, so group CRUD never sees externally-minted IdP IDs. The BYOG relaxation only loosens validation when a group is referenced _as a member_ of a role or tenant (`assignRoleToGroup`, `assignGroupToTenant`); group CRUD itself always uses the strict default-id regex. The constraint is not advertised on the `GroupId` schema so that the same schema can be reused at member-reference sites without falsely rejecting externally-minted IdP group IDs there. | Parameter | Type | Description | | --------- | -------------------- | ----------- | | `body` | `GroupCreateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateGroupExample(GroupId groupId) { using var client = CamundaClient.Create(); var result = await client.CreateGroupAsync(new GroupCreateRequest { GroupId = groupId, Name = "Engineering", }); Console.WriteLine($"Group key: {result.GroupId}"); } ``` #### DeleteGroupAsync(GroupId, CancellationToken) ```csharp public Task DeleteGroupAsync(GroupId groupId, CancellationToken ct = default) ``` Delete group Deletes the group with the given ID. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetGroupAsync(GroupId, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetGroupAsync(GroupId groupId, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get group Get a group by its ID. | Parameter | Type | Description | | ------------- | --------------------------------- | ----------- | | `groupId` | `GroupId` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchClientsForGroupAsync(GroupId, GroupClientSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchClientsForGroupAsync(GroupId groupId, GroupClientSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search group clients Search clients assigned to a group. | Parameter | Type | Description | | ------------- | --------------------------------------------- | ----------- | | `groupId` | `GroupId` | | | `body` | `GroupClientSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchGroupsAsync(GroupSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchGroupsAsync(GroupSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search groups Search for groups based on given criteria. | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `body` | `GroupSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchGroupsExample() { using var client = CamundaClient.Create(); var result = await client.SearchGroupsAsync(new GroupSearchQueryRequest()); foreach (var group in result.Items) { Console.WriteLine($"Group: {group.Name}"); } } ``` #### SearchMappingRulesForGroupAsync(GroupId, MappingRuleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchMappingRulesForGroupAsync(GroupId groupId, MappingRuleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search group mapping rules Search mapping rules assigned to a group. | Parameter | Type | Description | | ------------- | -------------------------------------------------- | ----------- | | `groupId` | `GroupId` | | | `body` | `MappingRuleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchUsersForGroupAsync(GroupId, GroupUserSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUsersForGroupAsync(GroupId groupId, GroupUserSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search group users Search users assigned to a group. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `groupId` | `GroupId` | | | `body` | `GroupUserSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignClientFromGroupAsync(GroupId, ClientId, CancellationToken) ```csharp public Task UnassignClientFromGroupAsync(GroupId groupId, ClientId clientId, CancellationToken ct = default) ``` Unassign a client from a group Unassigns a client from a group. The client is removed as a group member, with associated authorizations, roles, and tenant assignments no longer applied. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignMappingRuleFromGroupAsync(GroupId, MappingRuleId, CancellationToken) ```csharp public Task UnassignMappingRuleFromGroupAsync(GroupId groupId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Unassign a mapping rule from a group Unassigns a mapping rule from a group. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignUserFromGroupAsync(GroupId, Username, CancellationToken) ```csharp public Task UnassignUserFromGroupAsync(GroupId groupId, Username username, CancellationToken ct = default) ``` Unassign a user from a group Unassigns a user from a group. The user is removed as a group member, with associated authorizations, roles, and tenant assignments no longer applied. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `groupId` | `GroupId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateGroupAsync(GroupId, GroupUpdateRequest, CancellationToken) ```csharp public Task UpdateGroupAsync(GroupId groupId, GroupUpdateRequest body, CancellationToken ct = default) ``` Update group Update a group with the given ID. | Parameter | Type | Description | | --------- | -------------------- | ----------- | | `groupId` | `GroupId` | | | `body` | `GroupUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` ### Tenants #### AssignClientToTenantAsync(TenantId, ClientId, CancellationToken) ```csharp public Task AssignClientToTenantAsync(TenantId tenantId, ClientId clientId, CancellationToken ct = default) ``` Assign a client to a tenant Assign the client to the specified tenant. The client can then access tenant data and perform authorized actions. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignGroupToTenantAsync(TenantId, GroupId, CancellationToken) ```csharp public Task AssignGroupToTenantAsync(TenantId tenantId, GroupId groupId, CancellationToken ct = default) ``` Assign a group to a tenant Assigns a group to a specified tenant. Group members (users, clients) can then access tenant data and perform authorized actions. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `groupId` | `GroupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignMappingRuleToTenantAsync(TenantId, MappingRuleId, CancellationToken) ```csharp public Task AssignMappingRuleToTenantAsync(TenantId tenantId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Assign a mapping rule to a tenant Assign a single mapping rule to a specified tenant. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignRoleToTenantAsync(TenantId, RoleId, CancellationToken) ```csharp public Task AssignRoleToTenantAsync(TenantId tenantId, RoleId roleId, CancellationToken ct = default) ``` Assign a role to a tenant Assigns a role to a specified tenant. Users, Clients or Groups, that have the role assigned, will get access to the tenant's data and can perform actions according to their authorizations. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `roleId` | `RoleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignUserToTenantAsync(TenantId, Username, CancellationToken) ```csharp public Task AssignUserToTenantAsync(TenantId tenantId, Username username, CancellationToken ct = default) ``` Assign a user to a tenant Assign a single user to a specified tenant. The user can then access tenant data and perform authorized actions. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task AssignUserToTenantExample(TenantId tenantId, Username username) { using var client = CamundaClient.Create(); await client.AssignUserToTenantAsync( tenantId, username); } ``` #### CreateTenantAsync(TenantCreateRequest, CancellationToken) ```csharp public Task CreateTenantAsync(TenantCreateRequest body, CancellationToken ct = default) ``` Create tenant Creates a new tenant. | Parameter | Type | Description | | --------- | --------------------- | ----------- | | `body` | `TenantCreateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateTenantExample(TenantId tenantId) { using var client = CamundaClient.Create(); var result = await client.CreateTenantAsync(new TenantCreateRequest { TenantId = tenantId, Name = "Acme Corporation", }); Console.WriteLine($"Tenant key: {result.TenantId}"); } ``` #### DeleteTenantAsync(TenantId, CancellationToken) ```csharp public Task DeleteTenantAsync(TenantId tenantId, CancellationToken ct = default) ``` Delete tenant Deletes an existing tenant. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteTenantExample(TenantId tenantId) { using var client = CamundaClient.Create(); await client.DeleteTenantAsync(tenantId); } ``` #### GetTenantAsync(TenantId, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetTenantAsync(TenantId tenantId, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get tenant Retrieves a single tenant by tenant ID. | Parameter | Type | Description | | ------------- | ---------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetTenantExample(TenantId tenantId) { using var client = CamundaClient.Create(); var result = await client.GetTenantAsync(tenantId); Console.WriteLine($"Tenant: {result.Name}"); } ``` #### GetUsageMetricsAsync(DateTimeOffset, DateTimeOffset, TenantId?, bool?, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetUsageMetricsAsync(DateTimeOffset startTime, DateTimeOffset endTime, TenantId? tenantId = null, bool? withTenants = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get usage metrics Retrieve the usage metrics based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `startTime` | `DateTimeOffset` | | | `endTime` | `DateTimeOffset` | | | `tenantId` | `Nullable` | | | `withTenants` | `Nullable` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetUsageMetricsExample() { using var client = CamundaClient.Create(); var result = await client.GetUsageMetricsAsync( startTime: new DateTimeOffset(2024, 1, 1, 0, 0, 0, TimeSpan.Zero), endTime: new DateTimeOffset(2024, 12, 31, 23, 59, 59, TimeSpan.Zero)); Console.WriteLine($"Metrics: {result}"); } ``` #### SearchClientsForTenantAsync(TenantId, TenantClientSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchClientsForTenantAsync(TenantId tenantId, TenantClientSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search clients for tenant Retrieves a filtered and sorted list of clients for a specified tenant. | Parameter | Type | Description | | ------------- | ---------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `TenantClientSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchGroupIdsForTenantAsync(TenantId, TenantGroupSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchGroupIdsForTenantAsync(TenantId tenantId, TenantGroupSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search groups for tenant Retrieves a filtered and sorted list of groups for a specified tenant. | Parameter | Type | Description | | ------------- | --------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `TenantGroupSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchGroupIdsForTenantExample(TenantId tenantId) { using var client = CamundaClient.Create(); var result = await client.SearchGroupIdsForTenantAsync( tenantId, new TenantGroupSearchQueryRequest()); foreach (var group in result.Items) { Console.WriteLine($"Group: {group.GroupId}"); } } ``` #### SearchMappingRulesForTenantAsync(TenantId, MappingRuleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchMappingRulesForTenantAsync(TenantId tenantId, MappingRuleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search mapping rules for tenant Retrieves a filtered and sorted list of MappingRules for a specified tenant. | Parameter | Type | Description | | ------------- | --------------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `MappingRuleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchRolesForTenantAsync(TenantId, RoleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchRolesForTenantAsync(TenantId tenantId, RoleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search roles for tenant Retrieves a filtered and sorted list of roles for a specified tenant. | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `RoleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchTenantsAsync(TenantSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchTenantsAsync(TenantSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search tenants Retrieves a filtered and sorted list of tenants. | Parameter | Type | Description | | ------------- | --------------------------------------------- | ----------- | | `body` | `TenantSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchTenantsExample() { using var client = CamundaClient.Create(); var result = await client.SearchTenantsAsync(new TenantSearchQueryRequest()); foreach (var tenant in result.Items) { Console.WriteLine($"Tenant: {tenant.Name}"); } } ``` #### SearchUsersForTenantAsync(TenantId, TenantUserSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUsersForTenantAsync(TenantId tenantId, TenantUserSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search users for tenant Retrieves a filtered and sorted list of users for a specified tenant. | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `TenantUserSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignClientFromTenantAsync(TenantId, ClientId, CancellationToken) ```csharp public Task UnassignClientFromTenantAsync(TenantId tenantId, ClientId clientId, CancellationToken ct = default) ``` Unassign a client from a tenant Unassigns the client from the specified tenant. The client can no longer access tenant data. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignGroupFromTenantAsync(TenantId, GroupId, CancellationToken) ```csharp public Task UnassignGroupFromTenantAsync(TenantId tenantId, GroupId groupId, CancellationToken ct = default) ``` Unassign a group from a tenant Unassigns a group from a specified tenant. Members of the group (users, clients) will no longer have access to the tenant's data - except they are assigned directly to the tenant. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `groupId` | `GroupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignMappingRuleFromTenantAsync(TenantId, MappingRuleId, CancellationToken) ```csharp public Task UnassignMappingRuleFromTenantAsync(TenantId tenantId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Unassign a mapping rule from a tenant Unassigns a single mapping rule from a specified tenant without deleting the rule. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignRoleFromTenantAsync(TenantId, RoleId, CancellationToken) ```csharp public Task UnassignRoleFromTenantAsync(TenantId tenantId, RoleId roleId, CancellationToken ct = default) ``` Unassign a role from a tenant Unassigns a role from a specified tenant. Users, Clients or Groups, that have the role assigned, will no longer have access to the tenant's data - unless they are assigned directly to the tenant. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `roleId` | `RoleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignUserFromTenantAsync(TenantId, Username, CancellationToken) ```csharp public Task UnassignUserFromTenantAsync(TenantId tenantId, Username username, CancellationToken ct = default) ``` Unassign a user from a tenant Unassigns the user from the specified tenant. The user can no longer access tenant data. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `tenantId` | `TenantId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UnassignUserFromTenantExample(TenantId tenantId, Username username) { using var client = CamundaClient.Create(); await client.UnassignUserFromTenantAsync( tenantId, username); } ``` #### UpdateTenantAsync(TenantId, TenantUpdateRequest, CancellationToken) ```csharp public Task UpdateTenantAsync(TenantId tenantId, TenantUpdateRequest body, CancellationToken ct = default) ``` Update tenant Updates an existing tenant. | Parameter | Type | Description | | ---------- | --------------------- | ----------- | | `tenantId` | `TenantId` | | | `body` | `TenantUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateTenantExample(TenantId tenantId) { using var client = CamundaClient.Create(); await client.UpdateTenantAsync( tenantId, new TenantUpdateRequest { Name = "Acme Corp International", }); } ``` ### Roles #### AssignRoleToClientAsync(RoleId, ClientId, CancellationToken) ```csharp public Task AssignRoleToClientAsync(RoleId roleId, ClientId clientId, CancellationToken ct = default) ``` Assign a role to a client Assigns the specified role to the client. The client will inherit the authorizations associated with this role. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignRoleToGroupAsync(RoleId, GroupId, CancellationToken) ```csharp public Task AssignRoleToGroupAsync(RoleId roleId, GroupId groupId, CancellationToken ct = default) ``` Assign a role to a group Assigns the specified role to the group. Every member of the group (user or client) will inherit the authorizations associated with this role. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `groupId` | `GroupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignRoleToMappingRuleAsync(RoleId, MappingRuleId, CancellationToken) ```csharp public Task AssignRoleToMappingRuleAsync(RoleId roleId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Assign a role to a mapping rule Assigns a role to a mapping rule. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### AssignRoleToUserAsync(RoleId, Username, CancellationToken) ```csharp public Task AssignRoleToUserAsync(RoleId roleId, Username username, CancellationToken ct = default) ``` Assign a role to a user Assigns the specified role to the user. The user will inherit the authorizations associated with this role. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### CreateRoleAsync(RoleCreateRequest, CancellationToken) ```csharp public Task CreateRoleAsync(RoleCreateRequest body, CancellationToken ct = default) ``` Create role Create a new role. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `body` | `RoleCreateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateRoleExample() { using var client = CamundaClient.Create(); var result = await client.CreateRoleAsync(new RoleCreateRequest { Name = "developer", }); Console.WriteLine($"Role key: {result.RoleId}"); } ``` #### DeleteRoleAsync(RoleId, CancellationToken) ```csharp public Task DeleteRoleAsync(RoleId roleId, CancellationToken ct = default) ``` Delete role Deletes the role with the given ID. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetRoleAsync(RoleId, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetRoleAsync(RoleId roleId, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get role Get a role by its ID. | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `roleId` | `RoleId` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchClientsForRoleAsync(RoleId, RoleClientSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchClientsForRoleAsync(RoleId roleId, RoleClientSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search role clients Search clients with assigned role. | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `roleId` | `RoleId` | | | `body` | `RoleClientSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchGroupsForRoleAsync(RoleId, RoleGroupSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchGroupsForRoleAsync(RoleId roleId, RoleGroupSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search role groups Search groups with assigned role. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `roleId` | `RoleId` | | | `body` | `RoleGroupSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchMappingRulesForRoleAsync(RoleId, MappingRuleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchMappingRulesForRoleAsync(RoleId roleId, MappingRuleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search role mapping rules Search mapping rules with assigned role. | Parameter | Type | Description | | ------------- | ------------------------------------------------- | ----------- | | `roleId` | `RoleId` | | | `body` | `MappingRuleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchRolesAsync(RoleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchRolesAsync(RoleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search roles Search for roles based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `body` | `RoleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchRolesExample() { using var client = CamundaClient.Create(); var result = await client.SearchRolesAsync(new RoleSearchQueryRequest()); foreach (var role in result.Items) { Console.WriteLine($"Role: {role.Name}"); } } ``` #### SearchRolesForGroupAsync(GroupId, RoleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchRolesForGroupAsync(GroupId groupId, RoleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search group roles Search roles assigned to a group. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `groupId` | `GroupId` | | | `body` | `RoleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchUsersForRoleAsync(RoleId, RoleUserSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUsersForRoleAsync(RoleId roleId, RoleUserSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search role users Search users with assigned role. | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `roleId` | `RoleId` | | | `body` | `RoleUserSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignRoleFromClientAsync(RoleId, ClientId, CancellationToken) ```csharp public Task UnassignRoleFromClientAsync(RoleId roleId, ClientId clientId, CancellationToken ct = default) ``` Unassign a role from a client Unassigns the specified role from the client. The client will no longer inherit the authorizations associated with this role. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `clientId` | `ClientId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignRoleFromGroupAsync(RoleId, GroupId, CancellationToken) ```csharp public Task UnassignRoleFromGroupAsync(RoleId roleId, GroupId groupId, CancellationToken ct = default) ``` Unassign a role from a group Unassigns the specified role from the group. All group members (user or client) no longer inherit the authorizations associated with this role. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `groupId` | `GroupId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignRoleFromMappingRuleAsync(RoleId, MappingRuleId, CancellationToken) ```csharp public Task UnassignRoleFromMappingRuleAsync(RoleId roleId, MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Unassign a role from a mapping rule Unassigns a role from a mapping rule. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UnassignRoleFromUserAsync(RoleId, Username, CancellationToken) ```csharp public Task UnassignRoleFromUserAsync(RoleId roleId, Username username, CancellationToken ct = default) ``` Unassign a role from a user Unassigns a role from a user. The user will no longer inherit the authorizations associated with this role. | Parameter | Type | Description | | ---------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `username` | `Username` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateRoleAsync(RoleId, RoleUpdateRequest, CancellationToken) ```csharp public Task UpdateRoleAsync(RoleId roleId, RoleUpdateRequest body, CancellationToken ct = default) ``` Update role Update a role with the given ID. | Parameter | Type | Description | | --------- | ------------------- | ----------- | | `roleId` | `RoleId` | | | `body` | `RoleUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` ### User Tasks #### AssignUserTaskAsync(UserTaskKey, UserTaskAssignmentRequest, CancellationToken) ```csharp public Task AssignUserTaskAsync(UserTaskKey userTaskKey, UserTaskAssignmentRequest body, CancellationToken ct = default) ``` Assign user task Assigns a user task with the given key to the given assignee. Assignment waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | ------------- | --------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskAssignmentRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task AssignUserTaskExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); await client.AssignUserTaskAsync( userTaskKey, new UserTaskAssignmentRequest { Assignee = "user@example.com", }); } ``` #### CompleteUserTaskAsync(UserTaskKey, UserTaskCompletionRequest, CancellationToken) ```csharp public Task CompleteUserTaskAsync(UserTaskKey userTaskKey, UserTaskCompletionRequest body, CancellationToken ct = default) ``` Complete user task Completes a user task with the given key. Completion waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | ------------- | --------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskCompletionRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CompleteUserTaskExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); await client.CompleteUserTaskAsync( userTaskKey, new UserTaskCompletionRequest()); } ``` #### GetUserTaskAsync(UserTaskKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetUserTaskAsync(UserTaskKey userTaskKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get user task Get the user task by the user task key. | Parameter | Type | Description | | ------------- | ------------------------------------ | ----------- | | `userTaskKey` | `UserTaskKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetUserTaskExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); var result = await client.GetUserTaskAsync(userTaskKey); Console.WriteLine($"User task: {result.UserTaskKey}"); } ``` #### GetUserTaskFormAsync(UserTaskKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetUserTaskFormAsync(UserTaskKey userTaskKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get user task form Get the form of a user task. Note that this endpoint will only return linked forms. This endpoint does not support embedded forms. | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetUserTaskFormExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); var result = await client.GetUserTaskFormAsync(userTaskKey); Console.WriteLine($"Form: {result.FormKey}"); } ``` #### SearchUserTaskAuditLogsAsync(UserTaskKey, UserTaskAuditLogSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUserTaskAuditLogsAsync(UserTaskKey userTaskKey, UserTaskAuditLogSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search user task audit logs Search for user task audit logs based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskAuditLogSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchUserTaskAuditLogsExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); var result = await client.SearchUserTaskAuditLogsAsync( userTaskKey, new UserTaskAuditLogSearchQueryRequest()); foreach (var log in result.Items) { Console.WriteLine($"Audit log: {log.AuditLogKey}"); } } ``` #### SearchUserTaskEffectiveVariablesAsync(UserTaskKey, UserTaskEffectiveVariableSearchQueryRequest, bool?, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUserTaskEffectiveVariablesAsync(UserTaskKey userTaskKey, UserTaskEffectiveVariableSearchQueryRequest body, bool? truncateValues = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search user task effective variables Search for the effective variables of a user task. This endpoint returns deduplicated variables where each variable name appears at most once. When the same variable name exists at multiple scope levels in the scope hierarchy, the value from the innermost scope (closest to the user task) takes precedence. This is useful for retrieving the actual runtime state of variables as seen by the user task. By default, long variable values in the response are truncated. | Parameter | Type | Description | | ---------------- | ----------------------------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskEffectiveVariableSearchQueryRequest` | | | `truncateValues` | `Nullable` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchUserTaskVariablesAsync(UserTaskKey, UserTaskVariableSearchQueryRequest, bool?, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUserTaskVariablesAsync(UserTaskKey userTaskKey, UserTaskVariableSearchQueryRequest body, bool? truncateValues = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search user task variables Search for user task variables based on given criteria. This endpoint returns all variable documents visible from the user task's scope, including variables from parent scopes in the scope hierarchy. If the same variable name exists at multiple scope levels, each scope's variable is returned as a separate result. Use the `/user-tasks/{userTaskKey}/effective-variables/search` endpoint to get deduplicated variables where the innermost scope takes precedence. By default, long variable values in the response are truncated. | Parameter | Type | Description | | ---------------- | ----------------------------------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskVariableSearchQueryRequest` | | | `truncateValues` | `Nullable` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchUserTasksAsync(UserTaskSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchUserTasksAsync(UserTaskSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search user tasks Search for user tasks based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `body` | `UserTaskSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchUserTasksExample() { using var client = CamundaClient.Create(); var result = await client.SearchUserTasksAsync(new UserTaskSearchQuery()); foreach (var task in result.Items) { Console.WriteLine($"User task: {task.UserTaskKey}"); } } ``` #### UnassignUserTaskAsync(UserTaskKey, CancellationToken) ```csharp public Task UnassignUserTaskAsync(UserTaskKey userTaskKey, CancellationToken ct = default) ``` Unassign user task Removes the assignee of a task with the given key. Unassignment waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | ------------- | ------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UnassignUserTaskExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); await client.UnassignUserTaskAsync(userTaskKey); } ``` #### UpdateUserTaskAsync(UserTaskKey, UserTaskUpdateRequest, CancellationToken) ```csharp public Task UpdateUserTaskAsync(UserTaskKey userTaskKey, UserTaskUpdateRequest body, CancellationToken ct = default) ``` Update user task Update a user task with the given key. Updates wait for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | ------------- | ----------------------- | ----------- | | `userTaskKey` | `UserTaskKey` | | | `body` | `UserTaskUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateUserTaskExample(UserTaskKey userTaskKey) { using var client = CamundaClient.Create(); await client.UpdateUserTaskAsync( userTaskKey, new UserTaskUpdateRequest()); } ``` ### Signals #### BroadcastSignalAsync(SignalBroadcastRequest, CancellationToken) ```csharp public Task BroadcastSignalAsync(SignalBroadcastRequest body, CancellationToken ct = default) ``` Broadcast signal Broadcasts a signal. | Parameter | Type | Description | | --------- | ------------------------ | ----------- | | `body` | `SignalBroadcastRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task BroadcastSignalExample() { using var client = CamundaClient.Create(); var result = await client.BroadcastSignalAsync(new SignalBroadcastRequest { SignalName = "orderCancelled", }); Console.WriteLine($"Signal key: {result.SignalKey}"); } ``` ### Batch Operations #### CancelBatchOperationAsync(BatchOperationKey, CancellationToken) ```csharp public Task CancelBatchOperationAsync(BatchOperationKey batchOperationKey, CancellationToken ct = default) ``` Cancel Batch operation Cancels a running batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | ------------------- | ------------------- | ----------- | | `batchOperationKey` | `BatchOperationKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CancelBatchOperationExample(BatchOperationKey batchOperationKey) { using var client = CamundaClient.Create(); await client.CancelBatchOperationAsync(batchOperationKey); } ``` #### GetBatchOperationAsync(BatchOperationKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetBatchOperationAsync(BatchOperationKey batchOperationKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get batch operation Get batch operation by key. | Parameter | Type | Description | | ------------------- | -------------------------------------------- | ----------- | | `batchOperationKey` | `BatchOperationKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetBatchOperationExample(BatchOperationKey batchOperationKey) { using var client = CamundaClient.Create(); var result = await client.GetBatchOperationAsync( batchOperationKey); Console.WriteLine($"Batch operation: {result.BatchOperationKey}"); } ``` #### ResumeBatchOperationAsync(BatchOperationKey, CancellationToken) ```csharp public Task ResumeBatchOperationAsync(BatchOperationKey batchOperationKey, CancellationToken ct = default) ``` Resume Batch operation Resumes a suspended batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | ------------------- | ------------------- | ----------- | | `batchOperationKey` | `BatchOperationKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResumeBatchOperationExample(BatchOperationKey batchOperationKey) { using var client = CamundaClient.Create(); await client.ResumeBatchOperationAsync(batchOperationKey); } ``` #### SearchBatchOperationItemsAsync(BatchOperationItemSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchBatchOperationItemsAsync(BatchOperationItemSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search batch operation items Search for batch operation items based on given criteria. | Parameter | Type | Description | | ------------- | --------------------------------------------------------- | ----------- | | `body` | `BatchOperationItemSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchBatchOperationItemsExample() { using var client = CamundaClient.Create(); var result = await client.SearchBatchOperationItemsAsync( new BatchOperationItemSearchQuery()); foreach (var item in result.Items) { Console.WriteLine($"Item: {item.ItemKey}"); } } ``` #### SearchBatchOperationsAsync(BatchOperationSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchBatchOperationsAsync(BatchOperationSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search batch operations Search for batch operations based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------------- | ----------- | | `body` | `BatchOperationSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchBatchOperationsExample() { using var client = CamundaClient.Create(); var result = await client.SearchBatchOperationsAsync( new BatchOperationSearchQuery()); foreach (var op in result.Items) { Console.WriteLine($"Batch operation: {op.BatchOperationKey}"); } } ``` #### SuspendBatchOperationAsync(BatchOperationKey, CancellationToken) ```csharp public Task SuspendBatchOperationAsync(BatchOperationKey batchOperationKey, CancellationToken ct = default) ``` Suspend Batch operation Suspends a running batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | ------------------- | ------------------- | ----------- | | `batchOperationKey` | `BatchOperationKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SuspendBatchOperationExample(BatchOperationKey batchOperationKey) { using var client = CamundaClient.Create(); await client.SuspendBatchOperationAsync(batchOperationKey); } ``` ### Messages #### CorrelateMessageAsync(MessageCorrelationRequest, CancellationToken) ```csharp public Task CorrelateMessageAsync(MessageCorrelationRequest body, CancellationToken ct = default) ``` Correlate message Publishes a message and correlates it to a subscription. If correlation is successful it will return the first process instance key the message correlated with. The message is not buffered. Use the publish message endpoint to send messages that can be buffered. | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `body` | `MessageCorrelationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CorrelateMessageExample() { using var client = CamundaClient.Create(); var result = await client.CorrelateMessageAsync(new MessageCorrelationRequest { Name = "paymentReceived", CorrelationKey = "order-123", }); Console.WriteLine($"Message key: {result.MessageKey}"); } ``` #### PublishMessageAsync(MessagePublicationRequest, CancellationToken) ```csharp public Task PublishMessageAsync(MessagePublicationRequest body, CancellationToken ct = default) ``` Publish message Publishes a single message. Messages are published to specific partitions computed from their correlation keys. Messages can be buffered. The endpoint does not wait for a correlation result. Use the message correlation endpoint for such use cases. | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `body` | `MessagePublicationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task PublishMessageExample() { using var client = CamundaClient.Create(); var result = await client.PublishMessageAsync(new MessagePublicationRequest { Name = "paymentReceived", CorrelationKey = "order-123", TimeToLive = 60000, }); Console.WriteLine($"Message key: {result.MessageKey}"); } ``` #### SearchCorrelatedMessageSubscriptionsAsync(CorrelatedMessageSubscriptionSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchCorrelatedMessageSubscriptionsAsync(CorrelatedMessageSubscriptionSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search correlated message subscriptions Search correlated message subscriptions based on given criteria. | Parameter | Type | Description | | ------------- | -------------------------------------------------------------------- | ----------- | | `body` | `CorrelatedMessageSubscriptionSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchCorrelatedMessageSubscriptionsExample() { using var client = CamundaClient.Create(); var result = await client.SearchCorrelatedMessageSubscriptionsAsync( new CorrelatedMessageSubscriptionSearchQuery()); foreach (var sub in result.Items) { Console.WriteLine($"Correlated subscription: {sub.MessageName}"); } } ``` #### SearchMessageSubscriptionsAsync(MessageSubscriptionSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchMessageSubscriptionsAsync(MessageSubscriptionSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search message subscriptions Search for message subscriptions based on given criteria. By default, both start and intermediate event subscriptions are returned. Use the `messageSubscriptionType` filter to restrict results to a single type. **Version notes:** - Start event subscriptions are only captured for deployments made with 8.10 or later. - The `messageSubscriptionType` field is only populated for data created with Camunda 8.10 or later. For pre-8.10 data, intermediate event entries have no `messageSubscriptionType` value stored. For convenience, the API returns `PROCESS_EVENT` as a default for such search results, though. - Searching for intermediate event subscriptions **including legacy data** can be achieved by filtering for `messageSubscriptionType` not matching `START_EVENT`. | Parameter | Type | Description | | ------------- | ---------------------------------------------------------- | ----------- | | `body` | `MessageSubscriptionSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchMessageSubscriptionsExample() { using var client = CamundaClient.Create(); var result = await client.SearchMessageSubscriptionsAsync( new MessageSubscriptionSearchQuery()); foreach (var sub in result.Items) { Console.WriteLine($"Subscription: {sub.MessageName}"); } } ``` ### Authorizations #### CreateAuthorizationAsync(AuthorizationRequest, CancellationToken) ```csharp public Task CreateAuthorizationAsync(AuthorizationRequest body, CancellationToken ct = default) ``` Create authorization Create the authorization. | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `body` | `AuthorizationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateAuthorizationExample() { using var client = CamundaClient.Create(); var result = await client.CreateAuthorizationAsync(new AuthorizationPropertyBasedRequest { ResourceType = ResourceTypeEnum.PROCESSDEFINITION, PermissionTypes = new List { PermissionTypeEnum.READ, PermissionTypeEnum.UPDATE }, ResourcePropertyName = "my-process", OwnerType = OwnerTypeEnum.USER, OwnerId = "user@example.com", }); Console.WriteLine($"Authorization key: {result.AuthorizationKey}"); } ``` #### DeleteAuthorizationAsync(AuthorizationKey, CancellationToken) ```csharp public Task DeleteAuthorizationAsync(AuthorizationKey authorizationKey, CancellationToken ct = default) ``` Delete authorization Deletes the authorization with the given key. | Parameter | Type | Description | | ------------------ | ------------------- | ----------- | | `authorizationKey` | `AuthorizationKey` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteAuthorizationExample(AuthorizationKey authorizationKey) { using var client = CamundaClient.Create(); await client.DeleteAuthorizationAsync(authorizationKey); } ``` #### GetAuthorizationAsync(AuthorizationKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetAuthorizationAsync(AuthorizationKey authorizationKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get authorization Get authorization by the given key. | Parameter | Type | Description | | ------------------ | ----------------------------------------- | ----------- | | `authorizationKey` | `AuthorizationKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetAuthorizationExample(AuthorizationKey authorizationKey) { using var client = CamundaClient.Create(); var result = await client.GetAuthorizationAsync( authorizationKey); Console.WriteLine($"Resource type: {result.ResourceType}"); } ``` #### SearchAuthorizationsAsync(AuthorizationSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchAuthorizationsAsync(AuthorizationSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search authorizations Search for authorizations based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `body` | `AuthorizationSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchAuthorizationsExample() { using var client = CamundaClient.Create(); var result = await client.SearchAuthorizationsAsync( new AuthorizationSearchQuery()); foreach (var auth in result.Items) { Console.WriteLine($"Authorization: {auth.AuthorizationKey}"); } } ``` #### SearchOwnAuthorizationsAsync(AuthorizationSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchOwnAuthorizationsAsync(AuthorizationSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search own authorizations Search for the current authenticated principal's own authorization records — including authorizations granted directly to the user or client, as well as those granted via a group, role, or mapping rule the principal belongs to. | Parameter | Type | Description | | ------------- | -------------------------------------------------- | ----------- | | `body` | `AuthorizationSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateAuthorizationAsync(AuthorizationKey, AuthorizationRequest, CancellationToken) ```csharp public Task UpdateAuthorizationAsync(AuthorizationKey authorizationKey, AuthorizationRequest body, CancellationToken ct = default) ``` Update authorization Update the authorization with the given key. | Parameter | Type | Description | | ------------------ | ---------------------- | ----------- | | `authorizationKey` | `AuthorizationKey` | | | `body` | `AuthorizationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task UpdateAuthorizationExample(AuthorizationKey authorizationKey) { using var client = CamundaClient.Create(); await client.UpdateAuthorizationAsync( authorizationKey, new AuthorizationPropertyBasedRequest { ResourceType = ResourceTypeEnum.PROCESSDEFINITION, PermissionTypes = new List { PermissionTypeEnum.READ, PermissionTypeEnum.UPDATE, PermissionTypeEnum.DELETE }, ResourcePropertyName = "my-process", OwnerType = OwnerTypeEnum.USER, OwnerId = "user@example.com", }); } ``` ### Deployments #### CreateDeploymentAsync(MultipartFormDataContent, CancellationToken) ```csharp public Task CreateDeploymentAsync(MultipartFormDataContent content, CancellationToken ct = default) ``` Deploy resources Deploys one or more resources, including BPMN processes, DMN decision models, forms, RPA resources, and generic files. A deployment can contain any file type. Files that are not interpreted as BPMN, DMN, form, or RPA resources are stored as deployable generic resources in the engine. This is an atomic call, i.e. either all resources are deployed or none of them are. | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `content` | `MultipartFormDataContent` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateDeploymentExample() { using var client = CamundaClient.Create(); var content = new MultipartFormDataContent(); var fileContent = new ByteArrayContent(File.ReadAllBytes("process.bpmn")); content.Add(fileContent, "resources", "process.bpmn"); var result = await client.CreateDeploymentAsync(content); Console.WriteLine($"Deployment key: {result.DeploymentKey}"); } ``` ### Documents #### CreateDocumentAsync(MultipartFormDataContent, string?, DocumentId?, CancellationToken) ```csharp public Task CreateDocumentAsync(MultipartFormDataContent content, string? storeId = null, DocumentId? documentId = null, CancellationToken ct = default) ``` Upload document Upload a document to the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) | Parameter | Type | Description | | ------------ | -------------------------- | ----------- | | `content` | `MultipartFormDataContent` | | | `storeId` | `String` | | | `documentId` | `Nullable` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateDocumentExample() { using var client = CamundaClient.Create(); using var content = new MultipartFormDataContent(); content.Add(new ByteArrayContent(System.Text.Encoding.UTF8.GetBytes("Hello, world!")), "file", "hello.txt"); var result = await client.CreateDocumentAsync(content); Console.WriteLine($"Document ID: {result.DocumentId}"); } ``` #### CreateDocumentLinkAsync(DocumentId, DocumentLinkRequest, string?, string?, CancellationToken) ```csharp public Task CreateDocumentLinkAsync(DocumentId documentId, DocumentLinkRequest body, string? storeId = null, string? contentHash = null, CancellationToken ct = default) ``` Create document link Create a link to a document in the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP | Parameter | Type | Description | | ------------- | --------------------- | ----------- | | `documentId` | `DocumentId` | | | `body` | `DocumentLinkRequest` | | | `storeId` | `String` | | | `contentHash` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateDocumentLinkExample(DocumentId documentId) { using var client = CamundaClient.Create(); var result = await client.CreateDocumentLinkAsync( documentId, new DocumentLinkRequest()); Console.WriteLine($"Document link: {result.Url}"); } ``` #### CreateDocumentsAsync(MultipartFormDataContent, string?, CancellationToken) ```csharp public Task CreateDocumentsAsync(MultipartFormDataContent content, string? storeId = null, CancellationToken ct = default) ``` Upload multiple documents Upload multiple documents to the Camunda 8 cluster. The caller must provide a file name for each document, which will be used in case of a multi-status response to identify which documents failed to upload. The file name can be provided in the `Content-Disposition` header of the file part or in the `fileName` field of the metadata. You can add a parallel array of metadata objects. These are matched with the files based on index, and must have the same length as the files array. To pass homogenous metadata for all files, spread the metadata over the metadata array. A filename value provided explicitly via the metadata array in the request overrides the `Content-Disposition` header of the file part. In case of a multi-status response, the response body will contain a list of `DocumentBatchProblemDetail` objects, each of which contains the file name of the document that failed to upload and the reason for the failure. The client can choose to retry the whole batch or individual documents based on the response. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `content` | `MultipartFormDataContent` | | | `storeId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateDocumentsExample() { using var client = CamundaClient.Create(); using var content = new MultipartFormDataContent(); content.Add(new ByteArrayContent(System.Text.Encoding.UTF8.GetBytes("File one")), "files", "one.txt"); content.Add(new ByteArrayContent(System.Text.Encoding.UTF8.GetBytes("File two")), "files", "two.txt"); var result = await client.CreateDocumentsAsync(content); foreach (var doc in result.CreatedDocuments) { Console.WriteLine($"Created: {doc.DocumentId}"); } } ``` #### DeleteDocumentAsync(DocumentId, string?, CancellationToken) ```csharp public Task DeleteDocumentAsync(DocumentId documentId, string? storeId = null, CancellationToken ct = default) ``` Delete document Delete a document from the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) | Parameter | Type | Description | | ------------ | ------------------- | ----------- | | `documentId` | `DocumentId` | | | `storeId` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteDocumentExample(DocumentId documentId) { using var client = CamundaClient.Create(); await client.DeleteDocumentAsync(documentId); } ``` #### GetDocumentAsync(DocumentId, string?, string?, CancellationToken) ```csharp public Task GetDocumentAsync(DocumentId documentId, string? storeId = null, string? contentHash = null, CancellationToken ct = default) ``` Download document Download a document from the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) | Parameter | Type | Description | | ------------- | ------------------- | ----------- | | `documentId` | `DocumentId` | | | `storeId` | `String` | | | `contentHash` | `String` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDocumentExample(DocumentId documentId) { using var client = CamundaClient.Create(); var content = await client.GetDocumentAsync(documentId); Console.WriteLine($"Downloaded document: {documentId}"); } ``` ### Variables #### CreateElementInstanceVariablesAsync(ElementInstanceKey, SetVariableRequest, CancellationToken) ```csharp public Task CreateElementInstanceVariablesAsync(ElementInstanceKey elementInstanceKey, SetVariableRequest body, CancellationToken ct = default) ``` Update element instance variables Updates all the variables of a particular scope (for example, process instance, element instance) with the given variable data. Specify the element instance in the `elementInstanceKey` parameter. Variable updates can be delayed by listener-related processing; if processing exceeds the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. | Parameter | Type | Description | | -------------------- | -------------------- | ----------- | | `elementInstanceKey` | `ElementInstanceKey` | | | `body` | `SetVariableRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateElementInstanceVariablesExample(ElementInstanceKey elementInstanceKey) { using var client = CamundaClient.Create(); await client.CreateElementInstanceVariablesAsync( elementInstanceKey, new SetVariableRequest()); } ``` #### CreateGlobalClusterVariableAsync(CreateClusterVariableRequest, CancellationToken) ```csharp public Task CreateGlobalClusterVariableAsync(CreateClusterVariableRequest body, CancellationToken ct = default) ``` Create a global-scoped cluster variable Create a global-scoped cluster variable. | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `body` | `CreateClusterVariableRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateGlobalClusterVariableExample(ClusterVariableName name) { using var client = CamundaClient.Create(); var result = await client.CreateGlobalClusterVariableAsync( new CreateClusterVariableRequest { Name = name, Value = "my-value", }); Console.WriteLine($"Created variable: {result.Name}"); } ``` #### CreateTenantClusterVariableAsync(TenantId, CreateClusterVariableRequest, CancellationToken) ```csharp public Task CreateTenantClusterVariableAsync(TenantId tenantId, CreateClusterVariableRequest body, CancellationToken ct = default) ``` Create a tenant-scoped cluster variable Create a new cluster variable for the given tenant. | Parameter | Type | Description | | ---------- | ------------------------------ | ----------- | | `tenantId` | `TenantId` | | | `body` | `CreateClusterVariableRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateTenantClusterVariableExample(TenantId tenantId, ClusterVariableName name) { using var client = CamundaClient.Create(); var result = await client.CreateTenantClusterVariableAsync( tenantId, new CreateClusterVariableRequest { Name = name, Value = "tenant-value", }); Console.WriteLine($"Created variable: {result.Name}"); } ``` #### DeleteGlobalClusterVariableAsync(ClusterVariableName, CancellationToken) ```csharp public Task DeleteGlobalClusterVariableAsync(ClusterVariableName name, CancellationToken ct = default) ``` Delete a global-scoped cluster variable Delete a global-scoped cluster variable. | Parameter | Type | Description | | --------- | --------------------- | ----------- | | `name` | `ClusterVariableName` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### DeleteTenantClusterVariableAsync(TenantId, ClusterVariableName, CancellationToken) ```csharp public Task DeleteTenantClusterVariableAsync(TenantId tenantId, ClusterVariableName name, CancellationToken ct = default) ``` Delete a tenant-scoped cluster variable Delete a tenant-scoped cluster variable. | Parameter | Type | Description | | ---------- | --------------------- | ----------- | | `tenantId` | `TenantId` | | | `name` | `ClusterVariableName` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetGlobalClusterVariableAsync(ClusterVariableName, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetGlobalClusterVariableAsync(ClusterVariableName name, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get a global-scoped cluster variable Get a global-scoped cluster variable. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `name` | `ClusterVariableName` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetTenantClusterVariableAsync(TenantId, ClusterVariableName, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetTenantClusterVariableAsync(TenantId tenantId, ClusterVariableName name, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get a tenant-scoped cluster variable Get a tenant-scoped cluster variable. | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `tenantId` | `TenantId` | | | `name` | `ClusterVariableName` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetVariableAsync(VariableKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetVariableAsync(VariableKey variableKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get variable Get a variable by its key. This endpoint returns both process-level and local (element-scoped) variables. The variable's scopeKey indicates whether it's a process-level variable or scoped to a specific element instance. | Parameter | Type | Description | | ------------- | ------------------------------------ | ----------- | | `variableKey` | `VariableKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetVariableExample(VariableKey variableKey) { using var client = CamundaClient.Create(); var result = await client.GetVariableAsync(variableKey); Console.WriteLine($"Variable: {result.Name} = {result.Value}"); } ``` #### SearchClusterVariablesAsync(ClusterVariableSearchQueryRequest, bool?, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchClusterVariablesAsync(ClusterVariableSearchQueryRequest body, bool? truncateValues = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search for cluster variables based on given criteria. By default, long variable values in the response are truncated. | Parameter | Type | Description | | ---------------- | ------------------------------------------------------ | ----------- | | `body` | `ClusterVariableSearchQueryRequest` | | | `truncateValues` | `Nullable` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchClusterVariablesExample() { using var client = CamundaClient.Create(); var result = await client.SearchClusterVariablesAsync( new ClusterVariableSearchQueryRequest()); foreach (var variable in result.Items) { Console.WriteLine($"Variable: {variable.Name}"); } } ``` #### SearchVariablesAsync(VariableSearchQuery, bool?, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchVariablesAsync(VariableSearchQuery body, bool? truncateValues = null, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search variables Search for variables based on given criteria. This endpoint returns variables that exist directly at the specified scopes - it does not include variables from parent scopes that would be visible through the scope hierarchy. Variables can be process-level (scoped to the process instance) or local (scoped to specific BPMN elements like tasks, subprocesses, etc.). By default, long variable values in the response are truncated. | Parameter | Type | Description | | ---------------- | ----------------------------------------------- | ----------- | | `body` | `VariableSearchQuery` | | | `truncateValues` | `Nullable` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateGlobalClusterVariableAsync(ClusterVariableName, UpdateClusterVariableRequest, CancellationToken) ```csharp public Task UpdateGlobalClusterVariableAsync(ClusterVariableName name, UpdateClusterVariableRequest body, CancellationToken ct = default) ``` Update a global-scoped cluster variable Updates the value of an existing global cluster variable. The variable must exist, otherwise a 404 error is returned. | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `name` | `ClusterVariableName` | | | `body` | `UpdateClusterVariableRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateTenantClusterVariableAsync(TenantId, ClusterVariableName, UpdateClusterVariableRequest, CancellationToken) ```csharp public Task UpdateTenantClusterVariableAsync(TenantId tenantId, ClusterVariableName name, UpdateClusterVariableRequest body, CancellationToken ct = default) ``` Update a tenant-scoped cluster variable Updates the value of an existing tenant-scoped cluster variable. The variable must exist, otherwise a 404 error is returned. | Parameter | Type | Description | | ---------- | ------------------------------ | ----------- | | `tenantId` | `TenantId` | | | `name` | `ClusterVariableName` | | | `body` | `UpdateClusterVariableRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` ### Mappings #### CreateMappingRuleAsync(MappingRuleCreateRequest, CancellationToken) ```csharp public Task CreateMappingRuleAsync(MappingRuleCreateRequest body, CancellationToken ct = default) ``` Create mapping rule Create a new mapping rule | Parameter | Type | Description | | --------- | -------------------------- | ----------- | | `body` | `MappingRuleCreateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task CreateMappingRuleExample() { using var client = CamundaClient.Create(); var result = await client.CreateMappingRuleAsync(new MappingRuleCreateRequest { ClaimName = "groups", ClaimValue = "engineering", Name = "Engineering Group Mapping", }); Console.WriteLine($"Mapping rule: {result.MappingRuleId}"); } ``` #### DeleteMappingRuleAsync(MappingRuleId, CancellationToken) ```csharp public Task DeleteMappingRuleAsync(MappingRuleId mappingRuleId, CancellationToken ct = default) ``` Delete a mapping rule Deletes the mapping rule with the given ID. | Parameter | Type | Description | | --------------- | ------------------- | ----------- | | `mappingRuleId` | `MappingRuleId` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### GetMappingRuleAsync(MappingRuleId, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetMappingRuleAsync(MappingRuleId mappingRuleId, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get a mapping rule Gets the mapping rule with the given ID. | Parameter | Type | Description | | --------------- | --------------------------------------- | ----------- | | `mappingRuleId` | `MappingRuleId` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### SearchMappingRuleAsync(MappingRuleSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchMappingRuleAsync(MappingRuleSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search mapping rules Search for mapping rules based on given criteria. | Parameter | Type | Description | | ------------- | -------------------------------------------------- | ----------- | | `body` | `MappingRuleSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` #### UpdateMappingRuleAsync(MappingRuleId, MappingRuleUpdateRequest, CancellationToken) ```csharp public Task UpdateMappingRuleAsync(MappingRuleId mappingRuleId, MappingRuleUpdateRequest body, CancellationToken ct = default) ``` Update mapping rule Update a mapping rule. | Parameter | Type | Description | | --------------- | -------------------------- | ----------- | | `mappingRuleId` | `MappingRuleId` | | | `body` | `MappingRuleUpdateRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` ### Decision Instances #### DeleteDecisionInstanceAsync(DecisionEvaluationKey, DeleteDecisionInstanceRequest, CancellationToken) ```csharp public Task DeleteDecisionInstanceAsync(DecisionEvaluationKey decisionEvaluationKey, DeleteDecisionInstanceRequest body, CancellationToken ct = default) ``` Delete decision instance Delete all associated decision evaluations based on provided key. | Parameter | Type | Description | | ----------------------- | ------------------------------- | ----------- | | `decisionEvaluationKey` | `DecisionEvaluationKey` | | | `body` | `DeleteDecisionInstanceRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteDecisionInstanceExample(DecisionEvaluationKey decisionEvaluationKey) { using var client = CamundaClient.Create(); await client.DeleteDecisionInstanceAsync( decisionEvaluationKey, new DeleteDecisionInstanceRequest()); } ``` #### DeleteDecisionInstancesBatchOperationAsync(DecisionInstanceDeletionBatchOperationRequest, CancellationToken) ```csharp public Task DeleteDecisionInstancesBatchOperationAsync(DecisionInstanceDeletionBatchOperationRequest body, CancellationToken ct = default) ``` Delete decision instances (batch) Delete multiple decision instances. This will delete the historic data from secondary storage. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). | Parameter | Type | Description | | --------- | ----------------------------------------------- | ----------- | | `body` | `DecisionInstanceDeletionBatchOperationRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task DeleteDecisionInstancesBatchOperationExample() { using var client = CamundaClient.Create(); var result = await client.DeleteDecisionInstancesBatchOperationAsync( new DecisionInstanceDeletionBatchOperationRequest()); Console.WriteLine($"Batch operation key: {result.BatchOperationKey}"); } ``` #### GetDecisionInstanceAsync(DecisionEvaluationInstanceKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetDecisionInstanceAsync(DecisionEvaluationInstanceKey decisionEvaluationInstanceKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get decision instance Returns a decision instance. | Parameter | Type | Description | | ------------------------------- | ---------------------------------------------------- | ----------- | | `decisionEvaluationInstanceKey` | `DecisionEvaluationInstanceKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDecisionInstanceExample(DecisionEvaluationInstanceKey decisionEvaluationInstanceKey) { using var client = CamundaClient.Create(); var result = await client.GetDecisionInstanceAsync( decisionEvaluationInstanceKey); Console.WriteLine($"Decision instance: {result.DecisionDefinitionId}"); } ``` #### SearchDecisionInstancesAsync(DecisionInstanceSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchDecisionInstancesAsync(DecisionInstanceSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search decision instances Search for decision instances based on given criteria. | Parameter | Type | Description | | ------------- | ------------------------------------------------------- | ----------- | | `body` | `DecisionInstanceSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchDecisionInstancesExample() { using var client = CamundaClient.Create(); var result = await client.SearchDecisionInstancesAsync( new DecisionInstanceSearchQuery()); foreach (var di in result.Items) { Console.WriteLine($"Decision instance: {di.DecisionDefinitionId}"); } } ``` ### Decisions #### EvaluateDecisionAsync(DecisionEvaluationInstruction, CancellationToken) ```csharp public Task EvaluateDecisionAsync(DecisionEvaluationInstruction body, CancellationToken ct = default) ``` Evaluate decision Evaluates a decision. You specify the decision to evaluate either by using its unique key (as returned by DeployResource), or using the decision ID. When using the decision ID, the latest deployed version of the decision is used. | Parameter | Type | Description | | --------- | ------------------------------- | ----------- | | `body` | `DecisionEvaluationInstruction` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task EvaluateDecisionByIdExample(DecisionDefinitionId decisionDefinitionId) { using var client = CamundaClient.Create(); var result = await client.EvaluateDecisionAsync(new DecisionEvaluationById { DecisionDefinitionId = decisionDefinitionId, }); Console.WriteLine($"Decision output: {result.Output}"); } public static async Task EvaluateDecisionByKeyExample(DecisionDefinitionKey decisionDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.EvaluateDecisionAsync(new DecisionEvaluationByKey { DecisionDefinitionKey = decisionDefinitionKey, }); Console.WriteLine($"Decision output: {result.Output}"); } ``` ### Audit Logs #### GetAuditLogAsync(AuditLogKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetAuditLogAsync(AuditLogKey auditLogKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get audit log Get an audit log entry by auditLogKey. | Parameter | Type | Description | | ------------- | ------------------------------------ | ----------- | | `auditLogKey` | `AuditLogKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetAuditLogExample(AuditLogKey auditLogKey) { using var client = CamundaClient.Create(); var result = await client.GetAuditLogAsync(auditLogKey); Console.WriteLine($"Audit log: {result.AuditLogKey}"); } ``` #### SearchAuditLogsAsync(AuditLogSearchQueryRequest, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchAuditLogsAsync(AuditLogSearchQueryRequest body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search audit logs Search for audit logs based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `body` | `AuditLogSearchQueryRequest` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchAuditLogsExample() { using var client = CamundaClient.Create(); var result = await client.SearchAuditLogsAsync( new AuditLogSearchQueryRequest()); foreach (var log in result.Items) { Console.WriteLine($"Audit log: {log.AuditLogKey}"); } } ``` ### Decision Definitions #### GetDecisionDefinitionAsync(DecisionDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetDecisionDefinitionAsync(DecisionDefinitionKey decisionDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get decision definition Returns a decision definition by key. | Parameter | Type | Description | | ----------------------- | ---------------------------------------------- | ----------- | | `decisionDefinitionKey` | `DecisionDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDecisionDefinitionExample(DecisionDefinitionKey decisionDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetDecisionDefinitionAsync( decisionDefinitionKey); Console.WriteLine($"Decision definition: {result.Name}"); } ``` #### GetDecisionDefinitionXmlAsync(DecisionDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetDecisionDefinitionXmlAsync(DecisionDefinitionKey decisionDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get decision definition XML Returns decision definition as XML. | Parameter | Type | Description | | ----------------------- | ---------------------------- | ----------- | | `decisionDefinitionKey` | `DecisionDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDecisionDefinitionXmlExample(DecisionDefinitionKey decisionDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetDecisionDefinitionXmlAsync( decisionDefinitionKey); Console.WriteLine($"XML: {result}"); } ``` #### SearchDecisionDefinitionsAsync(DecisionDefinitionSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchDecisionDefinitionsAsync(DecisionDefinitionSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search decision definitions Search for decision definitions based on given criteria. | Parameter | Type | Description | | ------------- | --------------------------------------------------------- | ----------- | | `body` | `DecisionDefinitionSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchDecisionDefinitionsExample() { using var client = CamundaClient.Create(); var result = await client.SearchDecisionDefinitionsAsync( new DecisionDefinitionSearchQuery()); foreach (var dd in result.Items) { Console.WriteLine($"Decision definition: {dd.Name}"); } } ``` ### Decision Requirements #### GetDecisionRequirementsAsync(DecisionRequirementsKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetDecisionRequirementsAsync(DecisionRequirementsKey decisionRequirementsKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get decision requirements Returns Decision Requirements as JSON. | Parameter | Type | Description | | ------------------------- | ------------------------------------------------ | ----------- | | `decisionRequirementsKey` | `DecisionRequirementsKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDecisionRequirementsExample(DecisionRequirementsKey decisionRequirementsKey) { using var client = CamundaClient.Create(); var result = await client.GetDecisionRequirementsAsync( decisionRequirementsKey); Console.WriteLine($"DRD: {result.DecisionRequirementsName}"); } ``` #### GetDecisionRequirementsXmlAsync(DecisionRequirementsKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetDecisionRequirementsXmlAsync(DecisionRequirementsKey decisionRequirementsKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get decision requirements XML Returns decision requirements as XML. | Parameter | Type | Description | | ------------------------- | ---------------------------- | ----------- | | `decisionRequirementsKey` | `DecisionRequirementsKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetDecisionRequirementsXmlExample(DecisionRequirementsKey decisionRequirementsKey) { using var client = CamundaClient.Create(); var result = await client.GetDecisionRequirementsXmlAsync( decisionRequirementsKey); Console.WriteLine($"XML: {result}"); } ``` #### SearchDecisionRequirementsAsync(DecisionRequirementsSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchDecisionRequirementsAsync(DecisionRequirementsSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search decision requirements Search for decision requirements based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------------------- | ----------- | | `body` | `DecisionRequirementsSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchDecisionRequirementsExample() { using var client = CamundaClient.Create(); var result = await client.SearchDecisionRequirementsAsync( new DecisionRequirementsSearchQuery()); foreach (var drd in result.Items) { Console.WriteLine($"DRD: {drd.DecisionRequirementsName}"); } } ``` ### Incidents #### GetIncidentAsync(IncidentKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetIncidentAsync(IncidentKey incidentKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get incident Returns incident as JSON. | Parameter | Type | Description | | ------------- | ------------------------------------ | ----------- | | `incidentKey` | `IncidentKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetIncidentExample(IncidentKey incidentKey) { using var client = CamundaClient.Create(); var result = await client.GetIncidentAsync(incidentKey); Console.WriteLine($"Incident: {result.IncidentKey}"); } ``` #### ResolveIncidentAsync(IncidentKey, IncidentResolutionRequest, CancellationToken) ```csharp public Task ResolveIncidentAsync(IncidentKey incidentKey, IncidentResolutionRequest body, CancellationToken ct = default) ``` Resolve incident Marks the incident as resolved; most likely a call to Update job will be necessary to reset the job's retries, followed by this call. | Parameter | Type | Description | | ------------- | --------------------------- | ----------- | | `incidentKey` | `IncidentKey` | | | `body` | `IncidentResolutionRequest` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task ResolveIncidentExample(IncidentKey incidentKey) { using var client = CamundaClient.Create(); await client.ResolveIncidentAsync( incidentKey, new IncidentResolutionRequest()); } ``` #### SearchElementInstanceIncidentsAsync(ElementInstanceKey, IncidentSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchElementInstanceIncidentsAsync(ElementInstanceKey elementInstanceKey, IncidentSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search for incidents of a specific element instance Search for incidents caused by the specified element instance, including incidents of any child instances created from this element instance. Although the `elementInstanceKey` is provided as a path parameter to indicate the root element instance, you may also include an `elementInstanceKey` within the filter object to narrow results to specific child element instances. This is useful, for example, if you want to isolate incidents associated with nested or subordinate elements within the given element instance while excluding incidents directly tied to the root element itself. | Parameter | Type | Description | | -------------------- | ----------------------------------------------- | ----------- | | `elementInstanceKey` | `ElementInstanceKey` | | | `body` | `IncidentSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchElementInstanceIncidentsExample(ElementInstanceKey elementInstanceKey) { using var client = CamundaClient.Create(); var result = await client.SearchElementInstanceIncidentsAsync( elementInstanceKey, new IncidentSearchQuery()); foreach (var incident in result.Items) { Console.WriteLine($"Incident: {incident.IncidentKey}"); } } ``` #### SearchIncidentsAsync(IncidentSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchIncidentsAsync(IncidentSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search incidents Search for incidents based on given criteria. | Parameter | Type | Description | | ------------- | ----------------------------------------------- | ----------- | | `body` | `IncidentSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchIncidentsExample() { using var client = CamundaClient.Create(); var result = await client.SearchIncidentsAsync(new IncidentSearchQuery()); foreach (var incident in result.Items) { Console.WriteLine($"Incident: {incident.IncidentKey}"); } } ``` ### Process Definitions #### GetProcessDefinitionAsync(ProcessDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionAsync(ProcessDefinitionKey processDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process definition Returns process definition as JSON. | Parameter | Type | Description | | ---------------------- | --------------------------------------------- | ----------- | | `processDefinitionKey` | `ProcessDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionAsync( processDefinitionKey); Console.WriteLine($"Process definition: {result.Name}"); } ``` #### GetProcessDefinitionInstanceStatisticsAsync(ProcessDefinitionInstanceStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionInstanceStatisticsAsync(ProcessDefinitionInstanceStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process instance statistics Get statistics about process instances, grouped by process definition and tenant. | Parameter | Type | Description | | ------------- | -------------------------------------------------------------------- | ----------- | | `body` | `ProcessDefinitionInstanceStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionInstanceStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionInstanceStatisticsAsync( new ProcessDefinitionInstanceStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Definition: {stat.ProcessDefinitionId}"); } } ``` #### GetProcessDefinitionInstanceVersionStatisticsAsync(ProcessDefinitionInstanceVersionStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionInstanceVersionStatisticsAsync(ProcessDefinitionInstanceVersionStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process instance statistics by version Get statistics about process instances, grouped by version for a given process definition. The process definition ID must be provided as a required field in the request body filter. | Parameter | Type | Description | | ------------- | --------------------------------------------------------------------------- | ----------- | | `body` | `ProcessDefinitionInstanceVersionStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionInstanceVersionStatisticsExample(ProcessDefinitionId processDefinitionId) { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionInstanceVersionStatisticsAsync( new ProcessDefinitionInstanceVersionStatisticsQuery { Filter = new ProcessDefinitionInstanceVersionStatisticsFilter { ProcessDefinitionId = processDefinitionId, }, }); foreach (var stat in result.Items) { Console.WriteLine($"Version: {stat.ProcessDefinitionVersion}"); } } ``` #### GetProcessDefinitionMessageSubscriptionStatisticsAsync(ProcessDefinitionMessageSubscriptionStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionMessageSubscriptionStatisticsAsync(ProcessDefinitionMessageSubscriptionStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get message subscription statistics Get message subscription statistics, grouped by process definition. | Parameter | Type | Description | | ------------- | ------------------------------------------------------------------------------- | ----------- | | `body` | `ProcessDefinitionMessageSubscriptionStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionMessageSubscriptionStatisticsExample() { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionMessageSubscriptionStatisticsAsync( new ProcessDefinitionMessageSubscriptionStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Message subscriptions: {stat.ActiveSubscriptions}"); } } ``` #### GetProcessDefinitionStatisticsAsync(ProcessDefinitionKey, ProcessDefinitionElementStatisticsQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionStatisticsAsync(ProcessDefinitionKey processDefinitionKey, ProcessDefinitionElementStatisticsQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process definition statistics Get statistics about elements in currently running process instances by process definition key and search filter. | Parameter | Type | Description | | ---------------------- | ------------------------------------------------------------------- | ----------- | | `processDefinitionKey` | `ProcessDefinitionKey` | | | `body` | `ProcessDefinitionElementStatisticsQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionStatisticsExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionStatisticsAsync( processDefinitionKey, new ProcessDefinitionElementStatisticsQuery()); foreach (var stat in result.Items) { Console.WriteLine($"Element: {stat.ElementId}"); } } ``` #### GetProcessDefinitionXmlAsync(ProcessDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetProcessDefinitionXmlAsync(ProcessDefinitionKey processDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process definition XML Returns process definition as XML. | Parameter | Type | Description | | ---------------------- | ---------------------------- | ----------- | | `processDefinitionKey` | `ProcessDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetProcessDefinitionXmlExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetProcessDefinitionXmlAsync( processDefinitionKey); Console.WriteLine($"XML: {result}"); } ``` #### GetStartProcessFormAsync(ProcessDefinitionKey, ConsistencyOptions\?, CancellationToken) ```csharp public Task GetStartProcessFormAsync(ProcessDefinitionKey processDefinitionKey, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Get process start form Get the start form of a process. Note that this endpoint will only return linked forms. This endpoint does not support embedded forms. | Parameter | Type | Description | | ---------------------- | -------------------------------- | ----------- | | `processDefinitionKey` | `ProcessDefinitionKey` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task GetStartProcessFormExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.GetStartProcessFormAsync( processDefinitionKey); Console.WriteLine($"Form: {result.FormKey}"); } ``` #### SearchProcessDefinitionVariableNamesAsync(ProcessDefinitionKey, ProcessDefinitionVariableNameSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchProcessDefinitionVariableNamesAsync(ProcessDefinitionKey processDefinitionKey, ProcessDefinitionVariableNameSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search process definition variable names Search for distinct variable names defined on a process definition, optionally narrowed by the name filter. | Parameter | Type | Description | | ---------------------- | -------------------------------------------------------------------- | ----------- | | `processDefinitionKey` | `ProcessDefinitionKey` | | | `body` | `ProcessDefinitionVariableNameSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchProcessDefinitionVariableNamesExample(ProcessDefinitionKey processDefinitionKey) { using var client = CamundaClient.Create(); var result = await client.SearchProcessDefinitionVariableNamesAsync( processDefinitionKey, new ProcessDefinitionVariableNameSearchQuery()); foreach (var variable in result.Items) { Console.WriteLine($"Variable name: {variable.Name}"); } } ``` #### SearchProcessDefinitionsAsync(ProcessDefinitionSearchQuery, ConsistencyOptions\?, CancellationToken) ```csharp public Task SearchProcessDefinitionsAsync(ProcessDefinitionSearchQuery body, ConsistencyOptions? consistency = null, CancellationToken ct = default) ``` Search process definitions Search for process definitions based on given criteria. | Parameter | Type | Description | | ------------- | -------------------------------------------------------- | ----------- | | `body` | `ProcessDefinitionSearchQuery` | | | `consistency` | `ConsistencyOptions` | | | `ct` | `CancellationToken` | | **Returns:** `Task` **Example** ```csharp public static async Task SearchProcessDefinitionsExample() { using var client = CamundaClient.Create(); var result = await client.SearchProcessDefinitionsAsync( new ProcessDefinitionSearchQuery()); foreach (var pd in result.Items) { Console.WriteLine($"Process definition: {pd.Name}"); } } ``` --- ## Configuration(Api-reference) Configuration and authentication types for the Camunda C# SDK. ## CamundaOptions Options for constructing a `CamundaClient`. Mirrors the JS SDK's CamundaOptions with idiomatic C# conventions. ```csharp public sealed class CamundaOptions ``` ### Properties | Property | Type | Description | | -------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Config` | `Dictionary` | Strongly typed env-style overrides (CAMUNDA_* keys). | | `Configuration` | `IConfiguration` | An `Configuration.IConfiguration` section (typically `configuration.GetSection("Camunda")`) to bind settings from `appsettings.json` or any other configuration provider. Keys use PascalCase property names (e.g. `RestAddress`, `Auth:Strategy`) and are mapped to the canonical `CAMUNDA_*` env-var names internally. Precedence (highest wins): `CamundaOptions.Config` > `CamundaOptions.Configuration` > environment variables > defaults. | | `HttpClient` | `HttpClient` | Custom HttpClient factory. If not provided, a default HttpClient is created. | | `HttpMessageHandler` | `HttpMessageHandler` | Custom HttpMessageHandler for the internal HttpClient (ignored if HttpClient is set). Useful for tests (e.g., MockHttpMessageHandler). | | `Env` | `Dictionary` | Provide a custom env map (mainly for tests). Defaults to Environment.GetEnvironmentVariable. | | `LoggerFactory` | `ILoggerFactory` | Logger factory for SDK logging. | | `TimeProvider` | `TimeProvider` | Clock used for all SDK runtime cadence: worker poll loops, eventual consistency polling, retry backoff, backpressure decay, and OAuth refresh. Defaults to `CamundaTimeProvider.Live` — the system clock, clamped so it cannot move backwards. Supply a `FakeTimeProvider` to make the client's own timing virtual in tests. Note that this pins the client clock only; pinning the engine clock is a separate, explicit step via `PinClockAsync`. | | `RandomSource` | `IRandomSource` | Randomness used for all SDK runtime jitter: HTTP retry backoff, OAuth retry backoff, and worker startup staggering. Defaults to `CamundaRandomSource.Live`, so production jitter stays random. Supply a `SeededRandomSource` alongside a fake `CamundaOptions.TimeProvider` to make the client's timing reproducible as well as virtual. | ## CamundaConfig Hydrated Camunda configuration. Immutable after construction. ```csharp public sealed class CamundaConfig ``` ### Properties | Property | Type | Description | | ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `RestAddress` | `String` | | | `TokenAudience` | `String` | | | `DefaultTenantId` | `String` | | | `TenantIds` | `IReadOnlyList` | Tenant ids job workers activate for, from `CAMUNDA_TENANT_IDS` (comma-separated) or the `TenantIds` configuration path. `null` when unset, in which case activation falls back to `CamundaConfig.DefaultTenantId`. | | `HttpRetry` | `HttpRetryConfig` | | | `Backpressure` | `BackpressureConfig` | | | `OAuth` | `OAuthConfig` | | | `Auth` | `AuthConfig` | | | `Validation` | `ValidationConfig` | | | `LogLevel` | `String` | | | `Eventual` | `EventualConfig` | | | `WorkerDefaults` | `WorkerDefaultsConfig` | | | `Tls` | `TlsConfig` | | ## ConfigurationHydrator Hydrates a `CamundaConfig` from environment variables and overrides. Mirrors the JS SDK's hydrateConfig function. ```csharp public static class ConfigurationHydrator ``` ## AuthConfig ```csharp public sealed class AuthConfig ``` ### Properties | Property | Type | Description | | ---------- | ----------------- | ----------- | | `Strategy` | `AuthStrategy` | | | `Basic` | `BasicAuthConfig` | | ## AuthStrategy Supported authentication strategies. ```csharp public enum AuthStrategy ``` | Value | Description | | ------- | ----------- | | `None` | | | `OAuth` | | | `Basic` | | ## BasicAuthConfig ```csharp public sealed class BasicAuthConfig ``` ### Properties | Property | Type | Description | | ---------- | -------- | ----------- | | `Username` | `String` | | | `Password` | `String` | | ## OAuthConfig ```csharp public sealed class OAuthConfig ``` ### Properties | Property | Type | Description | | -------------- | ------------------ | ----------- | | `ClientId` | `String` | | | `ClientSecret` | `String` | | | `OAuthUrl` | `String` | | | `GrantType` | `String` | | | `Scope` | `String` | | | `TimeoutMs` | `Int32` | | | `Retry` | `OAuthRetryConfig` | | ## OAuthRetryConfig ```csharp public sealed class OAuthRetryConfig ``` ### Properties | Property | Type | Description | | ------------- | ------- | ----------- | | `Max` | `Int32` | | | `BaseDelayMs` | `Int32` | | ## HttpRetryConfig ```csharp public sealed class HttpRetryConfig ``` ### Properties | Property | Type | Description | | ------------- | ------- | ----------- | | `MaxAttempts` | `Int32` | | | `BaseDelayMs` | `Int32` | | | `MaxDelayMs` | `Int32` | | ## BackpressureConfig ```csharp public sealed class BackpressureConfig ``` ### Properties | Property | Type | Description | | -------------------- | --------- | ----------- | | `Enabled` | `Boolean` | | | `Profile` | `String` | | | `ObserveOnly` | `Boolean` | | | `InitialMax` | `Int32` | | | `SoftFactor` | `Double` | | | `SevereFactor` | `Double` | | | `RecoveryIntervalMs` | `Int32` | | | `RecoveryStep` | `Int32` | | | `DecayQuietMs` | `Int32` | | | `Floor` | `Int32` | | | `SevereThreshold` | `Int32` | | ## EventualConfig ```csharp public sealed class EventualConfig ``` ### Properties | Property | Type | Description | | --------------- | ------- | ----------- | | `PollDefaultMs` | `Int32` | | ## ValidationConfig ```csharp public sealed class ValidationConfig ``` ### Properties | Property | Type | Description | | ---------- | ---------------- | ----------- | | `Request` | `ValidationMode` | | | `Response` | `ValidationMode` | | | `Raw` | `String` | | ## ValidationMode Validation modes for request/response validation. ```csharp public enum ValidationMode ``` | Value | Description | | ----------- | ----------- | | `None` | | | `Warn` | | | `Strict` | | | `Fanatical` | | ## JobWorkerConfig Configuration for a `JobWorker`. ```csharp public sealed class JobWorkerConfig ``` ### Properties | Property | Type | Description | | ------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `JobType` | `String` | The BPMN job type to subscribe to (e.g. `"payment-service"`). | | `JobTimeoutMs` | `Nullable` | How long (in ms) the job is reserved for this worker before the broker makes it available to other workers. Falls back to `CAMUNDA_WORKER_TIMEOUT` environment variable. | | `MaxConcurrentJobs` | `Nullable` | Maximum number of jobs that may be in-flight (activated and being handled) concurrently by this worker. Controls how many jobs are requested per poll and how many handler tasks run in parallel. For I/O-bound handlers (HTTP calls, database queries), higher values (32–128) improve throughput because async handlers release threads during awaits. For CPU-bound handlers, set to `Environment.ProcessorCount` or lower to avoid over-subscribing the thread pool. Set to `1` for sequential (single-job-at-a-time) processing. Falls back to `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` environment variable, then `10`. | | `PollIntervalMs` | `Int32` | Delay (in ms) between poll cycles when no jobs are available or when at capacity. Default: 500 ms. | | `PollTimeoutMs` | `Nullable` | Long-poll timeout (in ms) sent to the broker. The broker holds the activation request open until jobs are available or this timeout elapses. `null` or `0` = broker default; negative = long polling disabled. | | `FetchVariables` | `List` | Variable names to fetch from the process instance scope. `null` = fetch all. | | `WorkerName` | `String` | Worker name sent to the broker for logging and diagnostics. Auto-generated if not set. | | `AutoStart` | `Boolean` | Whether to start polling immediately on creation. Default: `true`. | | `StartupJitterMaxSeconds` | `Double` | Maximum random delay (in seconds) before the worker starts polling. When multiple application instances restart simultaneously, this spreads out initial activation requests to avoid saturating the server. `0` (the default) means no delay. | | `TenantIds` | `IReadOnlyList` | Restrict job activation to the given tenant IDs (multi-tenant setups). Cannot be combined with `JobWorkerConfig.TenantId` — setting both is rejected with `ArgumentException`. If neither `JobWorkerConfig.TenantIds` nor `JobWorkerConfig.TenantId` is set (or `JobWorkerConfig.TenantIds` is empty), the activation request falls back to `CamundaConfig.TenantIds` (from the `CAMUNDA_TENANT_IDS` environment variable, comma-separated), then to `[CamundaConfig.DefaultTenantId]` (which itself defaults to `""` and can be overridden via the `CAMUNDA_DEFAULT_TENANT_ID` environment variable). | | `TenantId` | `String` | Convenience for the common single-tenant case. Equivalent to setting `JobWorkerConfig.TenantIds` to `[TenantId]`. Cannot be combined with `JobWorkerConfig.TenantIds`. | | `TenantFilter` | `Nullable` | Tenant filtering strategy for job activation. `TenantFilterEnum.PROVIDED` (the server default when this is `null`) activates jobs for the tenants named in `JobWorkerConfig.TenantIds` / `JobWorkerConfig.TenantId`, falling back to the default tenant. `TenantFilterEnum.ASSIGNED` activates jobs for whichever tenants are currently assigned to the authenticated client, re-evaluated by the server on every activation request — so tenant assignment changes take effect without restarting the worker. No tenant IDs are sent, and `JobWorkerConfig.TenantIds` / `JobWorkerConfig.TenantId` must not be set (the server would silently ignore them). Requires multi-tenancy to be enabled on the cluster; otherwise the server rejects the activation request with HTTP 400. Requires Camunda 8.9 or later. | | `WithLease` | `Boolean` | Activate jobs with a lease. Each job then carries a lease token that the worker sends back on complete, fail, and throw-error, so the engine can fence the command against a superseded activation (for example after the job timed out and another worker picked it up). Off by default, matching the engine. Requires a server that returns lease tokens: rather than degrade to unfenced commands, a worker that asked for a lease and is handed a job whose token is missing or invalid stops with `LeaseNotHonoredException`, surfaced through `CamundaClient.RunWorkersAsync`. | ## ConfigErrorCode Configuration hydration errors. ```csharp public enum ConfigErrorCode ``` | Value | Description | | ------------------------- | ----------- | | `MissingRequired` | | | `InvalidEnum` | | | `InvalidBoolean` | | | `InvalidInteger` | | | `InvalidValidationSyntax` | | ## ConfigErrorDetail ```csharp public sealed class ConfigErrorDetail ``` ### Properties | Property | Type | Description | | --------- | ----------------- | ----------- | | `Key` | `String` | | | `Code` | `ConfigErrorCode` | | | `Message` | `String` | | --- ## Enums Enumeration types (110 enums). ## AgentDefinitionSearchQuerySortRequestField The field to sort by. | Value | Description | | ----------------------------- | ----------- | | `AgentDefinitionKey` | | | `AgentType` | | | `Name` | | | `ElementId` | | | `ProcessDefinitionId` | | | `ProcessDefinitionKey` | | | `ProcessDefinitionVersion` | | | `ProcessDefinitionVersionTag` | | | `TenantId` | | ## AgentDefinitionTypeEnum The kind of agent an agent definition describes. | Value | Description | | ------------------- | ----------- | | `AIAGENTSUBPROCESS` | | | `AIAGENTTASK` | | | `EXTERNALAGENT` | | ## AgentInstanceHistoryCommitStatusEnum The commit status of a history item. COMMITTED: the producing job completed successfully. PENDING: the producing job is still active (in-flight). DISCARDED: the producing job failed; this item was superseded by a later activation. | Value | Description | | ----------- | ----------- | | `COMMITTED` | | | `PENDING` | | | `DISCARDED` | | ## AgentInstanceHistoryRoleEnum The role of a history item in the agent conversation. | Value | Description | | --------------- | ----------- | | `USER` | | | `ASSISTANT` | | | `TOOLRESULT` | | | `CONFIGURATION` | | ## AgentInstanceHistorySearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------- | ----------- | | `ProducedAt` | | | `HistoryItemKey` | | | `LoopIteration` | | ## AgentInstanceMessageContentTypeEnum The content type discriminator for a history item content block. | Value | Description | | ---------- | ----------- | | `TEXT` | | | `DOCUMENT` | | | `OBJECT` | | ## AgentInstanceSearchQuerySortRequestField The field to sort by. | Value | Description | | ------------------------ | ----------- | | `AgentInstanceKey` | | | `AgentDefinitionKey` | | | `Status` | | | `ElementId` | | | `ProcessInstanceKey` | | | `RootProcessInstanceKey` | | | `ProcessDefinitionKey` | | | `TenantId` | | | `CreationDate` | | | `LastUpdatedDate` | | | `CompletionDate` | | ## AgentInstanceStatusEnum The current status of an agent instance. | Value | Description | | --------------- | ----------- | | `UNKNOWN` | | | `COMPLETED` | | | `IDLE` | | | `INITIALIZING` | | | `THINKING` | | | `TOOLCALLING` | | | `TOOLDISCOVERY` | | ## AgentInstanceUpdateStatusEnum The status values that can be set on an agent instance via an update request. | Value | Description | | --------------- | ----------- | | `IDLE` | | | `THINKING` | | | `TOOLCALLING` | | | `TOOLDISCOVERY` | | ## AuditLogActorTypeEnum The type of actor who performed the operation. | Value | Description | | ----------- | ----------- | | `ANONYMOUS` | | | `CLIENT` | | | `UNKNOWN` | | | `USER` | | ## AuditLogCategoryEnum The category of the audit log operation. | Value | Description | | ------------------- | ----------- | | `ADMIN` | | | `DEPLOYEDRESOURCES` | | | `USERTASKS` | | ## AuditLogEntityTypeEnum The type of entity affected by the operation. | Value | Description | | ----------------- | ----------- | | `AUTHORIZATION` | | | `BATCH` | | | `DECISION` | | | `GROUP` | | | `INCIDENT` | | | `JOB` | | | `MAPPINGRULE` | | | `PROCESSINSTANCE` | | | `RESOURCE` | | | `ROLE` | | | `TENANT` | | | `USER` | | | `USERTASK` | | | `VARIABLE` | | | `CLIENT` | | ## AuditLogOperationTypeEnum The type of operation performed. | Value | Description | | ---------- | ----------- | | `ASSIGN` | | | `CANCEL` | | | `COMPLETE` | | | `CREATE` | | | `DELETE` | | | `EVALUATE` | | | `MIGRATE` | | | `MODIFY` | | | `RESOLVE` | | | `RESUME` | | | `SUSPEND` | | | `UNASSIGN` | | | `UNKNOWN` | | | `UPDATE` | | ## AuditLogResultEnum The result status of the operation. | Value | Description | | --------- | ----------- | | `FAIL` | | | `SUCCESS` | | ## AuditLogSearchQuerySortRequestField The field to sort by. | Value | Description | | ------------------------- | ----------- | | `ActorId` | | | `ActorType` | | | `AuditLogKey` | | | `BatchOperationKey` | | | `BatchOperationType` | | | `Category` | | | `DecisionDefinitionId` | | | `DecisionDefinitionKey` | | | `DecisionEvaluationKey` | | | `DecisionRequirementsId` | | | `DecisionRequirementsKey` | | | `ElementInstanceKey` | | | `EntityKey` | | | `EntityType` | | | `JobKey` | | | `OperationType` | | | `ProcessDefinitionId` | | | `ProcessDefinitionKey` | | | `ProcessInstanceKey` | | | `InboundChannelType` | | | `InboundChannelToolName` | | | `Result` | | | `TenantId` | | | `Timestamp` | | | `UserTaskKey` | | ## AuthorizationSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------------- | ----------- | | `OwnerId` | | | `OwnerType` | | | `ResourceId` | | | `ResourcePropertyName` | | | `ResourceType` | | ## BackupType The type of the backup. | Value | Description | | ----------------- | ----------- | | `MANUALBACKUP` | | | `SCHEDULEDBACKUP` | | ## BatchOperationErrorType The type of the error that occurred during the batch operation. | Value | Description | | -------------------------- | ----------- | | `QUERYFAILED` | | | `RESULTBUFFERSIZEEXCEEDED` | | ## BatchOperationItemResponseState State of the item. | Value | Description | | ----------- | ----------- | | `ACTIVE` | | | `COMPLETED` | | | `SKIPPED` | | | `CANCELED` | | | `FAILED` | | ## BatchOperationItemSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------- | ----------- | | `BatchOperationKey` | | | `ItemKey` | | | `ProcessInstanceKey` | | | `ProcessedDate` | | | `State` | | ## BatchOperationItemStateEnum The batch operation item state. | Value | Description | | ----------- | ----------- | | `ACTIVE` | | | `COMPLETED` | | | `CANCELED` | | | `FAILED` | | ## BatchOperationSearchQuerySortRequestField The field to sort by. | Value | Description | | ------------------- | ----------- | | `BatchOperationKey` | | | `OperationType` | | | `State` | | | `StartDate` | | | `EndDate` | | | `ActorType` | | | `ActorId` | | ## BatchOperationStateEnum The batch operation state. | Value | Description | | -------------------- | ----------- | | `ACTIVE` | | | `CANCELED` | | | `COMPLETED` | | | `CREATED` | | | `FAILED` | | | `PARTIALLYCOMPLETED` | | | `SUSPENDED` | | ## BatchOperationTypeEnum The type of the batch operation. | Value | Description | | -------------------------- | ----------- | | `ADDVARIABLE` | | | `CANCELPROCESSINSTANCE` | | | `DELETEDECISIONDEFINITION` | | | `DELETEDECISIONINSTANCE` | | | `DELETEPROCESSDEFINITION` | | | `DELETEPROCESSINSTANCE` | | | `MIGRATEPROCESSINSTANCE` | | | `MODIFYPROCESSINSTANCE` | | | `RESOLVEINCIDENT` | | | `RESUMEPROCESSINSTANCE` | | | `SUSPENDPROCESSINSTANCE` | | | `UPDATEJOB` | | | `UPDATEVARIABLE` | | ## CamundaAuthErrorCode Auth error codes matching the JS SDK. | Value | Description | | ------------------------- | ----------- | | `TokenFetchFailed` | | | `TokenParseFailed` | | | `TokenExpired` | | | `OAuthConfigMissing` | | | `BasicCredentialsMissing` | | ## CheckpointType The type of the checkpoint. | Value | Description | | ----------------- | ----------- | | `MARKER` | | | `SCHEDULEDBACKUP` | | | `MANUALBACKUP` | | ## CloudStage The cloud deployment stage. | Value | Description | | ------ | ----------- | | `Dev` | | | `Int` | | | `Prod` | | ## ClusterBalanceResponseState The cluster's aggregate balance state as of the time of the request. | Value | Description | | ------------ | ----------- | | `BALANCED` | | | `BALANCING` | | | `UNBALANCED` | | ## ClusterCompletedRebalanceResult How the rebalance ended. | Value | Description | | ----------- | ----------- | | `COMPLETED` | | | `CANCELLED` | | | `FAILED` | | ## ClusterHistoryBackupTenantState What a physical tenant reports for a history backup id: the per-tenant `HistoryBackupStateCode` extended with `NOT_FOUND` for a tenant that was read and does not hold the backup. `NOT_FOUND` is a successful observation, not a failure — a backup that only some physical tenants hold is a supported outcome. There is no state for a tenant that could not be read at all, because such a tenant fails the whole request. | Value | Description | | -------------- | ----------- | | `INPROGRESS` | | | `COMPLETED` | | | `FAILED` | | | `INCOMPLETE` | | | `INCOMPATIBLE` | | | `NOTFOUND` | | ## ClusterRebalanceOperationPartitionProgress Where this rebalance has reached for the partition. | Value | Description | | -------------- | ----------- | | `PENDING` | | | `TRANSFERRING` | | | `COMPLETED` | | ## ClusterRebalanceOperationPartitionResult The terminal outcome, present only when progress is COMPLETED. | Value | Description | | ------------------------------- | ----------- | | `TRANSFERRED` | | | `ALREADYLEADER` | | | `NOTMEMBER` | | | `NOTREPLICATING` | | | `UNREACHABLE` | | | `NOTCOORDINATOR` | | | `STALECONFIGURATION` | | | `TRANSFERINPROGRESS` | | | `LAGTOOHIGH` | | | `LEADERINITIALIZING` | | | `CONFIGURATIONCHANGEINPROGRESS` | | | `PAUSEFAILED` | | | `REPLICATIONTIMEDOUT` | | | `TIMEOUTNOWEXHAUSTED` | | | `LEADERCHANGED` | | | `NOLEADER` | | | `NORESPONSE` | | | `CANCELLED` | | | `PHYSICALTENANTDISABLED` | | | `PHYSICALTENANTRECOVERING` | | ## ClusterRebalancePartitionState Whether this partition is being actively transferred, unbalanced, or balanced. | Value | Description | | -------------- | ----------- | | `TRANSFERRING` | | | `UNBALANCED` | | | `BALANCED` | | ## ClusterRuntimeBackupTakeOutcome What a physical tenant did with the trigger. `TRIGGERED` says the backup is running, not that it completed — poll `GET /cluster/v2/backups/runtime/{backupId}` for that. A `FAILED` tenant is running no backup for this request and needs no cleanup. `UNKNOWN` means the broker may or may not have accepted the request — the connection was cut mid-flight, or the gateway timed out waiting — so that tenant's backups have to be checked before retrying; it is reported separately from `FAILED` precisely because calling it failed would claim nothing is running there. Tenants that were triggered are never rolled back. | Value | Description | | ----------- | ----------- | | `TRIGGERED` | | | `FAILED` | | | `UNKNOWN` | | ## ClusterStatusResponseStatus `HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, `DEGRADED` in every other case. | Value | Description | | ---------- | ----------- | | `HEALTHY` | | | `DEGRADED` | | | `DOWN` | | ## ClusterUpgradeStatusResponseStatus `MIGRATED` once every known upgrade-readiness condition is met for every known physical tenant; `MIGRATION_IN_PROGRESS` when at least one is confirmed not yet migrated; `UNKNOWN` otherwise. | Value | Description | | --------------------- | ----------- | | `MIGRATED` | | | `MIGRATIONINPROGRESS` | | | `UNKNOWN` | | ## ClusterVariableKindEnum The kind of a cluster variable. JSON is the default. SECRET_REFERENCE allows the value to contain camunda.secrets.X references that are resolved at job activation time. | Value | Description | | ----------------- | ----------- | | `JSON` | | | `SECRETREFERENCE` | | ## ClusterVariableScopeEnum The scope of a cluster variable. | Value | Description | | -------- | ----------- | | `GLOBAL` | | | `TENANT` | | ## ClusterVariableSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `Name` | | | `Value` | | | `TenantId` | | | `Scope` | | ## CorrelatedMessageSubscriptionSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------------- | ----------- | | `BusinessId` | | | `CorrelationKey` | | | `CorrelationTime` | | | `ElementId` | | | `ElementInstanceKey` | | | `MessageKey` | | | `MessageName` | | | `PartitionId` | | | `ProcessDefinitionId` | | | `ProcessDefinitionKey` | | | `ProcessInstanceKey` | | | `SubscriptionKey` | | | `TenantId` | | ## DecisionDefinitionSearchQuerySortRequestField The field to sort by. | Value | Description | | ----------------------------- | ----------- | | `DecisionDefinitionKey` | | | `DecisionDefinitionId` | | | `Name` | | | `Version` | | | `DecisionRequirementsId` | | | `DecisionRequirementsKey` | | | `DecisionRequirementsName` | | | `DecisionRequirementsVersion` | | | `TenantId` | | ## DecisionDefinitionTypeEnum The type of the decision. UNSPECIFIED is deprecated and should not be used anymore, for removal in 8.10 | Value | Description | | ------------------- | ----------- | | `DECISIONTABLE` | | | `LITERALEXPRESSION` | | | `UNSPECIFIED` | | | `UNKNOWN` | | ## DecisionInstanceSearchQuerySortRequestField The field to sort by. | Value | Description | | ------------------------------- | ----------- | | `BusinessId` | | | `DecisionDefinitionId` | | | `DecisionDefinitionKey` | | | `DecisionDefinitionName` | | | `DecisionDefinitionType` | | | `DecisionDefinitionVersion` | | | `DecisionEvaluationInstanceKey` | | | `DecisionEvaluationKey` | | | `ElementInstanceKey` | | | `EvaluationDate` | | | `EvaluationFailure` | | | `ProcessDefinitionKey` | | | `ProcessInstanceKey` | | | `RootDecisionDefinitionKey` | | | `State` | | | `TenantId` | | ## DecisionInstanceStateEnum The state of the decision instance. UNSPECIFIED and UNKNOWN are deprecated and should not be used anymore, for removal in 8.10 | Value | Description | | ------------- | ----------- | | `EVALUATED` | | | `FAILED` | | | `UNSPECIFIED` | | | `UNKNOWN` | | ## DecisionRequirementsSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------------- | ----------- | | `DecisionRequirementsKey` | | | `DecisionRequirementsName` | | | `Version` | | | `DecisionRequirementsId` | | | `TenantId` | | ## DocumentReferenceCamundaDocumentType Document discriminator. Always set to "camunda". | Value | Description | | --------- | ----------- | | `Camunda` | | ## ElementInstanceFilterFieldsType Type of element as defined set of values. | Value | Description | | ------------------------------ | ----------- | | `UNSPECIFIED` | | | `PROCESS` | | | `SUBPROCESS` | | | `EVENTSUBPROCESS` | | | `ADHOCSUBPROCESS` | | | `ADHOCSUBPROCESSINNERINSTANCE` | | | `STARTEVENT` | | | `INTERMEDIATECATCHEVENT` | | | `INTERMEDIATETHROWEVENT` | | | `BOUNDARYEVENT` | | | `ENDEVENT` | | | `SERVICETASK` | | | `RECEIVETASK` | | | `USERTASK` | | | `MANUALTASK` | | | `TASK` | | | `EXCLUSIVEGATEWAY` | | | `INCLUSIVEGATEWAY` | | | `PARALLELGATEWAY` | | | `EVENTBASEDGATEWAY` | | | `SEQUENCEFLOW` | | | `MULTIINSTANCEBODY` | | | `CALLACTIVITY` | | | `BUSINESSRULETASK` | | | `SCRIPTTASK` | | | `SENDTASK` | | | `UNKNOWN` | | ## ElementInstanceFilterType Type of element as defined set of values. | Value | Description | | ------------------------------ | ----------- | | `UNSPECIFIED` | | | `PROCESS` | | | `SUBPROCESS` | | | `EVENTSUBPROCESS` | | | `ADHOCSUBPROCESS` | | | `ADHOCSUBPROCESSINNERINSTANCE` | | | `STARTEVENT` | | | `INTERMEDIATECATCHEVENT` | | | `INTERMEDIATETHROWEVENT` | | | `BOUNDARYEVENT` | | | `ENDEVENT` | | | `SERVICETASK` | | | `RECEIVETASK` | | | `USERTASK` | | | `MANUALTASK` | | | `TASK` | | | `EXCLUSIVEGATEWAY` | | | `INCLUSIVEGATEWAY` | | | `PARALLELGATEWAY` | | | `EVENTBASEDGATEWAY` | | | `SEQUENCEFLOW` | | | `MULTIINSTANCEBODY` | | | `CALLACTIVITY` | | | `BUSINESSRULETASK` | | | `SCRIPTTASK` | | | `SENDTASK` | | | `UNKNOWN` | | ## ElementInstanceResultType Type of element as defined set of values. | Value | Description | | ------------------------------ | ----------- | | `UNSPECIFIED` | | | `PROCESS` | | | `SUBPROCESS` | | | `EVENTSUBPROCESS` | | | `ADHOCSUBPROCESS` | | | `ADHOCSUBPROCESSINNERINSTANCE` | | | `STARTEVENT` | | | `INTERMEDIATECATCHEVENT` | | | `INTERMEDIATETHROWEVENT` | | | `BOUNDARYEVENT` | | | `ENDEVENT` | | | `SERVICETASK` | | | `RECEIVETASK` | | | `USERTASK` | | | `MANUALTASK` | | | `TASK` | | | `EXCLUSIVEGATEWAY` | | | `INCLUSIVEGATEWAY` | | | `PARALLELGATEWAY` | | | `EVENTBASEDGATEWAY` | | | `SEQUENCEFLOW` | | | `MULTIINSTANCEBODY` | | | `CALLACTIVITY` | | | `BUSINESSRULETASK` | | | `SCRIPTTASK` | | | `SENDTASK` | | | `UNKNOWN` | | ## ElementInstanceSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------------- | ----------- | | `ElementInstanceKey` | | | `ProcessInstanceKey` | | | `ProcessDefinitionKey` | | | `ProcessDefinitionId` | | | `StartDate` | | | `EndDate` | | | `ElementId` | | | `ElementName` | | | `Type` | | | `State` | | | `IncidentKey` | | | `TenantId` | | ## ElementInstanceStateEnum Element states | Value | Description | | ------------ | ----------- | | `ACTIVE` | | | `COMPLETED` | | | `TERMINATED` | | ## ElementInstanceWaitStateQuerySortRequestField The field to sort by. | Value | Description | | ------------------------ | ----------- | | `ElementInstanceKey` | | | `ProcessInstanceKey` | | | `RootProcessInstanceKey` | | | `ElementId` | | ## ExportingStatusCode The exporting status of a physical tenant, aggregated over every replica of every one of its partitions: - `EXPORTING`: all replicas are exporting and committing their position. - `PAUSED`: all replicas are paused, nothing is being exported. - `SOFT_PAUSED`: all replicas keep exporting but do not commit their position. - `MIXED`: replicas report different phases, so the tenant is in no single phase. | Value | Description | | ------------ | ----------- | | `EXPORTING` | | | `PAUSED` | | | `SOFTPAUSED` | | | `MIXED` | | ## GlobalListenerSourceEnum How the global listener was defined. | Value | Description | | --------------- | ----------- | | `CONFIGURATION` | | | `API` | | ## GlobalTaskListenerEventTypeEnum The event type that triggers the user task listener. | Value | Description | | ------------ | ----------- | | `All` | | | `Creating` | | | `Assigning` | | | `Updating` | | | `Completing` | | | `Canceling` | | ## GlobalTaskListenerSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------- | ----------- | | `Id` | | | `Type` | | | `AfterNonGlobal` | | | `Priority` | | | `Source` | | ## GroupClientSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `ClientId` | | ## GroupSearchQuerySortRequestField The field to sort by. | Value | Description | | --------- | ----------- | | `Name` | | | `GroupId` | | ## GroupUserSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `Username` | | ## HistoryBackupStateCode The aggregated state of a history backup, computed from the state of each of its snapshots. | Value | Description | | -------------- | ----------- | | `INPROGRESS` | | | `COMPLETED` | | | `FAILED` | | | `INCOMPLETE` | | | `INCOMPATIBLE` | | ## IncidentErrorTypeEnum Incident error type with a defined set of values. | Value | Description | | ---------------------------- | ----------- | | `ADHOCSUBPROCESSNORETRIES` | | | `CALLEDDECISIONERROR` | | | `CALLEDELEMENTERROR` | | | `CONDITIONERROR` | | | `DECISIONEVALUATIONERROR` | | | `EXECUTIONLISTENERNORETRIES` | | | `EXTRACTVALUEERROR` | | | `FORMNOTFOUND` | | | `IOMAPPINGERROR` | | | `JOBNORETRIES` | | | `MESSAGESIZEEXCEEDED` | | | `RESOURCENOTFOUND` | | | `SECRETRESOLUTIONERROR` | | | `TASKLISTENERNORETRIES` | | | `UNHANDLEDERROREVENT` | | | `UNKNOWN` | | | `UNSPECIFIED` | | ## IncidentProcessInstanceStatisticsByDefinitionQuerySortRequestField The aggregated field by which the process instance statistics are sorted. | Value | Description | | ------------------------------- | ----------- | | `ActiveInstancesWithErrorCount` | | | `ProcessDefinitionKey` | | | `TenantId` | | ## IncidentProcessInstanceStatisticsByErrorQuerySortRequestField The field to sort the incident error statistics by. | Value | Description | | ------------------------------- | ----------- | | `ErrorMessage` | | | `ActiveInstancesWithErrorCount` | | ## IncidentSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------------- | ----------- | | `IncidentKey` | | | `ProcessDefinitionKey` | | | `ProcessDefinitionId` | | | `ProcessInstanceKey` | | | `ErrorType` | | | `ElementId` | | | `ElementInstanceKey` | | | `CreationTime` | | | `State` | | | `JobKey` | | | `TenantId` | | ## IncidentStateEnum Incident states with a defined set of values. | Value | Description | | ---------- | ----------- | | `ACTIVE` | | | `MIGRATED` | | | `PENDING` | | | `RESOLVED` | | | `UNKNOWN` | | ## JobKindEnum The job kind. | Value | Description | | ------------------- | ----------- | | `BPMNELEMENT` | | | `EXECUTIONLISTENER` | | | `TASKLISTENER` | | | `ADHOCSUBPROCESS` | | ## JobListenerEventTypeEnum The listener event type of the job. | Value | Description | | ------------- | ----------- | | `ASSIGNING` | | | `BEFOREALL` | | | `CANCEL` | | | `CANCELING` | | | `COMPLETING` | | | `CREATING` | | | `END` | | | `START` | | | `UNSPECIFIED` | | | `UPDATING` | | ## JobSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------------- | ----------- | | `CreationTime` | | | `Deadline` | | | `DeniedReason` | | | `ElementId` | | | `ElementInstanceKey` | | | `EndTime` | | | `ErrorCode` | | | `ErrorMessage` | | | `HasFailedWithRetriesLeft` | | | `IsDenied` | | | `JobKey` | | | `Kind` | | | `ListenerEventType` | | | `Priority` | | | `ProcessDefinitionId` | | | `ProcessDefinitionKey` | | | `ProcessInstanceKey` | | | `Retries` | | | `State` | | | `TenantId` | | | `Type` | | | `Worker` | | ## JobStateEnum The state of the job. | Value | Description | | ----------------- | ----------- | | `CANCELED` | | | `COMPLETED` | | | `CREATED` | | | `ERRORTHROWN` | | | `FAILED` | | | `MIGRATED` | | | `PRIORITYUPDATED` | | | `RETRIESUPDATED` | | | `TIMEOUTUPDATED` | | | `TIMEDOUT` | | ## MappingRuleSearchQuerySortRequestField The field to sort by. | Value | Description | | --------------- | ----------- | | `MappingRuleId` | | | `ClaimName` | | | `ClaimValue` | | | `Name` | | ## MessageSubscriptionSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------------- | ----------- | | `BusinessId` | | | `MessageSubscriptionKey` | | | `ProcessDefinitionId` | | | `ProcessDefinitionName` | | | `ProcessDefinitionVersion` | | | `ProcessInstanceKey` | | | `ElementId` | | | `ElementInstanceKey` | | | `MessageSubscriptionState` | | | `MessageSubscriptionType` | | | `LastUpdatedDate` | | | `MessageName` | | | `CorrelationKey` | | | `TenantId` | | | `ToolName` | | | `InboundConnectorType` | | ## MessageSubscriptionStateEnum The state of message subscription. **Note for `START_EVENT` subscriptions:** The `CORRELATED` and `MIGRATED` states are not tracked for these subscriptions. To query correlation history for process start events, use the `/correlated-message-subscriptions/search` endpoint. | Value | Description | | ------------ | ----------- | | `CORRELATED` | | | `CREATED` | | | `DELETED` | | | `MIGRATED` | | ## MessageSubscriptionTypeEnum The type of message subscription. `START_EVENT` is definition-scoped (process start events). Always has a value; only captured from Camunda 8.10 onwards. `PROCESS_EVENT` is instance-scoped (intermediate catch events). Pre-8.10 entries have no value stored; the API returns `PROCESS_EVENT` as a default for those entries. | Value | Description | | -------------- | ----------- | | `STARTEVENT` | | | `PROCESSEVENT` | | ## Mode The operating mode of a cluster's partitions. | Value | Description | | ------------ | ----------- | | `PROCESSING` | | | `RECOVERING` | | ## OwnerTypeEnum The type of the owner of permissions. | Value | Description | | ------------- | ----------- | | `USER` | | | `CLIENT` | | | `ROLE` | | | `GROUP` | | | `MAPPINGRULE` | | | `UNSPECIFIED` | | ## PartitionHealth Describes the current health of the partition. | Value | Description | | ----------- | ----------- | | `Healthy` | | | `Unhealthy` | | | `Dead` | | ## PartitionRole Describes the Raft role of the broker for a given partition. | Value | Description | | ---------- | ----------- | | `Leader` | | | `Follower` | | | `Inactive` | | ## PartitionState Describes the current operational state of the partition within the cluster configuration. | Value | Description | | ------------ | ----------- | | `Unknown` | | | `Joining` | | | `Active` | | | `Leaving` | | | `Recovering` | | | `Learner` | | ## PermissionTypeEnum Specifies the type of permissions. | Value | Description | | ---------------------------------------------- | ----------- | | `ACCESS` | | | `CANCELPROCESSINSTANCE` | | | `CLAIM` | | | `CLAIMUSERTASK` | | | `COMPLETE` | | | `COMPLETEUSERTASK` | | | `CREATE` | | | `CREATEBATCHOPERATIONCANCELPROCESSINSTANCE` | | | `CREATEBATCHOPERATIONDELETEDECISIONDEFINITION` | | | `CREATEBATCHOPERATIONDELETEDECISIONINSTANCE` | | | `CREATEBATCHOPERATIONDELETEPROCESSDEFINITION` | | | `CREATEBATCHOPERATIONDELETEPROCESSINSTANCE` | | | `CREATEBATCHOPERATIONMIGRATEPROCESSINSTANCE` | | | `CREATEBATCHOPERATIONMODIFYPROCESSINSTANCE` | | | `CREATEBATCHOPERATIONRESOLVEINCIDENT` | | | `CREATEBATCHOPERATIONSUSPENDPROCESSINSTANCE` | | | `CREATEBATCHOPERATIONUPDATEJOB` | | | `CREATEDECISIONINSTANCE` | | | `CREATEPROCESSINSTANCE` | | | `CREATETASKLISTENER` | | | `DELETE` | | | `DELETEDECISIONINSTANCE` | | | `DELETEDRD` | | | `DELETEFORM` | | | `DELETEPROCESS` | | | `DELETEPROCESSINSTANCE` | | | `DELETERESOURCE` | | | `DELETETASKLISTENER` | | | `EVALUATE` | | | `MODIFYPROCESSINSTANCE` | | | `PAUSE` | | | `READ` | | | `READDECISIONDEFINITION` | | | `READDECISIONINSTANCE` | | | `READJOBMETRIC` | | | `READPROCESSDEFINITION` | | | `READPROCESSINSTANCE` | | | `READUSAGEMETRIC` | | | `READUSERTASK` | | | `READTASKLISTENER` | | | `RESTORE` | | | `REVEAL` | | | `SUSPENDPROCESSINSTANCE` | | | `UPDATE` | | | `UPDATEPROCESSINSTANCE` | | | `UPDATEUSERTASK` | | | `UPDATETASKLISTENER` | | ## ProcessDefinitionFilterState Filter by the process definition's state. When not set, process definitions in any state are returned. Set to `ACTIVE` to exclude draining and deleted definitions (recommended for most use cases). Set to `DRAINING` to return only definitions that are being deleted but still have active process instances draining. Set to `DELETED` to return only definitions that have been deleted but are still retained in secondary storage. | Value | Description | | ---------- | ----------- | | `ACTIVE` | | | `DRAINING` | | | `DELETED` | | ## ProcessDefinitionInstanceStatisticsQuerySortRequestField The field to sort by. | Value | Description | | ------------------------------------- | ----------- | | `ProcessDefinitionId` | | | `ActiveInstancesWithIncidentCount` | | | `ActiveInstancesWithoutIncidentCount` | | ## ProcessDefinitionInstanceVersionStatisticsQuerySortRequestField The field to sort by. | Value | Description | | ------------------------------------- | ----------- | | `ProcessDefinitionId` | | | `ProcessDefinitionKey` | | | `ProcessDefinitionName` | | | `ProcessDefinitionVersion` | | | `ActiveInstancesWithIncidentCount` | | | `ActiveInstancesWithoutIncidentCount` | | ## ProcessDefinitionResultState The state of this process definition. `DRAINING` indicates the definition is being deleted but still has active process instances draining before it is removed. | Value | Description | | ---------- | ----------- | | `ACTIVE` | | | `DRAINING` | | | `DELETED` | | ## ProcessDefinitionSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------------- | ----------- | | `ProcessDefinitionKey` | | | `Name` | | | `ResourceName` | | | `Version` | | | `VersionTag` | | | `ProcessDefinitionId` | | | `TenantId` | | ## ProcessInstanceSearchQuerySortRequestField The field to sort by. | Value | Description | | ----------------------------- | ----------- | | `ProcessInstanceKey` | | | `ProcessDefinitionId` | | | `ProcessDefinitionName` | | | `ProcessDefinitionVersion` | | | `ProcessDefinitionVersionTag` | | | `ProcessDefinitionKey` | | | `ParentProcessInstanceKey` | | | `ParentElementInstanceKey` | | | `StartDate` | | | `EndDate` | | | `SuspendedDate` | | | `State` | | | `HasIncident` | | | `TenantId` | | | `BusinessId` | | ## ProcessInstanceStateEnum Process instance states | Value | Description | | ------------ | ----------- | | `ACTIVE` | | | `COMPLETED` | | | `SUSPENDED` | | | `TERMINATED` | | ## ResourceSearchQuerySortRequestField The field to sort by. | Value | Description | | --------------- | ----------- | | `ResourceKey` | | | `ResourceName` | | | `ResourceId` | | | `Version` | | | `VersionTag` | | | `DeploymentKey` | | | `TenantId` | | ## ResourceTypeEnum The type of resource to add/remove permissions to/from. | Value | Description | | -------------------------------- | ----------- | | `AUDITLOG` | | | `AUTHORIZATION` | | | `BACKUP` | | | `BATCH` | | | `CLUSTERVARIABLE` | | | `COMPONENT` | | | `DECISIONDEFINITION` | | | `DECISIONREQUIREMENTSDEFINITION` | | | `DOCUMENT` | | | `EXPORTER` | | | `EXPRESSION` | | | `GLOBALLISTENER` | | | `GROUP` | | | `MAPPINGRULE` | | | `MESSAGE` | | | `PROCESSDEFINITION` | | | `RESOURCE` | | | `ROLE` | | | `SECRET` | | | `SYSTEM` | | | `TENANT` | | | `USER` | | | `USERTASK` | | ## RestorePartitionStatusState The restore state of the partition. | Value | Description | | ----------- | ----------- | | `PENDING` | | | `RESTORING` | | | `RESTORED` | | ## RestoreStatusResponseStatus The overall status of the restore. | Value | Description | | ------------ | ----------- | | `INPROGRESS` | | | `COMPLETED` | | | `FAILED` | | | `CANCELLED` | | ## RoleClientSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `ClientId` | | ## RoleGroupSearchQuerySortRequestField The field to sort by. | Value | Description | | --------- | ----------- | | `GroupId` | | ## RoleSearchQuerySortRequestField The field to sort by. | Value | Description | | -------- | ----------- | | `Name` | | | `RoleId` | | ## RoleUserSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `Username` | | ## SecretErrorCode The typed reason a reference could not be resolved. - `NOT_FOUND`: no secret exists for the reference. - `ACCESS_DENIED`: the caller lacks `SECRET:REVEAL` on the reference. - `INVALID_REFERENCE`: the reference is malformed, or the configured store rejected it as an invalid secret identifier. - `UNREADABLE`: the configured store could not return a value for the reference, for example because it rejected the cluster's own store credentials or the stored value could not be read. Whether the secret exists is not implied. | Value | Description | | ------------------ | ----------- | | `NOTFOUND` | | | `ACCESSDENIED` | | | `INVALIDREFERENCE` | | | `UNREADABLE` | | ## SortOrderEnum The order in which to sort the related field. | Value | Description | | ------ | ----------- | | `ASC` | | | `DESC` | | ## StateCode The aggregated state of the backup, computed from the state of each partition. | Value | Description | | -------------- | ----------- | | `DOESNOTEXIST` | | | `INPROGRESS` | | | `COMPLETED` | | | `FAILED` | | | `INCOMPLETE` | | | `DELETED` | | ## TenantClientSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `ClientId` | | ## TenantFilterEnum The tenant filtering strategy for job activation. Determines whether to use tenant IDs provided in the request or tenant IDs assigned to the authenticated principal. | Value | Description | | ---------- | ----------- | | `PROVIDED` | | | `ASSIGNED` | | ## TenantGroupSearchQuerySortRequestField The field to sort by. | Value | Description | | --------- | ----------- | | `GroupId` | | ## TenantSearchQuerySortRequestField The field to sort by. `key` is deprecated and should not be used anymore. | Value | Description | | ---------- | ----------- | | `Key` | | | `Name` | | | `TenantId` | | ## TenantUserSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `Username` | | ## UserSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------- | ----------- | | `Username` | | | `Name` | | | `Email` | | ## UserTaskSearchQuerySortRequestField The field to sort by. | Value | Description | | ---------------- | ----------- | | `CreationDate` | | | `CompletionDate` | | | `FollowUpDate` | | | `DueDate` | | | `Priority` | | | `Name` | | | `BusinessId` | | ## UserTaskStateEnum The state of the user task. Note: FAILED state is only for legacy job-worker-based tasks. | Value | Description | | ------------ | ----------- | | `CREATING` | | | `CREATED` | | | `ASSIGNING` | | | `UPDATING` | | | `COMPLETING` | | | `COMPLETED` | | | `CANCELING` | | | `CANCELED` | | | `FAILED` | | ## UserTaskVariableSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------- | ----------- | | `Value` | | | `Name` | | | `TenantId` | | | `VariableKey` | | | `ScopeKey` | | | `ProcessInstanceKey` | | ## VariableSearchQuerySortRequestField The field to sort by. | Value | Description | | -------------------- | ----------- | | `Value` | | | `Name` | | | `TenantId` | | | `VariableKey` | | | `ScopeKey` | | | `ProcessInstanceKey` | | ## WaitStateElementTypeEnum The BPMN element type of a waiting element instance. | Value | Description | | ------------------------------ | ----------- | | `ADHOCSUBPROCESS` | | | `ADHOCSUBPROCESSINNERINSTANCE` | | | `BOUNDARYEVENT` | | | `BUSINESSRULETASK` | | | `CALLACTIVITY` | | | `ENDEVENT` | | | `EVENTBASEDGATEWAY` | | | `EVENTSUBPROCESS` | | | `EXCLUSIVEGATEWAY` | | | `INCLUSIVEGATEWAY` | | | `INTERMEDIATECATCHEVENT` | | | `INTERMEDIATETHROWEVENT` | | | `MANUALTASK` | | | `MULTIINSTANCEBODY` | | | `PARALLELGATEWAY` | | | `PROCESS` | | | `RECEIVETASK` | | | `SCRIPTTASK` | | | `SENDTASK` | | | `SEQUENCEFLOW` | | | `SERVICETASK` | | | `STARTEVENT` | | | `SUBPROCESS` | | | `TASK` | | | `UNKNOWN` | | | `UNSPECIFIED` | | | `USERTASK` | | ## WaitStateTypeEnum The type of waiting state an element instance is in. | Value | Description | | ----------- | ----------- | | `JOB` | | | `MESSAGE` | | | `USERTASK` | | | `TIMER` | | | `SIGNAL` | | | `CONDITION` | | ## WebappComponent A Camunda webapp component name. | Value | Description | | ---------- | ----------- | | `Operate` | | | `Tasklist` | | | `Admin` | | --- ## C# SDK API Reference Auto-generated from the Camunda C# SDK source code. ## Sections - [CamundaClient](camunda-client.md) — Main client class with all API methods (3 types) - [Configuration](configuration.md) — SDK configuration, authentication, and options (16 types) - [Runtime](runtime.md) — Runtime infrastructure: job workers, backpressure, polling, errors (0 types) - [Models](models.md) — Request and response model classes (715 types) - [Enums](enums.md) — Enumeration types (110 types) - [Keys](keys.md) — Strongly-typed domain key types (28 types) --- ## Keys # Key Types Strongly-typed domain key types provide compile-time safety for entity identifiers. Each key wraps a string value and ensures type-safe API calls. ## Overview | Key Type | Description | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `AgentDefinitionKey` | System-generated key for an agent definition. | | `AgentHistoryItemKey` | System-generated key for an agent history item. | | `AgentInstanceKey` | System-generated key for an agent instance. | | `AuditLogEntityKey` | System-generated entity key for an audit log entry. | | `AuditLogKey` | System-generated key for an audit log entry. | | `AuthorizationKey` | System-generated key for an authorization. | | `BatchOperationKey` | System-generated key for an batch operation. | | `ConditionalEvaluationKey` | System-generated key for a conditional evaluation. | | `DecisionDefinitionKey` | System-generated key for a decision definition. | | `DecisionEvaluationInstanceKey` | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: `-`). | | `DecisionEvaluationKey` | System-generated key for a decision evaluation. | | `DecisionInstanceKey` | System-generated key for a deployed decision instance. | | `DecisionRequirementsKey` | System-generated key for a deployed decision requirements definition. | | `DeploymentKey` | Key for a deployment. | | `ElementInstanceKey` | System-generated key for a element instance. | | `FormKey` | System-generated key for a deployed form. | | `IncidentKey` | System-generated key for a incident. | | `JobKey` | System-generated key for a job. | | `LongKey` | Zeebe Engine resource key (Java long serialized as string) | | `MessageKey` | System-generated key for an message. | | `MessageSubscriptionKey` | System-generated key for a message subscription. | | `ProcessDefinitionKey` | System-generated key for a deployed process definition. | | `ProcessInstanceKey` | System-generated key for a process instance. | | `ResourceKey` | The system-assigned key for this resource. | | `ScopeKey` | System-generated key for a scope. A scope can hold variables and represents either an element instance in a BPMN process or the process instance itself. | | `SignalKey` | System-generated key for an signal. | | `UserTaskKey` | System-generated key for a user task. | | `VariableKey` | System-generated key for a variable. | ## Common Methods All key types share these methods: | Method | Description | | ---------------------- | ------------------------------------------------ | | `AssumeExists(string)` | Creates a key from a known-valid string value. | | `IsValid(string)` | Validates whether a string is a valid key value. | | `Value` | Gets the underlying string value. | | `ToString()` | Returns the string representation. | ## Details ### AgentDefinitionKey System-generated key for an agent definition. ```csharp public readonly record struct AgentDefinitionKey : ICamundaKey, IEquatable ``` ### AgentHistoryItemKey System-generated key for an agent history item. ```csharp public readonly record struct AgentHistoryItemKey : ICamundaKey, IEquatable ``` ### AgentInstanceKey System-generated key for an agent instance. ```csharp public readonly record struct AgentInstanceKey : ICamundaKey, IEquatable ``` ### AuditLogEntityKey System-generated entity key for an audit log entry. ```csharp public readonly record struct AuditLogEntityKey : ICamundaKey, IEquatable ``` ### AuditLogKey System-generated key for an audit log entry. ```csharp public readonly record struct AuditLogKey : ICamundaKey, IEquatable ``` ### AuthorizationKey System-generated key for an authorization. ```csharp public readonly record struct AuthorizationKey : ICamundaKey, IEquatable ``` ### BatchOperationKey System-generated key for an batch operation. ```csharp public readonly record struct BatchOperationKey : ICamundaKey, IEquatable ``` ### ConditionalEvaluationKey System-generated key for a conditional evaluation. ```csharp public readonly record struct ConditionalEvaluationKey : ICamundaKey, IEquatable ``` ### DecisionDefinitionKey System-generated key for a decision definition. ```csharp public readonly record struct DecisionDefinitionKey : ICamundaKey, IEquatable ``` ### DecisionEvaluationInstanceKey System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: `-`). ```csharp public readonly record struct DecisionEvaluationInstanceKey : ICamundaKey, IEquatable ``` ### DecisionEvaluationKey System-generated key for a decision evaluation. ```csharp public readonly record struct DecisionEvaluationKey : ICamundaKey, IEquatable ``` ### DecisionInstanceKey System-generated key for a deployed decision instance. ```csharp public readonly record struct DecisionInstanceKey : ICamundaKey, IEquatable ``` ### DecisionRequirementsKey System-generated key for a deployed decision requirements definition. ```csharp public readonly record struct DecisionRequirementsKey : ICamundaKey, IEquatable ``` ### DeploymentKey Key for a deployment. ```csharp public readonly record struct DeploymentKey : ICamundaKey, IEquatable ``` ### ElementInstanceKey System-generated key for a element instance. ```csharp public readonly record struct ElementInstanceKey : ICamundaKey, IEquatable ``` ### FormKey System-generated key for a deployed form. ```csharp public readonly record struct FormKey : ICamundaKey, IEquatable ``` ### IncidentKey System-generated key for a incident. ```csharp public readonly record struct IncidentKey : ICamundaKey, IEquatable ``` ### JobKey System-generated key for a job. ```csharp public readonly record struct JobKey : ICamundaKey, IEquatable ``` ### LongKey Zeebe Engine resource key (Java long serialized as string) ```csharp public readonly record struct LongKey : ICamundaKey, IEquatable ``` ### MessageKey System-generated key for an message. ```csharp public readonly record struct MessageKey : ICamundaKey, IEquatable ``` ### MessageSubscriptionKey System-generated key for a message subscription. ```csharp public readonly record struct MessageSubscriptionKey : ICamundaKey, IEquatable ``` ### ProcessDefinitionKey System-generated key for a deployed process definition. ```csharp public readonly record struct ProcessDefinitionKey : ICamundaKey, IEquatable ``` ### ProcessInstanceKey System-generated key for a process instance. ```csharp public readonly record struct ProcessInstanceKey : ICamundaKey, IEquatable ``` ### ResourceKey The system-assigned key for this resource. ```csharp public readonly record struct ResourceKey : ICamundaKey, IEquatable ``` ### ScopeKey System-generated key for a scope. A scope can hold variables and represents either an element instance in a BPMN process or the process instance itself. ```csharp public readonly record struct ScopeKey : ICamundaKey, IEquatable ``` ### SignalKey System-generated key for an signal. ```csharp public readonly record struct SignalKey : ICamundaKey, IEquatable ``` ### UserTaskKey System-generated key for a user task. ```csharp public readonly record struct UserTaskKey : ICamundaKey, IEquatable ``` ### VariableKey System-generated key for a variable. ```csharp public readonly record struct VariableKey : ICamundaKey, IEquatable ``` --- ## Models Request and response model classes (715 types). ## Quick Reference - [ActivatedJob](#activatedjob) — An activated job received from the Camunda broker, with typed variable access - [ActivatedJobResult](#activatedjobresult) — ActivatedJobResult - [AdHocSubProcessActivateActivitiesInstruction](#adhocsubprocessactivateactivitiesinstruction) — AdHocSubProcessActivateActivitiesInstruction - [AdHocSubProcessActivateActivityReference](#adhocsubprocessactivateactivityreference) — AdHocSubProcessActivateActivityReference - [AdvancedActorTypeFilter](#advancedactortypefilter) — Advanced AuditLogActorTypeEnum filter - [AdvancedAgentDefinitionKeyFilter](#advancedagentdefinitionkeyfilter) — Advanced AgentDefinitionKey filter - [AdvancedAgentDefinitionTypeFilter](#advancedagentdefinitiontypefilter) — Advanced AgentDefinitionTypeEnum filter - [AdvancedAgentHistoryItemKeyFilter](#advancedagenthistoryitemkeyfilter) — Advanced AgentHistoryItemKey filter - [AdvancedAgentInstanceHistoryCommitStatusFilter](#advancedagentinstancehistorycommitstatusfilter) — Advanced AgentInstanceHistoryCommitStatusEnum filter - [AdvancedAgentInstanceHistoryRoleFilter](#advancedagentinstancehistoryrolefilter) — Advanced AgentInstanceHistoryRoleEnum filter - [AdvancedAgentInstanceKeyFilter](#advancedagentinstancekeyfilter) — Advanced AgentInstanceKey filter - [AdvancedAgentInstanceStatusFilter](#advancedagentinstancestatusfilter) — Advanced AgentInstanceStatusEnum filter - [AdvancedAuditLogEntityKeyFilter](#advancedauditlogentitykeyfilter) — Advanced entityKey filter - [AdvancedAuditLogKeyFilter](#advancedauditlogkeyfilter) — Advanced AuditLogKey filter - [AdvancedBatchOperationItemStateFilter](#advancedbatchoperationitemstatefilter) — Advanced BatchOperationItemStateEnum filter - [AdvancedBatchOperationStateFilter](#advancedbatchoperationstatefilter) — Advanced BatchOperationStateEnum filter - [AdvancedBatchOperationTypeFilter](#advancedbatchoperationtypefilter) — Advanced BatchOperationTypeEnum filter - [AdvancedCategoryFilter](#advancedcategoryfilter) — Advanced AuditLogCategoryEnum filter - [AdvancedClusterVariableKindFilter](#advancedclustervariablekindfilter) — Advanced ClusterVariableKindEnum filter - [AdvancedClusterVariableScopeFilter](#advancedclustervariablescopefilter) — Advanced ClusterVariableScopeEnum filter - [AdvancedDateTimeFilter](#advanceddatetimefilter) — Advanced date-time filter - [AdvancedDecisionDefinitionKeyFilter](#advanceddecisiondefinitionkeyfilter) — Advanced DecisionDefinitionKey filter - [AdvancedDecisionEvaluationInstanceKeyFilter](#advanceddecisionevaluationinstancekeyfilter) — Advanced DecisionEvaluationInstanceKey filter - [AdvancedDecisionEvaluationKeyFilter](#advanceddecisionevaluationkeyfilter) — Advanced DecisionEvaluationKey filter - [AdvancedDecisionInstanceStateFilter](#advanceddecisioninstancestatefilter) — Advanced DecisionInstanceStateEnum filter - [AdvancedDecisionRequirementsKeyFilter](#advanceddecisionrequirementskeyfilter) — Advanced DecisionRequirementsKey filter - [AdvancedDeploymentKeyFilter](#advanceddeploymentkeyfilter) — Advanced DeploymentKey filter - [AdvancedElementIdFilter](#advancedelementidfilter) — Advanced ElementId filter - [AdvancedElementInstanceKeyFilter](#advancedelementinstancekeyfilter) — Advanced ElementInstanceKey filter - [AdvancedElementInstanceStateFilter](#advancedelementinstancestatefilter) — Advanced ElementInstanceStateEnum filter - [AdvancedEntityTypeFilter](#advancedentitytypefilter) — Advanced AuditLogEntityTypeEnum filter - [AdvancedFormKeyFilter](#advancedformkeyfilter) — Advanced FormKey filter - [AdvancedGlobalListenerSourceFilter](#advancedgloballistenersourcefilter) — Advanced global listener source filter - [AdvancedGlobalTaskListenerEventTypeFilter](#advancedglobaltasklistenereventtypefilter) — Advanced global listener event type filter - [AdvancedIncidentErrorTypeFilter](#advancedincidenterrortypefilter) — Advanced IncidentErrorTypeEnum filter - [AdvancedIncidentStateFilter](#advancedincidentstatefilter) — Advanced IncidentStateEnum filter - [AdvancedIntegerFilter](#advancedintegerfilter) — Advanced integer (int32) filter - [AdvancedJobKeyFilter](#advancedjobkeyfilter) — Advanced JobKey filter - [AdvancedJobKindFilter](#advancedjobkindfilter) — Advanced JobKindEnum filter - [AdvancedJobListenerEventTypeFilter](#advancedjoblistenereventtypefilter) — Advanced JobListenerEventTypeEnum filter - [AdvancedJobStateFilter](#advancedjobstatefilter) — Advanced JobStateEnum filter - [AdvancedMessageSubscriptionKeyFilter](#advancedmessagesubscriptionkeyfilter) — Advanced MessageSubscriptionKey filter - [AdvancedMessageSubscriptionStateFilter](#advancedmessagesubscriptionstatefilter) — Advanced MessageSubscriptionStateEnum filter - [AdvancedMessageSubscriptionTypeFilter](#advancedmessagesubscriptiontypefilter) — Advanced MessageSubscriptionTypeEnum filter - [AdvancedMetadataValueFilter](#advancedmetadatavaluefilter) — Advanced filter on a metadata value (string or number) - [AdvancedOperationTypeFilter](#advancedoperationtypefilter) — Advanced AuditLogOperationTypeEnum filter - [AdvancedProcessDefinitionIdFilter](#advancedprocessdefinitionidfilter) — Advanced ProcessDefinitionId filter - [AdvancedProcessDefinitionKeyFilter](#advancedprocessdefinitionkeyfilter) — Advanced ProcessDefinitionKey filter - [AdvancedProcessInstanceKeyFilter](#advancedprocessinstancekeyfilter) — Advanced ProcessInstanceKey filter - [AdvancedProcessInstanceStateFilter](#advancedprocessinstancestatefilter) — Advanced ProcessInstanceStateEnum filter - [AdvancedResourceKeyFilter](#advancedresourcekeyfilter) — Advanced ResourceKey filter - [AdvancedResultFilter](#advancedresultfilter) — Advanced AuditLogResultEnum filter - [AdvancedScopeKeyFilter](#advancedscopekeyfilter) — Advanced ScopeKey filter - [AdvancedStringFilter](#advancedstringfilter) — Advanced string filter - [AdvancedUserTaskStateFilter](#advancedusertaskstatefilter) — Advanced UserTaskStateEnum filter - [AdvancedVariableKeyFilter](#advancedvariablekeyfilter) — Advanced VariableKey filter - [AdvancedWaitStateElementTypeFilter](#advancedwaitstateelementtypefilter) — Advanced element type filter - [AdvancedWaitStateTypeFilter](#advancedwaitstatetypefilter) — Advanced wait state type filter - [AgentDefinitionFilter](#agentdefinitionfilter) — Agent definition search filter - [AgentDefinitionKeyExactMatch](#agentdefinitionkeyexactmatch) — Matches the value exactly - [AgentDefinitionKeyFilterProperty](#agentdefinitionkeyfilterproperty) — AgentDefinitionKey property with full advanced search capabilities - [AgentDefinitionResult](#agentdefinitionresult) — An agent definition, created at deploy time for the process element it belongs to - [AgentDefinitionSearchQuery](#agentdefinitionsearchquery) — Agent definition search request - [AgentDefinitionSearchQueryResult](#agentdefinitionsearchqueryresult) — Agent definition search response - [AgentDefinitionSearchQuerySortRequest](#agentdefinitionsearchquerysortrequest) — AgentDefinitionSearchQuerySortRequest - [AgentDefinitionTypeExactMatch](#agentdefinitiontypeexactmatch) — Matches the value exactly - [AgentDefinitionTypeFilterProperty](#agentdefinitiontypefilterproperty) — AgentDefinitionTypeEnum property with full advanced search capabilities - [AgentHistoryItemKeyExactMatch](#agenthistoryitemkeyexactmatch) — Matches the value exactly - [AgentHistoryItemKeyFilterProperty](#agenthistoryitemkeyfilterproperty) — AgentHistoryItemKey property with full advanced search capabilities - [AgentInstanceCreatedHistoryItem](#agentinstancecreatedhistoryitem) — The outcome of appending a single history item from an update request's history batch - [AgentInstanceCreationRequest](#agentinstancecreationrequest) — Request to create a new agent instance - [AgentInstanceCreationResult](#agentinstancecreationresult) — Response returned after successfully creating an agent instance - [AgentInstanceDefinitionResult](#agentinstancedefinitionresult) — The definition of an agent instance - [AgentInstanceDocumentContent](#agentinstancedocumentcontent) — A Camunda Document Store reference content block - [AgentInstanceFilter](#agentinstancefilter) — Agent instance search filter - [AgentInstanceHistoryCommitStatusExactMatch](#agentinstancehistorycommitstatusexactmatch) — Matches the value exactly - [AgentInstanceHistoryCommitStatusFilterProperty](#agentinstancehistorycommitstatusfilterproperty) — AgentInstanceHistoryCommitStatusEnum property with full advanced search capabilities - [AgentInstanceHistoryFilter](#agentinstancehistoryfilter) — Agent instance history item search filter - [AgentInstanceHistoryItem](#agentinstancehistoryitem) — A single history item to append to the agent instance's conversation history, submitted as part of the batch on an agent instance update request - [AgentInstanceHistoryItemMetrics](#agentinstancehistoryitemmetrics) — Per-call token and latency metrics for an ASSISTANT history item - [AgentInstanceHistoryItemMetricsRequest](#agentinstancehistoryitemmetricsrequest) — Per-call token and latency metrics for an ASSISTANT history item, as submitted on a create/update request - [AgentInstanceHistoryItemResult](#agentinstancehistoryitemresult) — A single conversation history item belonging to an agent instance - [AgentInstanceHistoryRoleExactMatch](#agentinstancehistoryroleexactmatch) — Matches the value exactly - [AgentInstanceHistoryRoleFilterProperty](#agentinstancehistoryrolefilterproperty) — AgentInstanceHistoryRoleEnum property with full advanced search capabilities - [AgentInstanceHistorySearchQuery](#agentinstancehistorysearchquery) — Agent instance history search request - [AgentInstanceHistorySearchQueryResult](#agentinstancehistorysearchqueryresult) — Agent instance history search response - [AgentInstanceHistorySearchQuerySortRequest](#agentinstancehistorysearchquerysortrequest) — AgentInstanceHistorySearchQuerySortRequest - [AgentInstanceKeyExactMatch](#agentinstancekeyexactmatch) — Matches the value exactly - [AgentInstanceKeyFilterProperty](#agentinstancekeyfilterproperty) — AgentInstanceKey property with full advanced search capabilities - [AgentInstanceLimits](#agentinstancelimits) — The configured limits for an agent instance, set once at creation - [AgentInstanceMessageContent](#agentinstancemessagecontent) — A single content block within a history item - [AgentInstanceMetrics](#agentinstancemetrics) — Aggregated metrics for an agent instance across all model calls - [AgentInstanceObjectContent](#agentinstanceobjectcontent) — An arbitrary structured content block - [AgentInstanceResult](#agentinstanceresult) — AgentInstanceResult - [AgentInstanceSearchQuery](#agentinstancesearchquery) — Agent instance search request - [AgentInstanceSearchQueryResult](#agentinstancesearchqueryresult) — Agent instance search response - [AgentInstanceSearchQuerySortRequest](#agentinstancesearchquerysortrequest) — AgentInstanceSearchQuerySortRequest - [AgentInstanceStatusExactMatch](#agentinstancestatusexactmatch) — Matches the value exactly - [AgentInstanceStatusFilterProperty](#agentinstancestatusfilterproperty) — AgentInstanceStatusEnum property with full advanced search capabilities - [AgentInstanceTextContent](#agentinstancetextcontent) — A plain-text content block - [AgentInstanceToolCall](#agentinstancetoolcall) — A tool call associated with a history item - [AgentInstanceUpdateRequest](#agentinstanceupdaterequest) — Request to update the mutable state of an agent instance - [AgentInstanceUpdateResult](#agentinstanceupdateresult) — Response returned after successfully updating an agent instance - [AgentTool](#agenttool) — A tool available to the agent - [AncestorScopeInstruction](#ancestorscopeinstruction) — Defines the ancestor scope for the created element instances - [AuditLogActorTypeExactMatch](#auditlogactortypeexactmatch) — Matches the value exactly - [AuditLogActorTypeFilterProperty](#auditlogactortypefilterproperty) — AuditLogActorTypeEnum property with full advanced search capabilities - [AuditLogEntityKeyExactMatch](#auditlogentitykeyexactmatch) — Matches the value exactly - [AuditLogEntityKeyFilterProperty](#auditlogentitykeyfilterproperty) — EntityKey property with full advanced search capabilities - [AuditLogFilter](#auditlogfilter) — Audit log filter request - [AuditLogKeyExactMatch](#auditlogkeyexactmatch) — Matches the value exactly - [AuditLogKeyFilterProperty](#auditlogkeyfilterproperty) — AuditLogKey property with full advanced search capabilities - [AuditLogResult](#auditlogresult) — Audit log item - [AuditLogResultExactMatch](#auditlogresultexactmatch) — Matches the value exactly - [AuditLogResultFilterProperty](#auditlogresultfilterproperty) — AuditLogResultEnum property with full advanced search capabilities - [AuditLogSearchQueryRequest](#auditlogsearchqueryrequest) — Audit log search request - [AuditLogSearchQueryResult](#auditlogsearchqueryresult) — Audit log search response - [AuditLogSearchQuerySortRequest](#auditlogsearchquerysortrequest) — AuditLogSearchQuerySortRequest - [AuthenticationConfigurationResponse](#authenticationconfigurationresponse) — Configuration for authentication and session management - [AuthorizationCreateResult](#authorizationcreateresult) — AuthorizationCreateResult - [AuthorizationFilter](#authorizationfilter) — Authorization search filter - [AuthorizationIdBasedRequest](#authorizationidbasedrequest) — AuthorizationIdBasedRequest - [AuthorizationPropertyBasedRequest](#authorizationpropertybasedrequest) — AuthorizationPropertyBasedRequest - [AuthorizationRequest](#authorizationrequest) — Defines an authorization request - [AuthorizationResult](#authorizationresult) — AuthorizationResult - [AuthorizationSearchQuery](#authorizationsearchquery) — AuthorizationSearchQuery - [AuthorizationSearchQuerySortRequest](#authorizationsearchquerysortrequest) — AuthorizationSearchQuerySortRequest - [AuthorizationSearchResult](#authorizationsearchresult) — AuthorizationSearchResult - [BackpressureState](#backpressurestate) - [BackupId](#backupid) — The id of the backup - [BackupIdPrefix](#backupidprefix) — A prefix of a backup id, followed by a single '*' as a wildcard, matching any backup id starting with the given prefix - [BackupInfo](#backupinfo) — Detailed status of a runtime backup - [BaseProcessInstanceFilterFields](#baseprocessinstancefilterfields) — Base process instance search filter - [BasicStringFilter](#basicstringfilter) — Basic advanced string filter - [BasicStringFilterProperty](#basicstringfilterproperty) — String property with basic advanced search capabilities - [BatchOperationCreatedResult](#batchoperationcreatedresult) — The created batch operation - [BatchOperationError](#batchoperationerror) — BatchOperationError - [BatchOperationFilter](#batchoperationfilter) — Batch operation filter request - [BatchOperationItemFilter](#batchoperationitemfilter) — Batch operation item filter request - [BatchOperationItemResponse](#batchoperationitemresponse) — BatchOperationItemResponse - [BatchOperationItemSearchQuery](#batchoperationitemsearchquery) — Batch operation item search request - [BatchOperationItemSearchQueryResult](#batchoperationitemsearchqueryresult) — BatchOperationItemSearchQueryResult - [BatchOperationItemSearchQuerySortRequest](#batchoperationitemsearchquerysortrequest) — BatchOperationItemSearchQuerySortRequest - [BatchOperationItemStateExactMatch](#batchoperationitemstateexactmatch) — Matches the value exactly - [BatchOperationItemStateFilterProperty](#batchoperationitemstatefilterproperty) — BatchOperationItemStateEnum property with full advanced search capabilities - [BatchOperationResponse](#batchoperationresponse) — BatchOperationResponse - [BatchOperationSearchQuery](#batchoperationsearchquery) — Batch operation search request - [BatchOperationSearchQueryResult](#batchoperationsearchqueryresult) — The batch operation search query result - [BatchOperationSearchQuerySortRequest](#batchoperationsearchquerysortrequest) — BatchOperationSearchQuerySortRequest - [BatchOperationStateExactMatch](#batchoperationstateexactmatch) — Matches the value exactly - [BatchOperationStateFilterProperty](#batchoperationstatefilterproperty) — BatchOperationStateEnum property with full advanced search capabilities - [BatchOperationTypeExactMatch](#batchoperationtypeexactmatch) — Matches the value exactly - [BatchOperationTypeFilterProperty](#batchoperationtypefilterproperty) — BatchOperationTypeEnum property with full advanced search capabilities - [BpmnErrorException](#bpmnerrorexception) — Throw from a job handler to trigger a BPMN error boundary event on the job's task - [BrokerInfo](#brokerinfo) — Provides information on a broker node - [BusinessId](#businessid) — An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant) - [CamundaAuthException](#camundaauthexception) — Authentication-specific exception - [CamundaConfigurationException](#camundaconfigurationexception) — Thrown when configuration hydration encounters validation errors - [CamundaKeyJsonConverterFactory](#camundakeyjsonconverterfactory) — JSON converter factory that handles any `ICamundaKey` struct - [CamundaKeyValidation](#camundakeyvalidation) — Validation helpers for domain key constraints - [CamundaLongKeyJsonConverterFactory](#camundalongkeyjsonconverterfactory) — JSON converter factory that handles any `ICamundaLongKey` struct - [CamundaRandomSource](#camundarandomsource) — The live `IRandomSource`: the platform's shared, unseeded generator - [CamundaSdkException](#camundasdkexception) — SDK error types mirroring the JS SDK's error structure - [CamundaTimeProvider](#camundatimeprovider) — A `TimeProvider` decorator whose `CamundaTimeProvider - [CamundaUserResult](#camundauserresult) — CamundaUserResult - [CancelProcessInstanceRequest](#cancelprocessinstancerequest) — CancelProcessInstanceRequest - [CancelSdkException](#cancelsdkexception) — Thrown when a cancellable operation is cancelled - [CategoryExactMatch](#categoryexactmatch) — Matches the value exactly - [CategoryFilterProperty](#categoryfilterproperty) — AuditLogCategoryEnum property with full advanced search capabilities - [Changeset](#changeset) — JSON object with changed task attribute values - [CheckpointId](#checkpointid) — The id of the checkpoint - [ClientId](#clientid) — The unique identifier of an OAuth client - [ClockPinRequest](#clockpinrequest) — ClockPinRequest - [CloudConfigurationResponse](#cloudconfigurationresponse) — Configuration for SaaS/cloud-specific settings - [ClusterBalanceResponse](#clusterbalanceresponse) — The cluster's current per-partition balance state, the running rebalance, and the last completed rebalance - [ClusterBrokerInfo](#clusterbrokerinfo) — Provides information on a broker node, independent of any physical tenant - [ClusterCompletedRebalance](#clustercompletedrebalance) — The last completed rebalance - [ClusterHistoryBackupInfo](#clusterhistorybackupinfo) — A history backup id and what each physical tenant reports for it - [ClusterHistoryBackupTakeResult](#clusterhistorybackuptakeresult) — The snapshots scheduled on a single physical tenant - [ClusterHistoryBackupTenantInfo](#clusterhistorybackuptenantinfo) — What a single physical tenant reports for a history backup id - [ClusterModeChangeOperation](#clustermodechangeoperation) — A single operation that is part of a cluster mode change - [ClusterModeChangePlannedChange](#clustermodechangeplannedchange) — The operations of a cluster mode change that apply to one physical tenant - [ClusterModeChangeResponse](#clustermodechangeresponse) — The planned changes resulting from a cluster mode transition request - [ClusterRebalance](#clusterrebalance) — The fields common to a running and a completed rebalance - [ClusterRebalanceOperationPartition](#clusterrebalanceoperationpartition) — One partition's plan, progress, and outcome within a rebalance - [ClusterRebalancePartition](#clusterrebalancepartition) — One partition's leadership/balance status - its current leader, its desired leader, and whether a rebalance is currently moving it - [ClusterRebalanceRequest](#clusterrebalancerequest) — The settings to run a given rebalance with - [ClusterRestoreAwaitModeChangeOperation](#clusterrestoreawaitmodechangeoperation) — The operation that awaits the transition of a broker to a mode - [ClusterRestoreBrokerOperation](#clusterrestorebrokeroperation) — A restore operation that applies to a broker as a whole, such as the one that updates its incarnation number - [ClusterRestoreModeChangeOperation](#clusterrestoremodechangeoperation) — The operation that transitions a broker to a mode once its partitions are restored - [ClusterRestoreOperation](#clusterrestoreoperation) — A single operation that is part of a restore - [ClusterRestorePartitionOperation](#clusterrestorepartitionoperation) — A restore operation that targets a single partition without restoring it, such as the one that prepares the partition for its restore - [ClusterRestorePartitionRestoreOperation](#clusterrestorepartitionrestoreoperation) — The operation that restores a single partition from the backups resolved for it - [ClusterRestorePlannedChange](#clusterrestoreplannedchange) — The operations of a restore that apply to one physical tenant - [ClusterRestoreRequest](#clusterrestorerequest) — Describes a restore request issued by a cluster admin - [ClusterRestoreResponse](#clusterrestoreresponse) — The planned changes resulting from a restore request - [ClusterRunningRebalance](#clusterrunningrebalance) — The rebalance currently running - [ClusterRuntimeBackupInfo](#clusterruntimebackupinfo) — A runtime backup id, what each physical tenant reports for it, and the state aggregated over every targeted tenant — folded from the per-tenant states by the same rules a per-tenant state is folded from its partitions - [ClusterRuntimeBackupState](#clusterruntimebackupstate) — The checkpoint and backup state of each physical tenant - [ClusterRuntimeBackupTakeResult](#clusterruntimebackuptakeresult) — Whether one physical tenant's runtime backup was triggered, and under which id it can be monitored and deleted - [ClusterRuntimeBackupTenantInfo](#clusterruntimebackuptenantinfo) — What a single physical tenant reports for a runtime backup id - [ClusterRuntimeBackupTenantState](#clusterruntimebackuptenantstate) — The checkpoint and backup state of one physical tenant - [ClusterStatusResponse](#clusterstatusresponse) — The aggregated status of the whole cluster - [ClusterTakeHistoryBackupResponse](#clustertakehistorybackupresponse) — The snapshots scheduled on every targeted physical tenant - [ClusterTakeRuntimeBackupResponse](#clustertakeruntimebackupresponse) — The outcome of triggering a runtime backup on every targeted physical tenant - [ClusterTopologyResponse](#clustertopologyresponse) — The topology of the whole cluster, aggregated over all physical tenants - [ClusterUpgradeStatusResponse](#clusterupgradestatusresponse) — The upgrade-readiness status of the whole cluster - [ClusterVariableKindExactMatch](#clustervariablekindexactmatch) — Matches the value exactly - [ClusterVariableKindFilterProperty](#clustervariablekindfilterproperty) — ClusterVariableKindEnum property with full advanced search capabilities - [ClusterVariableName](#clustervariablename) — The name of a cluster variable - [ClusterVariableResult](#clustervariableresult) — ClusterVariableResult - [ClusterVariableResultBase](#clustervariableresultbase) — Cluster variable response item - [ClusterVariableScopeExactMatch](#clustervariablescopeexactmatch) — Matches the value exactly - [ClusterVariableScopeFilterProperty](#clustervariablescopefilterproperty) — ClusterVariableScopeEnum property with full advanced search capabilities - [ClusterVariableSearchQueryFilterRequest](#clustervariablesearchqueryfilterrequest) — Cluster variable filter request - [ClusterVariableSearchQueryRequest](#clustervariablesearchqueryrequest) — Cluster variable search query request - [ClusterVariableSearchQueryResult](#clustervariablesearchqueryresult) — Cluster variable search query response - [ClusterVariableSearchQuerySortRequest](#clustervariablesearchquerysortrequest) — ClusterVariableSearchQuerySortRequest - [ClusterVariableSearchResult](#clustervariablesearchresult) — Cluster variable search response item - [ComponentsConfigurationResponse](#componentsconfigurationresponse) — Configuration for active Camunda components in the deployment - [ConditionWaitStateDetails](#conditionwaitstatedetails) — ConditionWaitStateDetails - [ConditionalEvaluationInstruction](#conditionalevaluationinstruction) — ConditionalEvaluationInstruction - [ConsistencyOptions](#consistencyoptions) — Options for eventual consistency polling behavior - [CorrelatedMessageSubscriptionFilter](#correlatedmessagesubscriptionfilter) — Correlated message subscriptions search filter - [CorrelatedMessageSubscriptionResult](#correlatedmessagesubscriptionresult) — CorrelatedMessageSubscriptionResult - [CorrelatedMessageSubscriptionSearchQuery](#correlatedmessagesubscriptionsearchquery) — CorrelatedMessageSubscriptionSearchQuery - [CorrelatedMessageSubscriptionSearchQueryResult](#correlatedmessagesubscriptionsearchqueryresult) — CorrelatedMessageSubscriptionSearchQueryResult - [CorrelatedMessageSubscriptionSearchQuerySortRequest](#correlatedmessagesubscriptionsearchquerysortrequest) — CorrelatedMessageSubscriptionSearchQuerySortRequest - [CreateClusterVariableRequest](#createclustervariablerequest) — CreateClusterVariableRequest - [CreateGlobalTaskListenerRequest](#createglobaltasklistenerrequest) — CreateGlobalTaskListenerRequest - [CreateProcessInstanceResult](#createprocessinstanceresult) — CreateProcessInstanceResult - [CursorBackwardPagination](#cursorbackwardpagination) — CursorBackwardPagination - [CursorForwardPagination](#cursorforwardpagination) — CursorForwardPagination - [DateTimeFilterProperty](#datetimefilterproperty) — Date-time property with full advanced search capabilities - [DecisionDefinitionFilter](#decisiondefinitionfilter) — Decision definition search filter - [DecisionDefinitionId](#decisiondefinitionid) — Id of a decision definition, from the model - [DecisionDefinitionKeyExactMatch](#decisiondefinitionkeyexactmatch) — Matches the value exactly - [DecisionDefinitionKeyFilterProperty](#decisiondefinitionkeyfilterproperty) — DecisionDefinitionKey property with full advanced search capabilities - [DecisionDefinitionResult](#decisiondefinitionresult) — DecisionDefinitionResult - [DecisionDefinitionSearchQuery](#decisiondefinitionsearchquery) — DecisionDefinitionSearchQuery - [DecisionDefinitionSearchQueryResult](#decisiondefinitionsearchqueryresult) — DecisionDefinitionSearchQueryResult - [DecisionDefinitionSearchQuerySortRequest](#decisiondefinitionsearchquerysortrequest) — DecisionDefinitionSearchQuerySortRequest - [DecisionEvaluationById](#decisionevaluationbyid) — DecisionEvaluationById - [DecisionEvaluationByKey](#decisionevaluationbykey) — DecisionEvaluationByKey - [DecisionEvaluationInstanceKeyExactMatch](#decisionevaluationinstancekeyexactmatch) — Matches the value exactly - [DecisionEvaluationInstanceKeyFilterProperty](#decisionevaluationinstancekeyfilterproperty) — DecisionEvaluationInstanceKey property with full advanced search capabilities - [DecisionEvaluationInstruction](#decisionevaluationinstruction) — DecisionEvaluationInstruction - [DecisionEvaluationKeyExactMatch](#decisionevaluationkeyexactmatch) — Matches the value exactly - [DecisionEvaluationKeyFilterProperty](#decisionevaluationkeyfilterproperty) — DecisionEvaluationKey property with full advanced search capabilities - [DecisionInstanceDeletionBatchOperationRequest](#decisioninstancedeletionbatchoperationrequest) — The decision instance filter that defines which decision instances should be deleted - [DecisionInstanceFilter](#decisioninstancefilter) — Decision instance search filter - [DecisionInstanceGetQueryResult](#decisioninstancegetqueryresult) — DecisionInstanceGetQueryResult - [DecisionInstanceResult](#decisioninstanceresult) — DecisionInstanceResult - [DecisionInstanceSearchQuery](#decisioninstancesearchquery) — DecisionInstanceSearchQuery - [DecisionInstanceSearchQueryResult](#decisioninstancesearchqueryresult) — DecisionInstanceSearchQueryResult - [DecisionInstanceSearchQuerySortRequest](#decisioninstancesearchquerysortrequest) — DecisionInstanceSearchQuerySortRequest - [DecisionInstanceStateExactMatch](#decisioninstancestateexactmatch) — Matches the value exactly - [DecisionInstanceStateFilterProperty](#decisioninstancestatefilterproperty) — DecisionInstanceStateEnum property with full advanced search capabilities - [DecisionRequirementsFilter](#decisionrequirementsfilter) — Decision requirements search filter - [DecisionRequirementsKeyExactMatch](#decisionrequirementskeyexactmatch) — Matches the value exactly - [DecisionRequirementsKeyFilterProperty](#decisionrequirementskeyfilterproperty) — DecisionRequirementsKey property with full advanced search capabilities - [DecisionRequirementsResult](#decisionrequirementsresult) — DecisionRequirementsResult - [DecisionRequirementsSearchQuery](#decisionrequirementssearchquery) — DecisionRequirementsSearchQuery - [DecisionRequirementsSearchQueryResult](#decisionrequirementssearchqueryresult) — DecisionRequirementsSearchQueryResult - [DecisionRequirementsSearchQuerySortRequest](#decisionrequirementssearchquerysortrequest) — DecisionRequirementsSearchQuerySortRequest - [DeleteDecisionInstanceRequest](#deletedecisioninstancerequest) — DeleteDecisionInstanceRequest - [DeleteProcessInstanceRequest](#deleteprocessinstancerequest) — DeleteProcessInstanceRequest - [DeleteResourceRequest](#deleteresourcerequest) — DeleteResourceRequest - [DeleteResourceResponse](#deleteresourceresponse) — DeleteResourceResponse - [DeploymentConfigurationResponse](#deploymentconfigurationresponse) — Configuration for deployment characteristics - [DeploymentDecisionRequirementsResult](#deploymentdecisionrequirementsresult) — Deployed decision requirements - [DeploymentDecisionResult](#deploymentdecisionresult) — A deployed decision - [DeploymentFormResult](#deploymentformresult) — A deployed form - [DeploymentKeyExactMatch](#deploymentkeyexactmatch) — Matches the value exactly - [DeploymentKeyFilterProperty](#deploymentkeyfilterproperty) — DeploymentKey property with full advanced search capabilities - [DeploymentMetadataResult](#deploymentmetadataresult) — DeploymentMetadataResult - [DeploymentProcessResult](#deploymentprocessresult) — A deployed process - [DeploymentResourceResult](#deploymentresourceresult) — A deployed Resource - [DeploymentResult](#deploymentresult) — DeploymentResult - [DirectAncestorKeyInstruction](#directancestorkeyinstruction) — Provides a concrete key to use as ancestor scope for the created element instance - [DocumentCreationBatchResponse](#documentcreationbatchresponse) — DocumentCreationBatchResponse - [DocumentCreationFailureDetail](#documentcreationfailuredetail) — DocumentCreationFailureDetail - [DocumentId](#documentid) — Document Id that uniquely identifies a document - [DocumentLink](#documentlink) — DocumentLink - [DocumentLinkRequest](#documentlinkrequest) — DocumentLinkRequest - [DocumentMetadata](#documentmetadata) — Information about the document - [DocumentMetadataResponse](#documentmetadataresponse) — Information about the document that is returned in responses - [DocumentReference](#documentreference) — DocumentReference - [ElementId](#elementid) — The model-defined id of an element - [ElementIdExactMatch](#elementidexactmatch) — Matches the value exactly - [ElementIdFilterProperty](#elementidfilterproperty) — ElementId property with full advanced search capabilities - [ElementInstanceFilter](#elementinstancefilter) — Element instance search filter - [ElementInstanceFilterFields](#elementinstancefilterfields) — Element instance filter fields - [ElementInstanceKeyExactMatch](#elementinstancekeyexactmatch) — Matches the value exactly - [ElementInstanceKeyFilterProperty](#elementinstancekeyfilterproperty) — ElementInstanceKey property with full advanced search capabilities - [ElementInstanceResult](#elementinstanceresult) — ElementInstanceResult - [ElementInstanceSearchQuery](#elementinstancesearchquery) — Element instance search request - [ElementInstanceSearchQueryResult](#elementinstancesearchqueryresult) — ElementInstanceSearchQueryResult - [ElementInstanceSearchQuerySortRequest](#elementinstancesearchquerysortrequest) — ElementInstanceSearchQuerySortRequest - [ElementInstanceStateExactMatch](#elementinstancestateexactmatch) — Matches the value exactly - [ElementInstanceStateFilterProperty](#elementinstancestatefilterproperty) — ElementInstanceStateEnum property with full advanced search capabilities - [ElementInstanceWaitStateFilter](#elementinstancewaitstatefilter) — Filters for the element instance inspection - [ElementInstanceWaitStateQuery](#elementinstancewaitstatequery) — Element instance inspection request - [ElementInstanceWaitStateQueryResult](#elementinstancewaitstatequeryresult) — ElementInstanceWaitStateQueryResult - [ElementInstanceWaitStateQuerySortRequest](#elementinstancewaitstatequerysortrequest) — ElementInstanceWaitStateQuerySortRequest - [ElementInstanceWaitStateResult](#elementinstancewaitstateresult) — An element instance waiting state - [EndCursor](#endcursor) — The end cursor in a search query result set - [EngineTimeProvider](#enginetimeprovider) — A `TimeProvider` bound to the engine's own clock, so client cadence and engine time advance together - [EntityTypeExactMatch](#entitytypeexactmatch) — Matches the value exactly - [EntityTypeFilterProperty](#entitytypefilterproperty) — AuditLogEntityTypeEnum property with full advanced search capabilities - [EvaluateConditionalResult](#evaluateconditionalresult) — EvaluateConditionalResult - [EvaluateDecisionResult](#evaluatedecisionresult) — EvaluateDecisionResult - [EvaluatedDecisionInputItem](#evaluateddecisioninputitem) — A decision input that was evaluated within this decision evaluation - [EvaluatedDecisionOutputItem](#evaluateddecisionoutputitem) — The evaluated decision outputs - [EvaluatedDecisionResult](#evaluateddecisionresult) — A decision that was evaluated - [EventualConsistencyTimeoutException](#eventualconsistencytimeoutexception) — Thrown when an eventually consistent endpoint times out waiting for data - [ExportingStatusResponse](#exportingstatusresponse) — Response body for the exporting status of a physical tenant - [ExpressionEvaluationRequest](#expressionevaluationrequest) — ExpressionEvaluationRequest - [ExpressionEvaluationResult](#expressionevaluationresult) — ExpressionEvaluationResult - [ExpressionEvaluationWarningItem](#expressionevaluationwarningitem) — ExpressionEvaluationWarningItem - [ExpressionSecretReferenceItem](#expressionsecretreferenceitem) — ExpressionSecretReferenceItem - [ExtendedDeploymentResponse](#extendeddeploymentresponse) — Extended deployment result with typed convenience properties for direct access to deployed artifacts by category (processes, decisions, forms, etc - [FormId](#formid) — The user-defined id for the form - [FormKeyExactMatch](#formkeyexactmatch) — Matches the value exactly - [FormKeyFilterProperty](#formkeyfilterproperty) — FormKey property with full advanced search capabilities - [FormResult](#formresult) — FormResult - [GlobalJobStatisticsQueryResult](#globaljobstatisticsqueryresult) — Global job statistics query result - [GlobalListenerBase](#globallistenerbase) — GlobalListenerBase - [GlobalListenerId](#globallistenerid) — The user-defined id for the global listener - [GlobalListenerSourceExactMatch](#globallistenersourceexactmatch) — Matches the value exactly - [GlobalListenerSourceFilterProperty](#globallistenersourcefilterproperty) — Global listener source property with full advanced search capabilities - [GlobalTaskListenerBase](#globaltasklistenerbase) — GlobalTaskListenerBase - [GlobalTaskListenerEventTypeExactMatch](#globaltasklistenereventtypeexactmatch) — Matches the value exactly - [GlobalTaskListenerEventTypeFilterProperty](#globaltasklistenereventtypefilterproperty) — Global listener event type property with full advanced search capabilities - [GlobalTaskListenerResult](#globaltasklistenerresult) — GlobalTaskListenerResult - [GlobalTaskListenerSearchQueryFilterRequest](#globaltasklistenersearchqueryfilterrequest) — Global listener filter request - [GlobalTaskListenerSearchQueryRequest](#globaltasklistenersearchqueryrequest) — Global listener search query request - [GlobalTaskListenerSearchQueryResult](#globaltasklistenersearchqueryresult) — Global listener search query response - [GlobalTaskListenerSearchQuerySortRequest](#globaltasklistenersearchquerysortrequest) — GlobalTaskListenerSearchQuerySortRequest - [GroupClientResult](#groupclientresult) — GroupClientResult - [GroupClientSearchQueryRequest](#groupclientsearchqueryrequest) — GroupClientSearchQueryRequest - [GroupClientSearchQuerySortRequest](#groupclientsearchquerysortrequest) — GroupClientSearchQuerySortRequest - [GroupClientSearchResult](#groupclientsearchresult) — GroupClientSearchResult - [GroupCreateRequest](#groupcreaterequest) — GroupCreateRequest - [GroupCreateResult](#groupcreateresult) — GroupCreateResult - [GroupFilter](#groupfilter) — Group filter request - [GroupFilterFields](#groupfilterfields) — Group filter request - [GroupId](#groupid) — The unique identifier of a group - [GroupMappingRuleSearchResult](#groupmappingrulesearchresult) — GroupMappingRuleSearchResult - [GroupResult](#groupresult) — Group search response item - [GroupRoleSearchResult](#grouprolesearchresult) — GroupRoleSearchResult - [GroupSearchQueryRequest](#groupsearchqueryrequest) — Group search request - [GroupSearchQueryResult](#groupsearchqueryresult) — Group search response - [GroupSearchQuerySortRequest](#groupsearchquerysortrequest) — GroupSearchQuerySortRequest - [GroupUpdateRequest](#groupupdaterequest) — GroupUpdateRequest - [GroupUpdateResult](#groupupdateresult) — GroupUpdateResult - [GroupUserResult](#groupuserresult) — GroupUserResult - [GroupUserSearchQueryRequest](#groupusersearchqueryrequest) — GroupUserSearchQueryRequest - [GroupUserSearchQuerySortRequest](#groupusersearchquerysortrequest) — GroupUserSearchQuerySortRequest - [GroupUserSearchResult](#groupusersearchresult) — GroupUserSearchResult - [HistoryBackupInfo](#historybackupinfo) — Detailed status of a history backup - [HistoryBackupSnapshotInfo](#historybackupsnapshotinfo) — Detailed info of a single snapshot making up a history backup - [HistoryItemId](#historyitemid) — The client-supplied identifier this item was created with - [HttpSdkException](#httpsdkexception) — HTTP-specific SDK error with RFC 7807 Problem Details - [ICamundaKey](#icamundakey) — Marker interface for all Camunda domain key types - [ICamundaLongKey](#icamundalongkey) — Marker interface for Camunda domain types backed by a long (int64) value - [IEngineClockTarget](#iengineclocktarget) — The engine clock operations `EngineTimeProvider` drives - [IRandomSource](#irandomsource) — Source of the randomness behind SDK runtime jitter: retry backoff, OAuth retry backoff, and worker startup staggering - [ITenantIdSettable](#itenantidsettable) — Implemented by request body types that have an optional tenantId property - [ITenantIdsSettable](#itenantidssettable) — Implemented by request body types that have an optional `tenantIds` array property (e - [IncidentErrorTypeExactMatch](#incidenterrortypeexactmatch) — Matches the value exactly - [IncidentErrorTypeFilterProperty](#incidenterrortypefilterproperty) — IncidentErrorTypeEnum with full advanced search capabilities - [IncidentFilter](#incidentfilter) — Incident search filter - [IncidentProcessInstanceStatisticsByDefinitionFilter](#incidentprocessinstancestatisticsbydefinitionfilter) — Filter for the incident process instance statistics by definition query - [IncidentProcessInstanceStatisticsByDefinitionQuery](#incidentprocessinstancestatisticsbydefinitionquery) — IncidentProcessInstanceStatisticsByDefinitionQuery - [IncidentProcessInstanceStatisticsByDefinitionQueryResult](#incidentprocessinstancestatisticsbydefinitionqueryresult) — IncidentProcessInstanceStatisticsByDefinitionQueryResult - [IncidentProcessInstanceStatisticsByDefinitionQuerySortRequest](#incidentprocessinstancestatisticsbydefinitionquerysortrequest) — IncidentProcessInstanceStatisticsByDefinitionQuerySortRequest - [IncidentProcessInstanceStatisticsByDefinitionResult](#incidentprocessinstancestatisticsbydefinitionresult) — IncidentProcessInstanceStatisticsByDefinitionResult - [IncidentProcessInstanceStatisticsByErrorQuery](#incidentprocessinstancestatisticsbyerrorquery) — IncidentProcessInstanceStatisticsByErrorQuery - [IncidentProcessInstanceStatisticsByErrorQueryResult](#incidentprocessinstancestatisticsbyerrorqueryresult) — IncidentProcessInstanceStatisticsByErrorQueryResult - [IncidentProcessInstanceStatisticsByErrorQuerySortRequest](#incidentprocessinstancestatisticsbyerrorquerysortrequest) — IncidentProcessInstanceStatisticsByErrorQuerySortRequest - [IncidentProcessInstanceStatisticsByErrorResult](#incidentprocessinstancestatisticsbyerrorresult) — IncidentProcessInstanceStatisticsByErrorResult - [IncidentResolutionRequest](#incidentresolutionrequest) — IncidentResolutionRequest - [IncidentResult](#incidentresult) — IncidentResult - [IncidentSearchQuery](#incidentsearchquery) — IncidentSearchQuery - [IncidentSearchQueryResult](#incidentsearchqueryresult) — IncidentSearchQueryResult - [IncidentSearchQuerySortRequest](#incidentsearchquerysortrequest) — IncidentSearchQuerySortRequest - [IncidentStateExactMatch](#incidentstateexactmatch) — Matches the value exactly - [IncidentStateFilterProperty](#incidentstatefilterproperty) — IncidentStateEnum with full advanced search capabilities - [InferredAncestorKeyInstruction](#inferredancestorkeyinstruction) — Instructs the engine to derive the ancestor scope key from the source element's hierarchy - [IntegerFilterProperty](#integerfilterproperty) — Integer property with advanced search capabilities - [JobActivationRequest](#jobactivationrequest) — JobActivationRequest - [JobActivationResult](#jobactivationresult) — The list of activated jobs - [JobBatchUpdateRequest](#jobbatchupdaterequest) — The filter and changeset for a batch job update operation - [JobChangeset](#jobchangeset) — JSON object with changed job attribute values - [JobCompletionRequest](#jobcompletionrequest) — JobCompletionRequest - [JobErrorRequest](#joberrorrequest) — JobErrorRequest - [JobErrorStatisticsFilter](#joberrorstatisticsfilter) — Job error statistics search filter - [JobErrorStatisticsItem](#joberrorstatisticsitem) — Aggregated error metrics for a single error type and message combination - [JobErrorStatisticsQuery](#joberrorstatisticsquery) — Job error statistics query - [JobErrorStatisticsQueryResult](#joberrorstatisticsqueryresult) — Job error statistics query result - [JobFailRequest](#jobfailrequest) — JobFailRequest - [JobFailureException](#jobfailureexception) — Throw from a job handler to explicitly fail a job with custom retry settings - [JobFilter](#jobfilter) — Job search filter - [JobHandler](#jobhandler) — Delegate for job handler functions - [JobKeyExactMatch](#jobkeyexactmatch) — Matches the value exactly - [JobKeyFilterProperty](#jobkeyfilterproperty) — JobKey property with full advanced search capabilities - [JobKindExactMatch](#jobkindexactmatch) — Matches the value exactly - [JobKindFilterProperty](#jobkindfilterproperty) — JobKindEnum property with full advanced search capabilities - [JobLeaseToken](#jobleasetoken) — An opaque, engine-minted fencing token identifying a single activation of a job - [JobListenerEventTypeExactMatch](#joblistenereventtypeexactmatch) — Matches the value exactly - [JobListenerEventTypeFilterProperty](#joblistenereventtypefilterproperty) — JobListenerEventTypeEnum property with full advanced search capabilities - [JobMetricsConfigurationResponse](#jobmetricsconfigurationresponse) — Configuration for job metrics collection and export - [JobResult](#jobresult) — The result of the completed job as determined by the worker - [JobResultActivateElement](#jobresultactivateelement) — Instruction to activate a single BPMN element within an ad‑hoc sub‑process, optionally providing variables scoped to that element - [JobResultAdHocSubProcess](#jobresultadhocsubprocess) — Job result details for an ad‑hoc sub‑process, including elements to activate and flags indicating completion or cancellation behavior - [JobResultCorrections](#jobresultcorrections) — JSON object with attributes that were corrected by the worker - [JobResultUserTask](#jobresultusertask) — Job result details for a user task completion, optionally including a denial reason and corrected task properties - [JobSearchQuery](#jobsearchquery) — Job search request - [JobSearchQueryResult](#jobsearchqueryresult) — Job search response - [JobSearchQuerySortRequest](#jobsearchquerysortrequest) — JobSearchQuerySortRequest - [JobSearchResult](#jobsearchresult) — JobSearchResult - [JobStateExactMatch](#jobstateexactmatch) — Matches the value exactly - [JobStateFilterProperty](#jobstatefilterproperty) — JobStateEnum property with full advanced search capabilities - [JobTimeSeriesStatisticsFilter](#jobtimeseriesstatisticsfilter) — Job time-series statistics search filter - [JobTimeSeriesStatisticsItem](#jobtimeseriesstatisticsitem) — Aggregated job metrics for a single time bucket - [JobTimeSeriesStatisticsQuery](#jobtimeseriesstatisticsquery) — Job time-series statistics query - [JobTimeSeriesStatisticsQueryResult](#jobtimeseriesstatisticsqueryresult) — Job time-series statistics query result - [JobTypeStatisticsFilter](#jobtypestatisticsfilter) — Job type statistics search filter - [JobTypeStatisticsItem](#jobtypestatisticsitem) — Statistics for a single job type - [JobTypeStatisticsQuery](#jobtypestatisticsquery) — Job type statistics query - [JobTypeStatisticsQueryResult](#jobtypestatisticsqueryresult) — Job type statistics query result - [JobUpdateRequest](#jobupdaterequest) — JobUpdateRequest - [JobWaitStateDetails](#jobwaitstatedetails) — JobWaitStateDetails - [JobWorker](#jobworker) — A long-running worker that polls the Camunda broker for jobs of a specific type, dispatches them to a handler, and auto-completes or auto-fails based on the outcome - [JobWorkerStatisticsFilter](#jobworkerstatisticsfilter) — Job worker statistics search filter - [JobWorkerStatisticsItem](#jobworkerstatisticsitem) — Statistics for a single worker within a job type - [JobWorkerStatisticsQuery](#jobworkerstatisticsquery) — Job worker statistics query - [JobWorkerStatisticsQueryResult](#jobworkerstatisticsqueryresult) — Job worker statistics query result - [LeaseNotHonoredException](#leasenothonoredexception) — Thrown when a worker activated jobs with a lease but the server returned a job whose lease token is missing or invalid - [LicenseResponse](#licenseresponse) — The response of a license request - [LikeFilter](#likefilter) — Checks if the property matches the provided like value - [LimitPagination](#limitpagination) — LimitPagination - [LoopIterationId](#loopiterationid) — A client-provided sequential integer identifying a loop iteration: one pass through an AI agent's loop, during which the model reasons, selects tools, evaluates the result, and decides whether to continue - [MappingRuleCreateRequest](#mappingrulecreaterequest) — MappingRuleCreateRequest - [MappingRuleCreateResult](#mappingrulecreateresult) — MappingRuleCreateResult - [MappingRuleCreateUpdateRequest](#mappingrulecreateupdaterequest) — MappingRuleCreateUpdateRequest - [MappingRuleCreateUpdateResult](#mappingrulecreateupdateresult) — MappingRuleCreateUpdateResult - [MappingRuleFilter](#mappingrulefilter) — Mapping rule search filter - [MappingRuleFilterFields](#mappingrulefilterfields) — Mapping rule search filter fields - [MappingRuleId](#mappingruleid) — The unique identifier of a mapping rule - [MappingRuleResult](#mappingruleresult) — MappingRuleResult - [MappingRuleSearchQueryRequest](#mappingrulesearchqueryrequest) — MappingRuleSearchQueryRequest - [MappingRuleSearchQueryResult](#mappingrulesearchqueryresult) — MappingRuleSearchQueryResult - [MappingRuleSearchQuerySortRequest](#mappingrulesearchquerysortrequest) — MappingRuleSearchQuerySortRequest - [MappingRuleUpdateRequest](#mappingruleupdaterequest) — MappingRuleUpdateRequest - [MappingRuleUpdateResult](#mappingruleupdateresult) — MappingRuleUpdateResult - [MatchedDecisionRuleItem](#matcheddecisionruleitem) — A decision rule that matched within this decision evaluation - [MessageCorrelationRequest](#messagecorrelationrequest) — MessageCorrelationRequest - [MessageCorrelationResult](#messagecorrelationresult) — The message key of the correlated message, as well as the first process instance key it correlated with - [MessagePublicationRequest](#messagepublicationrequest) — MessagePublicationRequest - [MessagePublicationResult](#messagepublicationresult) — The message key of the published message - [MessageSubscriptionFilter](#messagesubscriptionfilter) — Message subscription search filter - [MessageSubscriptionKeyExactMatch](#messagesubscriptionkeyexactmatch) — Matches the value exactly - [MessageSubscriptionKeyFilterProperty](#messagesubscriptionkeyfilterproperty) — MessageSubscriptionKey property with full advanced search capabilities - [MessageSubscriptionResult](#messagesubscriptionresult) — MessageSubscriptionResult - [MessageSubscriptionSearchQuery](#messagesubscriptionsearchquery) — MessageSubscriptionSearchQuery - [MessageSubscriptionSearchQueryResult](#messagesubscriptionsearchqueryresult) — MessageSubscriptionSearchQueryResult - [MessageSubscriptionSearchQuerySortRequest](#messagesubscriptionsearchquerysortrequest) — MessageSubscriptionSearchQuerySortRequest - [MessageSubscriptionStateExactMatch](#messagesubscriptionstateexactmatch) — Matches the value exactly - [MessageSubscriptionStateFilterProperty](#messagesubscriptionstatefilterproperty) — MessageSubscriptionStateEnum with full advanced search capabilities - [MessageSubscriptionTypeExactMatch](#messagesubscriptiontypeexactmatch) — Matches the value exactly - [MessageSubscriptionTypeFilterProperty](#messagesubscriptiontypefilterproperty) — MessageSubscriptionTypeEnum with full advanced search capabilities - [MessageWaitStateDetails](#messagewaitstatedetails) — MessageWaitStateDetails - [MigrateProcessInstanceMappingInstruction](#migrateprocessinstancemappinginstruction) — The mapping instructions describe how to map elements from the source process definition to the target process definition - [ModifyProcessInstanceVariableInstruction](#modifyprocessinstancevariableinstruction) — Instruction describing which variables to create or update - [OffsetPagination](#offsetpagination) — OffsetPagination - [OperationReference](#operationreference) — A reference key chosen by the user that will be part of all records resulting from this operation - [OperationTypeExactMatch](#operationtypeexactmatch) — Matches the value exactly - [OperationTypeFilterProperty](#operationtypefilterproperty) — AuditLogOperationTypeEnum property with full advanced search capabilities - [OwnAuthorizationSearchResult](#ownauthorizationsearchresult) — OwnAuthorizationSearchResult - [Partition](#partition) — Provides information on a partition within a broker node - [PartitionBackupInfo](#partitionbackupinfo) — Detailed info of the backup for a given partition - [PartitionBackupRange](#partitionbackuprange) — Information about one backup range for a partition - [PartitionBackupState](#partitionbackupstate) — Detailed information about the backup state for a given partition - [PartitionCheckpointState](#partitioncheckpointstate) — Detailed information about the checkpoint state for a given partition - [PartitionId](#partitionid) — The id of a partition - [PhysicalTenantBrokerTopology](#physicaltenantbrokertopology) — The partitions of one physical tenant that one broker manages or replicates - [PhysicalTenantTopology](#physicaltenanttopology) — The topology of a single physical tenant - [ProblemDetail](#problemdetail) — A Problem detail object as described in [RFC 9457](https://www - [ProcessDefinitionElementStatisticsQuery](#processdefinitionelementstatisticsquery) — Process definition element statistics request - [ProcessDefinitionElementStatisticsQueryResult](#processdefinitionelementstatisticsqueryresult) — Process definition element statistics query response - [ProcessDefinitionFilter](#processdefinitionfilter) — Process definition search filter - [ProcessDefinitionId](#processdefinitionid) — Id of a process definition, from the model - [ProcessDefinitionIdExactMatch](#processdefinitionidexactmatch) — Matches the value exactly - [ProcessDefinitionIdFilterProperty](#processdefinitionidfilterproperty) — ProcessDefinitionId property with full advanced search capabilities - [ProcessDefinitionInstanceStatisticsQuery](#processdefinitioninstancestatisticsquery) — ProcessDefinitionInstanceStatisticsQuery - [ProcessDefinitionInstanceStatisticsQueryResult](#processdefinitioninstancestatisticsqueryresult) — ProcessDefinitionInstanceStatisticsQueryResult - [ProcessDefinitionInstanceStatisticsQuerySortRequest](#processdefinitioninstancestatisticsquerysortrequest) — ProcessDefinitionInstanceStatisticsQuerySortRequest - [ProcessDefinitionInstanceStatisticsResult](#processdefinitioninstancestatisticsresult) — Process definition instance statistics response - [ProcessDefinitionInstanceVersionStatisticsFilter](#processdefinitioninstanceversionstatisticsfilter) — Process definition instance version statistics search filter - [ProcessDefinitionInstanceVersionStatisticsQuery](#processdefinitioninstanceversionstatisticsquery) — ProcessDefinitionInstanceVersionStatisticsQuery - [ProcessDefinitionInstanceVersionStatisticsQueryResult](#processdefinitioninstanceversionstatisticsqueryresult) — ProcessDefinitionInstanceVersionStatisticsQueryResult - [ProcessDefinitionInstanceVersionStatisticsQuerySortRequest](#processdefinitioninstanceversionstatisticsquerysortrequest) — ProcessDefinitionInstanceVersionStatisticsQuerySortRequest - [ProcessDefinitionInstanceVersionStatisticsResult](#processdefinitioninstanceversionstatisticsresult) — Process definition instance version statistics response - [ProcessDefinitionKeyExactMatch](#processdefinitionkeyexactmatch) — Matches the value exactly - [ProcessDefinitionKeyFilterProperty](#processdefinitionkeyfilterproperty) — ProcessDefinitionKey property with full advanced search capabilities - [ProcessDefinitionMessageSubscriptionStatisticsQuery](#processdefinitionmessagesubscriptionstatisticsquery) — ProcessDefinitionMessageSubscriptionStatisticsQuery - [ProcessDefinitionMessageSubscriptionStatisticsQueryResult](#processdefinitionmessagesubscriptionstatisticsqueryresult) — ProcessDefinitionMessageSubscriptionStatisticsQueryResult - [ProcessDefinitionMessageSubscriptionStatisticsResult](#processdefinitionmessagesubscriptionstatisticsresult) — ProcessDefinitionMessageSubscriptionStatisticsResult - [ProcessDefinitionResult](#processdefinitionresult) — ProcessDefinitionResult - [ProcessDefinitionSearchQuery](#processdefinitionsearchquery) — ProcessDefinitionSearchQuery - [ProcessDefinitionSearchQueryResult](#processdefinitionsearchqueryresult) — ProcessDefinitionSearchQueryResult - [ProcessDefinitionSearchQuerySortRequest](#processdefinitionsearchquerysortrequest) — ProcessDefinitionSearchQuerySortRequest - [ProcessDefinitionStatisticsFilter](#processdefinitionstatisticsfilter) — Process definition statistics search filter - [ProcessDefinitionVariableNameFilter](#processdefinitionvariablenamefilter) — Process definition variable name filter request - [ProcessDefinitionVariableNameSearchQuery](#processdefinitionvariablenamesearchquery) — Process definition variable name search query request - [ProcessDefinitionVariableNameSearchQueryResult](#processdefinitionvariablenamesearchqueryresult) — Process definition variable name search query response - [ProcessDefinitionVariableNameSearchResult](#processdefinitionvariablenamesearchresult) — Process definition variable name search response item - [ProcessElementStatisticsResult](#processelementstatisticsresult) — Process element statistics response - [ProcessInstanceBusinessIdAssignmentInstruction](#processinstancebusinessidassignmentinstruction) — The instruction describing the business id to assign to a running process instance - [ProcessInstanceCallHierarchyEntry](#processinstancecallhierarchyentry) — ProcessInstanceCallHierarchyEntry - [ProcessInstanceCancellationBatchOperationRequest](#processinstancecancellationbatchoperationrequest) — The process instance filter that defines which process instances should be canceled - [ProcessInstanceCreationInstruction](#processinstancecreationinstruction) — Instructions for creating a process instance - [ProcessInstanceCreationInstructionById](#processinstancecreationinstructionbyid) — ProcessInstanceCreationInstructionById - [ProcessInstanceCreationInstructionByKey](#processinstancecreationinstructionbykey) — ProcessInstanceCreationInstructionByKey - [ProcessInstanceCreationRuntimeInstruction](#processinstancecreationruntimeinstruction) — ProcessInstanceCreationRuntimeInstruction - [ProcessInstanceCreationStartInstruction](#processinstancecreationstartinstruction) — ProcessInstanceCreationStartInstruction - [ProcessInstanceCreationTerminateInstruction](#processinstancecreationterminateinstruction) — Terminates the process instance after a specific BPMN element is completed or terminated - [ProcessInstanceDeletionBatchOperationRequest](#processinstancedeletionbatchoperationrequest) — The process instance filter that defines which process instances should be deleted - [ProcessInstanceElementStatisticsQueryResult](#processinstanceelementstatisticsqueryresult) — Process instance element statistics query response - [ProcessInstanceFilter](#processinstancefilter) — Process instance search filter - [ProcessInstanceFilterFields](#processinstancefilterfields) — Process instance search filter - [ProcessInstanceIncidentResolutionBatchOperationRequest](#processinstanceincidentresolutionbatchoperationrequest) — The process instance filter that defines which process instances should have their incidents resolved - [ProcessInstanceKeyExactMatch](#processinstancekeyexactmatch) — Matches the value exactly - [ProcessInstanceKeyFilterProperty](#processinstancekeyfilterproperty) — ProcessInstanceKey property with full advanced search capabilities - [ProcessInstanceMigrationBatchOperationPlan](#processinstancemigrationbatchoperationplan) — The migration instructions describe how to migrate a process instance from one process definition to another - [ProcessInstanceMigrationBatchOperationRequest](#processinstancemigrationbatchoperationrequest) — ProcessInstanceMigrationBatchOperationRequest - [ProcessInstanceMigrationInstruction](#processinstancemigrationinstruction) — The migration instructions describe how to migrate a process instance from one process definition to another - [ProcessInstanceModificationActivateInstruction](#processinstancemodificationactivateinstruction) — Instruction describing an element to activate - [ProcessInstanceModificationBatchOperationRequest](#processinstancemodificationbatchoperationrequest) — The process instance filter to define on which process instances tokens should be moved, and new element instances should be activated or terminated - [ProcessInstanceModificationInstruction](#processinstancemodificationinstruction) — ProcessInstanceModificationInstruction - [ProcessInstanceModificationMoveBatchOperationInstruction](#processinstancemodificationmovebatchoperationinstruction) — Instructions describing a move operation - [ProcessInstanceModificationMoveInstruction](#processinstancemodificationmoveinstruction) — Instruction describing a move operation - [ProcessInstanceModificationTerminateByIdInstruction](#processinstancemodificationterminatebyidinstruction) — Instruction describing which elements to terminate - [ProcessInstanceModificationTerminateByKeyInstruction](#processinstancemodificationterminatebykeyinstruction) — Instruction providing the key of the element instance to terminate - [ProcessInstanceModificationTerminateInstruction](#processinstancemodificationterminateinstruction) — Instruction describing which elements to terminate - [ProcessInstanceReference](#processinstancereference) — ProcessInstanceReference - [ProcessInstanceResult](#processinstanceresult) — Process instance search response item - [ProcessInstanceResumptionBatchOperationRequest](#processinstanceresumptionbatchoperationrequest) — The process instance filter that defines which process instances should be resumed - [ProcessInstanceSearchQuery](#processinstancesearchquery) — Process instance search request - [ProcessInstanceSearchQueryResult](#processinstancesearchqueryresult) — Process instance search response - [ProcessInstanceSearchQuerySortRequest](#processinstancesearchquerysortrequest) — ProcessInstanceSearchQuerySortRequest - [ProcessInstanceSequenceFlowResult](#processinstancesequenceflowresult) — Process instance sequence flow result - [ProcessInstanceSequenceFlowsQueryResult](#processinstancesequenceflowsqueryresult) — Process instance sequence flows query response - [ProcessInstanceStateExactMatch](#processinstancestateexactmatch) — Matches the value exactly - [ProcessInstanceStateFilterProperty](#processinstancestatefilterproperty) — ProcessInstanceStateEnum property with full advanced search capabilities - [ProcessInstanceSuspensionBatchOperationRequest](#processinstancesuspensionbatchoperationrequest) — The process instance filter that defines which process instances should be suspended - [ProcessInstanceWaitStateStatisticsQueryResult](#processinstancewaitstatestatisticsqueryresult) — Process instance wait state statistics query response - [ProcessInstanceWaitStateStatisticsResult](#processinstancewaitstatestatisticsresult) — Process instance wait state statistics response item - [RebalanceCancellationResponse](#rebalancecancellationresponse) — Response to a rebalance cancellation request - [ResolvedSecret](#resolvedsecret) — ResolvedSecret - [ResourceFilter](#resourcefilter) — Resource search filter - [ResourceKeyExactMatch](#resourcekeyexactmatch) — Matches the value exactly - [ResourceKeyFilterProperty](#resourcekeyfilterproperty) — ResourceKey property with full advanced search capabilities - [ResourceResult](#resourceresult) — ResourceResult - [ResourceSearchQuery](#resourcesearchquery) — ResourceSearchQuery - [ResourceSearchQueryResult](#resourcesearchqueryresult) — ResourceSearchQueryResult - [ResourceSearchQuerySortRequest](#resourcesearchquerysortrequest) — ResourceSearchQuerySortRequest - [RestoreBrokerStatus](#restorebrokerstatus) — The restore status of a single broker - [RestorePartitionStatus](#restorepartitionstatus) — The restore status of a single partition on a broker - [RestoreRequest](#restorerequest) — Describes a restore request - [RestoreStatusResponse](#restorestatusresponse) — The status of the restore that is currently in progress - [ResumeProcessInstanceRequest](#resumeprocessinstancerequest) — ResumeProcessInstanceRequest - [RetryDecision](#retrydecision) - [RoleClientResult](#roleclientresult) — RoleClientResult - [RoleClientSearchQueryRequest](#roleclientsearchqueryrequest) — RoleClientSearchQueryRequest - [RoleClientSearchQuerySortRequest](#roleclientsearchquerysortrequest) — RoleClientSearchQuerySortRequest - [RoleClientSearchResult](#roleclientsearchresult) — RoleClientSearchResult - [RoleCreateRequest](#rolecreaterequest) — RoleCreateRequest - [RoleCreateResult](#rolecreateresult) — RoleCreateResult - [RoleFilter](#rolefilter) — Role filter request - [RoleFilterFields](#rolefilterfields) — Role filter request - [RoleGroupResult](#rolegroupresult) — RoleGroupResult - [RoleGroupSearchQueryRequest](#rolegroupsearchqueryrequest) — RoleGroupSearchQueryRequest - [RoleGroupSearchQuerySortRequest](#rolegroupsearchquerysortrequest) — RoleGroupSearchQuerySortRequest - [RoleGroupSearchResult](#rolegroupsearchresult) — RoleGroupSearchResult - [RoleId](#roleid) — The unique identifier of a role - [RoleMappingRuleSearchResult](#rolemappingrulesearchresult) — RoleMappingRuleSearchResult - [RoleResult](#roleresult) — Role search response item - [RoleSearchQueryRequest](#rolesearchqueryrequest) — Role search request - [RoleSearchQueryResult](#rolesearchqueryresult) — Role search response - [RoleSearchQuerySortRequest](#rolesearchquerysortrequest) — RoleSearchQuerySortRequest - [RoleUpdateRequest](#roleupdaterequest) — RoleUpdateRequest - [RoleUpdateResult](#roleupdateresult) — RoleUpdateResult - [RoleUserFilterRequest](#roleuserfilterrequest) — Role user filter request - [RoleUserResult](#roleuserresult) — RoleUserResult - [RoleUserSearchQueryRequest](#roleusersearchqueryrequest) — RoleUserSearchQueryRequest - [RoleUserSearchQuerySortRequest](#roleusersearchquerysortrequest) — RoleUserSearchQuerySortRequest - [RoleUserSearchResult](#roleusersearchresult) — RoleUserSearchResult - [RuntimeBackupState](#runtimebackupstate) — Information about the checkpoint and backup state of the physical tenant - [ScopeKeyExactMatch](#scopekeyexactmatch) — Matches the value exactly - [ScopeKeyFilterProperty](#scopekeyfilterproperty) — ScopeKey property with full advanced search capabilities - [SearchQueryPageRequest](#searchquerypagerequest) — Pagination criteria - [SearchQueryPageResponse](#searchquerypageresponse) — Pagination information about the search results - [SearchQueryRequest](#searchqueryrequest) — SearchQueryRequest - [SearchQueryResponse](#searchqueryresponse) — SearchQueryResponse - [SecretListRequest](#secretlistrequest) — Reserved for future filtering options - [SecretListResult](#secretlistresult) — The secret references the caller is authorized to see - [SecretResolutionError](#secretresolutionerror) — SecretResolutionError - [SecretResolveRequest](#secretresolverequest) — SecretResolveRequest - [SecretResolveResult](#secretresolveresult) — The per-reference outcome of a resolve request - [SeededRandomSource](#seededrandomsource) — A deterministic `IRandomSource` for tests: the same seed yields the same sequence of draws on every run, and in every Camunda SDK - [SetVariableRequest](#setvariablerequest) — SetVariableRequest - [SignalBroadcastRequest](#signalbroadcastrequest) — SignalBroadcastRequest - [SignalBroadcastResult](#signalbroadcastresult) — SignalBroadcastResult - [SignalWaitStateDetails](#signalwaitstatedetails) — SignalWaitStateDetails - [SourceElementIdInstruction](#sourceelementidinstruction) — Defines an instruction with a sourceElementId - [SourceElementInstanceKeyInstruction](#sourceelementinstancekeyinstruction) — Defines an instruction with a sourceElementInstanceKey - [SourceElementInstruction](#sourceelementinstruction) — Defines the source element identifier for the move instruction - [StartCursor](#startcursor) — The start cursor in a search query result set - [StatusMetric](#statusmetric) — Metric for a single job status - [StopResult](#stopresult) — Result of a `JobWorker - [StringFilterProperty](#stringfilterproperty) — String property with full advanced search capabilities - [SuspendProcessInstanceRequest](#suspendprocessinstancerequest) — SuspendProcessInstanceRequest - [SystemConfigurationResponse](#systemconfigurationresponse) — Envelope for all system configuration sections - [Tag](#tag) — A tag - [TakeHistoryBackupRequest](#takehistorybackuprequest) — Request body for taking a history backup - [TakeHistoryBackupResponse](#takehistorybackupresponse) — Response body for taking a history backup - [TakeRuntimeBackupRequest](#takeruntimebackuprequest) — Request body for taking a runtime backup - [TakeRuntimeBackupResponse](#takeruntimebackupresponse) — Response body for taking a runtime backup - [TenantClientResult](#tenantclientresult) — TenantClientResult - [TenantClientSearchQueryRequest](#tenantclientsearchqueryrequest) — TenantClientSearchQueryRequest - [TenantClientSearchQuerySortRequest](#tenantclientsearchquerysortrequest) — TenantClientSearchQuerySortRequest - [TenantClientSearchResult](#tenantclientsearchresult) — TenantClientSearchResult - [TenantCreateRequest](#tenantcreaterequest) — TenantCreateRequest - [TenantCreateResult](#tenantcreateresult) — TenantCreateResult - [TenantFilter](#tenantfilter) — Tenant filter request - [TenantGroupResult](#tenantgroupresult) — TenantGroupResult - [TenantGroupSearchQueryRequest](#tenantgroupsearchqueryrequest) — TenantGroupSearchQueryRequest - [TenantGroupSearchQuerySortRequest](#tenantgroupsearchquerysortrequest) — TenantGroupSearchQuerySortRequest - [TenantGroupSearchResult](#tenantgroupsearchresult) — TenantGroupSearchResult - [TenantId](#tenantid) — The unique identifier of the tenant - [TenantMappingRuleSearchResult](#tenantmappingrulesearchresult) — TenantMappingRuleSearchResult - [TenantResult](#tenantresult) — Tenant search response item - [TenantRoleSearchResult](#tenantrolesearchresult) — TenantRoleSearchResult - [TenantSearchQueryRequest](#tenantsearchqueryrequest) — Tenant search request - [TenantSearchQueryResult](#tenantsearchqueryresult) — Tenant search response - [TenantSearchQuerySortRequest](#tenantsearchquerysortrequest) — TenantSearchQuerySortRequest - [TenantUpdateRequest](#tenantupdaterequest) — TenantUpdateRequest - [TenantUpdateResult](#tenantupdateresult) — TenantUpdateResult - [TenantUserResult](#tenantuserresult) — TenantUserResult - [TenantUserSearchQueryRequest](#tenantusersearchqueryrequest) — TenantUserSearchQueryRequest - [TenantUserSearchQuerySortRequest](#tenantusersearchquerysortrequest) — TenantUserSearchQuerySortRequest - [TenantUserSearchResult](#tenantusersearchresult) — TenantUserSearchResult - [TimerWaitStateDetails](#timerwaitstatedetails) — TimerWaitStateDetails - [TlsConfig](#tlsconfig) — TLS / mTLS configuration for custom certificates - [TopologyResponse](#topologyresponse) — The response of a topology request - [TypedVariables](#typedvariables) — Extension methods for deserializing Camunda variable and custom header payloads from untyped `object` properties into strongly-typed DTOs - [TypedVariablesException](#typedvariablesexception) — Base class for all errors raised by the DTO-driven typed variable map feature (`CamundaClient - [UpdateClusterVariableRequest](#updateclustervariablerequest) — UpdateClusterVariableRequest - [UpdateGlobalTaskListenerRequest](#updateglobaltasklistenerrequest) — UpdateGlobalTaskListenerRequest - [UsageMetricsResponse](#usagemetricsresponse) — UsageMetricsResponse - [UsageMetricsResponseItem](#usagemetricsresponseitem) — UsageMetricsResponseItem - [UseSourceParentKeyInstruction](#usesourceparentkeyinstruction) — Instructs the engine to use the source's direct parent key as the ancestor scope key for the target element - [UserCreateResult](#usercreateresult) — UserCreateResult - [UserFilter](#userfilter) — User search filter - [UserFilterFields](#userfilterfields) — User search filter fields - [UserRequest](#userrequest) — UserRequest - [UserResult](#userresult) — UserResult - [UserSearchQueryRequest](#usersearchqueryrequest) — UserSearchQueryRequest - [UserSearchQuerySortRequest](#usersearchquerysortrequest) — UserSearchQuerySortRequest - [UserSearchResult](#usersearchresult) — UserSearchResult - [UserTaskAssignmentRequest](#usertaskassignmentrequest) — UserTaskAssignmentRequest - [UserTaskAuditLogFilter](#usertaskauditlogfilter) — The user task audit log search filters - [UserTaskAuditLogSearchQueryRequest](#usertaskauditlogsearchqueryrequest) — User task search query request - [UserTaskCompletionRequest](#usertaskcompletionrequest) — UserTaskCompletionRequest - [UserTaskEffectiveVariableSearchQueryRequest](#usertaskeffectivevariablesearchqueryrequest) — User task effective variable search query request - [UserTaskFilter](#usertaskfilter) — User task filter request - [UserTaskFilterFields](#usertaskfilterfields) — User task filter fields - [UserTaskProperties](#usertaskproperties) — Contains properties of a user task - [UserTaskResult](#usertaskresult) — UserTaskResult - [UserTaskSearchQuery](#usertasksearchquery) — User task search query request - [UserTaskSearchQueryResult](#usertasksearchqueryresult) — User task search query response - [UserTaskSearchQuerySortRequest](#usertasksearchquerysortrequest) — UserTaskSearchQuerySortRequest - [UserTaskStateExactMatch](#usertaskstateexactmatch) — Matches the value exactly - [UserTaskStateFilterProperty](#usertaskstatefilterproperty) — UserTaskStateEnum property with full advanced search capabilities - [UserTaskUpdateRequest](#usertaskupdaterequest) — UserTaskUpdateRequest - [UserTaskVariableFilter](#usertaskvariablefilter) — The user task variable search filters - [UserTaskVariableSearchQueryRequest](#usertaskvariablesearchqueryrequest) — User task search query request - [UserTaskVariableSearchQuerySortRequest](#usertaskvariablesearchquerysortrequest) — UserTaskVariableSearchQuerySortRequest - [UserTaskWaitStateDetails](#usertaskwaitstatedetails) — UserTaskWaitStateDetails - [UserUpdateRequest](#userupdaterequest) — UserUpdateRequest - [UserUpdateResult](#userupdateresult) — UserUpdateResult - [Username](#username) — The unique name of a user - [VariableDeserializationException](#variabledeserializationexception) — Raised when a present variable value cannot be deserialized - [VariableFilter](#variablefilter) — Variable filter request - [VariableKeyExactMatch](#variablekeyexactmatch) — Matches the value exactly - [VariableKeyFilterProperty](#variablekeyfilterproperty) — VariableKey property with full advanced search capabilities - [VariableMap](#variablemap) — Result of a DTO-driven variable search (`CamundaClient - [VariableResult](#variableresult) — Variable search response item - [VariableResultBase](#variableresultbase) — Variable response item - [VariableScopeCollisionException](#variablescopecollisionexception) — Raised when a declared variable name is returned at more than one scope - [VariableSearchQuery](#variablesearchquery) — Variable search query request - [VariableSearchQueryResult](#variablesearchqueryresult) — Variable search query response - [VariableSearchQuerySortRequest](#variablesearchquerysortrequest) — VariableSearchQuerySortRequest - [VariableSearchResult](#variablesearchresult) — Variable search response item - [VariableValidationException](#variablevalidationexception) — Raised by `VariableMap - [VariableValueFilterProperty](#variablevaluefilterproperty) — VariableValueFilterProperty - [WaitStateDetails](#waitstatedetails) — Wait-state-specific details of an element instance - [WaitStateElementTypeExactMatch](#waitstateelementtypeexactmatch) — Matches the value exactly - [WaitStateElementTypeFilterProperty](#waitstateelementtypefilterproperty) — Element type property with full advanced search capabilities - [WaitStateTypeExactMatch](#waitstatetypeexactmatch) — Matches the value exactly - [WaitStateTypeFilterProperty](#waitstatetypefilterproperty) — Wait state type property with full advanced search capabilities - [WorkerDefaultsConfig](#workerdefaultsconfig) --- ## ActivatedJob An activated job received from the Camunda broker, with typed variable access. This is what job handler functions receive. ```csharp public sealed class ActivatedJob ``` | Property | Type | Description | | -------------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Clock` | `TimeProvider` | The clock the worker's own cadence runs on. Handlers should read time and wait through this rather than `DateTimeOffset.UtcNow` or `Task.Delay(ms, ct)`, so that in-handler timing is virtual whenever the client's clock is. `csharp var startedAt = job.Clock.GetUtcNow(); await Task.Delay(TimeSpan.FromMilliseconds(200), job.Clock, ct); ` This is for short in-handler coordination — poll again shortly, back off before a retry, debounce. It is not for business waits: "wait three days, then escalate" belongs in the BPMN model as a timer event, which is durable, owned by the engine, and survives worker restarts. | | `Type` | `String` | The job type (matches the BPMN task definition type). | | `ProcessDefinitionId` | `ProcessDefinitionId` | The BPMN process ID of the job's process definition. | | `ProcessDefinitionVersion` | `Int32` | The version of the job's process definition. | | `ElementId` | `ElementId` | The associated task element ID. | | `CustomHeaders` | `Object` | Raw custom headers (typically a `Json.JsonElement` at runtime). | | `Worker` | `String` | The name of the worker that activated this job. | | `Retries` | `Int32` | Retries remaining for this job. | | `Deadline` | `Int64` | UNIX epoch timestamp (ms) when the job lock expires. | | `Variables` | `Object` | Raw variables (typically a `Json.JsonElement` at runtime). | | `TenantId` | `TenantId` | The tenant that owns this job. | | `JobKey` | `JobKey` | Unique identifier for this job. | | `JobLeaseToken` | `Nullable` | The lease token for this job, or `null` if it was not activated with a lease. Present exactly when the worker set `JobWorkerConfig.WithLease`; the worker threads it back onto the fenced commands automatically. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance this job belongs to. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key. | | `ElementInstanceKey` | `ElementInstanceKey` | The element instance key. | | `Kind` | `JobKindEnum` | The job kind. | | `ListenerEventType` | `JobListenerEventTypeEnum` | The listener event type. | | `UserTask` | `UserTaskProperties` | User task properties (if this is a user task job). | | `Tags` | `List` | Tags associated with this job. | ## ActivatedJobResult ```csharp public sealed class ActivatedJobResult ``` | Property | Type | Description | | -------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Type` | `String` | The type of the job (should match what was requested). | | `ProcessDefinitionId` | `ProcessDefinitionId` | The bpmn process ID of the job's process definition. | | `ProcessDefinitionVersion` | `Int32` | The version of the job's process definition. | | `ElementId` | `ElementId` | The associated task element ID. | | `CustomHeaders` | `Object` | A set of custom headers defined during modelling; returned as a serialized JSON document. | | `Worker` | `String` | The name of the worker which activated this job. | | `Retries` | `Int32` | The amount of retries left to this job (should always be positive). | | `Deadline` | `Int64` | When the job can be activated again, sent as a UNIX epoch timestamp. | | `Variables` | `Object` | All variables visible to the task scope, computed at activation time. | | `TenantId` | `TenantId` | The ID of the tenant that owns the job. | | `PhysicalTenantId` | `String` | The ID of the physical tenant that the job-activation request was routed to; the default physical tenant when the request did not specify one. | | `JobKey` | `JobKey` | The key, a unique identifier for the job. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The job's process instance key. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the job's process definition. | | `ElementInstanceKey` | `ElementInstanceKey` | The element instance key of the task. | | `Kind` | `JobKindEnum` | The job kind. | | `ListenerEventType` | `JobListenerEventTypeEnum` | The listener event type of the job. | | `UserTask` | `UserTaskProperties` | User task properties, if the job is a user task. This is `null` if the job is not a user task. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `BusinessId` | `Nullable` | The business ID of the owning process instance, inherited when the job was created. This is `null` for jobs created before version 8.10 and for jobs whose owning process instance has no business ID. | | `Priority` | `Int32` | The priority of the job. Higher values indicate higher priority. Jobs created before 8.10 have no stored priority; the API returns 0 for such jobs. | | `JobLeaseToken` | `Nullable` | The lease token identifying this activation. This is `null` when the job was activated without a lease. | ## AdHocSubProcessActivateActivitiesInstruction ```csharp public sealed class AdHocSubProcessActivateActivitiesInstruction ``` | Property | Type | Description | | -------------------------- | ------------------------------------------------ | ---------------------------------------------------------------- | | `Elements` | `List` | Activities to activate. | | `CancelRemainingInstances` | `Nullable` | Whether to cancel remaining instances of the ad-hoc sub-process. | ## AdHocSubProcessActivateActivityReference ```csharp public sealed class AdHocSubProcessActivateActivityReference ``` | Property | Type | Description | | ----------- | ----------- | ------------------------------------------------ | | `ElementId` | `ElementId` | The ID of the element that should be activated. | | `Variables` | `Object` | Variables to be set when activating the element. | ## AdvancedActorTypeFilter Advanced AuditLogActorTypeEnum filter. ```csharp public sealed class AdvancedActorTypeFilter ``` | Property | Type | Description | | -------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedAgentDefinitionKeyFilter Advanced AgentDefinitionKey filter. ```csharp public sealed class AdvancedAgentDefinitionKeyFilter ``` | Property | Type | Description | | -------- | ------------------------------ | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedAgentDefinitionTypeFilter Advanced AgentDefinitionTypeEnum filter. ```csharp public sealed class AdvancedAgentDefinitionTypeFilter ``` | Property | Type | Description | | -------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedAgentHistoryItemKeyFilter Advanced AgentHistoryItemKey filter. ```csharp public sealed class AdvancedAgentHistoryItemKeyFilter ``` | Property | Type | Description | | -------- | ------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedAgentInstanceHistoryCommitStatusFilter Advanced AgentInstanceHistoryCommitStatusEnum filter. ```csharp public sealed class AdvancedAgentInstanceHistoryCommitStatusFilter ``` | Property | Type | Description | | -------- | ------------------------------------------------ | ---------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AdvancedAgentInstanceHistoryRoleFilter Advanced AgentInstanceHistoryRoleEnum filter. ```csharp public sealed class AdvancedAgentInstanceHistoryRoleFilter ``` | Property | Type | Description | | -------- | ---------------------------------------- | ---------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AdvancedAgentInstanceKeyFilter Advanced AgentInstanceKey filter. ```csharp public sealed class AdvancedAgentInstanceKeyFilter ``` | Property | Type | Description | | -------- | ---------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedAgentInstanceStatusFilter Advanced AgentInstanceStatusEnum filter. ```csharp public sealed class AdvancedAgentInstanceStatusFilter ``` | Property | Type | Description | | -------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedAuditLogEntityKeyFilter Advanced entityKey filter. ```csharp public sealed class AdvancedAuditLogEntityKeyFilter ``` | Property | Type | Description | | -------- | ----------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedAuditLogKeyFilter Advanced AuditLogKey filter. ```csharp public sealed class AdvancedAuditLogKeyFilter ``` | Property | Type | Description | | -------- | ----------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedBatchOperationItemStateFilter Advanced BatchOperationItemStateEnum filter. ```csharp public sealed class AdvancedBatchOperationItemStateFilter ``` | Property | Type | Description | | -------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedBatchOperationStateFilter Advanced BatchOperationStateEnum filter. ```csharp public sealed class AdvancedBatchOperationStateFilter ``` | Property | Type | Description | | -------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedBatchOperationTypeFilter Advanced BatchOperationTypeEnum filter. ```csharp public sealed class AdvancedBatchOperationTypeFilter ``` | Property | Type | Description | | -------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedCategoryFilter Advanced AuditLogCategoryEnum filter. ```csharp public sealed class AdvancedCategoryFilter ``` | Property | Type | Description | | -------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedClusterVariableKindFilter Advanced ClusterVariableKindEnum filter. ```csharp public sealed class AdvancedClusterVariableKindFilter ``` | Property | Type | Description | | -------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedClusterVariableScopeFilter Advanced ClusterVariableScopeEnum filter. ```csharp public sealed class AdvancedClusterVariableScopeFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedDateTimeFilter Advanced date-time filter. ```csharp public sealed class AdvancedDateTimeFilter ``` | Property | Type | Description | | -------- | -------------------------- | ---------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `Gt` | `Nullable` | Greater than comparison with the provided value. | | `Gte` | `Nullable` | Greater than or equal comparison with the provided value. | | `Lt` | `Nullable` | Lower than comparison with the provided value. | | `Lte` | `Nullable` | Lower than or equal comparison with the provided value. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AdvancedDecisionDefinitionKeyFilter Advanced DecisionDefinitionKey filter. ```csharp public sealed class AdvancedDecisionDefinitionKeyFilter ``` | Property | Type | Description | | -------- | --------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedDecisionEvaluationInstanceKeyFilter Advanced DecisionEvaluationInstanceKey filter. ```csharp public sealed class AdvancedDecisionEvaluationInstanceKeyFilter ``` | Property | Type | Description | | -------- | ----------------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedDecisionEvaluationKeyFilter Advanced DecisionEvaluationKey filter. ```csharp public sealed class AdvancedDecisionEvaluationKeyFilter ``` | Property | Type | Description | | -------- | --------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedDecisionInstanceStateFilter Advanced DecisionInstanceStateEnum filter. ```csharp public sealed class AdvancedDecisionInstanceStateFilter ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedDecisionRequirementsKeyFilter Advanced DecisionRequirementsKey filter. ```csharp public sealed class AdvancedDecisionRequirementsKeyFilter ``` | Property | Type | Description | | -------- | ----------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedDeploymentKeyFilter Advanced DeploymentKey filter. ```csharp public sealed class AdvancedDeploymentKeyFilter ``` | Property | Type | Description | | -------- | ------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedElementIdFilter Advanced ElementId filter. ```csharp public sealed class AdvancedElementIdFilter ``` | Property | Type | Description | | -------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedElementInstanceKeyFilter Advanced ElementInstanceKey filter. ```csharp public sealed class AdvancedElementInstanceKeyFilter ``` | Property | Type | Description | | -------- | ------------------------------ | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedElementInstanceStateFilter Advanced ElementInstanceStateEnum filter. ```csharp public sealed class AdvancedElementInstanceStateFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedEntityTypeFilter Advanced AuditLogEntityTypeEnum filter. ```csharp public sealed class AdvancedEntityTypeFilter ``` | Property | Type | Description | | -------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedFormKeyFilter Advanced FormKey filter. ```csharp public sealed class AdvancedFormKeyFilter ``` | Property | Type | Description | | -------- | ------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedGlobalListenerSourceFilter Advanced global listener source filter. ```csharp public sealed class AdvancedGlobalListenerSourceFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedGlobalTaskListenerEventTypeFilter Advanced global listener event type filter. ```csharp public sealed class AdvancedGlobalTaskListenerEventTypeFilter ``` | Property | Type | Description | | -------- | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedIncidentErrorTypeFilter Advanced IncidentErrorTypeEnum filter ```csharp public sealed class AdvancedIncidentErrorTypeFilter ``` | Property | Type | Description | | -------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property does not match any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedIncidentStateFilter Advanced IncidentStateEnum filter ```csharp public sealed class AdvancedIncidentStateFilter ``` | Property | Type | Description | | -------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property does not match any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedIntegerFilter Advanced integer (int32) filter. ```csharp public sealed class AdvancedIntegerFilter ``` | Property | Type | Description | | -------- | ------------------- | ---------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `Gt` | `Nullable` | Greater than comparison with the provided value. | | `Gte` | `Nullable` | Greater than or equal comparison with the provided value. | | `Lt` | `Nullable` | Lower than comparison with the provided value. | | `Lte` | `Nullable` | Lower than or equal comparison with the provided value. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AdvancedJobKeyFilter Advanced JobKey filter. ```csharp public sealed class AdvancedJobKeyFilter ``` | Property | Type | Description | | -------- | ------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedJobKindFilter Advanced JobKindEnum filter. ```csharp public sealed class AdvancedJobKindFilter ``` | Property | Type | Description | | -------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedJobListenerEventTypeFilter Advanced JobListenerEventTypeEnum filter. ```csharp public sealed class AdvancedJobListenerEventTypeFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedJobStateFilter Advanced JobStateEnum filter. ```csharp public sealed class AdvancedJobStateFilter ``` | Property | Type | Description | | -------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedMessageSubscriptionKeyFilter Advanced MessageSubscriptionKey filter. ```csharp public sealed class AdvancedMessageSubscriptionKeyFilter ``` | Property | Type | Description | | -------- | ---------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for equality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedMessageSubscriptionStateFilter Advanced MessageSubscriptionStateEnum filter ```csharp public sealed class AdvancedMessageSubscriptionStateFilter ``` | Property | Type | Description | | -------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedMessageSubscriptionTypeFilter Advanced MessageSubscriptionTypeEnum filter ```csharp public sealed class AdvancedMessageSubscriptionTypeFilter ``` | Property | Type | Description | | -------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedMetadataValueFilter Advanced filter on a metadata value (string or number). ```csharp public sealed class AdvancedMetadataValueFilter ``` | Property | Type | Description | | -------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Object` | Checks for equality with the provided value. | | `Neq` | `Object` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the metadata key exists. | | `Gt` | `Nullable` | Greater than comparison with the provided value. | | `Gte` | `Nullable` | Greater than or equal comparison with the provided value. | | `Lt` | `Nullable` | Lower than comparison with the provided value. | | `Lte` | `Nullable` | Lower than or equal comparison with the provided value. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedOperationTypeFilter Advanced AuditLogOperationTypeEnum filter. ```csharp public sealed class AdvancedOperationTypeFilter ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedProcessDefinitionIdFilter Advanced ProcessDefinitionId filter. ```csharp public sealed class AdvancedProcessDefinitionIdFilter ``` | Property | Type | Description | | -------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedProcessDefinitionKeyFilter Advanced ProcessDefinitionKey filter. ```csharp public sealed class AdvancedProcessDefinitionKeyFilter ``` | Property | Type | Description | | -------- | -------------------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedProcessInstanceKeyFilter Advanced ProcessInstanceKey filter. ```csharp public sealed class AdvancedProcessInstanceKeyFilter ``` | Property | Type | Description | | -------- | ------------------------------ | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedProcessInstanceStateFilter Advanced ProcessInstanceStateEnum filter. ```csharp public sealed class AdvancedProcessInstanceStateFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedResourceKeyFilter Advanced ResourceKey filter. ```csharp public sealed class AdvancedResourceKeyFilter ``` | Property | Type | Description | | -------- | ----------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedResultFilter Advanced AuditLogResultEnum filter. ```csharp public sealed class AdvancedResultFilter ``` | Property | Type | Description | | -------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedScopeKeyFilter Advanced ScopeKey filter. ```csharp public sealed class AdvancedScopeKeyFilter ``` | Property | Type | Description | | -------- | -------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedStringFilter Advanced string filter. ```csharp public sealed class AdvancedStringFilter ``` | Property | Type | Description | | -------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `String` | Checks for equality with the provided value. | | `Neq` | `String` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedUserTaskStateFilter Advanced UserTaskStateEnum filter. ```csharp public sealed class AdvancedUserTaskStateFilter ``` | Property | Type | Description | | -------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedVariableKeyFilter Advanced VariableKey filter. ```csharp public sealed class AdvancedVariableKeyFilter ``` | Property | Type | Description | | -------- | ----------------------- | ----------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AdvancedWaitStateElementTypeFilter Advanced element type filter. ```csharp public sealed class AdvancedWaitStateElementTypeFilter ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AdvancedWaitStateTypeFilter Advanced wait state type filter. ```csharp public sealed class AdvancedWaitStateTypeFilter ``` | Property | Type | Description | | -------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AgentDefinitionFilter Agent definition search filter. ```csharp public sealed class AgentDefinitionFilter ``` | Property | Type | Description | | ----------------------------- | ------------------------------------ | ------------------------------------------------------------------------------ | | `AgentDefinitionKey` | `AgentDefinitionKeyFilterProperty` | The unique key of the agent definition. | | `AgentType` | `AgentDefinitionTypeFilterProperty` | The kind of agent this agent definition describes. | | `Name` | `StringFilterProperty` | The human-readable name of the process element that owns the agent definition. | | `ElementId` | `ElementIdFilterProperty` | The BPMN element ID of the process element that owns the agent definition. | | `ProcessDefinitionId` | `ProcessDefinitionIdFilterProperty` | The BPMN process ID of the process definition that owns the agent definition. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The key of the process definition that owns the agent definition. | | `ProcessDefinitionVersion` | `IntegerFilterProperty` | The version of the process definition that owns the agent definition. | | `ProcessDefinitionVersionTag` | `StringFilterProperty` | The version tag of the process definition that owns the agent definition. | | `TenantId` | `StringFilterProperty` | The tenant ID of the agent definition. | ## AgentDefinitionKeyExactMatch Matches the value exactly. ```csharp public readonly record struct AgentDefinitionKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentDefinitionKeyFilterProperty AgentDefinitionKey property with full advanced search capabilities. ```csharp public sealed class AgentDefinitionKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AgentDefinitionResult An agent definition, created at deploy time for the process element it belongs to. ```csharp public sealed class AgentDefinitionResult ``` | Property | Type | Description | | ----------------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `AgentDefinitionKey` | `AgentDefinitionKey` | The unique key for this agent definition. Unique across process definition versions. | | `AgentType` | `AgentDefinitionTypeEnum` | The kind of agent an agent definition describes. | | `Name` | `String` | The human-readable name of the process element that owns the agent definition. Falls back to elementId when the element has no BPMN name configured. | | `ElementId` | `ElementId` | The BPMN element ID of the process element that owns the agent definition. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The BPMN process ID of the process definition that owns the agent definition. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition that owns the agent definition. | | `ProcessDefinitionVersion` | `Int32` | The version of the process definition that owns the agent definition. | | `ProcessDefinitionVersionTag` | `String` | The version tag of the process definition that owns the agent definition. | | `TenantId` | `TenantId` | The tenant ID of this agent definition. | ## AgentDefinitionSearchQuery Agent definition search request. ```csharp public sealed class AgentDefinitionSearchQuery ``` | Property | Type | Description | | -------- | --------------------------------------------- | ------------------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `AgentDefinitionFilter` | The agent definition search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## AgentDefinitionSearchQueryResult Agent definition search response. ```csharp public sealed class AgentDefinitionSearchQueryResult ``` | Property | Type | Description | | -------- | ----------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching agent definitions. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## AgentDefinitionSearchQuerySortRequest ```csharp public sealed class AgentDefinitionSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------------- | --------------------------------------------- | | `Field` | `AgentDefinitionSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## AgentDefinitionTypeExactMatch Matches the value exactly. ```csharp public readonly record struct AgentDefinitionTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentDefinitionTypeFilterProperty AgentDefinitionTypeEnum property with full advanced search capabilities. ```csharp public sealed class AgentDefinitionTypeFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AgentHistoryItemKeyExactMatch Matches the value exactly. ```csharp public readonly record struct AgentHistoryItemKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentHistoryItemKeyFilterProperty AgentHistoryItemKey property with full advanced search capabilities. ```csharp public sealed class AgentHistoryItemKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AgentInstanceCreatedHistoryItem The outcome of appending a single history item from an update request's history batch. ```csharp public sealed class AgentInstanceCreatedHistoryItem ``` | Property | Type | Description | | ---------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | `HistoryItemId` | `HistoryItemId` | The historyItemId of the corresponding item in the request, echoed back so callers can correlate response entries with request items by id. | | `HistoryItemKey` | `AgentHistoryItemKey` | The system-generated key for the history item. When isDuplicate is true, this is the key of the original entry, not a new one. | | `IsDuplicate` | `Boolean` | True if this item had already been recorded and no new AGENT_HISTORY event was created for it; false if a new event was created. | ## AgentInstanceCreationRequest Request to create a new agent instance. ```csharp public sealed class AgentInstanceCreationRequest ``` | Property | Type | Description | | -------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ElementInstanceKey` | `ElementInstanceKey` | The key of the AI Agent Sub-process or AI Agent Task element instance. The engine uses this key to infer processInstanceKey, elementId, processDefinitionKey, and tenantId. | | `JobKey` | `JobKey` | The key of the job activation during which this creation is being made. A creation must always be attributed to the active job that produced it. | | `JobLeaseToken` | `JobLeaseToken` | Opaque lease token received from the job activation response. Disambiguates this activation from any other activation of the same job: if the job is later retried, history items submitted under a superseded lease are discarded rather than committed. | | `History` | `List` | A batch of history items to append to the agent instance's conversation history, in request order. Each created item is echoed back in the response's createdHistory, positionally correlated. Must include a CONFIGURATION item establishing model, provider, and systemPrompt (and, if needed, limits). Every item's role must be CONFIGURATION or USER, and no item may carry non-zero usage-token metrics (inputTokens, outputTokens, reasoningTokenCount, cacheCreationTokenCount, cacheReadTokenCount); durationMs is exempt and may be non-zero. | ## AgentInstanceCreationResult Response returned after successfully creating an agent instance. ```csharp public sealed class AgentInstanceCreationResult ``` | Property | Type | Description | | ------------------ | --------------------------------------- | ---------------------------------------------------------------------- | | `AgentInstanceKey` | `AgentInstanceKey` | The system-generated key for the created agent instance. | | `CreatedHistory` | `List` | One entry per history item submitted in the request, in request order. | ## AgentInstanceDefinitionResult The definition of an agent instance. Set at creation, but can change later via a CONFIGURATION history item. ```csharp public sealed class AgentInstanceDefinitionResult ``` | Property | Type | Description | | -------------- | ----------------------------------- | ------------------------------------------------------------------------ | | `Model` | `String` | The LLM model identifier (for example, gpt-4o). | | `Provider` | `String` | The LLM provider (for example, openai or anthropic). | | `SystemPrompt` | `List` | The system prompt configured for this agent instance, as content blocks. | ## AgentInstanceDocumentContent A Camunda Document Store reference content block. ```csharp public sealed class AgentInstanceDocumentContent : AgentInstanceMessageContent ``` | Property | Type | Description | | ------------------- | ------------------- | --------------------------------------------------------------- | | `DocumentReference` | `DocumentReference` | A reference to a document stored in the Camunda Document Store. | ## AgentInstanceFilter Agent instance search filter. ```csharp public sealed class AgentInstanceFilter ``` | Property | Type | Description | | ----------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AgentInstanceKey` | `AgentInstanceKeyFilterProperty` | The unique key of the agent instance. | | `AgentDefinitionKey` | `AgentDefinitionKeyFilterProperty` | The key of the agent definition this agent instance is an instance of. | | `Status` | `AgentInstanceStatusFilterProperty` | The current status of the agent instance. | | `ElementId` | `ElementIdFilterProperty` | The BPMN element ID of the agent task. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of the process instance that owns this agent instance. | | `RootProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of the root process instance. Filters agent instances belonging to a specific call hierarchy. The root process instance is the top-level ancestor in the process instance hierarchy. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The key of the process definition associated with this agent instance. | | `TenantId` | `StringFilterProperty` | The tenant ID of the agent instance. | | `CreationDate` | `DateTimeFilterProperty` | The creation date of the agent instance. | | `LastUpdatedDate` | `DateTimeFilterProperty` | The date the agent instance was last updated. | | `CompletionDate` | `DateTimeFilterProperty` | The completion date of the agent instance. | | `ElementInstanceKeys` | `List` | The keys of element instances associated with this agent instance. If multiple keys are provided, the filter matches agent instances associated with all of the provided keys at the same time. | | `ProcessDefinitionId` | `StringFilterProperty` | The BPMN process ID of the process definition associated with this agent instance. | | `ProcessDefinitionVersion` | `IntegerFilterProperty` | The version of the process definition associated with this agent instance. | | `ProcessDefinitionVersionTag` | `StringFilterProperty` | The version tag of the process definition associated with this agent instance. | ## AgentInstanceHistoryCommitStatusExactMatch Matches the value exactly. ```csharp public readonly record struct AgentInstanceHistoryCommitStatusExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentInstanceHistoryCommitStatusFilterProperty AgentInstanceHistoryCommitStatusEnum property with full advanced search capabilities. ```csharp public sealed class AgentInstanceHistoryCommitStatusFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AgentInstanceHistoryFilter Agent instance history item search filter. ```csharp public sealed class AgentInstanceHistoryFilter ``` | Property | Type | Description | | -------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `HistoryItemKey` | `AgentHistoryItemKeyFilterProperty` | The unique key of the history item. | | `Role` | `AgentInstanceHistoryRoleFilterProperty` | The role of the history item. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The key of the element instance under which the history item was produced. | | `JobKey` | `JobKeyFilterProperty` | The key of the job activation that produced the history item. | | `LoopIteration` | `IntegerFilterProperty` | Filter by loop iteration number. | | `CommitStatus` | `AgentInstanceHistoryCommitStatusFilterProperty` | The commit status of the history item. Defaults to COMMITTED only. Include PENDING or DISCARDED explicitly to debug in-flight or failed activations. | | `ProducedAt` | `DateTimeFilterProperty` | The timestamp when the history item was produced. | ## AgentInstanceHistoryItem A single history item to append to the agent instance's conversation history, submitted as part of the batch on an agent instance update request. ```csharp public sealed class AgentInstanceHistoryItem ``` | Property | Type | Description | | --------------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `HistoryItemId` | `HistoryItemId` | Caller-assigned identifier used to detect and dedupe retries of the same item. For example, when a retried job activation resubmits history items it already sent in an earlier attempt, those items are not rejected; they are flagged via isDuplicate in the response instead. Must be non-blank. | | `LoopIteration` | `LoopIterationId` | The loop iteration this item belongs to. | | `Role` | `AgentInstanceHistoryRoleEnum` | The role of this history item in the conversation. | | `Content` | `List` | The content blocks of this history item. | | `ToolCalls` | `List` | Tool calls associated with this history item. For ASSISTANT items: tool calls dispatched by this LLM response. For TOOL_RESULT items: single-entry array referencing the originating tool call. Omit for USER items. | | `Metrics` | `AgentInstanceHistoryItemMetricsRequest` | Per-call token and latency metrics. Present on ASSISTANT items only. | | `ProducedAt` | `DateTimeOffset` | The agent-side timestamp of when this message was produced. | | `Tools` | `List` | The complete list of tools available to the agent as of this entry. CONFIGURATION items only; omit for other roles. Omit to leave the tool list unchanged; send an empty array to clear it. | | `Model` | `String` | The LLM model identifier as of this entry. CONFIGURATION items only; omit for other roles. | | `Provider` | `String` | The LLM provider as of this entry. CONFIGURATION items only; omit for other roles. | | `Limits` | `AgentInstanceLimits` | The operational limits as of this entry. CONFIGURATION items only; omit for other roles. | | `SystemPrompt` | `List` | The system prompt, as content blocks, as of this entry. CONFIGURATION items only; omit for other roles. Omit to leave the system prompt unchanged; when present, must be non-empty. | ## AgentInstanceHistoryItemMetrics Per-call token and latency metrics for an ASSISTANT history item. ```csharp public sealed class AgentInstanceHistoryItemMetrics ``` | Property | Type | Description | | ------------------------- | ----------------- | ---------------------------------------------------------------------------- | | `InputTokens` | `Nullable` | Input tokens consumed by this LLM call. Null when not provided. | | `OutputTokens` | `Nullable` | Output tokens produced by this LLM call. Null when not provided. | | `ReasoningTokenCount` | `Nullable` | Reasoning tokens consumed by this LLM call. Null when not provided. | | `CacheCreationTokenCount` | `Nullable` | Cache-creation tokens consumed by this LLM call. Null when not provided. | | `CacheReadTokenCount` | `Nullable` | Cache-read tokens consumed by this LLM call. Null when not provided. | | `DurationMs` | `Nullable` | Wall-clock duration of the LLM call in milliseconds. Null when not provided. | ## AgentInstanceHistoryItemMetricsRequest Per-call token and latency metrics for an ASSISTANT history item, as submitted on a create/update request. All fields are optional: omit a field the caller has no value for rather than sending it as an explicit null. ```csharp public sealed class AgentInstanceHistoryItemMetricsRequest ``` | Property | Type | Description | | ------------------------- | ----------------- | ---------------------------------------------------------------------------- | | `InputTokens` | `Nullable` | Input tokens consumed by this LLM call. Null when not provided. | | `OutputTokens` | `Nullable` | Output tokens produced by this LLM call. Null when not provided. | | `ReasoningTokenCount` | `Nullable` | Reasoning tokens consumed by this LLM call. Null when not provided. | | `CacheCreationTokenCount` | `Nullable` | Cache-creation tokens consumed by this LLM call. Null when not provided. | | `CacheReadTokenCount` | `Nullable` | Cache-read tokens consumed by this LLM call. Null when not provided. | | `DurationMs` | `Nullable` | Wall-clock duration of the LLM call in milliseconds. Null when not provided. | ## AgentInstanceHistoryItemResult A single conversation history item belonging to an agent instance. ```csharp public sealed class AgentInstanceHistoryItemResult ``` | Property | Type | Description | | -------------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `HistoryItemKey` | `AgentHistoryItemKey` | The unique key for this history item. Stable and sortable by creation order. | | `HistoryItemId` | `HistoryItemId` | The client-supplied identifier this item was created with. Empty for items that don't carry one. Not unique: a job can be re-activated under a superseded lease any number of times before it completes, so one historyItemId can have zero or more DISCARDED records and at most one COMMITTED record, since only historyItemKey is guaranteed unique. Filter by commitStatus rather than assuming one record per historyItemId. | | `AgentInstanceKey` | `AgentInstanceKey` | The key of the agent instance this item belongs to. | | `ElementInstanceKey` | `ElementInstanceKey` | The key of the AI Agent Task or ad-hoc sub-process element instance under which this item was produced. | | `JobKey` | `JobKey` | The key of the job activation during which this item was produced. | | `JobLeaseToken` | `JobLeaseToken` | The lease token of the activation that produced this item. | | `LoopIteration` | `LoopIterationId` | The loop iteration this item belongs to. | | `Role` | `AgentInstanceHistoryRoleEnum` | The role of this history item in the conversation. | | `Content` | `List` | The content blocks of this history item. | | `ToolCalls` | `List` | Tool calls for this item. Empty for USER items and ASSISTANT items with no tool dispatches. ASSISTANT items: dispatched tool calls. TOOL_RESULT items: single-entry array referencing the originating tool call. | | `Metrics` | `AgentInstanceHistoryItemMetrics` | Per-call token and latency metrics. Null when metrics were not provided at creation time. | | `CommitStatus` | `AgentInstanceHistoryCommitStatusEnum` | The commit status of this history item. | | `ProducedAt` | `DateTimeOffset` | The agent-side timestamp of when this message was produced. | | `Tools` | `List` | The complete list of tools available to the agent as of this entry. CONFIGURATION items only; empty for other roles. | | `Model` | `String` | The LLM model identifier as of this entry. CONFIGURATION items only; null for other roles. | | `Provider` | `String` | The LLM provider as of this entry. CONFIGURATION items only; null for other roles. | | `Limits` | `AgentInstanceLimits` | The operational limits as of this entry. CONFIGURATION items only; -1 on any field means "no limit configured" for other roles. | | `SystemPrompt` | `List` | The system prompt, as content blocks, as of this entry. CONFIGURATION items only; empty for other roles. | ## AgentInstanceHistoryRoleExactMatch Matches the value exactly. ```csharp public readonly record struct AgentInstanceHistoryRoleExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentInstanceHistoryRoleFilterProperty AgentInstanceHistoryRoleEnum property with full advanced search capabilities. ```csharp public sealed class AgentInstanceHistoryRoleFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | ## AgentInstanceHistorySearchQuery Agent instance history search request. ```csharp public sealed class AgentInstanceHistorySearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------------------- | -------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `AgentInstanceHistoryFilter` | The history item search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## AgentInstanceHistorySearchQueryResult Agent instance history search response. ```csharp public sealed class AgentInstanceHistorySearchQueryResult ``` | Property | Type | Description | | -------- | -------------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching history items. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## AgentInstanceHistorySearchQuerySortRequest ```csharp public sealed class AgentInstanceHistorySearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------------- | --------------------------------------------- | | `Field` | `AgentInstanceHistorySearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## AgentInstanceKeyExactMatch Matches the value exactly. ```csharp public readonly record struct AgentInstanceKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentInstanceKeyFilterProperty AgentInstanceKey property with full advanced search capabilities. ```csharp public sealed class AgentInstanceKeyFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AgentInstanceLimits The configured limits for an agent instance, set once at creation. ```csharp public sealed class AgentInstanceLimits ``` | Property | Type | Description | | --------------- | ------- | ----------------------------------------------------------- | | `MaxModelCalls` | `Int32` | Maximum LLM calls allowed. -1 if no limit is configured. | | `MaxToolCalls` | `Int32` | Maximum tool calls allowed. -1 if no limit is configured. | | `MaxTokens` | `Int64` | Maximum total tokens allowed. -1 if no limit is configured. | ## AgentInstanceMessageContent A single content block within a history item. Discriminated by `contentType`. ```csharp public abstract class AgentInstanceMessageContent ``` ## AgentInstanceMetrics Aggregated metrics for an agent instance across all model calls. ```csharp public sealed class AgentInstanceMetrics ``` | Property | Type | Description | | ------------------------- | ------- | ------------------------------------------------------------------------ | | `InputTokens` | `Int64` | Total input tokens consumed across all model calls. | | `OutputTokens` | `Int64` | Total output tokens produced across all model calls. | | `ReasoningTokenCount` | `Int64` | Total reasoning tokens consumed across all model calls. | | `CacheCreationTokenCount` | `Int64` | Total tokens used to create prompt cache entries across all model calls. | | `CacheReadTokenCount` | `Int64` | Total tokens read from prompt cache across all model calls. | | `ModelCalls` | `Int32` | Total number of LLM calls made. | | `ToolCalls` | `Int32` | Total number of tool calls made. | ## AgentInstanceObjectContent An arbitrary structured content block. Accepts any valid JSON value: objects, arrays, numbers, booleans, or strings. Use TEXT content for human-readable natural language; use OBJECT content for machine-readable structured data. ```csharp public sealed class AgentInstanceObjectContent : AgentInstanceMessageContent ``` | Property | Type | Description | | -------- | -------- | ------------------------------------------------------------------------------------------------ | | `Object` | `Object` | Arbitrary structured content — any valid JSON value (object, array, number, boolean, or string). | ## AgentInstanceResult ```csharp public sealed class AgentInstanceResult ``` | Property | Type | Description | | ----------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AgentInstanceKey` | `AgentInstanceKey` | The unique key for this agent instance. | | `AgentDefinitionKey` | `AgentDefinitionKey` | The key of the agent definition this agent instance is an instance of. | | `Status` | `AgentInstanceStatusEnum` | The current status of an agent instance. | | `Definition` | `AgentInstanceDefinitionResult` | The definition of the agent, including model, provider, and system prompt. Set at creation, but can change later via a CONFIGURATION history item. | | `Metrics` | `AgentInstanceMetrics` | Aggregated metrics across all loopIterations of this agent instance. Includes history items later discarded: metrics are counted when an item is accepted, not when it's committed. | | `Limits` | `AgentInstanceLimits` | The configured limits for this agent instance, set once at creation. | | `Tools` | `List` | The tools available to the agent. | | `ElementId` | `ElementId` | The BPMN element ID of the ad-hoc sub-process or AI agent task that owns this agent instance. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance that owns this agent instance. | | `RootProcessInstanceKey` | `ProcessInstanceKey` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition associated with this agent instance. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The BPMN process ID of the process definition associated with this agent instance. | | `ProcessDefinitionVersion` | `Int32` | The version of the process definition associated with this agent instance. | | `ProcessDefinitionVersionTag` | `String` | The version tag of the process definition associated with this agent instance. | | `TenantId` | `TenantId` | The tenant ID of this agent instance. | | `CreationDate` | `DateTimeOffset` | The date when this agent instance was created. | | `LastUpdatedDate` | `DateTimeOffset` | The date when this agent instance was last updated. | | `CompletionDate` | `Nullable` | The date when this agent instance completed. Null while the agent is still running. | | `ElementInstanceKeys` | `List` | The keys of all element instances associated with this agent instance. | ## AgentInstanceSearchQuery Agent instance search request. ```csharp public sealed class AgentInstanceSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------------- | ---------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `AgentInstanceFilter` | The agent instance search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## AgentInstanceSearchQueryResult Agent instance search response. ```csharp public sealed class AgentInstanceSearchQueryResult ``` | Property | Type | Description | | -------- | --------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching agent instances. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## AgentInstanceSearchQuerySortRequest ```csharp public sealed class AgentInstanceSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------ | --------------------------------------------- | | `Field` | `AgentInstanceSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## AgentInstanceStatusExactMatch Matches the value exactly. ```csharp public readonly record struct AgentInstanceStatusExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AgentInstanceStatusFilterProperty AgentInstanceStatusEnum property with full advanced search capabilities. ```csharp public sealed class AgentInstanceStatusFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AgentInstanceTextContent A plain-text content block. ```csharp public sealed class AgentInstanceTextContent : AgentInstanceMessageContent ``` | Property | Type | Description | | -------- | -------- | ----------------- | | `Text` | `String` | The text content. | ## AgentInstanceToolCall A tool call associated with a history item. Used in both ASSISTANT and TOOL_RESULT items. ```csharp public sealed class AgentInstanceToolCall ``` | Property | Type | Description | | ------------ | --------------------- | ------------------------------------------------------------------------------------------------------------ | | `ToolCallId` | `String` | The LLM-assigned tool call ID. Correlates ASSISTANT items to their matching TOOL_RESULT items. | | `ToolName` | `String` | The LLM-visible tool name. | | `ElementId` | `Nullable` | The BPMN element ID handling this tool. | | `Arguments` | `Object` | The tool call arguments as provided by the LLM. May be null or populated on any item, including TOOL_RESULT. | ## AgentInstanceUpdateRequest Request to update the mutable state of an agent instance. ```csharp public sealed class AgentInstanceUpdateRequest ``` | Property | Type | Description | | -------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ElementInstanceKey` | `ElementInstanceKey` | The key of the currently-active element instance for this agent instance. Used for ownership/equality validation against the stored agent instance and, when the supplied key differs from the previous association (re-entry of an ad-hoc sub-process or AI Agent task), appended to elementInstanceKeys with the reverse link updated on the supplied element instance. Only one element instance may hold this write claim at a time: any update from a different element instance is rejected while the current writer's job is still active. | | `Status` | `Nullable` | The new status of the agent instance. | | `JobKey` | `JobKey` | The key of the job activation during which this update is being made. An update must always be attributed to the active job that produced it. | | `JobLeaseToken` | `JobLeaseToken` | Opaque lease token received from the job activation response. Disambiguates this activation from any other activation of the same job: if the job is later retried, history items submitted under a superseded lease are discarded rather than committed. | | `History` | `List` | A batch of history items to append to the agent instance's conversation history, in request order. Each created item is echoed back in the response's createdHistory, positionally correlated. | ## AgentInstanceUpdateResult Response returned after successfully updating an agent instance. ```csharp public sealed class AgentInstanceUpdateResult ``` | Property | Type | Description | | ---------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | `CreatedHistory` | `List` | One entry per history item submitted in the request, in request order. Empty when no history items were submitted. | ## AgentTool A tool available to the agent. ```csharp public sealed class AgentTool ``` | Property | Type | Description | | ------------- | --------------------- | ---------------------------------------------------------------------- | | `Name` | `String` | The tool name as visible to the LLM. | | `Description` | `String` | A human-readable description of the tool. | | `ElementId` | `Nullable` | The BPMN element ID of the tool element within the ad-hoc sub-process. | ## AncestorScopeInstruction Defines the ancestor scope for the created element instances. The default behavior resembles a "direct" scope instruction with an `ancestorElementInstanceKey` of `"-1"`. ```csharp public abstract class AncestorScopeInstruction ``` ## AuditLogActorTypeExactMatch Matches the value exactly. ```csharp public readonly record struct AuditLogActorTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AuditLogActorTypeFilterProperty AuditLogActorTypeEnum property with full advanced search capabilities. ```csharp public sealed class AuditLogActorTypeFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AuditLogEntityKeyExactMatch Matches the value exactly. ```csharp public readonly record struct AuditLogEntityKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AuditLogEntityKeyFilterProperty EntityKey property with full advanced search capabilities. ```csharp public sealed class AuditLogEntityKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AuditLogFilter Audit log filter request ```csharp public sealed class AuditLogFilter ``` | Property | Type | Description | | ------------------------- | --------------------------------------- | -------------------------------------------------- | | `AuditLogKey` | `AuditLogKeyFilterProperty` | The audit log key search filter. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key search filter. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key search filter. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The element instance key search filter. | | `OperationType` | `OperationTypeFilterProperty` | The operation type search filter. | | `Result` | `AuditLogResultFilterProperty` | The result search filter. | | `Timestamp` | `DateTimeFilterProperty` | The timestamp search filter. | | `ActorId` | `StringFilterProperty` | The actor ID search filter. | | `ActorType` | `AuditLogActorTypeFilterProperty` | The actor type search filter. | | `AgentElementId` | `StringFilterProperty` | The agent element ID search filter. | | `EntityKey` | `AuditLogEntityKeyFilterProperty` | The entity key search filter. | | `EntityType` | `EntityTypeFilterProperty` | The entity type search filter. | | `TenantId` | `StringFilterProperty` | The tenant ID search filter. | | `Category` | `CategoryFilterProperty` | The category search filter. | | `DeploymentKey` | `DeploymentKeyFilterProperty` | The deployment key search filter. | | `FormKey` | `FormKeyFilterProperty` | The form key search filter. | | `ResourceKey` | `ResourceKeyFilterProperty` | The resource key search filter. | | `BatchOperationType` | `BatchOperationTypeFilterProperty` | The batch operation type search filter. | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition ID search filter. | | `JobKey` | `JobKeyFilterProperty` | The job key search filter. | | `UserTaskKey` | `BasicStringFilterProperty` | The user task key search filter. | | `DecisionRequirementsId` | `StringFilterProperty` | The decision requirements ID search filter. | | `DecisionRequirementsKey` | `DecisionRequirementsKeyFilterProperty` | The decision requirements key search filter. | | `DecisionDefinitionId` | `StringFilterProperty` | The decision definition ID search filter. | | `DecisionDefinitionKey` | `DecisionDefinitionKeyFilterProperty` | The decision definition key search filter. | | `DecisionEvaluationKey` | `DecisionEvaluationKeyFilterProperty` | The decision evaluation key search filter. | | `RelatedEntityKey` | `AuditLogEntityKeyFilterProperty` | The related entity key search filter. | | `RelatedEntityType` | `EntityTypeFilterProperty` | The related entity type search filter. | | `EntityDescription` | `StringFilterProperty` | The entity description filter. | | `InboundChannelType` | `StringFilterProperty` | The inbound channel type search filter (e.g. MCP). | | `InboundChannelToolName` | `StringFilterProperty` | The inbound channel tool name search filter. | ## AuditLogKeyExactMatch Matches the value exactly. ```csharp public readonly record struct AuditLogKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AuditLogKeyFilterProperty AuditLogKey property with full advanced search capabilities. ```csharp public sealed class AuditLogKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## AuditLogResult Audit log item. ```csharp public sealed class AuditLogResult ``` | Property | Type | Description | | ------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AuditLogKey` | `AuditLogKey` | The unique key of the audit log entry. | | `EntityKey` | `AuditLogEntityKey` | System-generated entity key for an audit log entry. | | `EntityType` | `AuditLogEntityTypeEnum` | The type of entity affected by the operation. | | `OperationType` | `AuditLogOperationTypeEnum` | The type of operation performed. | | `BatchOperationKey` | `Nullable` | Key of the batch operation. | | `BatchOperationType` | `Nullable` | The type of batch operation performed, if this is part of a batch. | | `Timestamp` | `DateTimeOffset` | The timestamp when the operation occurred. | | `ActorId` | `String` | The ID of the actor who performed the operation. | | `ActorType` | `Nullable` | The type of the actor who performed the operation. | | `AgentElementId` | `String` | The element ID of the agent that performed the operation (e.g. ad-hoc subprocess element ID). | | `TenantId` | `Nullable` | The tenant ID of the audit log. | | `Result` | `AuditLogResultEnum` | The result status of the operation. | | `Category` | `AuditLogCategoryEnum` | The category of the audit log operation. | | `ProcessDefinitionId` | `Nullable` | The process definition ID. | | `ProcessDefinitionKey` | `Nullable` | The key of the process definition. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `ElementInstanceKey` | `Nullable` | The key of the element instance. | | `JobKey` | `Nullable` | The key of the job. | | `UserTaskKey` | `Nullable` | The key of the user task. | | `DecisionRequirementsId` | `String` | The decision requirements ID. | | `DecisionRequirementsKey` | `Nullable` | The assigned key of the decision requirements. | | `DecisionDefinitionId` | `Nullable` | The decision definition ID. | | `DecisionDefinitionKey` | `Nullable` | The key of the decision definition. | | `DecisionEvaluationKey` | `Nullable` | The key of the decision evaluation. | | `DeploymentKey` | `Nullable` | The key of the deployment. | | `FormKey` | `Nullable` | The key of the form. | | `ResourceKey` | `Nullable` | The system-assigned key for this resource. | | `RelatedEntityKey` | `Nullable` | The key of the related entity. The content depends on the operation type and entity type. For example, for authorization operations, this will contain the ID of the owner (e.g., user or group) the authorization belongs to. | | `RelatedEntityType` | `Nullable` | The type of the related entity. The content depends on the operation type and entity type. For example, for authorization operations, this will contain the type of the owner (e.g., USER or GROUP) the authorization belongs to. | | `EntityDescription` | `String` | Additional description of the entity affected by the operation. For example, for variable operations, this will contain the variable name. | | `InboundChannelType` | `String` | The type of the inbound channel that triggered the operation (e.g. MCP). | | `InboundChannelToolName` | `String` | The tool name of the inbound channel (e.g. the MCP tool that triggered the operation). | ## AuditLogResultExactMatch Matches the value exactly. ```csharp public readonly record struct AuditLogResultExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## AuditLogResultFilterProperty AuditLogResultEnum property with full advanced search capabilities. ```csharp public sealed class AuditLogResultFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## AuditLogSearchQueryRequest Audit log search request. ```csharp public sealed class AuditLogSearchQueryRequest ``` | Property | Type | Description | | -------- | -------------------------------------- | ----------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `AuditLogFilter` | The audit log search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## AuditLogSearchQueryResult Audit log search response. ```csharp public sealed class AuditLogSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching audit logs. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## AuditLogSearchQuerySortRequest ```csharp public sealed class AuditLogSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `AuditLogSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## AuthenticationConfigurationResponse Configuration for authentication and session management. ```csharp public sealed class AuthenticationConfigurationResponse ``` | Property | Type | Description | | ------------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------- | | `CanLogout` | `Boolean` | Whether users can log out (false for SaaS deployments). | | `IsLoginDelegated` | `Boolean` | Whether login is delegated to an external identity provider. | | `IsCamundaGroupsEnabled` | `Boolean` | Whether Camunda manages group membership locally, as opposed to delegating it to the identity provider via a groups claim. | ## AuthorizationCreateResult ```csharp public sealed class AuthorizationCreateResult ``` | Property | Type | Description | | ------------------ | ------------------ | ------------------------------------- | | `AuthorizationKey` | `AuthorizationKey` | The key of the created authorization. | ## AuthorizationFilter Authorization search filter. ```csharp public sealed class AuthorizationFilter ``` | Property | Type | Description | | ----------------------- | ---------------------------- | --------------------------------------------------------------- | | `OwnerId` | `String` | The ID of the owner of permissions. | | `OwnerType` | `Nullable` | The type of the owner of permissions. | | `ResourceIds` | `List` | The IDs of the resource to search permissions for. | | `ResourcePropertyNames` | `List` | The names of the resource properties to search permissions for. | | `ResourceType` | `Nullable` | The type of resource to search permissions for. | ## AuthorizationIdBasedRequest ```csharp public sealed class AuthorizationIdBasedRequest : AuthorizationRequest ``` | Property | Type | Description | | ----------------- | -------------------------- | --------------------------------------------- | | `OwnerId` | `String` | The ID of the owner of the permissions. | | `OwnerType` | `OwnerTypeEnum` | The type of the owner of permissions. | | `ResourceId` | `String` | The ID of the resource to add permissions to. | | `ResourceType` | `ResourceTypeEnum` | The type of resource to add permissions to. | | `PermissionTypes` | `List` | The permission types to add. | ## AuthorizationPropertyBasedRequest ```csharp public sealed class AuthorizationPropertyBasedRequest : AuthorizationRequest ``` | Property | Type | Description | | ---------------------- | -------------------------- | ----------------------------------------------------------------------- | | `OwnerId` | `String` | The ID of the owner of the permissions. | | `OwnerType` | `OwnerTypeEnum` | The type of the owner of permissions. | | `ResourcePropertyName` | `String` | The name of the resource property on which this authorization is based. | | `ResourceType` | `ResourceTypeEnum` | The type of resource to add permissions to. | | `PermissionTypes` | `List` | The permission types to add. | ## AuthorizationRequest Defines an authorization request. Either an id-based or a property-based authorization can be provided. ```csharp public abstract class AuthorizationRequest ``` ## AuthorizationResult ```csharp public sealed class AuthorizationResult ``` | Property | Type | Description | | ---------------------- | -------------------------- | --------------------------------------------------------------------------------------------------- | | `OwnerId` | `String` | The ID of the owner of permissions. | | `OwnerType` | `OwnerTypeEnum` | The type of the owner of permissions. | | `ResourceType` | `ResourceTypeEnum` | The type of resource that the permissions relate to. | | `ResourceId` | `String` | ID of the resource the permission relates to (mutually exclusive with `resourcePropertyName`). | | `ResourcePropertyName` | `String` | The name of the resource property the permission relates to (mutually exclusive with `resourceId`). | | `PermissionTypes` | `List` | Specifies the types of the permissions. | | `AuthorizationKey` | `AuthorizationKey` | The key of the authorization. | ## AuthorizationSearchQuery ```csharp public sealed class AuthorizationSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------------- | --------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `AuthorizationFilter` | The authorization search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## AuthorizationSearchQuerySortRequest ```csharp public sealed class AuthorizationSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------ | --------------------------------------------- | | `Field` | `AuthorizationSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## AuthorizationSearchResult ```csharp public sealed class AuthorizationSearchResult ``` | Property | Type | Description | | -------- | --------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching authorizations. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## BackpressureState ```csharp public sealed class BackpressureState ``` | Property | Type | Description | | ------------- | ----------------- | ----------- | | `Severity` | `String` | | | `PermitsMax` | `Nullable` | | | `Consecutive` | `Int32` | | ## BackupId The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. ```csharp public readonly record struct BackupId : ICamundaLongKey, IEquatable ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## BackupIdPrefix A prefix of a backup id, followed by a single '*' as a wildcard, matching any backup id starting with the given prefix. ```csharp public readonly record struct BackupIdPrefix : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## BackupInfo Detailed status of a runtime backup. The aggregated state is computed from the backup state of each partition as: - If the backup of all partitions is 'COMPLETED', the overall state is 'COMPLETED'. - If one partition is 'FAILED', the overall state is 'FAILED'. - Otherwise, if one partition is 'DOES_NOT_EXIST', the overall state is 'INCOMPLETE'. - Otherwise, if one partition is 'IN_PROGRESS', the overall state is 'IN_PROGRESS'. ```csharp public sealed class BackupInfo ``` | Property | Type | Description | | --------------- | --------------------------- | ---------------------------------------------------------------------------------------------------- | | `BackupId` | `BackupId` | The id of the backup. | | `State` | `StateCode` | The aggregated state of the backup. | | `FailureReason` | `String` | Reason for failure if the state is 'FAILED'. | | `Details` | `List` | Detailed status of the backup per partition. Always contains every partition of the physical tenant. | ## BaseProcessInstanceFilterFields Base process instance search filter. ```csharp public sealed class BaseProcessInstanceFilterFields ``` | Property | Type | Description | | ---------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `StartDate` | `DateTimeFilterProperty` | The start date. | | `EndDate` | `DateTimeFilterProperty` | The end date. | | `State` | `ProcessInstanceStateFilterProperty` | The process instance state. | | `HasIncident` | `Nullable` | Whether this process instance has a related incident or not. | | `SuspendedDate` | `DateTimeFilterProperty` | The time this process instance most recently entered the SUSPENDED state. This is cleared (null) again once the process instance is resumed. | | `TenantId` | `StringFilterProperty` | The tenant id. | | `Variables` | `List` | The process instance variables. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of this process instance. | | `ParentProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The parent process instance key. | | `ParentElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The parent element instance key. | | `BatchOperationId` | `StringFilterProperty` | The batch operation id. **Deprecated**: Use `batchOperationKey` instead. This field will be removed in a future release. If both `batchOperationId` and `batchOperationKey` are provided, the request will be rejected with a 400 error. | | `BatchOperationKey` | `StringFilterProperty` | The batch operation key. | | `ErrorMessage` | `StringFilterProperty` | The error message related to the process. | | `HasRetriesLeft` | `Nullable` | Whether the process has failed jobs with retries left. | | `ElementInstanceState` | `ElementInstanceStateFilterProperty` | The state of the element instances associated with the process instance. | | `ElementId` | `StringFilterProperty` | The element id associated with the process instance. | | `HasElementInstanceIncident` | `Nullable` | Whether the element instance has an incident or not. | | `IncidentErrorHashCode` | `IntegerFilterProperty` | The incident error hash code, associated with this process. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `StringFilterProperty` | The business id associated with the process instance. | ## BasicStringFilter Basic advanced string filter. ```csharp public sealed class BasicStringFilter ``` | Property | Type | Description | | -------- | ------------------- | ----------------------------------------------------------- | | `Eq` | `String` | Checks for equality with the provided value. | | `Neq` | `String` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## BasicStringFilterProperty String property with basic advanced search capabilities. ```csharp public sealed class BasicStringFilterProperty ``` | Property | Type | Description | | ------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `String` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `String` | Checks for equality with the provided value. | | `Neq` | `String` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## BatchOperationCreatedResult The created batch operation. ```csharp public sealed class BatchOperationCreatedResult ``` | Property | Type | Description | | -------------------- | ------------------------ | -------------------------------- | | `BatchOperationKey` | `BatchOperationKey` | Key of the batch operation. | | `BatchOperationType` | `BatchOperationTypeEnum` | The type of the batch operation. | ## BatchOperationError ```csharp public sealed class BatchOperationError ``` | Property | Type | Description | | ------------- | ------------------------- | --------------------------------------------------------------- | | `PartitionId` | `Int32` | The partition ID where the error occurred. | | `Type` | `BatchOperationErrorType` | The type of the error that occurred during the batch operation. | | `Message` | `String` | The error message that occurred during the batch operation. | ## BatchOperationFilter Batch operation filter request. ```csharp public sealed class BatchOperationFilter ``` | Property | Type | Description | | ------------------- | ----------------------------------- | ------------------------------------------------------ | | `BatchOperationKey` | `BasicStringFilterProperty` | The key (or operate legacy ID) of the batch operation. | | `OperationType` | `BatchOperationTypeFilterProperty` | The type of the batch operation. | | `State` | `BatchOperationStateFilterProperty` | The state of the batch operation. | | `ActorType` | `Nullable` | The type of the actor who performed the operation. | | `ActorId` | `StringFilterProperty` | The ID of the actor who performed the operation. | ## BatchOperationItemFilter Batch operation item filter request. ```csharp public sealed class BatchOperationItemFilter ``` | Property | Type | Description | | -------------------- | ---------------------------------- | ------------------------------------------------------ | | `BatchOperationKey` | `BasicStringFilterProperty` | The key (or operate legacy ID) of the batch operation. | | `ItemKey` | `BasicStringFilterProperty` | The key of the item, e.g. a process instance key. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key of the processed item. | | `State` | `String` | The state of the batch operation. | | `OperationType` | `BatchOperationTypeFilterProperty` | The type of the batch operation. | ## BatchOperationItemResponse ```csharp public sealed class BatchOperationItemResponse ``` | Property | Type | Description | | ------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `OperationType` | `BatchOperationTypeEnum` | The type of the batch operation. | | `BatchOperationKey` | `BatchOperationKey` | The key (or operate legacy ID) of the batch operation. | | `ItemKey` | `String` | Key of the item, e.g. a process instance key. | | `ProcessInstanceKey` | `Nullable` | The process instance key of the processed item. Null for batch-op types whose targets are not process instances (e.g. DELETE_DECISION_INSTANCE, DELETE_DECISION_DEFINITION, DELETE_PROCESS_DEFINITION). | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `State` | `BatchOperationItemResponseState` | State of the item. | | `ProcessedDate` | `Nullable` | The date this item was processed. This is `null` if the item has not yet been processed. | | `ErrorMessage` | `String` | The error message from the engine in case of a failed operation. | ## BatchOperationItemSearchQuery Batch operation item search request. ```csharp public sealed class BatchOperationItemSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------------------ | ---------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `BatchOperationItemFilter` | The batch operation item search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## BatchOperationItemSearchQueryResult ```csharp public sealed class BatchOperationItemSearchQueryResult ``` | Property | Type | Description | | -------- | ---------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching batch operation items. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## BatchOperationItemSearchQuerySortRequest ```csharp public sealed class BatchOperationItemSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------------- | --------------------------------------------- | | `Field` | `BatchOperationItemSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## BatchOperationItemStateExactMatch Matches the value exactly. ```csharp public readonly record struct BatchOperationItemStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## BatchOperationItemStateFilterProperty BatchOperationItemStateEnum property with full advanced search capabilities. ```csharp public sealed class BatchOperationItemStateFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## BatchOperationResponse ```csharp public sealed class BatchOperationResponse ``` | Property | Type | Description | | -------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BatchOperationKey` | `BatchOperationKey` | Key or (Operate Legacy ID = UUID) of the batch operation. | | `State` | `BatchOperationStateEnum` | The batch operation state. | | `BatchOperationType` | `Nullable` | The type of the batch operation. This is `null` for batch operations whose type was never recorded in secondary storage, such as legacy Operate batch operations. | | `StartDate` | `Nullable` | The start date of the batch operation. This is `null` if the batch operation has not yet started. | | `EndDate` | `Nullable` | The end date of the batch operation. This is `null` if the batch operation is still running. | | `ActorType` | `Nullable` | The type of the actor who performed the operation. This is `null` if the batch operation was created before 8.9, or if the actor information is not available. | | `ActorId` | `String` | The ID of the actor who performed the operation. Available for batch operations created since 8.9. | | `OperationsTotalCount` | `Int32` | The total number of items contained in this batch operation. | | `OperationsFailedCount` | `Int32` | The number of items which failed during execution of the batch operation. (e.g. because they are rejected by the Zeebe engine). | | `OperationsCompletedCount` | `Int32` | The number of successfully completed tasks. | | `Errors` | `List` | The errors that occurred per partition during the batch operation. | ## BatchOperationSearchQuery Batch operation search request. ```csharp public sealed class BatchOperationSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------------- | ----------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `BatchOperationFilter` | The batch operation search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## BatchOperationSearchQueryResult The batch operation search query result. ```csharp public sealed class BatchOperationSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------------ | ------------------------------------------------ | | `Items` | `List` | The matching batch operations. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## BatchOperationSearchQuerySortRequest ```csharp public sealed class BatchOperationSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------- | --------------------------------------------- | | `Field` | `BatchOperationSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## BatchOperationStateExactMatch Matches the value exactly. ```csharp public readonly record struct BatchOperationStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## BatchOperationStateFilterProperty BatchOperationStateEnum property with full advanced search capabilities. ```csharp public sealed class BatchOperationStateFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## BatchOperationTypeExactMatch Matches the value exactly. ```csharp public readonly record struct BatchOperationTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## BatchOperationTypeFilterProperty BatchOperationTypeEnum property with full advanced search capabilities. ```csharp public sealed class BatchOperationTypeFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## BpmnErrorException Throw from a job handler to trigger a BPMN error boundary event on the job's task. The error code is matched against error catch events in the process model. ```csharp public sealed class BpmnErrorException : Exception, ISerializable ``` | Property | Type | Description | | -------------- | -------- | --------------------------------------------------------- | | `ErrorCode` | `String` | The error code matched against BPMN error catch events. | | `ErrorMessage` | `String` | Optional additional context message. | | `Variables` | `Object` | Optional variables to set at the error catch event scope. | ## BrokerInfo Provides information on a broker node. ```csharp public sealed class BrokerInfo ``` | Property | Type | Description | | ------------ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `NodeId` | `Int32` | The node ID for the broker. The uniqueness of this identifier depends if the cluster is zone-aware or not. - non zone-aware: (default) nodeId is unique across the cluster - zone-aware: (opt-in) nodeId is unique only within its zone. If you are migrating to a zone aware cluster, you must use `brokerId` instead. This property is deprecated, as it's been replaced by `brokerId`. | | `BrokerId` | `String` | The unique (within a cluster) broker identifier. When the cluster is not zoned, then it's a string that represents the nodeId (an integer). When the cluster is zoned, instead, it's of the form "$zoneName_$nodeId", providing uniqueness even across zones. | | `Host` | `String` | The hostname for reaching the broker. | | `Port` | `Int32` | The port for reaching the broker. | | `Partitions` | `List` | A list of partitions managed or replicated on this broker. | | `Version` | `String` | The broker version. | ## BusinessId An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. ```csharp public readonly record struct BusinessId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## CamundaAuthException Authentication-specific exception. ```csharp public sealed class CamundaAuthException : Exception, ISerializable ``` | Property | Type | Description | | -------- | ---------------------- | ----------- | | `Code` | `CamundaAuthErrorCode` | | ## CamundaConfigurationException Thrown when configuration hydration encounters validation errors. ```csharp public sealed class CamundaConfigurationException : Exception, ISerializable ``` | Property | Type | Description | | -------- | ---------------------------------- | ----------- | | `Errors` | `IReadOnlyList` | | ## CamundaKeyJsonConverterFactory JSON converter factory that handles any `ICamundaKey` struct. Serializes as a plain JSON string; deserializes by calling the static AssumeExists factory. ```csharp public sealed class CamundaKeyJsonConverterFactory : JsonConverterFactory ``` ## CamundaKeyValidation Validation helpers for domain key constraints. ```csharp public static class CamundaKeyValidation ``` ## CamundaLongKeyJsonConverterFactory JSON converter factory that handles any `ICamundaLongKey` struct. Serializes as a JSON number; deserializes by calling the static AssumeExists factory. ```csharp public sealed class CamundaLongKeyJsonConverterFactory : JsonConverterFactory ``` ## CamundaRandomSource The live `IRandomSource`: the platform's shared, unseeded generator. This is the one place in the SDK runtime allowed to read ambient randomness. Production jitter stays random so that a fleet of workers does not retry or start in lockstep. ```csharp public sealed class CamundaRandomSource : IRandomSource ``` | Property | Type | Description | | -------- | --------------------- | ----------------------------------- | | `Live` | `CamundaRandomSource` | The default live randomness source. | ## CamundaSdkException SDK error types mirroring the JS SDK's error structure. ```csharp public class CamundaSdkException : Exception, ISerializable ``` | Property | Type | Description | | ------------- | ----------------- | ----------- | | `OperationId` | `String` | | | `Status` | `Nullable` | | ## CamundaTimeProvider A `TimeProvider` decorator whose `CamundaTimeProvider.GetUtcNow` never moves backwards. The SDK resolves all runtime cadence — worker poll loops, eventual consistency polling, retry backoff, backpressure decay, and OAuth refresh — through wall-clock time rather than a monotonic source, so that pinning the clock in a test also pins the client's own timing. Wall clocks can jump backwards (NTP correction, VM suspend and resume, manual adjustment), and a deadline computed against a backwards-moving clock waits longer than it was asked to. A backward step is absorbed and then paid back gradually out of forward progress, so readings never decrease, keep advancing immediately after a jump, and converge back to the underlying clock rather than staying ahead of it forever. This decorator wraps the live clock only. A test clock such as `FakeTimeProvider` is used as supplied, so a test remains free to move time backwards deliberately. ```csharp public sealed class CamundaTimeProvider : TimeProvider ``` | Property | Type | Description | | -------------------- | --------------------- | ------------------------------------------------------------------------------------ | | `Live` | `CamundaTimeProvider` | The default live clock: the system clock, made non-decreasing. | | `LocalTimeZone` | `TimeZoneInfo` | Gets the local time zone according to this `TimeProvider`'s notion of time. | | `TimestampFrequency` | `Int64` | Gets the frequency of `TimeProvider.GetTimestamp` as the number of ticks per second. | ## CamundaUserResult ```csharp public sealed class CamundaUserResult ``` | Property | Type | Description | | ---------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Username` | `Username` | The username of the user. | | `DisplayName` | `String` | The display name of the user. | | `Email` | `String` | The email of the user. | | `AuthorizedComponents` | `List` | The web components the user is authorized to use. When authorizations are disabled for the cluster, this always returns `["*"]`, regardless of the user's actual permissions, since access is not restricted in that case. | | `Tenants` | `List` | The tenants the user is a member of. | | `Groups` | `List` | The groups assigned to the user. | | `Roles` | `List` | The roles assigned to the user. | | `SalesPlanType` | `String` | The plan of the user. | | `C8Links` | `Dictionary` | The links to the components in the C8 stack. | | `CanLogout` | `Boolean` | Flag for understanding if the user is able to perform logout. | ## CancelProcessInstanceRequest ```csharp public sealed class CancelProcessInstanceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## CancelSdkException Thrown when a cancellable operation is cancelled. ```csharp public sealed class CancelSdkException : CamundaSdkException, ISerializable ``` ## CategoryExactMatch Matches the value exactly. ```csharp public readonly record struct CategoryExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## CategoryFilterProperty AuditLogCategoryEnum property with full advanced search capabilities. ```csharp public sealed class CategoryFilterProperty ``` | Property | Type | Description | | ------------ | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## Changeset JSON object with changed task attribute values. The following attributes can be adjusted with this endpoint, additional attributes will be ignored: - `candidateGroups` - reset by providing an empty list - `candidateUsers` - reset by providing an empty list - `dueDate` - reset by providing an empty String - `followUpDate` - reset by providing an empty String - `priority` - minimum 0, maximum 100, default 50 Providing any of those attributes with a `null` value or omitting it preserves the persisted attribute's value. The assignee cannot be adjusted with this endpoint, use the Assign task endpoint. This ensures correct event emission for assignee changes. ```csharp public sealed class Changeset ``` | Property | Type | Description | | ----------------- | -------------------------- | --------------------------------------------------------------------------- | | `DueDate` | `Nullable` | The due date of the task. Reset by providing an empty String. | | `FollowUpDate` | `Nullable` | The follow-up date of the task. Reset by providing an empty String. | | `CandidateUsers` | `List` | The list of candidate users of the task. Reset by providing an empty list. | | `CandidateGroups` | `List` | The list of candidate groups of the task. Reset by providing an empty list. | | `Priority` | `Nullable` | The priority of the task. | ## CheckpointId The id of the checkpoint. Must be a non-negative numerical value. As checkpoints are logically ordered by their ids (ascending), each successive checkpoint must use a higher id than the previous one. ```csharp public readonly record struct CheckpointId : ICamundaLongKey, IEquatable ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## ClientId The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. ```csharp public readonly record struct ClientId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ClockPinRequest ```csharp public sealed class ClockPinRequest ``` | Property | Type | Description | | ----------- | ------- | ------------------------------------------------------------------------- | | `Timestamp` | `Int64` | The exact time in epoch milliseconds to which the clock should be pinned. | ## CloudConfigurationResponse Configuration for SaaS/cloud-specific settings. ```csharp public sealed class CloudConfigurationResponse ``` | Property | Type | Description | | -------- | -------- | --------------------------- | | `Stage` | `String` | The cloud deployment stage. | ## ClusterBalanceResponse The cluster's current per-partition balance state, the running rebalance, and the last completed rebalance. ```csharp public sealed class ClusterBalanceResponse ``` | Property | Type | Description | | ------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `State` | `ClusterBalanceResponseState` | The cluster's aggregate balance state as of the time of the request. | | `Partitions` | `List` | The balance state of each partition as of the time of the request. | | `RunningRebalance` | `ClusterRunningRebalance` | Normally the rebalance currently running, or absent if no rebalance is running. For a dry-run response, this is instead the unexecuted plan of that dry run. | | `LastCompletedRebalance` | `ClusterCompletedRebalance` | The last completed non-dry-run rebalance this coordinator finished. | ## ClusterBrokerInfo Provides information on a broker node, independent of any physical tenant. ```csharp public sealed class ClusterBrokerInfo ``` | Property | Type | Description | | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The unique (within a cluster) broker identifier. When the cluster is not zoned, then it's a string that represents the nodeId (an integer). When the cluster is zoned, instead, it's of the form "$zoneName_$nodeId", providing uniqueness even across zones. | | `Host` | `String` | The hostname for reaching the broker. | | `Port` | `Int32` | The port for reaching the broker. | | `Version` | `String` | The broker version. | ## ClusterCompletedRebalance The last completed rebalance. ```csharp public sealed class ClusterCompletedRebalance ``` | Property | Type | Description | | ------------- | ------------------------------------------ | ----------------------------------------------------------------------------- | | `RebalanceId` | `Int64` | The ID of this rebalance. | | `Partitions` | `List` | Every partition in the rebalance plan and its progress within this rebalance. | | `StartedAt` | `DateTimeOffset` | When this rebalance was created. | | `FinishedAt` | `DateTimeOffset` | When this rebalance finished. | | `Result` | `ClusterCompletedRebalanceResult` | How the rebalance ended. | ## ClusterHistoryBackupInfo A history backup id and what each physical tenant reports for it. No cluster-level state is aggregated from the per-tenant states. ```csharp public sealed class ClusterHistoryBackupInfo ``` | Property | Type | Description | | ----------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BackupId` | `BackupId` | The id of the backup. | | `PhysicalTenants` | `List` | What each physical tenant reports for this backup id, ordered by physical tenant id. When looking a backup id up directly, every targeted tenant is listed, including the ones reporting `NOT_FOUND`. Within a listing, only the tenants that hold the id are listed. | ## ClusterHistoryBackupTakeResult The snapshots scheduled on a single physical tenant. Only successfully scheduled tenants are reported: the request fails as a whole if any targeted tenant could not schedule the backup. ```csharp public sealed class ClusterHistoryBackupTakeResult ``` | Property | Type | Description | | -------------------- | -------------- | ------------------------------------------------------------- | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `ScheduledSnapshots` | `List` | The names of the snapshots scheduled on this physical tenant. | ## ClusterHistoryBackupTenantInfo What a single physical tenant reports for a history backup id. ```csharp public sealed class ClusterHistoryBackupTenantInfo ``` | Property | Type | Description | | ------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `State` | `ClusterHistoryBackupTenantState` | The state of the backup on this physical tenant. | | `FailureReason` | `String` | Reason for failure if the state is 'FAILED'. | | `Details` | `List` | Detailed status of the backup per snapshot on this physical tenant. Empty when the tenant does not hold the backup. | ## ClusterModeChangeOperation A single operation that is part of a cluster mode change. ```csharp public sealed class ClusterModeChangeOperation ``` | Property | Type | Description | | ----------- | -------- | ------------------------------------------------ | | `Operation` | `String` | The type of the operation. | | `Mode` | `String` | The target mode of the operation, if applicable. | ## ClusterModeChangePlannedChange The operations of a cluster mode change that apply to one physical tenant. ```csharp public sealed class ClusterModeChangePlannedChange ``` | Property | Type | Description | | ------------------ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | `PhysicalTenantId` | `String` | The physical tenant the operations apply to; null for operations that are not scoped to a single physical tenant, such as broker lifecycle operations. | | `Operations` | `List` | The ordered list of operations that will be applied to the physical tenant. | ## ClusterModeChangeResponse The planned changes resulting from a cluster mode transition request. ```csharp public sealed class ClusterModeChangeResponse ``` | Property | Type | Description | | ---------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ChangeId` | `String` | The ID of the cluster change that was triggered by the request. | | `PlannedChanges` | `List` | The operations that will be applied to complete the change, grouped by the physical tenant they belong to. Groups are transitioned in parallel; the operations within a group are applied in the given order. | ## ClusterRebalance The fields common to a running and a completed rebalance. ```csharp public sealed class ClusterRebalance ``` | Property | Type | Description | | ------------- | ------------------------------------------ | ----------------------------------------------------------------------------- | | `RebalanceId` | `Int64` | The ID of this rebalance. | | `Partitions` | `List` | Every partition in the rebalance plan and its progress within this rebalance. | | `StartedAt` | `DateTimeOffset` | When this rebalance was created. | ## ClusterRebalanceOperationPartition One partition's plan, progress, and outcome within a rebalance. ```csharp public sealed class ClusterRebalanceOperationPartition ``` | Property | Type | Description | | ------------------ | ---------------------------------------------------- | ----------------------------------------------------------------------------- | | `PartitionId` | `Int32` | The unique ID of this partition, within its physical tenant. | | `PhysicalTenantId` | `String` | The partition group this partition belongs to. | | `CurrentLeader` | `String` | The leader last observed by this rebalance, or absent if there was no leader. | | `DesiredLeader` | `String` | The leader selected when this rebalance was planned. | | `Progress` | `ClusterRebalanceOperationPartitionProgress` | Where this rebalance has reached for the partition. | | `Result` | `Nullable` | The terminal outcome, present only when progress is COMPLETED. | ## ClusterRebalancePartition One partition's leadership/balance status - its current leader, its desired leader, and whether a rebalance is currently moving it. ```csharp public sealed class ClusterRebalancePartition ``` | Property | Type | Description | | ------------------ | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `PartitionId` | `Int32` | The unique ID of this partition, within its physical tenant. | | `PhysicalTenantId` | `String` | The partition group this partition belongs to. Partition IDs are unique only within a group, so this is needed to identify the partition. | | `CurrentLeader` | `String` | The broker ID currently leading this partition, or absent if it has no leader. | | `DesiredLeader` | `String` | The broker ID the current configuration wants to lead this partition. | | `State` | `ClusterRebalancePartitionState` | Whether this partition is being actively transferred, unbalanced, or balanced. | ## ClusterRebalanceRequest The settings to run a given rebalance with. Every setting is optional; an absent request body is equivalent to a body with every field absent, and means "use the configured settings". ```csharp public sealed class ClusterRebalanceRequest ``` | Property | Type | Description | | ------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `ReplicationLagThreshold` | `Nullable` | The highest replication lag (in bytes) that a desired leader may have for its transfer to be accepted. | | `ReplicationTimeout` | `String` | How long a partition may stay frozen waiting for its desired leader to catch up (as a positive ISO-8601 duration). | | `MaxTransferAttempts` | `Nullable` | How many times a current leader may prompt the desired leader to take over leadership before giving up. | | `LeaderWaitTimeout` | `String` | How long the coordinator waits for a partition without a leader to acquire one before reporting `NO_LEADER` and moving on (as a positive ISO-8601 duration). | ## ClusterRestoreAwaitModeChangeOperation The operation that awaits the transition of a broker to a mode. ```csharp public sealed class ClusterRestoreAwaitModeChangeOperation : ClusterRestoreOperation ``` | Property | Type | Description | | ---------- | -------- | ----------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker that applies the operation, including its zone if it belongs to one. | | `Mode` | `String` | The mode the broker is awaited to have transitioned to. | ## ClusterRestoreBrokerOperation A restore operation that applies to a broker as a whole, such as the one that updates its incarnation number. ```csharp public sealed class ClusterRestoreBrokerOperation : ClusterRestoreOperation ``` | Property | Type | Description | | ---------- | -------- | ----------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker that applies the operation, including its zone if it belongs to one. | ## ClusterRestoreModeChangeOperation The operation that transitions a broker to a mode once its partitions are restored. ```csharp public sealed class ClusterRestoreModeChangeOperation : ClusterRestoreOperation ``` | Property | Type | Description | | ---------- | -------- | ----------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker that applies the operation, including its zone if it belongs to one. | | `Mode` | `String` | The mode the broker is transitioned to. | ## ClusterRestoreOperation A single operation that is part of a restore. Every operation names the broker that applies it; the rest of its properties depend on what the operation does, so it is reported as one of the variants below, distinguished by `operation`. A property a variant does not declare is absent from the response rather than reported as null. ```csharp public abstract class ClusterRestoreOperation ``` ## ClusterRestorePartitionOperation A restore operation that targets a single partition without restoring it, such as the one that prepares the partition for its restore. ```csharp public sealed class ClusterRestorePartitionOperation : ClusterRestoreOperation ``` | Property | Type | Description | | ------------- | -------- | ----------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker that applies the operation, including its zone if it belongs to one. | | `PartitionId` | `Int32` | The partition the operation applies to. | ## ClusterRestorePartitionRestoreOperation The operation that restores a single partition from the backups resolved for it. ```csharp public sealed class ClusterRestorePartitionRestoreOperation : ClusterRestoreOperation ``` | Property | Type | Description | | ------------- | ------------- | ----------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker that applies the operation, including its zone if it belongs to one. | | `PartitionId` | `Int32` | The partition the operation restores. | | `BackupIds` | `List` | The IDs of the backups the partition is restored from. | ## ClusterRestorePlannedChange The operations of a restore that apply to one physical tenant. ```csharp public sealed class ClusterRestorePlannedChange ``` | Property | Type | Description | | ------------------ | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | `PhysicalTenantId` | `String` | The physical tenant the operations apply to; null for operations that are not scoped to a single physical tenant, such as broker lifecycle operations. | | `Operations` | `List` | The ordered list of operations that will be applied to the physical tenant. | ## ClusterRestoreRequest Describes a restore request issued by a cluster admin. The backup selection at the top level applies to every targeted physical tenant, except for the ones listed in `overrides`. ```csharp public sealed class ClusterRestoreRequest ``` | Property | Type | Description | | ----------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Overrides` | `Dictionary` | The backup selection to apply to individual physical tenants, keyed by physical tenant id. Only allowed for a cluster-wide restore, that is when no `physicalTenantId` parameter is given. | | `From` | `Nullable` | The start of the time range to restore from, as an ISO 8601 timestamp. | | `To` | `Nullable` | The end of the time range to restore from, as an ISO 8601 timestamp. | | `BackupIds` | `List` | The IDs of the backups to restore from, one per partition. | ## ClusterRestoreResponse The planned changes resulting from a restore request. ```csharp public sealed class ClusterRestoreResponse ``` | Property | Type | Description | | ---------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ChangeId` | `String` | The ID of the cluster change that was triggered by the request. | | `PlannedChanges` | `List` | The operations that will be applied to complete the restore, grouped by the physical tenant they belong to. Groups are restored in parallel; the operations within a group are applied in the given order. | ## ClusterRunningRebalance The rebalance currently running. ```csharp public sealed class ClusterRunningRebalance ``` | Property | Type | Description | | ----------------- | ------------------------------------------ | ----------------------------------------------------------------------------- | | `RebalanceId` | `Int64` | The ID of this rebalance. | | `Partitions` | `List` | Every partition in the rebalance plan and its progress within this rebalance. | | `StartedAt` | `DateTimeOffset` | When this rebalance was created. | | `DryRun` | `Boolean` | Whether this rebalance is a dry run. | | `CancelRequested` | `Boolean` | Whether cancellation has been requested. | ## ClusterRuntimeBackupInfo A runtime backup id, what each physical tenant reports for it, and the state aggregated over every targeted tenant — folded from the per-tenant states by the same rules a per-tenant state is folded from its partitions. ```csharp public sealed class ClusterRuntimeBackupInfo ``` | Property | Type | Description | | ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `BackupId` | `BackupId` | The id of the backup. | | `State` | `StateCode` | The state aggregated over every targeted physical tenant, whether the backup id was looked up directly or listed. A tenant holding nothing for this id counts as `DOES_NOT_EXIST`, so the aggregate is `INCOMPLETE` unless every targeted tenant holds the backup. | | `FailureReason` | `String` | Reason for failure if the aggregated state is 'FAILED'. | | `PhysicalTenants` | `List` | What each physical tenant reports for this backup id, ordered by physical tenant id. Every targeted tenant is listed, including the ones reporting `DOES_NOT_EXIST`. | ## ClusterRuntimeBackupState The checkpoint and backup state of each physical tenant. Nothing is aggregated across tenants: checkpoint ids and log positions only mean anything within one tenant's partitions. ```csharp public sealed class ClusterRuntimeBackupState ``` | Property | Type | Description | | ----------------- | --------------------------------------- | ----------------------------------------------------------------------------------------- | | `PhysicalTenants` | `List` | The runtime backup state of each targeted physical tenant, ordered by physical tenant id. | ## ClusterRuntimeBackupTakeResult Whether one physical tenant's runtime backup was triggered, and under which id it can be monitored and deleted. ```csharp public sealed class ClusterRuntimeBackupTakeResult ``` | Property | Type | Description | | ------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `BackupId` | `Nullable` | The id to monitor or delete this physical tenant's backup by: the id it is running under when `TRIGGERED` — the requested one, or the one the tenant generated when ids are generated — and the requested id to check when `UNKNOWN`. Null when the tenant is known to be running no backup, and also when an `UNKNOWN` tenant generates its own ids, because the id it may be running under was never reported; list that tenant's backups to find it. | | `Outcome` | `ClusterRuntimeBackupTakeOutcome` | What this physical tenant did with the trigger. | | `Reason` | `String` | Why this physical tenant reported no triggered backup. Null when it was triggered. | ## ClusterRuntimeBackupTenantInfo What a single physical tenant reports for a runtime backup id. ```csharp public sealed class ClusterRuntimeBackupTenantInfo ``` | Property | Type | Description | | ------------------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `State` | `StateCode` | The state of the backup on this physical tenant, aggregated over its partitions. | | `FailureReason` | `String` | Reason for failure if the state is 'FAILED'. | | `Details` | `List` | Detailed status of the backup per partition of this physical tenant. Contains every partition of the tenant when the backup id was looked up directly, including for a tenant that holds no such backup. Empty for a tenant that holds nothing for a listed id: a listing asks each tenant for the backups it has, so there is nothing to report per partition for one it does not. | ## ClusterRuntimeBackupTenantState The checkpoint and backup state of one physical tenant. ```csharp public sealed class ClusterRuntimeBackupTenantState ``` | Property | Type | Description | | ------------------ | -------------------- | --------------------------------------------------------------------- | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `State` | `RuntimeBackupState` | The checkpoint and backup state of this physical tenant's partitions. | ## ClusterStatusResponse The aggregated status of the whole cluster. ```csharp public sealed class ClusterStatusResponse ``` | Property | Type | Description | | -------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | `Status` | `ClusterStatusResponseStatus` | `HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, `DEGRADED` in every other case. | ## ClusterTakeHistoryBackupResponse The snapshots scheduled on every targeted physical tenant. No cluster-level state is aggregated from the per-tenant outcomes. ```csharp public sealed class ClusterTakeHistoryBackupResponse ``` | Property | Type | Description | | ----------------- | -------------------------------------- | ----------------------------------------------------------------------------- | | `BackupId` | `BackupId` | The id requested for the backup on every targeted physical tenant. | | `PhysicalTenants` | `List` | The outcome for each targeted physical tenant, ordered by physical tenant id. | ## ClusterTakeRuntimeBackupResponse The outcome of triggering a runtime backup on every targeted physical tenant. Returned both when every tenant was triggered and when only some were, so a partial trigger is never silent: the status code says whether the request succeeded, the body says what is running. ```csharp public sealed class ClusterTakeRuntimeBackupResponse ``` | Property | Type | Description | | ----------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `PhysicalTenants` | `List` | The outcome for each targeted physical tenant, ordered by physical tenant id. Carries no cluster-level backup id: in generated-id mode each tenant generates its own. | ## ClusterTopologyResponse The topology of the whole cluster, aggregated over all physical tenants. ```csharp public sealed class ClusterTopologyResponse ``` | Property | Type | Description | | ----------------- | ------------------------------ | ----------------------------------------------------------------------- | | `Brokers` | `List` | The brokers that are part of this cluster, across all physical tenants. | | `ClusterId` | `String` | The cluster Id. | | `ClusterSize` | `Int32` | The number of brokers in the cluster. | | `GatewayVersion` | `String` | The version of the Orchestration Cluster Gateway. | | `PhysicalTenants` | `List` | The topology of each physical tenant of this cluster. | ## ClusterUpgradeStatusResponse The upgrade-readiness status of the whole cluster. ```csharp public sealed class ClusterUpgradeStatusResponse ``` | Property | Type | Description | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Status` | `ClusterUpgradeStatusResponseStatus` | `MIGRATED` once every known upgrade-readiness condition is met for every known physical tenant; `MIGRATION_IN_PROGRESS` when at least one is confirmed not yet migrated; `UNKNOWN` otherwise. | ## ClusterVariableKindExactMatch Matches the value exactly. ```csharp public readonly record struct ClusterVariableKindExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ClusterVariableKindFilterProperty ClusterVariableKindEnum property with full advanced search capabilities. ```csharp public sealed class ClusterVariableKindFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ClusterVariableName The name of a cluster variable. Unique within its scope (global or tenant-specific). ```csharp public readonly record struct ClusterVariableName : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ClusterVariableResult ```csharp public sealed class ClusterVariableResult ``` | Property | Type | Description | | ---------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Value` | `String` | Full value of this cluster variable. | | `Name` | `ClusterVariableName` | The name of the cluster variable. Unique within its scope (global or tenant-specific). | | `Scope` | `ClusterVariableScopeEnum` | The scope of a cluster variable. | | `TenantId` | `String` | Only provided if the cluster variable scope is TENANT. Null for global scope variables. | | `Metadata` | `Dictionary` | A generic key-value metadata bag attached to the cluster variable. Values are strings or numbers. | | `Kind` | `ClusterVariableKindEnum` | The kind of a cluster variable. JSON is the default. SECRET_REFERENCE allows the value to contain camunda.secrets.X references that are resolved at job activation time. | ## ClusterVariableResultBase Cluster variable response item. ```csharp public sealed class ClusterVariableResultBase ``` | Property | Type | Description | | ---------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Name` | `ClusterVariableName` | The name of the cluster variable. Unique within its scope (global or tenant-specific). | | `Scope` | `ClusterVariableScopeEnum` | The scope of a cluster variable. | | `TenantId` | `String` | Only provided if the cluster variable scope is TENANT. Null for global scope variables. | | `Metadata` | `Dictionary` | A generic key-value metadata bag attached to the cluster variable. Values are strings or numbers. | | `Kind` | `ClusterVariableKindEnum` | The kind of a cluster variable. JSON is the default. SECRET_REFERENCE allows the value to contain camunda.secrets.X references that are resolved at job activation time. | ## ClusterVariableScopeExactMatch Matches the value exactly. ```csharp public readonly record struct ClusterVariableScopeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ClusterVariableScopeFilterProperty ClusterVariableScopeEnum property with full advanced search capabilities. ```csharp public sealed class ClusterVariableScopeFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ClusterVariableSearchQueryFilterRequest Cluster variable filter request. ```csharp public sealed class ClusterVariableSearchQueryFilterRequest ``` | Property | Type | Description | | ------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Name` | `StringFilterProperty` | Name of the cluster variable. | | `Value` | `StringFilterProperty` | The value of the cluster variable. | | `Scope` | `ClusterVariableScopeFilterProperty` | The scope filter for cluster variables. | | `TenantId` | `StringFilterProperty` | Tenant ID of this variable. | | `IsTruncated` | `Nullable` | Filter cluster variables by truncation status of their stored values. When true, returns only variables whose stored values are truncated (i.e., the value exceeds the storage size limit and is truncated in storage). When false, returns only variables with non-truncated stored values. This filter is based on the underlying storage characteristic, not the response format. | | `Metadata` | `Dictionary` | Filter by metadata entries. A map of metadata key to an advanced filter on that key's value. Metadata values are strings or numbers. | | `Kind` | `ClusterVariableKindFilterProperty` | The kind filter for cluster variables. | ## ClusterVariableSearchQueryRequest Cluster variable search query request. ```csharp public sealed class ClusterVariableSearchQueryRequest ``` | Property | Type | Description | | -------- | --------------------------------------------- | ------------------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ClusterVariableSearchQueryFilterRequest` | The cluster variable search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ClusterVariableSearchQueryResult Cluster variable search query response. ```csharp public sealed class ClusterVariableSearchQueryResult ``` | Property | Type | Description | | -------- | ----------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching cluster variables. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ClusterVariableSearchQuerySortRequest ```csharp public sealed class ClusterVariableSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------------- | --------------------------------------------- | | `Field` | `ClusterVariableSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ClusterVariableSearchResult Cluster variable search response item. ```csharp public sealed class ClusterVariableSearchResult ``` | Property | Type | Description | | ------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Value` | `String` | Value of this cluster variable. Can be truncated. | | `IsTruncated` | `Boolean` | Whether the value is truncated or not. | | `Name` | `ClusterVariableName` | The name of the cluster variable. Unique within its scope (global or tenant-specific). | | `Scope` | `ClusterVariableScopeEnum` | The scope of a cluster variable. | | `TenantId` | `String` | Only provided if the cluster variable scope is TENANT. Null for global scope variables. | | `Metadata` | `Dictionary` | A generic key-value metadata bag attached to the cluster variable. Values are strings or numbers. | | `Kind` | `ClusterVariableKindEnum` | The kind of a cluster variable. JSON is the default. SECRET_REFERENCE allows the value to contain camunda.secrets.X references that are resolved at job activation time. | ## ComponentsConfigurationResponse Configuration for active Camunda components in the deployment. ```csharp public sealed class ComponentsConfigurationResponse ``` | Property | Type | Description | | -------- | ----------------------- | ----------------------------------------------------------------- | | `Active` | `List` | List of webapp components whose UI is enabled in this deployment. | ## ConditionWaitStateDetails ```csharp public sealed class ConditionWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | ------------ | -------------- | --------------------------------------------------------------------------------- | | `Expression` | `String` | The condition expression that must evaluate to true to proceed. | | `Events` | `List` | The variable events that trigger condition re-evaluation. Empty means all events. | ## ConditionalEvaluationInstruction ```csharp public sealed class ConditionalEvaluationInstruction : ITenantIdSettable ``` | Property | Type | Description | | ---------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `TenantId` | `Nullable` | Used to evaluate root-level conditional start events for a tenant with the given ID. This will only evaluate root-level conditional start events of process definitions which belong to the tenant. | | `ProcessDefinitionKey` | `Nullable` | Used to evaluate root-level conditional start events of the process definition with the given key. | | `Variables` | `Object` | JSON object representing the variables to use for evaluation of the conditions and to pass to the process instances that have been triggered. | ## ConsistencyOptions Options for eventual consistency polling behavior. ```csharp public sealed class ConsistencyOptions ``` | Property | Type | Description | | ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | `WaitUpToMs` | `Int32` | Maximum time to wait for the data to become consistent, in milliseconds. Set to 0 to skip eventual consistency handling. | | `PollIntervalMs` | `Int32` | Poll interval in milliseconds (default: 500). | | `IsConsistent` | `Func<, Boolean>` | Optional predicate: when true, the response is considered consistent. If not set, any non-null response with items (where applicable) is accepted. | ## CorrelatedMessageSubscriptionFilter Correlated message subscriptions search filter. ```csharp public sealed class CorrelatedMessageSubscriptionFilter ``` | Property | Type | Description | | ---------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `StringFilterProperty` | Filter by the business id stored on the correlated message subscription — for message start event correlations the correlating message's business id, and for catch, boundary, or intermediate event correlations the subscribing process instance's business id. Supports advanced string filtering, including `$like` with `*`/`?` wildcards. | | `CorrelationKey` | `StringFilterProperty` | The correlation key of the message. | | `CorrelationTime` | `DateTimeFilterProperty` | The time when the message was correlated. | | `ElementId` | `StringFilterProperty` | The element ID that received the message. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The element instance key that received the message. | | `MessageKey` | `BasicStringFilterProperty` | The message key. | | `MessageName` | `StringFilterProperty` | The name of the message. | | `PartitionId` | `IntegerFilterProperty` | The partition ID that correlated the message. | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition ID associated with this correlated message subscription. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key associated with this correlated message subscription. For intermediate message events, this only works for data created with 8.9 and later. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key associated with this correlated message subscription. | | `SubscriptionKey` | `MessageSubscriptionKeyFilterProperty` | The subscription key that received the message. | | `TenantId` | `StringFilterProperty` | The tenant ID associated with this correlated message subscription. | ## CorrelatedMessageSubscriptionResult ```csharp public sealed class CorrelatedMessageSubscriptionResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `Nullable` | The business id associated with this correlated message subscription. For a message start event correlation, it is the business id carried by the correlating message that was stamped on the started process instance to enforce its uniqueness. For a catch, boundary, or intermediate event correlation, it is the business id of the subscribing process instance, captured when the subscription was opened. It is `null` when the relevant process instance has no business id. | | `CorrelationKey` | `String` | The correlation key of the message. | | `CorrelationTime` | `DateTimeOffset` | The time when the message was correlated. | | `ElementId` | `ElementId` | The element ID that received the message. | | `ElementInstanceKey` | `Nullable` | The element instance key that received the message. It is `null` for start event subscriptions. | | `MessageKey` | `MessageKey` | The message key. | | `MessageName` | `String` | The name of the message. | | `PartitionId` | `Int32` | The partition ID that correlated the message. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated with this correlated message subscription. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key associated with this correlated message subscription. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance key associated with this correlated message subscription. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `SubscriptionKey` | `MessageSubscriptionKey` | The subscription key that received the message. | | `TenantId` | `TenantId` | The tenant ID associated with this correlated message subscription. | ## CorrelatedMessageSubscriptionSearchQuery ```csharp public sealed class CorrelatedMessageSubscriptionSearchQuery ``` | Property | Type | Description | | -------- | ----------------------------------------------------------- | ---------------------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `CorrelatedMessageSubscriptionFilter` | The correlated message subscriptions search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## CorrelatedMessageSubscriptionSearchQueryResult ```csharp public sealed class CorrelatedMessageSubscriptionSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching correlated message subscriptions. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## CorrelatedMessageSubscriptionSearchQuerySortRequest ```csharp public sealed class CorrelatedMessageSubscriptionSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------------------------- | --------------------------------------------- | | `Field` | `CorrelatedMessageSubscriptionSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## CreateClusterVariableRequest ```csharp public sealed class CreateClusterVariableRequest ``` | Property | Type | Description | | ---------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `ClusterVariableName` | The name of the cluster variable. Must be unique within its scope (global or tenant-specific). | | `Value` | `Object` | The value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses. | | `Metadata` | `Dictionary` | A generic key-value metadata bag attached to the cluster variable. Values must be strings or numbers. Limited to 100 entries and a configurable maximum serialized size (default: 100 entries at max key length of a cluster variable name (256 chars) plus the maximum value length, 8192 characters). | | `Kind` | `Nullable` | The kind of the cluster variable. Defaults to JSON if not specified. | ## CreateGlobalTaskListenerRequest ```csharp public sealed class CreateGlobalTaskListenerRequest ``` | Property | Type | Description | | ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `Id` | `GlobalListenerId` | The user-defined id for the global listener | | `EventTypes` | `List` | List of user task event types that trigger the listener. | | `Type` | `String` | The name of the job type, used as a reference to specify which job workers request the respective listener job. | | `Retries` | `Nullable` | Number of retries for the listener job. | | `AfterNonGlobal` | `Nullable` | Whether the listener should run after model-level listeners. | | `Priority` | `Nullable` | The priority of the listener. Higher priority listeners are executed before lower priority ones. | ## CreateProcessInstanceResult ```csharp public sealed class CreateProcessInstanceResult ``` | Property | Type | Description | | -------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | `ProcessDefinitionId` | `ProcessDefinitionId` | The BPMN process id of the process definition which was used to create the process. instance | | `ProcessDefinitionVersion` | `Int32` | The version of the process definition which was used to create the process instance. | | `TenantId` | `TenantId` | The tenant id of the created process instance. | | `Variables` | `Object` | All the variables visible in the root scope. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition which was used to create the process instance. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The unique identifier of the created process instance; to be used wherever a request needs a process instance key (e.g. CancelProcessInstanceRequest). | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `Nullable` | Business id as provided on creation. | ## CursorBackwardPagination ```csharp public sealed class CursorBackwardPagination : SearchQueryPageRequest ``` | Property | Type | Description | | -------- | ----------------------- | --------------------------------------------------------------------------------------------- | | `Before` | `Nullable` | Use the `startCursor` value from the previous response to fetch the previous page of results. | | `Limit` | `Nullable` | The maximum number of items to return in one request. | ## CursorForwardPagination ```csharp public sealed class CursorForwardPagination : SearchQueryPageRequest ``` | Property | Type | Description | | -------- | --------------------- | --------------------------------------------------------------------------------------- | | `After` | `Nullable` | Use the `endCursor` value from the previous response to fetch the next page of results. | | `Limit` | `Nullable` | The maximum number of items to return in one request. | ## DateTimeFilterProperty Date-time property with full advanced search capabilities. ```csharp public sealed class DateTimeFilterProperty ``` | Property | Type | Description | | ------------ | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `Gt` | `Nullable` | Greater than comparison with the provided value. | | `Gte` | `Nullable` | Greater than or equal comparison with the provided value. | | `Lt` | `Nullable` | Lower than comparison with the provided value. | | `Lte` | `Nullable` | Lower than or equal comparison with the provided value. | | `In` | `List` | Checks if the property matches any of the provided values. | ## DecisionDefinitionFilter Decision definition search filter. ```csharp public sealed class DecisionDefinitionFilter ``` | Property | Type | Description | | ----------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `DecisionDefinitionId` | `Nullable` | The DMN ID of the decision definition. | | `Name` | `String` | The DMN name of the decision definition. | | `IsLatestVersion` | `Nullable` | Whether to only return the latest version of each decision definition. When using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`. The response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`. | | `Version` | `Nullable` | The assigned version of the decision definition. | | `DecisionRequirementsId` | `String` | the DMN ID of the decision requirements graph that the decision definition is part of. | | `TenantId` | `Nullable` | The tenant ID of the decision definition. | | `DecisionDefinitionKey` | `Nullable` | The assigned key, which acts as a unique identifier for this decision definition. | | `DecisionRequirementsKey` | `Nullable` | The assigned key of the decision requirements graph that the decision definition is part of. | | `DecisionRequirementsName` | `String` | The DMN name of the decision requirements that the decision definition is part of. | | `DecisionRequirementsVersion` | `Nullable` | The assigned version of the decision requirements that the decision definition is part of. | ## DecisionDefinitionId Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful. ```csharp public readonly record struct DecisionDefinitionId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionDefinitionKeyExactMatch Matches the value exactly. ```csharp public readonly record struct DecisionDefinitionKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionDefinitionKeyFilterProperty DecisionDefinitionKey property with full advanced search capabilities. ```csharp public sealed class DecisionDefinitionKeyFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## DecisionDefinitionResult ```csharp public sealed class DecisionDefinitionResult ``` | Property | Type | Description | | ----------------------------- | ------------------------- | -------------------------------------------------------------------------------------------- | | `DecisionDefinitionId` | `DecisionDefinitionId` | The DMN ID of the decision definition. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The assigned key, which acts as a unique identifier for this decision definition. | | `DecisionRequirementsId` | `String` | the DMN ID of the decision requirements graph that the decision definition is part of. | | `DecisionRequirementsKey` | `DecisionRequirementsKey` | The assigned key of the decision requirements graph that the decision definition is part of. | | `DecisionRequirementsName` | `String` | The DMN name of the decision requirements that the decision definition is part of. | | `DecisionRequirementsVersion` | `Int32` | The assigned version of the decision requirements that the decision definition is part of. | | `Name` | `String` | The DMN name of the decision definition. | | `TenantId` | `TenantId` | The tenant ID of the decision definition. | | `Version` | `Int32` | The assigned version of the decision definition. | ## DecisionDefinitionSearchQuery ```csharp public sealed class DecisionDefinitionSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------------------ | --------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `DecisionDefinitionFilter` | The decision definition search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## DecisionDefinitionSearchQueryResult ```csharp public sealed class DecisionDefinitionSearchQueryResult ``` | Property | Type | Description | | -------- | -------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching decision definitions. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## DecisionDefinitionSearchQuerySortRequest ```csharp public sealed class DecisionDefinitionSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------------- | --------------------------------------------- | | `Field` | `DecisionDefinitionSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## DecisionEvaluationById ```csharp public sealed class DecisionEvaluationById : DecisionEvaluationInstruction, ITenantIdSettable ``` | Property | Type | Description | | ---------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------ | | `DecisionDefinitionId` | `DecisionDefinitionId` | The ID of the decision to be evaluated. When using the decision ID, the latest deployed version of the decision is used. | | `Variables` | `Object` | The decision evaluation variables as JSON document. | | `TenantId` | `Nullable` | The tenant ID of the decision. | ## DecisionEvaluationByKey ```csharp public sealed class DecisionEvaluationByKey : DecisionEvaluationInstruction, ITenantIdSettable ``` | Property | Type | Description | | ----------------------- | ----------------------- | --------------------------------------------------- | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | System-generated key for a decision definition. | | `Variables` | `Object` | The decision evaluation variables as JSON document. | | `TenantId` | `Nullable` | The tenant ID of the decision. | ## DecisionEvaluationInstanceKeyExactMatch Matches the value exactly. ```csharp public readonly record struct DecisionEvaluationInstanceKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionEvaluationInstanceKeyFilterProperty DecisionEvaluationInstanceKey property with full advanced search capabilities. ```csharp public sealed class DecisionEvaluationInstanceKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## DecisionEvaluationInstruction ```csharp public abstract class DecisionEvaluationInstruction ``` ## DecisionEvaluationKeyExactMatch Matches the value exactly. ```csharp public readonly record struct DecisionEvaluationKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionEvaluationKeyFilterProperty DecisionEvaluationKey property with full advanced search capabilities. ```csharp public sealed class DecisionEvaluationKeyFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## DecisionInstanceDeletionBatchOperationRequest The decision instance filter that defines which decision instances should be deleted. ```csharp public sealed class DecisionInstanceDeletionBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `DecisionInstanceFilter` | The decision instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## DecisionInstanceFilter Decision instance search filter. ```csharp public sealed class DecisionInstanceFilter ``` | Property | Type | Description | | ------------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `DecisionEvaluationInstanceKey` | `DecisionEvaluationInstanceKeyFilterProperty` | The key of the decision evaluation instance. | | `State` | `DecisionInstanceStateFilterProperty` | The state of the decision instance. | | `EvaluationFailure` | `String` | The evaluation failure of the decision instance. | | `EvaluationDate` | `DateTimeFilterProperty` | The evaluation date of the decision instance. | | `DecisionDefinitionId` | `Nullable` | The ID of the DMN decision. | | `DecisionDefinitionName` | `String` | The name of the DMN decision. | | `DecisionDefinitionVersion` | `Nullable` | The version of the decision. | | `DecisionDefinitionType` | `Nullable` | The type of the decision. UNSPECIFIED is deprecated and should not be used anymore, for removal in 8.10 | | `TenantId` | `Nullable` | The tenant ID of the decision instance. | | `DecisionEvaluationKey` | `Nullable` | The key of the parent decision evaluation. Note that this is not the identifier of an individual decision instance; the `decisionEvaluationInstanceKey` is the identifier for a decision instance. | | `ProcessDefinitionKey` | `Nullable` | The key of the process definition. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance. | | `BusinessId` | `StringFilterProperty` | The business ID of the owning process instance the decision instance belongs to. This only works for decision instances created with 8.10 and onwards. Decision instances from prior versions and standalone evaluations don't contain this data and cannot be found. | | `DecisionDefinitionKey` | `DecisionDefinitionKeyFilterProperty` | The key of the decision. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The key of the element instance this decision instance is linked to. | | `RootDecisionDefinitionKey` | `DecisionDefinitionKeyFilterProperty` | The key of the root decision definition. | | `DecisionRequirementsKey` | `DecisionRequirementsKeyFilterProperty` | The key of the decision requirements definition. | ## DecisionInstanceGetQueryResult ```csharp public sealed class DecisionInstanceGetQueryResult ``` | Property | Type | Description | | ------------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `Nullable` | The business ID of the owning process instance, inherited when the decision instance was evaluated. This is `null` for decision instances created before version 8.10, for standalone decision evaluations, and for decision instances whose owning process instance has no business ID. | | `DecisionDefinitionId` | `DecisionDefinitionId` | The ID of the DMN decision. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The key of the decision. | | `DecisionDefinitionName` | `String` | The name of the DMN decision. | | `DecisionDefinitionType` | `DecisionDefinitionTypeEnum` | The type of the decision. UNSPECIFIED is deprecated and should not be used anymore, for removal in 8.10 | | `DecisionDefinitionVersion` | `Int32` | The version of the decision. | | `DecisionEvaluationInstanceKey` | `DecisionEvaluationInstanceKey` | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: `-`). | | `DecisionEvaluationKey` | `DecisionEvaluationKey` | The key of the decision evaluation where this instance was created. | | `ElementInstanceKey` | `Nullable` | The key of the element instance this decision instance is linked to. | | `EvaluationDate` | `DateTimeOffset` | The evaluation date of the decision instance. | | `EvaluationFailure` | `String` | The evaluation failure of the decision instance. | | `ProcessDefinitionKey` | `Nullable` | The key of the process definition. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance. | | `Result` | `String` | The result of the decision instance. | | `RootDecisionDefinitionKey` | `DecisionDefinitionKey` | The key of the root decision definition. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `State` | `DecisionInstanceStateEnum` | The state of the decision instance. UNSPECIFIED and UNKNOWN are deprecated and should not be used anymore, for removal in 8.10 | | `TenantId` | `TenantId` | The tenant ID of the decision instance. | | `EvaluatedInputs` | `List` | The evaluated inputs of the decision instance. | | `MatchedRules` | `List` | The matched rules of the decision instance. | ## DecisionInstanceResult ```csharp public sealed class DecisionInstanceResult ``` | Property | Type | Description | | ------------------------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `Nullable` | The business ID of the owning process instance, inherited when the decision instance was evaluated. This is `null` for decision instances created before version 8.10, for standalone decision evaluations, and for decision instances whose owning process instance has no business ID. | | `DecisionDefinitionId` | `DecisionDefinitionId` | The ID of the DMN decision. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The key of the decision. | | `DecisionDefinitionName` | `String` | The name of the DMN decision. | | `DecisionDefinitionType` | `DecisionDefinitionTypeEnum` | The type of the decision. UNSPECIFIED is deprecated and should not be used anymore, for removal in 8.10 | | `DecisionDefinitionVersion` | `Int32` | The version of the decision. | | `DecisionEvaluationInstanceKey` | `DecisionEvaluationInstanceKey` | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: `-`). | | `DecisionEvaluationKey` | `DecisionEvaluationKey` | The key of the decision evaluation where this instance was created. | | `ElementInstanceKey` | `Nullable` | The key of the element instance this decision instance is linked to. | | `EvaluationDate` | `DateTimeOffset` | The evaluation date of the decision instance. | | `EvaluationFailure` | `String` | The evaluation failure of the decision instance. | | `ProcessDefinitionKey` | `Nullable` | The key of the process definition. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance. | | `Result` | `String` | The result of the decision instance. | | `RootDecisionDefinitionKey` | `DecisionDefinitionKey` | The key of the root decision definition. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `State` | `DecisionInstanceStateEnum` | The state of the decision instance. UNSPECIFIED and UNKNOWN are deprecated and should not be used anymore, for removal in 8.10 | | `TenantId` | `TenantId` | The tenant ID of the decision instance. | ## DecisionInstanceSearchQuery ```csharp public sealed class DecisionInstanceSearchQuery ``` | Property | Type | Description | | -------- | ---------------------------------------------- | ------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `DecisionInstanceFilter` | The decision instance search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## DecisionInstanceSearchQueryResult ```csharp public sealed class DecisionInstanceSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------------ | ------------------------------------------------ | | `Items` | `List` | The matching decision instances. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## DecisionInstanceSearchQuerySortRequest ```csharp public sealed class DecisionInstanceSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------------------- | --------------------------------------------- | | `Field` | `DecisionInstanceSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## DecisionInstanceStateExactMatch Matches the value exactly. ```csharp public readonly record struct DecisionInstanceStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionInstanceStateFilterProperty DecisionInstanceStateEnum property with full advanced search capabilities. ```csharp public sealed class DecisionInstanceStateFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## DecisionRequirementsFilter Decision requirements search filter. ```csharp public sealed class DecisionRequirementsFilter ``` | Property | Type | Description | | -------------------------- | ----------------------------------- | ------------------------------------------------------------------------- | | `DecisionRequirementsName` | `String` | The DMN name of the decision requirements. | | `DecisionRequirementsId` | `String` | the DMN ID of the decision requirements. | | `DecisionRequirementsKey` | `Nullable` | System-generated key for a deployed decision requirements definition. | | `Version` | `Nullable` | The assigned version of the decision requirements. | | `TenantId` | `Nullable` | The tenant ID of the decision requirements. | | `ResourceName` | `String` | The name of the resource from which the decision requirements were parsed | ## DecisionRequirementsKeyExactMatch Matches the value exactly. ```csharp public readonly record struct DecisionRequirementsKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DecisionRequirementsKeyFilterProperty DecisionRequirementsKey property with full advanced search capabilities. ```csharp public sealed class DecisionRequirementsKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## DecisionRequirementsResult ```csharp public sealed class DecisionRequirementsResult ``` | Property | Type | Description | | -------------------------- | ------------------------- | ----------------------------------------------------------------------------------- | | `DecisionRequirementsId` | `String` | The DMN ID of the decision requirements. | | `DecisionRequirementsKey` | `DecisionRequirementsKey` | The assigned key, which acts as a unique identifier for this decision requirements. | | `DecisionRequirementsName` | `String` | The DMN name of the decision requirements. | | `ResourceName` | `String` | The name of the resource from which this decision requirements was parsed. | | `TenantId` | `TenantId` | The tenant ID of the decision requirements. | | `Version` | `Int32` | The assigned version of the decision requirements. | ## DecisionRequirementsSearchQuery ```csharp public sealed class DecisionRequirementsSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------------------- | --------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `DecisionRequirementsFilter` | The decision definition search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## DecisionRequirementsSearchQueryResult ```csharp public sealed class DecisionRequirementsSearchQueryResult ``` | Property | Type | Description | | -------- | ---------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching decision requirements. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## DecisionRequirementsSearchQuerySortRequest ```csharp public sealed class DecisionRequirementsSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------------- | --------------------------------------------- | | `Field` | `DecisionRequirementsSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## DeleteDecisionInstanceRequest ```csharp public sealed class DeleteDecisionInstanceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## DeleteProcessInstanceRequest ```csharp public sealed class DeleteProcessInstanceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## DeleteResourceRequest ```csharp public sealed class DeleteResourceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | | `DeleteHistory` | `Nullable` | Indicates if the historic data associated with the resource should also be deleted asynchronously. This flag is effective for process definitions and decision requirements definitions. For other resource types (forms, generic resources) it is ignored and no history is deleted. For a decision requirements definition the `batchOperation` field in the response carries the created batch operation. For a process definition the history is deleted as part of the definition's draining/deletion lifecycle and no batch operation is returned. | ## DeleteResourceResponse ```csharp public sealed class DeleteResourceResponse ``` | Property | Type | Description | | ---------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ResourceKey` | `ResourceKey` | The system-assigned key for this resource, requested to be deleted. | | `BatchOperation` | `BatchOperationCreatedResult` | The batch operation created for asynchronously deleting the historic data. Populated when `deleteHistory` is `true` and either the resource is a decision requirements definition, or the resource is a process definition that is already fully deleted from the runtime state (its history is purged directly by a batch operation). For a process definition that still exists in the runtime state, deletion first drains the definition and its history is removed asynchronously as part of that lifecycle, so no batch operation is returned and this field is `null`. It is also `null` for forms and generic resources. | ## DeploymentConfigurationResponse Configuration for deployment characteristics. ```csharp public sealed class DeploymentConfigurationResponse ``` | Property | Type | Description | | ----------------------- | --------- | ------------------------------------------------------ | | `IsMultiTenancyEnabled` | `Boolean` | Whether multi-tenancy is enabled. | | `IsTenantsApiEnabled` | `Boolean` | Whether the tenants management API and UI are enabled. | | `MaxRequestSize` | `Int64` | The maximum HTTP request size in bytes. | ## DeploymentDecisionRequirementsResult Deployed decision requirements. ```csharp public sealed class DeploymentDecisionRequirementsResult ``` | Property | Type | Description | | -------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------- | | `DecisionRequirementsId` | `String` | The id of the deployed decision requirements. | | `DecisionRequirementsName` | `String` | The name of the deployed decision requirements. | | `Version` | `Int32` | The version of the deployed decision requirements. | | `ResourceName` | `String` | The name of the resource. | | `TenantId` | `TenantId` | The tenant ID of the deployed decision requirements. | | `DecisionRequirementsKey` | `DecisionRequirementsKey` | The assigned decision requirements key, which acts as a unique identifier for this decision requirements. | ## DeploymentDecisionResult A deployed decision. ```csharp public sealed class DeploymentDecisionResult ``` | Property | Type | Description | | ------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | `DecisionDefinitionId` | `DecisionDefinitionId` | The dmn decision ID, as parsed during deployment, together with the version forms a unique identifier for a specific decision. | | `Version` | `Int32` | The assigned decision version. | | `Name` | `String` | The DMN name of the decision, as parsed during deployment. | | `TenantId` | `TenantId` | The tenant ID of the deployed decision. | | `DecisionRequirementsId` | `String` | The dmn ID of the decision requirements graph that this decision is part of, as parsed during deployment. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The assigned decision key, which acts as a unique identifier for this decision. | | `DecisionRequirementsKey` | `DecisionRequirementsKey` | The assigned key of the decision requirements graph that this decision is part of. | ## DeploymentFormResult A deployed form. ```csharp public sealed class DeploymentFormResult ``` | Property | Type | Description | | -------------- | ---------- | ------------------------------------------------------------------------------------------------------------------ | | `FormId` | `FormId` | The form ID, as parsed during deployment, together with the version forms a unique identifier for a specific form. | | `Version` | `Int32` | The version of the deployed form. | | `ResourceName` | `String` | The name of the resource. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `FormKey` | `FormKey` | The assigned key, which acts as a unique identifier for this form. | ## DeploymentKeyExactMatch Matches the value exactly. ```csharp public readonly record struct DeploymentKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DeploymentKeyFilterProperty DeploymentKey property with full advanced search capabilities. ```csharp public sealed class DeploymentKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## DeploymentMetadataResult ```csharp public sealed class DeploymentMetadataResult ``` | Property | Type | Description | | ---------------------- | -------------------------------------- | ----------------------------------------- | | `ProcessDefinition` | `DeploymentProcessResult` | Deployed process. | | `DecisionDefinition` | `DeploymentDecisionResult` | Deployed decision. | | `DecisionRequirements` | `DeploymentDecisionRequirementsResult` | Deployed decision requirement definition. | | `Form` | `DeploymentFormResult` | Deployed form. | | `Resource` | `DeploymentResourceResult` | Deployed resource. | ## DeploymentProcessResult A deployed process. ```csharp public sealed class DeploymentProcessResult ``` | Property | Type | Description | | -------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The bpmn process ID, as parsed during deployment, together with the version forms a unique identifier for a specific process definition. | | `ProcessDefinitionVersion` | `Int32` | The assigned process version. | | `ResourceName` | `String` | The resource name from which this process was parsed. | | `TenantId` | `TenantId` | The tenant ID of the deployed process. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The assigned key, which acts as a unique identifier for this process. | ## DeploymentResourceResult A deployed Resource. ```csharp public sealed class DeploymentResourceResult ``` | Property | Type | Description | | -------------- | ------------- | ---------------------------------------------------------------------- | | `ResourceId` | `String` | The resource id of the deployed resource. | | `ResourceName` | `String` | The name of the deployed resource. | | `Version` | `Int32` | The description of the deployed resource. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `ResourceKey` | `ResourceKey` | The assigned key, which acts as a unique identifier for this Resource. | ## DeploymentResult ```csharp public sealed class DeploymentResult ``` | Property | Type | Description | | --------------- | -------------------------------- | --------------------------------------------- | | `DeploymentKey` | `DeploymentKey` | The unique key identifying the deployment. | | `TenantId` | `TenantId` | The tenant ID associated with the deployment. | | `Deployments` | `List` | Items deployed by the request. | ## DirectAncestorKeyInstruction Provides a concrete key to use as ancestor scope for the created element instance. ```csharp public sealed class DirectAncestorKeyInstruction : AncestorScopeInstruction ``` | Property | Type | Description | | ---------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AncestorElementInstanceKey` | `ElementInstanceKey` | The key of the ancestor scope the element instance should be created in. Set to -1 to create the new element instance within an existing element instance of the flow scope. If multiple instances of the target element's flow scope exist, choose one specifically with this property by providing its key. | ## DocumentCreationBatchResponse ```csharp public sealed class DocumentCreationBatchResponse ``` | Property | Type | Description | | ------------------ | ------------------------------------- | ----------------------------------------- | | `FailedDocuments` | `List` | Documents that were successfully created. | | `CreatedDocuments` | `List` | Documents that failed creation. | ## DocumentCreationFailureDetail ```csharp public sealed class DocumentCreationFailureDetail ``` | Property | Type | Description | | ---------- | -------- | ------------------------------------------------------------------------ | | `FileName` | `String` | The name of the file that failed to upload. | | `Status` | `Int32` | The HTTP status code of the failure. | | `Title` | `String` | A short, human-readable summary of the problem type. | | `Detail` | `String` | A human-readable explanation specific to this occurrence of the problem. | ## DocumentId Document Id that uniquely identifies a document. ```csharp public readonly record struct DocumentId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## DocumentLink ```csharp public sealed class DocumentLink ``` | Property | Type | Description | | ----------- | ---------------- | ---------------------------------------- | | `Url` | `String` | The link to the document. | | `ExpiresAt` | `DateTimeOffset` | The date and time when the link expires. | ## DocumentLinkRequest ```csharp public sealed class DocumentLinkRequest ``` | Property | Type | Description | | ------------ | ----------------- | -------------------------------------------- | | `TimeToLive` | `Nullable` | The time-to-live of the document link in ms. | ## DocumentMetadata Information about the document. ```csharp public sealed class DocumentMetadata ``` | Property | Type | Description | | --------------------- | ------------------------------- | ----------------------------------------------------------- | | `ContentType` | `String` | The content type of the document. | | `FileName` | `String` | The name of the file. | | `ExpiresAt` | `Nullable` | The date and time when the document expires. | | `Size` | `Nullable` | The size of the document in bytes. | | `ProcessDefinitionId` | `Nullable` | The ID of the process definition that created the document. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance that created the document. | | `CustomProperties` | `Object` | Custom properties of the document. | ## DocumentMetadataResponse Information about the document that is returned in responses. ```csharp public sealed class DocumentMetadataResponse ``` | Property | Type | Description | | --------------------- | ------------------------------- | ----------------------------------------------------------- | | `ContentType` | `String` | The content type of the document. | | `FileName` | `String` | The name of the file. | | `ExpiresAt` | `Nullable` | The date and time when the document expires. | | `Size` | `Int64` | The size of the document in bytes. | | `ProcessDefinitionId` | `Nullable` | The ID of the process definition that created the document. | | `ProcessInstanceKey` | `Nullable` | The key of the process instance that created the document. | | `CustomProperties` | `Object` | Custom properties of the document. | ## DocumentReference ```csharp public sealed class DocumentReference ``` | Property | Type | Description | | --------------------- | -------------------------------------- | ------------------------------------------------------------- | | `CamundaDocumentType` | `DocumentReferenceCamundaDocumentType` | Document discriminator. Always set to "camunda". | | `StoreId` | `String` | The ID of the document store. | | `DocumentId` | `DocumentId` | The ID of the document. | | `ContentHash` | `String` | The hash of the document. | | `Metadata` | `DocumentMetadataResponse` | Information about the document that is returned in responses. | ## ElementId The model-defined id of an element. ```csharp public readonly record struct ElementId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ElementIdExactMatch Matches the value exactly. ```csharp public readonly record struct ElementIdExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ElementIdFilterProperty ElementId property with full advanced search capabilities. ```csharp public sealed class ElementIdFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ElementInstanceFilter Element instance search filter. ```csharp public sealed class ElementInstanceFilter ``` | Property | Type | Description | | ------------------------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `Nullable` | The process definition ID associated to this element instance. | | `State` | `ElementInstanceStateFilterProperty` | State of element instance as defined set of values. | | `Type` | `Nullable` | Type of element as defined set of values. | | `ElementId` | `ElementIdFilterProperty` | The element ID for this element instance. | | `ElementName` | `StringFilterProperty` | The element name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found. | | `HasIncident` | `Nullable` | Shows whether this element instance has an incident related to. | | `TenantId` | `Nullable` | The unique identifier of the tenant. | | `ElementInstanceKey` | `Nullable` | The assigned key, which acts as a unique identifier for this element instance. | | `ProcessInstanceKey` | `Nullable` | The process instance key associated to this element instance. | | `ProcessDefinitionKey` | `Nullable` | The process definition key associated to this element instance. | | `IncidentKey` | `Nullable` | The key of incident if field incident is true. | | `StartDate` | `DateTimeFilterProperty` | The start date of this element instance. | | `EndDate` | `DateTimeFilterProperty` | The end date of this element instance. | | `ElementInstanceScopeKey` | `String` | The scope key of this element instance. If provided with a process instance key it will return element instances that are immediate children of the process instance. If provided with an element instance key it will return element instances that are immediate children of the element instance. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "processInstanceKey": "2251799813685323", "$or": [ { "elementName": { "$like": "*Order*" } }, { "elementId": { "$like": "*Order*" } } ] } ` This matches element instances scoped to the given process instance whose: elementName contains Order, or elementId contains Order Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## ElementInstanceFilterFields Element instance filter fields. ```csharp public sealed class ElementInstanceFilterFields ``` | Property | Type | Description | | ------------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `Nullable` | The process definition ID associated to this element instance. | | `State` | `ElementInstanceStateFilterProperty` | State of element instance as defined set of values. | | `Type` | `Nullable` | Type of element as defined set of values. | | `ElementId` | `ElementIdFilterProperty` | The element ID for this element instance. | | `ElementName` | `StringFilterProperty` | The element name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found. | | `HasIncident` | `Nullable` | Shows whether this element instance has an incident related to. | | `TenantId` | `Nullable` | The unique identifier of the tenant. | | `ElementInstanceKey` | `Nullable` | The assigned key, which acts as a unique identifier for this element instance. | | `ProcessInstanceKey` | `Nullable` | The process instance key associated to this element instance. | | `ProcessDefinitionKey` | `Nullable` | The process definition key associated to this element instance. | | `IncidentKey` | `Nullable` | The key of incident if field incident is true. | | `StartDate` | `DateTimeFilterProperty` | The start date of this element instance. | | `EndDate` | `DateTimeFilterProperty` | The end date of this element instance. | | `ElementInstanceScopeKey` | `String` | The scope key of this element instance. If provided with a process instance key it will return element instances that are immediate children of the process instance. If provided with an element instance key it will return element instances that are immediate children of the element instance. | ## ElementInstanceKeyExactMatch Matches the value exactly. ```csharp public readonly record struct ElementInstanceKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ElementInstanceKeyFilterProperty ElementInstanceKey property with full advanced search capabilities. ```csharp public sealed class ElementInstanceKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## ElementInstanceResult ```csharp public sealed class ElementInstanceResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated to this element instance. | | `StartDate` | `DateTimeOffset` | Date when element instance started. | | `EndDate` | `Nullable` | Date when element instance finished. | | `ElementId` | `ElementId` | The element ID for this element instance. | | `ElementName` | `String` | The element name for this element instance. | | `Type` | `ElementInstanceResultType` | Type of element as defined set of values. | | `State` | `ElementInstanceStateEnum` | State of element instance as defined set of values. | | `HasIncident` | `Boolean` | Shows whether this element instance has an incident. If true also an incidentKey is provided. | | `TenantId` | `TenantId` | The tenant ID of the incident. | | `ElementInstanceKey` | `ElementInstanceKey` | The assigned key, which acts as a unique identifier for this element instance. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance key associated to this element instance. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key associated to this element instance. | | `IncidentKey` | `Nullable` | Incident key associated with this element instance. | ## ElementInstanceSearchQuery Element instance search request. ```csharp public sealed class ElementInstanceSearchQuery ``` | Property | Type | Description | | -------- | --------------------------------------------- | ------------------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ElementInstanceFilter` | The element instance search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ElementInstanceSearchQueryResult ```csharp public sealed class ElementInstanceSearchQueryResult ``` | Property | Type | Description | | -------- | ----------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching element instances. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ElementInstanceSearchQuerySortRequest ```csharp public sealed class ElementInstanceSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------------- | --------------------------------------------- | | `Field` | `ElementInstanceSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ElementInstanceStateExactMatch Matches the value exactly. ```csharp public readonly record struct ElementInstanceStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ElementInstanceStateFilterProperty ElementInstanceStateEnum property with full advanced search capabilities. ```csharp public sealed class ElementInstanceStateFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ElementInstanceWaitStateFilter Filters for the element instance inspection. ```csharp public sealed class ElementInstanceWaitStateFilter ``` | Property | Type | Description | | ------------------------ | ------------------------------------ | ------------------------------------ | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | Filter by element instance key. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | Filter by process instance key. | | `RootProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | Filter by root process instance key. | | `ElementId` | `ElementIdFilterProperty` | Filter by element ID. | | `ElementType` | `WaitStateElementTypeFilterProperty` | Filter by element type. | | `WaitStateType` | `WaitStateTypeFilterProperty` | Filter by wait state type. | ## ElementInstanceWaitStateQuery Element instance inspection request. ```csharp public sealed class ElementInstanceWaitStateQuery ``` | Property | Type | Description | | -------- | ------------------------------------------------ | ----------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ElementInstanceWaitStateFilter` | Filter criteria for the inspection. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ElementInstanceWaitStateQueryResult ```csharp public sealed class ElementInstanceWaitStateQueryResult ``` | Property | Type | Description | | -------- | -------------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching waiting states. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ElementInstanceWaitStateQuerySortRequest ```csharp public sealed class ElementInstanceWaitStateQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------------- | --------------------------------------------- | | `Field` | `ElementInstanceWaitStateQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ElementInstanceWaitStateResult An element instance waiting state. ```csharp public sealed class ElementInstanceWaitStateResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `RootProcessInstanceKey` | `Nullable` | Key of the root process instance. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance key associated to this element instance. | | `ElementInstanceKey` | `ElementInstanceKey` | The element instance key associated to this element instance. | | `ElementId` | `ElementId` | The element ID for this element instance. | | `ElementType` | `WaitStateElementTypeEnum` | The BPMN element type of this element instance. | | `TenantId` | `TenantId` | The tenant ID of the element instance. | | `BpmnProcessId` | `String` | The BPMN process ID of the process definition associated to this element instance. | | `Details` | `WaitStateDetails` | Wait-state-specific details, resolved by waitStateType. | ## EndCursor The end cursor in a search query result set. ```csharp public readonly record struct EndCursor : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## EngineTimeProvider A `TimeProvider` bound to the engine's own clock, so client cadence and engine time advance together. The engine has long been pinnable through `PUT /clock`, and since the injected `TimeProvider` landed the client's cadence is virtualisable too — but the two were separate. Pinning the engine left worker poll loops on their own timeline, so a worker waiting on something that never became ready burned real seconds inside a test that was otherwise deterministic. This provider closes that. Every delay taken through it — the worker poll loop, eventual-consistency polling, retry backoff, OAuth refresh — moves engine time forward instead of waiting, so cadence drives the engine rather than racing it and a test that would have taken a real minute finishes as fast as the requests complete. Intended for tests and embedded scenarios that own the engine. Pinning is global to the cluster, so never point one of these at a shared environment, and always `EngineTimeProvider.ResetAsync` when finished. The target must be a client that is not itself using this provider. HTTP retry backs off on its client's clock, so a self-referential setup would have a failed pin retry through a delay, which issues another pin. ```csharp public sealed class EngineTimeProvider : TimeProvider, IDisposable ``` ## EntityTypeExactMatch Matches the value exactly. ```csharp public readonly record struct EntityTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## EntityTypeFilterProperty AuditLogEntityTypeEnum property with full advanced search capabilities. ```csharp public sealed class EntityTypeFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## EvaluateConditionalResult ```csharp public sealed class EvaluateConditionalResult ``` | Property | Type | Description | | -------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `ConditionalEvaluationKey` | `ConditionalEvaluationKey` | The unique key of the conditional evaluation operation. | | `TenantId` | `TenantId` | The tenant ID of the conditional evaluation operation. | | `ProcessInstances` | `List` | List of process instances created. If no root-level conditional start events evaluated to true, the list will be empty. | ## EvaluateDecisionResult ```csharp public sealed class EvaluateDecisionResult ``` | Property | Type | Description | | ---------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------ | | `DecisionDefinitionId` | `DecisionDefinitionId` | The ID of the decision which was evaluated. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The unique key identifying the decision which was evaluated. | | `DecisionDefinitionName` | `String` | The name of the decision which was evaluated. | | `DecisionDefinitionVersion` | `Int32` | The version of the decision which was evaluated. | | `DecisionEvaluationKey` | `DecisionEvaluationKey` | The unique key identifying this decision evaluation. | | `DecisionInstanceKey` | `DecisionInstanceKey` | Deprecated, please refer to `decisionEvaluationKey`. | | `DecisionRequirementsId` | `String` | The ID of the decision requirements graph that the decision which was evaluated is part of. | | `DecisionRequirementsKey` | `DecisionRequirementsKey` | The unique key identifying the decision requirements graph that the decision which was evaluated is part of. | | `EvaluatedDecisions` | `List` | Decisions that were evaluated within the requested decision evaluation. | | `FailedDecisionDefinitionId` | `Nullable` | The ID of the decision which failed during evaluation. | | `FailureMessage` | `String` | Message describing why the decision which was evaluated failed. | | `Output` | `String` | JSON document that will instantiate the result of the decision which was evaluated. | | `TenantId` | `TenantId` | The tenant ID of the evaluated decision. | ## EvaluatedDecisionInputItem A decision input that was evaluated within this decision evaluation. ```csharp public sealed class EvaluatedDecisionInputItem ``` | Property | Type | Description | | ------------ | -------- | ------------------------------------- | | `InputId` | `String` | The identifier of the decision input. | | `InputName` | `String` | The name of the decision input. | | `InputValue` | `String` | The value of the decision input. | ## EvaluatedDecisionOutputItem The evaluated decision outputs. ```csharp public sealed class EvaluatedDecisionOutputItem ``` | Property | Type | Description | | ------------- | ----------------- | ----------------------------------------------------- | | `OutputId` | `String` | The ID of the evaluated decison output item. | | `OutputName` | `String` | The name of the of the evaluated decison output item. | | `OutputValue` | `String` | The value of the evaluated decison output item. | | `RuleId` | `String` | The ID of the matched rule. | | `RuleIndex` | `Nullable` | The index of the matched rule. | ## EvaluatedDecisionResult A decision that was evaluated. ```csharp public sealed class EvaluatedDecisionResult ``` | Property | Type | Description | | ------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------- | | `DecisionDefinitionId` | `DecisionDefinitionId` | The ID of the decision which was evaluated. | | `DecisionDefinitionName` | `String` | The name of the decision which was evaluated. | | `DecisionDefinitionVersion` | `Int32` | The version of the decision which was evaluated. | | `DecisionDefinitionType` | `String` | The type of the decision which was evaluated. | | `Output` | `String` | JSON document that will instantiate the result of the decision which was evaluated. | | `TenantId` | `TenantId` | The tenant ID of the evaluated decision. | | `MatchedRules` | `List` | The decision rules that matched within this decision evaluation. | | `EvaluatedInputs` | `List` | The decision inputs that were evaluated within this decision evaluation. | | `DecisionDefinitionKey` | `DecisionDefinitionKey` | The unique key identifying the decision which was evaluate. | | `DecisionEvaluationInstanceKey` | `DecisionEvaluationInstanceKey` | The unique key identifying this decision evaluation instance. | ## EventualConsistencyTimeoutException Thrown when an eventually consistent endpoint times out waiting for data. ```csharp public sealed class EventualConsistencyTimeoutException : CamundaSdkException, ISerializable ``` | Property | Type | Description | | ---------- | ------- | ----------- | | `WaitedMs` | `Int32` | | ## ExportingStatusResponse Response body for the exporting status of a physical tenant. ```csharp public sealed class ExportingStatusResponse ``` | Property | Type | Description | | -------- | --------------------- | ------------------------------------------------------- | | `Status` | `ExportingStatusCode` | The aggregated exporting status of the physical tenant. | ## ExpressionEvaluationRequest ```csharp public sealed class ExpressionEvaluationRequest : ITenantIdSettable ``` | Property | Type | Description | | ------------ | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Expression` | `String` | The expression to evaluate (e.g., "=x + y") | | `TenantId` | `String` | Required when the expression references tenant-scoped cluster variables | | `ScopeKey` | `Nullable` | Key of the process instance or element instance whose variables should be made visible to the expression. Use a process instance key to evaluate against the process instance scope, or an element instance key to evaluate against that element instance scope. If omitted, the expression is evaluated unscoped, using only cluster variables and request-body variables. | | `Variables` | `Object` | Optional variables for expression evaluation. These variables are only used for the current evaluation and do not persist beyond it. | ## ExpressionEvaluationResult ```csharp public sealed class ExpressionEvaluationResult ``` | Property | Type | Description | | ------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Expression` | `String` | The evaluated expression | | `Result` | `Object` | The result value. Its type can vary. | | `Warnings` | `List` | List of warnings generated during expression evaluation | | `ReferencedSecrets` | `List` | The secret references resolved from trusted sources while evaluating the expression: a `camunda.secrets.` reference used directly in the expression, or a reference carried by a `SECRET_REFERENCE`-kind cluster variable the expression read. References appearing only in request-body variables or plain cluster variables are excluded. Callers use this to know which `camunda.secrets.` occurrences in the result they may safely resolve. | ## ExpressionEvaluationWarningItem ```csharp public sealed class ExpressionEvaluationWarningItem ``` | Property | Type | Description | | --------- | -------- | ------------------- | | `Message` | `String` | The warning message | ## ExpressionSecretReferenceItem ```csharp public sealed class ExpressionSecretReferenceItem ``` | Property | Type | Description | | ------------ | -------- | ------------------------------------------------------------------- | | `StoreId` | `String` | The identifier of the secret store that holds the referenced secret | | `SecretName` | `String` | The secret name, e.g. "token" for "camunda.secrets.token" | ## ExtendedDeploymentResponse Extended deployment result with typed convenience properties for direct access to deployed artifacts by category (processes, decisions, forms, etc.). ```csharp public sealed class ExtendedDeploymentResponse ``` | Property | Type | Description | | ---------------------- | -------------------------------------------- | --------------------------------------------- | | `Raw` | `DeploymentResult` | The underlying raw deployment response. | | `DeploymentKey` | `DeploymentKey` | The unique key identifying the deployment. | | `TenantId` | `TenantId` | The tenant ID associated with the deployment. | | `Deployments` | `List` | All items deployed by the request. | | `Processes` | `List` | Deployed process definitions. | | `Decisions` | `List` | Deployed decision definitions. | | `DecisionRequirements` | `List` | Deployed decision requirements. | | `Forms` | `List` | Deployed forms. | | `Resources` | `List` | Deployed resources. | ## FormId The user-defined id for the form ```csharp public readonly record struct FormId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## FormKeyExactMatch Matches the value exactly. ```csharp public readonly record struct FormKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## FormKeyFilterProperty FormKey property with full advanced search capabilities. ```csharp public sealed class FormKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## FormResult ```csharp public sealed class FormResult ``` | Property | Type | Description | | ---------- | ---------- | ------------------------------------------------------------------ | | `TenantId` | `TenantId` | The tenant ID of the form. | | `FormId` | `FormId` | The user-provided identifier of the form. | | `Schema` | `String` | The form schema as a JSON document serialized as a string. | | `Version` | `Int64` | The version of the the deployed form. | | `FormKey` | `FormKey` | The assigned key, which acts as a unique identifier for this form. | ## GlobalJobStatisticsQueryResult Global job statistics query result. ```csharp public sealed class GlobalJobStatisticsQueryResult ``` | Property | Type | Description | | -------------- | -------------- | ----------------------------------------------------------------------------------------------------- | | `Created` | `StatusMetric` | Metric for a single job status. | | `Completed` | `StatusMetric` | Metric for a single job status. | | `Failed` | `StatusMetric` | Metric for a single job status. | | `IsIncomplete` | `Boolean` | True if some data is missing because internal limits were reached and some metrics were not recorded. | ## GlobalListenerBase ```csharp public sealed class GlobalListenerBase ``` | Property | Type | Description | | ---------------- | ------------------- | --------------------------------------------------------------------------------------------------------------- | | `Type` | `String` | The name of the job type, used as a reference to specify which job workers request the respective listener job. | | `Retries` | `Nullable` | Number of retries for the listener job. | | `AfterNonGlobal` | `Nullable` | Whether the listener should run after model-level listeners. | | `Priority` | `Nullable` | The priority of the listener. Higher priority listeners are executed before lower priority ones. | ## GlobalListenerId The user-defined id for the global listener ```csharp public readonly record struct GlobalListenerId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## GlobalListenerSourceExactMatch Matches the value exactly. ```csharp public readonly record struct GlobalListenerSourceExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## GlobalListenerSourceFilterProperty Global listener source property with full advanced search capabilities. ```csharp public sealed class GlobalListenerSourceFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## GlobalTaskListenerBase ```csharp public sealed class GlobalTaskListenerBase ``` | Property | Type | Description | | ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `EventTypes` | `List` | List of user task event types that trigger the listener. | | `Type` | `String` | The name of the job type, used as a reference to specify which job workers request the respective listener job. | | `Retries` | `Nullable` | Number of retries for the listener job. | | `AfterNonGlobal` | `Nullable` | Whether the listener should run after model-level listeners. | | `Priority` | `Nullable` | The priority of the listener. Higher priority listeners are executed before lower priority ones. | ## GlobalTaskListenerEventTypeExactMatch Matches the value exactly. ```csharp public readonly record struct GlobalTaskListenerEventTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## GlobalTaskListenerEventTypeFilterProperty Global listener event type property with full advanced search capabilities. ```csharp public sealed class GlobalTaskListenerEventTypeFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## GlobalTaskListenerResult ```csharp public sealed class GlobalTaskListenerResult ``` | Property | Type | Description | | ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `Id` | `GlobalListenerId` | The user-defined id for the global listener | | `Source` | `GlobalListenerSourceEnum` | How the global listener was defined. | | `EventTypes` | `List` | List of user task event types that trigger the listener. | | `Type` | `String` | The name of the job type, used as a reference to specify which job workers request the respective listener job. | | `Retries` | `Int32` | Number of retries for the listener job. | | `AfterNonGlobal` | `Boolean` | Whether the listener should run after model-level listeners. | | `Priority` | `Int32` | The priority of the listener. Higher priority listeners are executed before lower priority ones. | ## GlobalTaskListenerSearchQueryFilterRequest Global listener filter request. ```csharp public sealed class GlobalTaskListenerSearchQueryFilterRequest ``` | Property | Type | Description | | ---------------- | ------------------------------------------------- | ------------------------------------------------------ | | `Id` | `StringFilterProperty` | Id of the global listener. | | `Type` | `StringFilterProperty` | Job type of the global listener. | | `Retries` | `IntegerFilterProperty` | Number of retries of the global listener. | | `EventTypes` | `List` | Event types of the global listener. | | `AfterNonGlobal` | `Nullable` | Whether the listener runs after model-level listeners. | | `Priority` | `IntegerFilterProperty` | Priority of the global listener. | | `Source` | `GlobalListenerSourceFilterProperty` | How the global listener was defined. | ## GlobalTaskListenerSearchQueryRequest Global listener search query request. ```csharp public sealed class GlobalTaskListenerSearchQueryRequest ``` | Property | Type | Description | | -------- | ------------------------------------------------ | ----------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `GlobalTaskListenerSearchQueryFilterRequest` | The global listener search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## GlobalTaskListenerSearchQueryResult Global listener search query response. ```csharp public sealed class GlobalTaskListenerSearchQueryResult ``` | Property | Type | Description | | -------- | -------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching global listeners. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## GlobalTaskListenerSearchQuerySortRequest ```csharp public sealed class GlobalTaskListenerSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------------- | --------------------------------------------- | | `Field` | `GlobalTaskListenerSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## GroupClientResult ```csharp public sealed class GroupClientResult ``` | Property | Type | Description | | ---------- | ---------- | --------------------- | | `ClientId` | `ClientId` | The ID of the client. | ## GroupClientSearchQueryRequest ```csharp public sealed class GroupClientSearchQueryRequest ``` | Property | Type | Description | | -------- | ----------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## GroupClientSearchQuerySortRequest ```csharp public sealed class GroupClientSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------- | --------------------------------------------- | | `Field` | `GroupClientSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## GroupClientSearchResult ```csharp public sealed class GroupClientSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching client IDs. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## GroupCreateRequest ```csharp public sealed class GroupCreateRequest ``` | Property | Type | Description | | ------------- | --------- | ---------------------------------- | | `GroupId` | `GroupId` | The ID of the new group. | | `Name` | `String` | The display name of the new group. | | `Description` | `String` | The description of the new group. | ## GroupCreateResult ```csharp public sealed class GroupCreateResult ``` | Property | Type | Description | | ------------- | --------- | -------------------------------------- | | `GroupId` | `GroupId` | The ID of the created group. | | `Name` | `String` | The display name of the created group. | | `Description` | `String` | The description of the created group. | ## GroupFilter Group filter request ```csharp public sealed class GroupFilter ``` | Property | Type | Description | | --------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `GroupId` | `StringFilterProperty` | The group ID search filters. | | `Name` | `StringFilterProperty` | The group name search filters. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "$or": [ { "groupId": "group-1" }, { "groupId": "group-2" } ] } ` This matches groups whose groupId is group-1 or group-2. Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## GroupFilterFields Group filter request ```csharp public sealed class GroupFilterFields ``` | Property | Type | Description | | --------- | ---------------------- | ------------------------------ | | `GroupId` | `StringFilterProperty` | The group ID search filters. | | `Name` | `StringFilterProperty` | The group name search filters. | ## GroupId The unique identifier of a group. ```csharp public readonly record struct GroupId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## GroupMappingRuleSearchResult ```csharp public sealed class GroupMappingRuleSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching mapping rules. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## GroupResult Group search response item. ```csharp public sealed class GroupResult ``` | Property | Type | Description | | ------------- | --------- | ---------------------- | | `Name` | `String` | The group name. | | `GroupId` | `GroupId` | The group ID. | | `Description` | `String` | The group description. | ## GroupRoleSearchResult ```csharp public sealed class GroupRoleSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching roles. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## GroupSearchQueryRequest Group search request. ```csharp public sealed class GroupSearchQueryRequest ``` | Property | Type | Description | | -------- | ----------------------------------- | ------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `GroupFilter` | The group search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## GroupSearchQueryResult Group search response. ```csharp public sealed class GroupSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching groups. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## GroupSearchQuerySortRequest ```csharp public sealed class GroupSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------- | --------------------------------------------- | | `Field` | `GroupSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## GroupUpdateRequest ```csharp public sealed class GroupUpdateRequest ``` | Property | Type | Description | | ------------- | -------- | --------------------------------- | | `Name` | `String` | The new name of the group. | | `Description` | `String` | The new description of the group. | ## GroupUpdateResult ```csharp public sealed class GroupUpdateResult ``` | Property | Type | Description | | ------------- | --------- | ----------------------------- | | `GroupId` | `GroupId` | The unique group ID. | | `Name` | `String` | The name of the group. | | `Description` | `String` | The description of the group. | ## GroupUserResult ```csharp public sealed class GroupUserResult ``` | Property | Type | Description | | ---------- | ---------- | -------------------------- | | `Username` | `Username` | The unique name of a user. | ## GroupUserSearchQueryRequest ```csharp public sealed class GroupUserSearchQueryRequest ``` | Property | Type | Description | | -------- | --------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## GroupUserSearchQuerySortRequest ```csharp public sealed class GroupUserSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------- | --------------------------------------------- | | `Field` | `GroupUserSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## GroupUserSearchResult ```csharp public sealed class GroupUserSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching members. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## HistoryBackupInfo Detailed status of a history backup. The aggregated state is computed from the state of each of its snapshots as: - If every expected snapshot exists and all are complete, the overall state is 'COMPLETED'. - If one snapshot failed or is partial, the overall state is 'FAILED'. - Otherwise, if one snapshot is incompatible, the overall state is 'INCOMPATIBLE'. - Otherwise, if one snapshot is still running, the overall state is 'IN_PROGRESS'. - Otherwise, if snapshots are missing and the backup has not progressed within the configured timeout, the overall state is 'INCOMPLETE'. ```csharp public sealed class HistoryBackupInfo ``` | Property | Type | Description | | --------------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BackupId` | `BackupId` | The id of the backup. | | `State` | `HistoryBackupStateCode` | The aggregated state of the backup. | | `FailureReason` | `String` | Reason for failure if the state is 'FAILED'. | | `Details` | `List` | Detailed status of the backup per snapshot. Always lists every snapshot found for the backup; when the backup was read without snapshot detail, each entry carries only its name. | ## HistoryBackupSnapshotInfo Detailed info of a single snapshot making up a history backup. ```csharp public sealed class HistoryBackupSnapshotInfo ``` | Property | Type | Description | | -------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `SnapshotName` | `String` | The name of the snapshot. | | `State` | `String` | The state of the snapshot, reported verbatim by the secondary storage (for example 'SUCCESS', 'IN_PROGRESS' or 'PARTIAL'). Deliberately not a closed set: Elasticsearch and OpenSearch report different vocabularies. Not reported when the backup was listed without snapshot detail. | | `StartTime` | `Nullable` | The timestamp at which the snapshot was started. Not reported when the backup was listed without snapshot detail. | | `Failures` | `List` | The failures reported for this snapshot. Empty if there were none. | ## HistoryItemId The client-supplied identifier this item was created with. ```csharp public readonly record struct HistoryItemId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## HttpSdkException HTTP-specific SDK error with RFC 7807 Problem Details. ```csharp public sealed class HttpSdkException : CamundaSdkException, ISerializable ``` | Property | Type | Description | | ---------------- | --------- | ----------- | | `Type` | `String` | | | `Title` | `String` | | | `Detail` | `String` | | | `Instance` | `String` | | | `IsBackpressure` | `Boolean` | | ## ICamundaKey Marker interface for all Camunda domain key types. Enables generic constraints and JSON converter discovery. ```csharp public interface ICamundaKey ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ICamundaLongKey Marker interface for Camunda domain types backed by a long (int64) value. ```csharp public interface ICamundaLongKey ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## IEngineClockTarget The engine clock operations `EngineTimeProvider` drives. Declared as an interface so the provider does not depend on the generated client surface; `CamundaClient` implements it with its existing methods. ```csharp public interface IEngineClockTarget ``` ## IRandomSource Source of the randomness behind SDK runtime jitter: retry backoff, OAuth retry backoff, and worker startup staggering. The randomness counterpart of `CamundaOptions.TimeProvider`. Pinning the clock makes cadence virtual; supplying a `SeededRandomSource` as well makes it reproducible, so a timing-dependent failure can be replayed draw for draw. Implementations must be safe to call from multiple threads. ```csharp public interface IRandomSource ``` ## ITenantIdSettable Implemented by request body types that have an optional tenantId property. The SDK uses this to inject the configured default tenant ID when the caller does not supply one explicitly. ```csharp public interface ITenantIdSettable ``` ## ITenantIdsSettable Implemented by request body types that have an optional `tenantIds` array property (e.g. `JobActivationRequest`). The SDK uses this to inject `[DefaultTenantId]` when the caller does not supply a tenant list explicitly. Mirrors `ITenantIdSettable` for the plural array shape. ```csharp public interface ITenantIdsSettable ``` ## IncidentErrorTypeExactMatch Matches the value exactly. ```csharp public readonly record struct IncidentErrorTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## IncidentErrorTypeFilterProperty IncidentErrorTypeEnum with full advanced search capabilities. ```csharp public sealed class IncidentErrorTypeFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property does not match any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## IncidentFilter Incident search filter. ```csharp public sealed class IncidentFilter ``` | Property | Type | Description | | ---------------------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition ID associated to this incident. | | `ErrorType` | `IncidentErrorTypeFilterProperty` | Incident error type with a defined set of values. | | `ErrorMessage` | `StringFilterProperty` | The error message of this incident. For `$eq`, `$neq`, `$in`, and `$notIn`, matching is case-insensitive and matches if the incident's error message contains the given value as a phrase, not necessarily the entire error message. `$like` matches on individual words of the error message and does not support multi-word patterns. | | `ElementId` | `StringFilterProperty` | The element ID associated to this incident. | | `CreationTime` | `DateTimeFilterProperty` | Date of incident creation. | | `State` | `IncidentStateFilterProperty` | State of this incident with a defined set of values. | | `TenantId` | `StringFilterProperty` | The tenant ID of the incident. | | `IncidentKey` | `BasicStringFilterProperty` | The assigned key, which acts as a unique identifier for this incident. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key associated to this incident. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key associated to this incident. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The element instance key associated to this incident. | | `JobKey` | `JobKeyFilterProperty` | The job key, if exists, associated with this incident. | ## IncidentProcessInstanceStatisticsByDefinitionFilter Filter for the incident process instance statistics by definition query. ```csharp public sealed class IncidentProcessInstanceStatisticsByDefinitionFilter ``` | Property | Type | Description | | --------------- | ------- | ---------------------------------------------------------------------------------- | | `ErrorHashCode` | `Int32` | The error hash code of the incidents to filter the process instance statistics by. | ## IncidentProcessInstanceStatisticsByDefinitionQuery ```csharp public sealed class IncidentProcessInstanceStatisticsByDefinitionQuery ``` | Property | Type | Description | | -------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `Filter` | `IncidentProcessInstanceStatisticsByDefinitionFilter` | Filter criteria for the aggregated process instance statistics. | | `Page` | `OffsetPagination` | Pagination parameters for the aggregated process instance statistics. | | `Sort` | `List` | Sorting criteria for process instance statistics grouped by process definition. | ## IncidentProcessInstanceStatisticsByDefinitionQueryResult ```csharp public sealed class IncidentProcessInstanceStatisticsByDefinitionQueryResult ``` | Property | Type | Description | | -------- | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `Items` | `List` | Statistics of active process instances with incidents, grouped by process definition for the specified error hash code. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## IncidentProcessInstanceStatisticsByDefinitionQuerySortRequest ```csharp public sealed class IncidentProcessInstanceStatisticsByDefinitionQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `Field` | `IncidentProcessInstanceStatisticsByDefinitionQuerySortRequestField` | The aggregated field by which the process instance statistics are sorted. | | `Order` | `Nullable` | The order in which to sort the related field. | ## IncidentProcessInstanceStatisticsByDefinitionResult ```csharp public sealed class IncidentProcessInstanceStatisticsByDefinitionResult ``` | Property | Type | Description | | ------------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | Id of a process definition, from the model. Only ids of process definitions that are deployed are useful. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | System-generated key for a deployed process definition. | | `ProcessDefinitionName` | `String` | The name of the process definition. | | `ProcessDefinitionVersion` | `Int32` | The version of the process definition. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `ActiveInstancesWithErrorCount` | `Int64` | The number of active process instances that currently have an incident with the specified error hash code. | ## IncidentProcessInstanceStatisticsByErrorQuery ```csharp public sealed class IncidentProcessInstanceStatisticsByErrorQuery ``` | Property | Type | Description | | -------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------- | | `Page` | `OffsetPagination` | Pagination parameters for process instance statistics grouped by incident error. | | `Sort` | `List` | Sorting criteria for process instance statistics grouped by incident error. | ## IncidentProcessInstanceStatisticsByErrorQueryResult ```csharp public sealed class IncidentProcessInstanceStatisticsByErrorQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------------------ | ----------------------------------------------------------------- | | `Items` | `List` | Statistics of active process instances grouped by incident error. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## IncidentProcessInstanceStatisticsByErrorQuerySortRequest ```csharp public sealed class IncidentProcessInstanceStatisticsByErrorQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------------------------------------- | --------------------------------------------------- | | `Field` | `IncidentProcessInstanceStatisticsByErrorQuerySortRequestField` | The field to sort the incident error statistics by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## IncidentProcessInstanceStatisticsByErrorResult ```csharp public sealed class IncidentProcessInstanceStatisticsByErrorResult ``` | Property | Type | Description | | ------------------------------- | -------- | ---------------------------------------------------------------------------------------------- | | `ErrorHashCode` | `Int32` | The hash code identifying a specific incident error.. | | `ErrorMessage` | `String` | The error message associated with the incident error hash code. | | `ActiveInstancesWithErrorCount` | `Int64` | The number of active process instances that currently have an active incident with this error. | ## IncidentResolutionRequest ```csharp public sealed class IncidentResolutionRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## IncidentResult ```csharp public sealed class IncidentResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated to this incident. | | `ErrorType` | `IncidentErrorTypeEnum` | The type of the incident error. | | `ErrorMessage` | `String` | Error message which describes the error in more detail. | | `ElementId` | `ElementId` | The element ID associated to this incident. | | `CreationTime` | `DateTimeOffset` | The creation time of the incident. | | `State` | `IncidentStateEnum` | The incident state. | | `TenantId` | `TenantId` | The tenant ID of the incident. | | `IncidentKey` | `IncidentKey` | The assigned key, which acts as a unique identifier for this incident. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key associated to this incident. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance key associated to this incident. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `ElementInstanceKey` | `ElementInstanceKey` | The element instance key associated to this incident. | | `JobKey` | `Nullable` | The job key, if exists, associated with this incident. | ## IncidentSearchQuery ```csharp public sealed class IncidentSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------- | ---------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `IncidentFilter` | The incident search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## IncidentSearchQueryResult ```csharp public sealed class IncidentSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching incidents. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## IncidentSearchQuerySortRequest ```csharp public sealed class IncidentSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `IncidentSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## IncidentStateExactMatch Matches the value exactly. ```csharp public readonly record struct IncidentStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## IncidentStateFilterProperty IncidentStateEnum with full advanced search capabilities. ```csharp public sealed class IncidentStateFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property does not match any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## InferredAncestorKeyInstruction Instructs the engine to derive the ancestor scope key from the source element's hierarchy. The engine traverses the source element's ancestry to find an instance that matches one of the target element's flow scopes, ensuring the target is activated in the correct scope. ```csharp public sealed class InferredAncestorKeyInstruction : AncestorScopeInstruction ``` ## IntegerFilterProperty Integer property with advanced search capabilities. ```csharp public sealed class IntegerFilterProperty ``` | Property | Type | Description | | ------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `Gt` | `Nullable` | Greater than comparison with the provided value. | | `Gte` | `Nullable` | Greater than or equal comparison with the provided value. | | `Lt` | `Nullable` | Lower than comparison with the provided value. | | `Lte` | `Nullable` | Lower than or equal comparison with the provided value. | | `In` | `List` | Checks if the property matches any of the provided values. | ## JobActivationRequest ```csharp public sealed class JobActivationRequest : ITenantIdsSettable ``` | Property | Type | Description | | ------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Type` | `String` | The job type, as defined in the BPMN process (e.g. ) | | `Worker` | `String` | The name of the worker activating the jobs, mostly used for logging purposes. | | `Timeout` | `Int64` | A job returned after this call will not be activated by another call until the timeout (in ms) has been reached. | | `MaxJobsToActivate` | `Int32` | The maximum jobs to activate by this request. | | `FetchVariable` | `List` | A list of variables to fetch as the job variables; if empty, all visible variables at the time of activation for the scope of the job will be returned. | | `RequestTimeout` | `Nullable` | The request will be completed when at least one job is activated or after the requestTimeout (in ms). If the requestTimeout = 0, a default timeout is used. If the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated. | | `TenantIds` | `List` | A list of IDs of tenants for which to activate jobs. | | `TenantFilter` | `Nullable` | The tenant filtering strategy - determines whether to use provided tenant IDs or assigned tenant IDs from the authenticated principal's authorized tenants. | | `WithLease` | `Nullable` | Whether to activate the jobs with a lease. When true, each activated job is assigned a distinct, opaque lease token, returned as ActivatedJobResult.jobLeaseToken. The lease fences the complete, fail, and throw-error commands against a superseded activation of the same job (for example, after the job timed out or failed and was re-activated by another worker): a command carrying a stale lease token is rejected rather than racing with the newer activation. Once a job has been activated with a lease, it is served only to leasing workers of that job type; a homogeneous fleet per job type is recommended. Omit or set to false to activate jobs without a lease. | ## JobActivationResult The list of activated jobs ```csharp public sealed class JobActivationResult ``` | Property | Type | Description | | -------- | -------------------------- | ------------------- | | `Jobs` | `List` | The activated jobs. | ## JobBatchUpdateRequest The filter and changeset for a batch job update operation. The filter defines which jobs are updated; the changeset defines what to update. At least one changeset field must be non-null. ```csharp public sealed class JobBatchUpdateRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `JobFilter` | The job filter. At least one dimension must be set. | | `Changeset` | `JobChangeset` | The fields to update. At least one field must be non-null. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## JobChangeset JSON object with changed job attribute values. The job cannot be completed or failed with this endpoint, use the complete job or fail job endpoints instead. ```csharp public sealed class JobChangeset ``` | Property | Type | Description | | ---------- | ----------------- | --------------------------------------------------------------------- | | `Retries` | `Nullable` | The new number of retries for the job. | | `Timeout` | `Nullable` | The new timeout for the job in milliseconds. | | `Priority` | `Nullable` | The new priority for the job. Higher values indicate higher priority. | ## JobCompletionRequest ```csharp public sealed class JobCompletionRequest ``` | Property | Type | Description | | --------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Variables` | `Object` | The variables to complete the job with. | | `Result` | `JobResult` | The result of the completed job as determined by the worker. | | `JobLeaseToken` | `Nullable` | The token identifying a leased job's activation, obtained from `ActivatedJobResult.jobLeaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token. | | `BusinessId` | `Nullable` | An optional business id to assign to the process instance the job belongs to, as part of completing the job, letting a worker set the identifier from work it just performed. The business id can only be assigned to a root process instance: if the job belongs to a child process instance (one started by a call activity), the completion is rejected. An empty business id is likewise rejected. The assignment is single and irreversible and is only accepted while business id uniqueness is disabled. Only artifacts created after the assignment carry the business id; already-existing ones are not enriched. Completing with a business id that differs from one already assigned rejects the whole completion, leaving the job open; re-sending the identical business id is an idempotent no-op. | ## JobErrorRequest ```csharp public sealed class JobErrorRequest ``` | Property | Type | Description | | --------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ErrorCode` | `String` | The error code that will be matched with an error catch event. | | `ErrorMessage` | `String` | An error message that provides additional context. | | `Variables` | `Object` | JSON object that will instantiate the variables at the local scope of the error catch event that catches the thrown error. | | `JobLeaseToken` | `Nullable` | The token identifying a leased job's activation, obtained from `ActivatedJobResult.jobLeaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token. | ## JobErrorStatisticsFilter Job error statistics search filter. ```csharp public sealed class JobErrorStatisticsFilter ``` | Property | Type | Description | | -------------- | ---------------------- | ---------------------------------------------------------------------- | | `From` | `DateTimeOffset` | Start of the time window to filter metrics. ISO 8601 date-time format. | | `To` | `DateTimeOffset` | End of the time window to filter metrics. ISO 8601 date-time format. | | `JobType` | `String` | Job type to return error metrics for. | | `ErrorCode` | `StringFilterProperty` | Optional error code filter with advanced search capabilities. | | `ErrorMessage` | `StringFilterProperty` | Optional error message filter with advanced search capabilities. | ## JobErrorStatisticsItem Aggregated error metrics for a single error type and message combination. ```csharp public sealed class JobErrorStatisticsItem ``` | Property | Type | Description | | -------------- | -------- | ------------------------------------------------------- | | `ErrorCode` | `String` | The error code identifier. | | `ErrorMessage` | `String` | The error message. | | `Workers` | `Int32` | Number of distinct workers that encountered this error. | ## JobErrorStatisticsQuery Job error statistics query. ```csharp public sealed class JobErrorStatisticsQuery ``` | Property | Type | Description | | -------- | -------------------------- | ----------------------------------- | | `Filter` | `JobErrorStatisticsFilter` | Job error statistics search filter. | | `Page` | `CursorForwardPagination` | Search cursor pagination. | ## JobErrorStatisticsQueryResult Job error statistics query result. ```csharp public sealed class JobErrorStatisticsQueryResult ``` | Property | Type | Description | | -------- | ------------------------------ | ------------------------------------------------ | | `Items` | `List` | The list of per-error statistics items. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## JobFailRequest ```csharp public sealed class JobFailRequest ``` | Property | Type | Description | | --------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Retries` | `Nullable` | The amount of retries the job should have left | | `ErrorMessage` | `String` | An optional error message describing why the job failed; if not provided, an empty string is used. | | `RetryBackOff` | `Nullable` | An optional retry back off for the failed job. The job will not be retryable before the current time plus the back off time. The default is 0 which means the job is retryable immediately. | | `Variables` | `Object` | JSON object that will instantiate the variables at the local scope of the job's associated task. | | `JobLeaseToken` | `Nullable` | The token identifying a leased job's activation, obtained from `ActivatedJobResult.jobLeaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token. | ## JobFailureException Throw from a job handler to explicitly fail a job with custom retry settings. ```csharp public sealed class JobFailureException : Exception, ISerializable ``` | Property | Type | Description | | ---------------- | ----------------- | ------------------------------------------------------------------------ | | `Retries` | `Nullable` | How many retries the job should have remaining. `null` = server decides. | | `RetryBackOffMs` | `Nullable` | Retry back-off in milliseconds. `null` = immediate retry. | ## JobFilter Job search filter. ```csharp public sealed class JobFilter ``` | Property | Type | Description | | -------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | `Deadline` | `DateTimeFilterProperty` | When the job can next be activated. | | `DeniedReason` | `StringFilterProperty` | The reason provided by the user task listener for denying the work. | | `ElementId` | `StringFilterProperty` | The element ID associated with the job. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The element instance key associated with the job. | | `EndTime` | `DateTimeFilterProperty` | When the job ended. | | `ErrorCode` | `StringFilterProperty` | The error code provided for the failed job. | | `ErrorMessage` | `StringFilterProperty` | The error message that provides additional context for a failed job. | | `HasFailedWithRetriesLeft` | `Nullable` | Indicates whether the job has failed with retries left. | | `IsDenied` | `Nullable` | Indicates whether the user task listener denies the work. | | `JobKey` | `JobKeyFilterProperty` | The key, a unique identifier for the job. | | `Kind` | `JobKindFilterProperty` | The kind of the job. | | `ListenerEventType` | `JobListenerEventTypeFilterProperty` | The listener event type of the job. | | `Priority` | `IntegerFilterProperty` | The priority of the job. Jobs created before 8.10 have no stored priority and are excluded from results when this filter is applied. | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition ID associated with the job. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key associated with the job. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key associated with the job. | | `Retries` | `IntegerFilterProperty` | The number of retries left. | | `State` | `JobStateFilterProperty` | The state of the job. | | `TenantId` | `StringFilterProperty` | The tenant ID. | | `Type` | `StringFilterProperty` | The type of the job. | | `Worker` | `StringFilterProperty` | The name of the worker for this job. | | `CreationTime` | `DateTimeFilterProperty` | When the job was created. Field is present for jobs created after 8.9. | | `LastUpdateTime` | `DateTimeFilterProperty` | When the job was last updated. Field is present for jobs created after 8.9. | ## JobHandler Delegate for job handler functions. Return the output variables to complete the job with, or `null` to complete with no output variables. Return a `JobCompletionRequest` to send a structured completion (e.g. with job corrections or a task denial). To signal a BPMN error, throw `BpmnErrorException`. To explicitly fail a job with custom retries, throw `JobFailureException`. Any other unhandled exception auto-fails the job with `retries - 1`. ```csharp public delegate Task JobHandler(ActivatedJob job, CancellationToken ct) ``` ## JobKeyExactMatch Matches the value exactly. ```csharp public readonly record struct JobKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## JobKeyFilterProperty JobKey property with full advanced search capabilities. ```csharp public sealed class JobKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## JobKindExactMatch Matches the value exactly. ```csharp public readonly record struct JobKindExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## JobKindFilterProperty JobKindEnum property with full advanced search capabilities. ```csharp public sealed class JobKindFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## JobLeaseToken An opaque, engine-minted fencing token identifying a single activation of a job. Returned by Activate Jobs as `ActivatedJobResult.jobLeaseToken` when the job is activated with a lease, and passed back under the same name on fenced job commands and on agent-instance creation/updates, to prove the caller holds the current lease. The token is opaque: clients may rely on its presence and equality only, and must never construct, parse, or otherwise interpret it beyond equality checks. It cannot be minted client-side; only the engine produces it, exactly once per leased activation, and clients must not depend on any particular internal format. ```csharp public readonly record struct JobLeaseToken : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## JobListenerEventTypeExactMatch Matches the value exactly. ```csharp public readonly record struct JobListenerEventTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## JobListenerEventTypeFilterProperty JobListenerEventTypeEnum property with full advanced search capabilities. ```csharp public sealed class JobListenerEventTypeFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## JobMetricsConfigurationResponse Configuration for job metrics collection and export. ```csharp public sealed class JobMetricsConfigurationResponse ``` | Property | Type | Description | | --------------------- | --------- | ------------------------------------------------------------------------ | | `Enabled` | `Boolean` | Whether job metrics export is enabled. | | `ExportInterval` | `String` | The interval at which job metrics are exported, as an ISO 8601 duration. | | `MaxWorkerNameLength` | `Int32` | The maximum length of the worker name used in job metrics labels. | | `MaxJobTypeLength` | `Int32` | The maximum length of the job type used in job metrics labels. | | `MaxTenantIdLength` | `Int32` | The maximum length of the tenant ID used in job metrics labels. | | `MaxUniqueKeys` | `Int32` | The maximum number of unique metric keys tracked for job metrics. | ## JobResult The result of the completed job as determined by the worker. ```csharp public abstract class JobResult ``` ## JobResultActivateElement Instruction to activate a single BPMN element within an ad‑hoc sub‑process, optionally providing variables scoped to that element. ```csharp public sealed class JobResultActivateElement ``` | Property | Type | Description | | ----------- | --------------------- | --------------------------- | | `ElementId` | `Nullable` | The element ID to activate. | | `Variables` | `Object` | Variables for the element. | ## JobResultAdHocSubProcess Job result details for an ad‑hoc sub‑process, including elements to activate and flags indicating completion or cancellation behavior. ```csharp public sealed class JobResultAdHocSubProcess : JobResult ``` | Property | Type | Description | | -------------------------------- | -------------------------------- | -------------------------------------------------------------------------------------- | | `ActivateElements` | `List` | Indicates which elements need to be activated in the ad-hoc subprocess. | | `IsCompletionConditionFulfilled` | `Nullable` | Indicates whether the completion condition of the ad-hoc subprocess is fulfilled. | | `IsCancelRemainingInstances` | `Nullable` | Indicates whether the remaining instances of the ad-hoc subprocess should be canceled. | ## JobResultCorrections JSON object with attributes that were corrected by the worker. The following attributes can be corrected, additional attributes will be ignored: - `assignee` - clear by providing an empty String - `dueDate` - clear by providing an empty String - `followUpDate` - clear by providing an empty String - `candidateGroups` - clear by providing an empty list - `candidateUsers` - clear by providing an empty list - `priority` - minimum 0, maximum 100, default 50 Providing any of those attributes with a `null` value or omitting it preserves the persisted attribute's value. ```csharp public sealed class JobResultCorrections ``` | Property | Type | Description | | ----------------- | -------------------------- | ----------------------------------------- | | `Assignee` | `String` | Assignee of the task. | | `DueDate` | `Nullable` | The due date of the task. | | `FollowUpDate` | `Nullable` | The follow-up date of the task. | | `CandidateUsers` | `List` | The list of candidate users of the task. | | `CandidateGroups` | `List` | The list of candidate groups of the task. | | `Priority` | `Nullable` | The priority of the task. | ## JobResultUserTask Job result details for a user task completion, optionally including a denial reason and corrected task properties. ```csharp public sealed class JobResultUserTask : JobResult ``` | Property | Type | Description | | -------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Denied` | `Nullable` | Indicates whether the worker denies the work, i.e. explicitly doesn't approve it. For example, a user task listener can deny the completion of a task by setting this flag to true. In this example, the completion of a task is represented by a job that the worker can complete as denied. As a result, the completion request is rejected and the task remains active. Defaults to false. | | `DeniedReason` | `String` | The reason provided by the user task listener for denying the work. | | `Corrections` | `JobResultCorrections` | JSON object with attributes that were corrected by the worker. The following attributes can be corrected, additional attributes will be ignored: * `assignee` - clear by providing an empty String * `dueDate` - clear by providing an empty String * `followUpDate` - clear by providing an empty String * `candidateGroups` - clear by providing an empty list * `candidateUsers` - clear by providing an empty list * `priority` - minimum 0, maximum 100, default 50 Providing any of those attributes with a `null` value or omitting it preserves the persisted attribute's value. | ## JobSearchQuery Job search request. ```csharp public sealed class JobSearchQuery ``` | Property | Type | Description | | -------- | --------------------------------- | ----------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `JobFilter` | The job search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## JobSearchQueryResult Job search response. ```csharp public sealed class JobSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching jobs. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## JobSearchQuerySortRequest ```csharp public sealed class JobSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------- | --------------------------------------------- | | `Field` | `JobSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## JobSearchResult ```csharp public sealed class JobSearchResult ``` | Property | Type | Description | | -------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `CustomHeaders` | `Dictionary` | A set of custom headers defined during modelling. | | `Deadline` | `Nullable` | If the job has been activated, when it will next be available to be activated. | | `DeniedReason` | `String` | The reason provided by the user task listener for denying the work. | | `ElementId` | `ElementId` | The element ID associated with the job. | | `ElementInstanceKey` | `ElementInstanceKey` | The element instance key associated with the job. | | `EndTime` | `Nullable` | End date of the job. This is `null` if the job is not in an end state yet. | | `ErrorCode` | `String` | The error code provided for a failed job. | | `ErrorMessage` | `String` | The error message that provides additional context for a failed job. | | `HasFailedWithRetriesLeft` | `Boolean` | Indicates whether the job has failed with retries left. | | `IsDenied` | `Nullable` | Indicates whether the user task listener denies the work. | | `JobKey` | `JobKey` | The key, a unique identifier for the job. | | `Kind` | `JobKindEnum` | The job kind. | | `ListenerEventType` | `JobListenerEventTypeEnum` | The listener event type of the job. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated with the job. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key associated with the job. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The process instance key associated with the job. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `BusinessId` | `Nullable` | The business ID of the owning process instance, inherited when the job was created. This is `null` for jobs created before version 8.10 and for jobs whose owning process instance has no business ID. | | `Retries` | `Int32` | The amount of retries left to this job. | | `State` | `JobStateEnum` | The state of the job. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `Type` | `String` | The type of the job. | | `Worker` | `String` | The name of the worker of this job. | | `CreationTime` | `Nullable` | When the job was created. Field is present for jobs created after 8.9. | | `LastUpdateTime` | `Nullable` | When the job was last updated. Field is present for jobs created after 8.9. | | `Priority` | `Int32` | The priority of the job. Higher values indicate higher priority. Jobs created before 8.10 have no stored priority; they appear last when sorting by this field and are excluded when filtering by this field. The API returns 0 for such jobs. | ## JobStateExactMatch Matches the value exactly. ```csharp public readonly record struct JobStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## JobStateFilterProperty JobStateEnum property with full advanced search capabilities. ```csharp public sealed class JobStateFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## JobTimeSeriesStatisticsFilter Job time-series statistics search filter. ```csharp public sealed class JobTimeSeriesStatisticsFilter ``` | Property | Type | Description | | ------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `From` | `DateTimeOffset` | Start of the time window to filter metrics. ISO 8601 date-time format. | | `To` | `DateTimeOffset` | End of the time window to filter metrics. ISO 8601 date-time format. | | `JobType` | `String` | Job type to return time-series metrics for. | | `Resolution` | `String` | Time bucket resolution as an ISO 8601 duration (for example `PT1M` for 1 minute, `PT1H` for 1 hour). If omitted, the server chooses a sensible default. | ## JobTimeSeriesStatisticsItem Aggregated job metrics for a single time bucket. ```csharp public sealed class JobTimeSeriesStatisticsItem ``` | Property | Type | Description | | ----------- | ---------------- | -------------------------------------------------------------- | | `Time` | `DateTimeOffset` | ISO 8601 timestamp representing the start of this time bucket. | | `Created` | `StatusMetric` | Metric for a single job status. | | `Completed` | `StatusMetric` | Metric for a single job status. | | `Failed` | `StatusMetric` | Metric for a single job status. | ## JobTimeSeriesStatisticsQuery Job time-series statistics query. ```csharp public sealed class JobTimeSeriesStatisticsQuery ``` | Property | Type | Description | | -------- | ------------------------------- | ----------------------------------------- | | `Filter` | `JobTimeSeriesStatisticsFilter` | Job time-series statistics search filter. | | `Page` | `CursorForwardPagination` | Search cursor pagination. | ## JobTimeSeriesStatisticsQueryResult Job time-series statistics query result. ```csharp public sealed class JobTimeSeriesStatisticsQueryResult ``` | Property | Type | Description | | -------- | ----------------------------------- | ---------------------------------------------------------------------- | | `Items` | `List` | The list of time-bucketed statistics items, ordered ascending by time. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## JobTypeStatisticsFilter Job type statistics search filter. ```csharp public sealed class JobTypeStatisticsFilter ``` | Property | Type | Description | | --------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------ | | `From` | `DateTimeOffset` | Start of the time window to filter metrics. ISO 8601 date-time format. | | `To` | `DateTimeOffset` | End of the time window to filter metrics. ISO 8601 date-time format. | | `JobType` | `StringFilterProperty` | Optional job type filter with advanced search capabilities. Supports exact match, pattern matching, and other operators. | ## JobTypeStatisticsItem Statistics for a single job type. ```csharp public sealed class JobTypeStatisticsItem ``` | Property | Type | Description | | ----------- | -------------- | ------------------------------------------------------ | | `JobType` | `String` | The job type identifier. | | `Created` | `StatusMetric` | Metric for a single job status. | | `Completed` | `StatusMetric` | Metric for a single job status. | | `Failed` | `StatusMetric` | Metric for a single job status. | | `Workers` | `Int32` | Number of distinct workers observed for this job type. | ## JobTypeStatisticsQuery Job type statistics query. ```csharp public sealed class JobTypeStatisticsQuery ``` | Property | Type | Description | | -------- | ------------------------- | ---------------------------------- | | `Filter` | `JobTypeStatisticsFilter` | Job type statistics search filter. | | `Page` | `CursorForwardPagination` | Search cursor pagination. | ## JobTypeStatisticsQueryResult Job type statistics query result. ```csharp public sealed class JobTypeStatisticsQueryResult ``` | Property | Type | Description | | -------- | ----------------------------- | ------------------------------------------------ | | `Items` | `List` | The list of job type statistics items. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## JobUpdateRequest ```csharp public sealed class JobUpdateRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Changeset` | `JobChangeset` | JSON object with changed job attribute values. The job cannot be completed or failed with this endpoint, use the complete job or fail job endpoints instead. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | | `JobLeaseToken` | `Nullable` | The token identifying a leased job's activation, obtained from `ActivatedJobResult.jobLeaseToken`. For a leased job, a supplied token is validated to prove the command comes from the worker that holds the current lease; a command carrying a stale token is rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). An update without a token always applies to support operator and bulk updates of leased jobs. Note that this is different from lifecycle requests like complete, fail, and throw-error that always require a token for leased jobs. A job that was activated without a lease requires no token. | ## JobWaitStateDetails ```csharp public sealed class JobWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | ------------------- | ------------------------------------ | -------------------------------------------------------------------------------------------- | | `JobKey` | `JobKey` | The key of the job. | | `JobType` | `String` | The job type (worker subscription identifier). | | `JobKind` | `JobKindEnum` | The kind of job. | | `ListenerEventType` | `Nullable` | The listener event type of the job (only set for execution listener and task listener jobs). | | `Retries` | `Nullable` | The number of retries remaining for the job. | ## JobWorker A long-running worker that polls the Camunda broker for jobs of a specific type, dispatches them to a handler, and auto-completes or auto-fails based on the outcome. Concurrency model: jobs are dispatched as concurrent `Tasks.Task`s on the .NET thread pool. `JobWorkerConfig.MaxConcurrentJobs` controls how many jobs may be in-flight simultaneously. For async handlers (the typical case), the thread pool thread is released during `await` points, so many jobs can be handled by a small number of OS threads. For CPU-bound handlers, set `MaxConcurrentJobs` to `Environment.ProcessorCount` to match available cores. ```csharp public sealed class JobWorker : IAsyncDisposable, IDisposable ``` | Property | Type | Description | | ------------ | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ActiveJobs` | `Int32` | Number of jobs currently being processed. | | `IsRunning` | `Boolean` | Whether the poll loop is currently running. | | `Completion` | `Task` | The poll loop task, or `null` before `JobWorker.Start` has run. Completes when the worker stops; faults with `LeaseNotHonoredException` if the server does not honor a requested lease. `CamundaClient.RunWorkersAsync` observes this so that terminal fault reaches the caller instead of being lost on a background task. | | `Name` | `String` | The worker's name (auto-generated or from config). | ## JobWorkerStatisticsFilter Job worker statistics search filter. ```csharp public sealed class JobWorkerStatisticsFilter ``` | Property | Type | Description | | --------- | ---------------- | ---------------------------------------------------------------------- | | `From` | `DateTimeOffset` | Start of the time window to filter metrics. ISO 8601 date-time format. | | `To` | `DateTimeOffset` | End of the time window to filter metrics. ISO 8601 date-time format. | | `JobType` | `String` | Job type to return worker metrics for. | ## JobWorkerStatisticsItem Statistics for a single worker within a job type. ```csharp public sealed class JobWorkerStatisticsItem ``` | Property | Type | Description | | ----------- | -------------- | ----------------------------------------------------------------------------- | | `Worker` | `String` | The name of the worker activating the jobs, mostly used for logging purposes. | | `Created` | `StatusMetric` | Metric for a single job status. | | `Completed` | `StatusMetric` | Metric for a single job status. | | `Failed` | `StatusMetric` | Metric for a single job status. | ## JobWorkerStatisticsQuery Job worker statistics query. ```csharp public sealed class JobWorkerStatisticsQuery ``` | Property | Type | Description | | -------- | --------------------------- | ------------------------------------ | | `Filter` | `JobWorkerStatisticsFilter` | Job worker statistics search filter. | | `Page` | `CursorForwardPagination` | Search cursor pagination. | ## JobWorkerStatisticsQueryResult Job worker statistics query result. ```csharp public sealed class JobWorkerStatisticsQueryResult ``` | Property | Type | Description | | -------- | ------------------------------- | ------------------------------------------------ | | `Items` | `List` | The list of per-worker statistics items. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## LeaseNotHonoredException Thrown when a worker activated jobs with a lease but the server returned a job whose lease token is missing or invalid. The specification declares the token present exactly when the activation sets the lease flag (see `PresentWhen.cs`). A server that predates job leases, ignores the flag, or returns an unusable token breaks that quietly: the worker would go on to complete, fail, or throw an error for the job without a usable token, so the engine could not fence the command against a superseded activation. The caller asked for fencing and would not be getting it, which is worth failing over rather than proceeding. ```csharp public sealed class LeaseNotHonoredException : CamundaSdkException, ISerializable ``` | Property | Type | Description | | ------------- | -------- | ------------------------------------------------------------------------- | | `JobKey` | `String` | The key of the job whose lease token was missing or invalid. | | `RequestFlag` | `String` | The activation flag the specification couples the token to (`withLease`). | ## LicenseResponse The response of a license request. ```csharp public sealed class LicenseResponse ``` | Property | Type | Description | | -------------- | -------------------------- | -------------------------------------------------------------------- | | `ValidLicense` | `Boolean` | True if the Camunda license is valid, false if otherwise | | `LicenseType` | `String` | Will return the license type property of the Camunda license | | `IsCommercial` | `Boolean` | Will be false when a license contains a non-commerical=true property | | `ExpiresAt` | `Nullable` | The date when the Camunda license expires | ## LikeFilter Checks if the property matches the provided like value. Supported wildcard characters are: - `*`: matches zero, one, or multiple characters. - `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. ```csharp public readonly record struct LikeFilter : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## LimitPagination ```csharp public sealed class LimitPagination : SearchQueryPageRequest ``` | Property | Type | Description | | -------- | ----------------- | ----------------------------------------------------- | | `Limit` | `Nullable` | The maximum number of items to return in one request. | ## LoopIterationId A client-provided sequential integer identifying a loop iteration: one pass through an AI agent's loop, during which the model reasons, selects tools, evaluates the result, and decides whether to continue. One iteration covers the input for the LLM call, the call itself, and the tools it dispatches; the results of those tool calls are input to the next iteration. Must be a positive integer, increasing with each loopIteration. Established by the connector when appending the first history item of a loopIteration. ```csharp public readonly record struct LoopIterationId : ICamundaLongKey, IEquatable ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## MappingRuleCreateRequest ```csharp public sealed class MappingRuleCreateRequest ``` | Property | Type | Description | | --------------- | --------------- | ---------------------------------- | | `MappingRuleId` | `MappingRuleId` | The unique ID of the mapping rule. | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | ## MappingRuleCreateResult ```csharp public sealed class MappingRuleCreateResult ``` | Property | Type | Description | | --------------- | --------------- | ---------------------------------- | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | | `MappingRuleId` | `MappingRuleId` | The unique ID of the mapping rule. | ## MappingRuleCreateUpdateRequest ```csharp public sealed class MappingRuleCreateUpdateRequest ``` | Property | Type | Description | | ------------ | -------- | ------------------------------ | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | ## MappingRuleCreateUpdateResult ```csharp public sealed class MappingRuleCreateUpdateResult ``` | Property | Type | Description | | --------------- | --------------- | ---------------------------------- | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | | `MappingRuleId` | `MappingRuleId` | The unique ID of the mapping rule. | ## MappingRuleFilter Mapping rule search filter. ```csharp public sealed class MappingRuleFilter ``` | Property | Type | Description | | --------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ClaimName` | `String` | The claim name to match against a token. | | `ClaimValue` | `String` | The value of the claim to match. | | `Name` | `StringFilterProperty` | The name of the mapping rule. | | `MappingRuleId` | `StringFilterProperty` | The ID of the mapping rule. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "$or": [ { "mappingRuleId": "rule-1" }, { "mappingRuleId": "rule-2" } ] } ` This matches mapping rules whose mappingRuleId is rule-1 or rule-2. Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## MappingRuleFilterFields Mapping rule search filter fields. ```csharp public sealed class MappingRuleFilterFields ``` | Property | Type | Description | | --------------- | ---------------------- | ---------------------------------------- | | `ClaimName` | `String` | The claim name to match against a token. | | `ClaimValue` | `String` | The value of the claim to match. | | `Name` | `StringFilterProperty` | The name of the mapping rule. | | `MappingRuleId` | `StringFilterProperty` | The ID of the mapping rule. | ## MappingRuleId The unique identifier of a mapping rule. ```csharp public readonly record struct MappingRuleId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## MappingRuleResult ```csharp public sealed class MappingRuleResult ``` | Property | Type | Description | | --------------- | --------------- | ------------------------------ | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | | `MappingRuleId` | `MappingRuleId` | The ID of the mapping rule. | ## MappingRuleSearchQueryRequest ```csharp public sealed class MappingRuleSearchQueryRequest ``` | Property | Type | Description | | -------- | ----------------------------------------- | -------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `MappingRuleFilter` | The mapping rule search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## MappingRuleSearchQueryResult ```csharp public sealed class MappingRuleSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching mapping rules. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## MappingRuleSearchQuerySortRequest ```csharp public sealed class MappingRuleSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------- | --------------------------------------------- | | `Field` | `MappingRuleSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## MappingRuleUpdateRequest ```csharp public sealed class MappingRuleUpdateRequest ``` | Property | Type | Description | | ------------ | -------- | ------------------------------ | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | ## MappingRuleUpdateResult ```csharp public sealed class MappingRuleUpdateResult ``` | Property | Type | Description | | --------------- | --------------- | ---------------------------------- | | `ClaimName` | `String` | The name of the claim to map. | | `ClaimValue` | `String` | The value of the claim to map. | | `Name` | `String` | The name of the mapping rule. | | `MappingRuleId` | `MappingRuleId` | The unique ID of the mapping rule. | ## MatchedDecisionRuleItem A decision rule that matched within this decision evaluation. ```csharp public sealed class MatchedDecisionRuleItem ``` | Property | Type | Description | | ------------------ | ----------------------------------- | ------------------------------- | | `RuleId` | `String` | The ID of the matched rule. | | `RuleIndex` | `Int32` | The index of the matched rule. | | `EvaluatedOutputs` | `List` | The evaluated decision outputs. | ## MessageCorrelationRequest ```csharp public sealed class MessageCorrelationRequest : ITenantIdSettable ``` | Property | Type | Description | | ---------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | The message name as defined in the BPMN process | | `CorrelationKey` | `String` | The correlation key of the message. | | `Variables` | `Object` | The message variables as JSON document | | `TenantId` | `Nullable` | the tenant for which the message is published | | `BusinessId` | `Nullable` | An optional business id used to enforce uniqueness of the process instance that a message start event would create. If provided and uniqueness enforcement is enabled, the engine rejects starting a new process instance when another root process instance with the same business id is already active for the same process definition. It has no effect when the message correlates to a catch, boundary, or intermediate event. | ## MessageCorrelationResult The message key of the correlated message, as well as the first process instance key it correlated with. ```csharp public sealed class MessageCorrelationResult ``` | Property | Type | Description | | -------------------- | -------------------- | ----------------------------------------------------------------- | | `TenantId` | `TenantId` | The tenant ID of the correlated message | | `MessageKey` | `MessageKey` | The key of the correlated message. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the first process instance the message correlated with | ## MessagePublicationRequest ```csharp public sealed class MessagePublicationRequest : ITenantIdSettable ``` | Property | Type | Description | | ---------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | The name of the message. | | `CorrelationKey` | `String` | The correlation key of the message. | | `TimeToLive` | `Nullable` | Timespan (in ms) to buffer the message on the broker. | | `MessageId` | `String` | The unique ID of the message. This is used to ensure only one message with the given ID will be published during the lifetime of the message (if `timeToLive` is set). | | `Variables` | `Object` | The message variables as JSON document. | | `TenantId` | `Nullable` | The tenant of the message sender. | | `BusinessId` | `Nullable` | An optional business id used to enforce uniqueness of the process instance that a message start event would create. If provided and uniqueness enforcement is enabled, the engine rejects starting a new process instance when another root process instance with the same business id is already active for the same process definition. It has no effect when the message correlates to a catch, boundary, or intermediate event. | ## MessagePublicationResult The message key of the published message. ```csharp public sealed class MessagePublicationResult ``` | Property | Type | Description | | ------------ | ------------ | --------------------------------- | | `TenantId` | `TenantId` | The tenant ID of the message. | | `MessageKey` | `MessageKey` | The key of the published message. | ## MessageSubscriptionFilter Message subscription search filter. ```csharp public sealed class MessageSubscriptionFilter ``` | Property | Type | Description | | -------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `StringFilterProperty` | Filter by the business id inherited from the subscribing process instance when the subscription was opened. Supports advanced string filtering, including `$like` with `*`/`?` wildcards. | | `MessageSubscriptionKey` | `MessageSubscriptionKeyFilterProperty` | The message subscription key associated with this message subscription. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key associated with this correlated message subscription. This only works for data created with 8.9 and later. | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition ID associated with this message subscription. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The process instance key associated with this message subscription. | | `ElementId` | `StringFilterProperty` | The element ID associated with this message subscription. | | `ElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The element instance key associated with this message subscription. | | `MessageSubscriptionState` | `MessageSubscriptionStateFilterProperty` | The message subscription state. | | `LastUpdatedDate` | `DateTimeFilterProperty` | The last updated date of the message subscription. | | `MessageName` | `StringFilterProperty` | The name of the message associated with the message subscription. | | `CorrelationKey` | `StringFilterProperty` | The correlation key of the message subscription. | | `TenantId` | `StringFilterProperty` | The unique external tenant ID. | | `MessageSubscriptionType` | `MessageSubscriptionTypeFilterProperty` | The type of message subscription to filter by. When omitted, both `START_EVENT` and `PROCESS_EVENT` are returned. Only available for data created with Camunda 8.10 or later. | | `ProcessDefinitionName` | `StringFilterProperty` | The name of the process definition associated with this message subscription. | | `ProcessDefinitionVersion` | `IntegerFilterProperty` | The version of the process definition associated with this message subscription. | | `ToolName` | `StringFilterProperty` | Filter by tool name extracted from the `io.camunda.tool:name` zeebe:property. | | `InboundConnectorType` | `StringFilterProperty` | Filter by inbound connector type extracted from the `inbound.type` zeebe:property. | ## MessageSubscriptionKeyExactMatch Matches the value exactly. ```csharp public readonly record struct MessageSubscriptionKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## MessageSubscriptionKeyFilterProperty MessageSubscriptionKey property with full advanced search capabilities. ```csharp public sealed class MessageSubscriptionKeyFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for equality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## MessageSubscriptionResult ```csharp public sealed class MessageSubscriptionResult ``` | Property | Type | Description | | -------------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `Nullable` | The business id inherited from the subscribing process instance when this message subscription was opened. It is `null` when the process instance has no business id, and for message start event subscriptions, which are not tied to a process instance. | | `MessageSubscriptionKey` | `MessageSubscriptionKey` | The message subscription key associated with this message subscription. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated with this message subscription. | | `ProcessDefinitionKey` | `Nullable` | The process definition key associated with this message subscription. | | `ProcessInstanceKey` | `Nullable` | The process instance key associated with this message subscription. Only populated for intermediate event entities. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `ElementId` | `ElementId` | The element ID associated with this message subscription. | | `ElementInstanceKey` | `Nullable` | The element instance key associated with this message subscription. Only populated for intermediate event entities. | | `MessageSubscriptionState` | `MessageSubscriptionStateEnum` | The state of message subscription. **Note for `START_EVENT` subscriptions:** The `CORRELATED` and `MIGRATED` states are not tracked for these subscriptions. To query correlation history for process start events, use the `/correlated-message-subscriptions/search` endpoint. | | `LastUpdatedDate` | `DateTimeOffset` | The last updated date of the message subscription. | | `MessageName` | `String` | The name of the message associated with the message subscription. | | `CorrelationKey` | `String` | The correlation key of the message subscription. | | `MessageSubscriptionType` | `MessageSubscriptionTypeEnum` | The type of message subscription. `START_EVENT` is definition-scoped (process start events). Always has a value; only captured from Camunda 8.10 onwards. `PROCESS_EVENT` is instance-scoped (intermediate catch events). Pre-8.10 entries have no value stored; the API returns `PROCESS_EVENT` as a default for those entries. | | `ToolProperties` | `Dictionary` | The subset of `zeebe:properties` extension properties whose keys start with the `io.camunda.tool:` prefix, extracted from the BPMN element associated with this subscription. Empty object when no matching properties are defined. | | `ProcessDefinitionName` | `String` | The name of the process definition associated with this message subscription. | | `ProcessDefinitionVersion` | `Nullable` | The version of the process definition associated with this message subscription. | | `ToolName` | `String` | Tool name extracted from the `io.camunda.tool:name` zeebe:property. Null when the property is absent. | | `InboundConnectorType` | `String` | Inbound connector type extracted from the `inbound.type` zeebe:property. Null when the property is absent. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | ## MessageSubscriptionSearchQuery ```csharp public sealed class MessageSubscriptionSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------------------- | ---------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `MessageSubscriptionFilter` | The incident search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## MessageSubscriptionSearchQueryResult ```csharp public sealed class MessageSubscriptionSearchQueryResult ``` | Property | Type | Description | | -------- | --------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching message subscriptions. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## MessageSubscriptionSearchQuerySortRequest ```csharp public sealed class MessageSubscriptionSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------------------ | --------------------------------------------- | | `Field` | `MessageSubscriptionSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## MessageSubscriptionStateExactMatch Matches the value exactly. ```csharp public readonly record struct MessageSubscriptionStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## MessageSubscriptionStateFilterProperty MessageSubscriptionStateEnum with full advanced search capabilities. ```csharp public sealed class MessageSubscriptionStateFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## MessageSubscriptionTypeExactMatch Matches the value exactly. ```csharp public readonly record struct MessageSubscriptionTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## MessageSubscriptionTypeFilterProperty MessageSubscriptionTypeEnum with full advanced search capabilities. ```csharp public sealed class MessageSubscriptionTypeFilterProperty ``` | Property | Type | Description | | ------------ | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## MessageWaitStateDetails ```csharp public sealed class MessageWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | ---------------- | -------- | ------------------------------------------------------------------------- | | `MessageName` | `String` | The name of the message being awaited. | | `CorrelationKey` | `String` | The correlation key for the message subscription (null for start events). | ## MigrateProcessInstanceMappingInstruction The mapping instructions describe how to map elements from the source process definition to the target process definition. ```csharp public sealed class MigrateProcessInstanceMappingInstruction ``` | Property | Type | Description | | ----------------- | ----------- | ------------------------------- | | `SourceElementId` | `ElementId` | The element id to migrate from. | | `TargetElementId` | `ElementId` | The element id to migrate into. | ## ModifyProcessInstanceVariableInstruction Instruction describing which variables to create or update. ```csharp public sealed class ModifyProcessInstanceVariableInstruction ``` | Property | Type | Description | | ----------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Variables` | `Object` | JSON document that will instantiate the variables at the scope defined by the scopeId. It must be a JSON object, as variables will be mapped in a key-value fashion. | | `ScopeId` | `String` | The id of the element in which scope the variables should be created. Leave empty to create the variables in the global scope of the process instance. | ## OffsetPagination ```csharp public sealed class OffsetPagination : SearchQueryPageRequest ``` | Property | Type | Description | | -------- | ----------------- | ----------------------------------------------------- | | `From` | `Nullable` | The index of items to start searching from. | | `Limit` | `Nullable` | The maximum number of items to return in one request. | ## OperationReference A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. ```csharp public readonly record struct OperationReference : ICamundaLongKey, IEquatable ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## OperationTypeExactMatch Matches the value exactly. ```csharp public readonly record struct OperationTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## OperationTypeFilterProperty AuditLogOperationTypeEnum property with full advanced search capabilities. ```csharp public sealed class OperationTypeFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## OwnAuthorizationSearchResult ```csharp public sealed class OwnAuthorizationSearchResult ``` | Property | Type | Description | | ----------------------- | --------------------------- | ------------------------------------------------------------------- | | `AuthorizationsEnabled` | `Boolean` | Indicates whether authorization checks are enabled for the cluster. | | `Items` | `List` | The matching authorizations. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## Partition Provides information on a partition within a broker node. ```csharp public sealed class Partition ``` | Property | Type | Description | | ------------- | ----------------- | ------------------------------------------------------------------------------------------ | | `PartitionId` | `Int32` | The unique ID of this partition. | | `Role` | `PartitionRole` | Describes the Raft role of the broker for a given partition. | | `Health` | `PartitionHealth` | Describes the current health of the partition. | | `State` | `PartitionState` | Describes the current operational state of the partition within the cluster configuration. | ## PartitionBackupInfo Detailed info of the backup for a given partition. ```csharp public sealed class PartitionBackupInfo ``` | Property | Type | Description | | -------------------- | -------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `PartitionId` | `PartitionId` | The id of the partition. | | `State` | `StateCode` | The state of the backup on this partition. | | `FailureReason` | `String` | Failure reason if the state is 'FAILED'. | | `CreatedAt` | `Nullable` | The timestamp at which the backup was started on this partition. | | `LastUpdatedAt` | `Nullable` | The timestamp at which the backup was last updated on this partition, e.g. changed state from 'IN_PROGRESS' to 'COMPLETED'. | | `SnapshotId` | `String` | The id of the snapshot which is included in this backup. | | `FirstLogPosition` | `Nullable` | The first log position included in this backup. | | `CheckpointPosition` | `Nullable` | The position of the checkpoint for this backup. | | `BrokerId` | `Nullable` | The id of the broker from which the backup was taken for this partition. | | `BrokerVersion` | `String` | The version of the broker from which the backup was taken for this partition. | ## PartitionBackupRange Information about one backup range for a partition. ```csharp public sealed class PartitionBackupRange ``` | Property | Type | Description | | ------------- | ---------------------- | ------------------------------- | | `PartitionId` | `PartitionId` | The id of the partition. | | `Start` | `PartitionBackupState` | The oldest backup in the range. | | `End` | `PartitionBackupState` | The newest backup in the range. | ## PartitionBackupState Detailed information about the backup state for a given partition. ```csharp public sealed class PartitionBackupState ``` | Property | Type | Description | | --------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `CheckpointId` | `CheckpointId` | The id of the checkpoint this backup is based on. | | `CheckpointType` | `BackupType` | The type of the backup. | | `PartitionId` | `Nullable` | The id of the partition. Omitted when nested inside a backup range's `start`/`end`, where the partition is already identified by the enclosing range. | | `CheckpointPosition` | `Int64` | The log position of the checkpoint this backup is based on. | | `FirstLogPosition` | `Int64` | The first log position included in this backup. | | `CheckpointTimestamp` | `DateTimeOffset` | The timestamp at which the checkpoint was created. | ## PartitionCheckpointState Detailed information about the checkpoint state for a given partition. ```csharp public sealed class PartitionCheckpointState ``` | Property | Type | Description | | --------------------- | ---------------- | -------------------------------------------------- | | `CheckpointId` | `CheckpointId` | The id of the checkpoint. | | `CheckpointType` | `CheckpointType` | The type of the checkpoint. | | `PartitionId` | `PartitionId` | The id of the partition. | | `CheckpointPosition` | `Int64` | The log position of the checkpoint. | | `CheckpointTimestamp` | `DateTimeOffset` | The timestamp at which the checkpoint was created. | ## PartitionId The id of a partition. Always a positive number greater than or equal to 1. ```csharp public readonly record struct PartitionId : ICamundaLongKey, IEquatable ``` | Property | Type | Description | | -------- | ------- | -------------------------- | | `Value` | `Int64` | The underlying long value. | ## PhysicalTenantBrokerTopology The partitions of one physical tenant that one broker manages or replicates. ```csharp public sealed class PhysicalTenantBrokerTopology ``` | Property | Type | Description | | ------------ | ----------------- | ----------------------------------------------------------------------------------------------------- | | `BrokerId` | `String` | The unique (within a cluster) identifier of the broker, as reported in the cluster-level broker list. | | `Partitions` | `List` | The partitions of this physical tenant managed or replicated on this broker. | ## PhysicalTenantTopology The topology of a single physical tenant. ```csharp public sealed class PhysicalTenantTopology ``` | Property | Type | Description | | ----------------------- | ------------------------------------ | ------------------------------------------------------------ | | `PhysicalTenantId` | `String` | The id of the physical tenant. | | `PartitionsCount` | `Int32` | The number of partitions spread across this physical tenant. | | `ReplicationFactor` | `Int32` | The configured replication factor for this physical tenant. | | `LastCompletedChangeId` | `String` | ID of the last completed change of this physical tenant. | | `Brokers` | `List` | The brokers holding partitions of this physical tenant. | ## ProblemDetail A Problem detail object as described in [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457). There may be additional properties specific to the problem type. ```csharp public sealed class ProblemDetail ``` | Property | Type | Description | | ---------- | -------- | ------------------------------------------------- | | `Type` | `String` | A URI identifying the problem type. | | `Title` | `String` | A summary of the problem type. | | `Status` | `Int32` | The HTTP status code for this problem. | | `Detail` | `String` | An explanation of the problem in more detail. | | `Instance` | `String` | A URI path identifying the origin of the problem. | ## ProcessDefinitionElementStatisticsQuery Process definition element statistics request. ```csharp public sealed class ProcessDefinitionElementStatisticsQuery ``` | Property | Type | Description | | -------- | ----------------------------------- | ------------------------------------------------- | | `Filter` | `ProcessDefinitionStatisticsFilter` | The process definition statistics search filters. | ## ProcessDefinitionElementStatisticsQueryResult Process definition element statistics query response. ```csharp public sealed class ProcessDefinitionElementStatisticsQueryResult ``` | Property | Type | Description | | -------- | -------------------------------------- | ----------------------- | | `Items` | `List` | The element statistics. | ## ProcessDefinitionFilter Process definition search filter. ```csharp public sealed class ProcessDefinitionFilter ``` | Property | Type | Description | | ---------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Name` | `StringFilterProperty` | Name of this process definition. | | `IsLatestVersion` | `Nullable` | Whether to only return the latest version of each process definition. When using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`. The response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`. When using this filter, sorting is limited to `processDefinitionId` and `tenantId` fields only. | | `ResourceName` | `String` | Resource name of this process definition. | | `Version` | `Nullable` | Version of this process definition. | | `VersionTag` | `String` | Version tag of this process definition. | | `ProcessDefinitionId` | `StringFilterProperty` | Process definition ID of this process definition. | | `TenantId` | `Nullable` | Tenant ID of this process definition. | | `ProcessDefinitionKey` | `Nullable` | The key for this process definition. | | `HasStartForm` | `Nullable` | Indicates whether the start event of the process has an associated Form Key. | | `State` | `Nullable` | Filter by the process definition's state. When not set, process definitions in any state are returned. Set to `ACTIVE` to exclude draining and deleted definitions (recommended for most use cases). Set to `DRAINING` to return only definitions that are being deleted but still have active process instances draining. Set to `DELETED` to return only definitions that have been deleted but are still retained in secondary storage. | ## ProcessDefinitionId Id of a process definition, from the model. Only ids of process definitions that are deployed are useful. ```csharp public readonly record struct ProcessDefinitionId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ProcessDefinitionIdExactMatch Matches the value exactly. ```csharp public readonly record struct ProcessDefinitionIdExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ProcessDefinitionIdFilterProperty ProcessDefinitionId property with full advanced search capabilities. ```csharp public sealed class ProcessDefinitionIdFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ProcessDefinitionInstanceStatisticsQuery ```csharp public sealed class ProcessDefinitionInstanceStatisticsQuery ``` | Property | Type | Description | | -------- | ----------------------------------------------------------- | ------------------------- | | `Page` | `OffsetPagination` | Search cursor pagination. | | `Sort` | `List` | Sort field criteria. | ## ProcessDefinitionInstanceStatisticsQueryResult ```csharp public sealed class ProcessDefinitionInstanceStatisticsQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------------- | -------------------------------------------------- | | `Items` | `List` | The process definition instance statistics result. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessDefinitionInstanceStatisticsQuerySortRequest ```csharp public sealed class ProcessDefinitionInstanceStatisticsQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------------------------- | --------------------------------------------- | | `Field` | `ProcessDefinitionInstanceStatisticsQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ProcessDefinitionInstanceStatisticsResult Process definition instance statistics response. ```csharp public sealed class ProcessDefinitionInstanceStatisticsResult ``` | Property | Type | Description | | ------------------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | Id of a process definition, from the model. Only ids of process definitions that are deployed are useful. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `LatestProcessDefinitionName` | `String` | Name of the latest deployed process definition instance version. | | `HasMultipleVersions` | `Boolean` | Indicates whether multiple versions of this process definition instance are deployed. | | `ActiveInstancesWithoutIncidentCount` | `Int64` | Total number of currently active process instances of this definition that do not have incidents. | | `ActiveInstancesWithIncidentCount` | `Int64` | Total number of currently active process instances of this definition that have at least one incident. | ## ProcessDefinitionInstanceVersionStatisticsFilter Process definition instance version statistics search filter. ```csharp public sealed class ProcessDefinitionInstanceVersionStatisticsFilter ``` | Property | Type | Description | | --------------------- | --------------------- | -------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The ID of the process definition to retrieve version statistics for. | | `TenantId` | `Nullable` | Tenant ID of this process definition. | ## ProcessDefinitionInstanceVersionStatisticsQuery ```csharp public sealed class ProcessDefinitionInstanceVersionStatisticsQuery ``` | Property | Type | Description | | -------- | ------------------------------------------------------------------ | ------------------------------------------------------------------ | | `Page` | `OffsetPagination` | Pagination criteria. | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ProcessDefinitionInstanceVersionStatisticsFilter` | The process definition instance version statistics search filters. | ## ProcessDefinitionInstanceVersionStatisticsQueryResult ```csharp public sealed class ProcessDefinitionInstanceVersionStatisticsQueryResult ``` | Property | Type | Description | | -------- | -------------------------------------------------------- | ---------------------------------------------------------- | | `Items` | `List` | The process definition instance version statistics result. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessDefinitionInstanceVersionStatisticsQuerySortRequest ```csharp public sealed class ProcessDefinitionInstanceVersionStatisticsQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------------------------------- | --------------------------------------------- | | `Field` | `ProcessDefinitionInstanceVersionStatisticsQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ProcessDefinitionInstanceVersionStatisticsResult Process definition instance version statistics response. ```csharp public sealed class ProcessDefinitionInstanceVersionStatisticsResult ``` | Property | Type | Description | | ------------------------------------- | ---------------------- | --------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The ID associated with the process definition. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The unique key of the process definition. | | `ProcessDefinitionName` | `String` | The name of the process definition. | | `TenantId` | `TenantId` | The tenant ID associated with the process definition. | | `ProcessDefinitionVersion` | `Int32` | The version number of the process definition. | | `ActiveInstancesWithIncidentCount` | `Int64` | The number of active process instances for this version that currently have incidents. | | `ActiveInstancesWithoutIncidentCount` | `Int64` | The number of active process instances for this version that do not have any incidents. | ## ProcessDefinitionKeyExactMatch Matches the value exactly. ```csharp public readonly record struct ProcessDefinitionKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ProcessDefinitionKeyFilterProperty ProcessDefinitionKey property with full advanced search capabilities. ```csharp public sealed class ProcessDefinitionKeyFilterProperty ``` | Property | Type | Description | | ------------ | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## ProcessDefinitionMessageSubscriptionStatisticsQuery ```csharp public sealed class ProcessDefinitionMessageSubscriptionStatisticsQuery ``` | Property | Type | Description | | -------- | --------------------------- | --------------------------------- | | `Page` | `CursorForwardPagination` | Search cursor pagination. | | `Filter` | `MessageSubscriptionFilter` | The message subscription filters. | ## ProcessDefinitionMessageSubscriptionStatisticsQueryResult ```csharp public sealed class ProcessDefinitionMessageSubscriptionStatisticsQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------------------------ | ---------------------------------------------------------------- | | `Items` | `List` | The matching process definition message subscription statistics. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessDefinitionMessageSubscriptionStatisticsResult ```csharp public sealed class ProcessDefinitionMessageSubscriptionStatisticsResult ``` | Property | Type | Description | | ----------------------------------------- | ---------------------- | --------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition ID associated with this message subscription. | | `TenantId` | `TenantId` | The tenant ID associated with this message subscription. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key associated with this message subscription. | | `ProcessInstancesWithActiveSubscriptions` | `Int64` | The number of process instances with active message subscriptions. | | `ActiveSubscriptions` | `Int64` | The total number of active message subscriptions for this process definition key. | ## ProcessDefinitionResult ```csharp public sealed class ProcessDefinitionResult ``` | Property | Type | Description | | ---------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | Name of this process definition. | | `ResourceName` | `String` | Resource name for this process definition. | | `Version` | `Int32` | Version of this process definition. | | `VersionTag` | `String` | Version tag of this process definition. | | `ProcessDefinitionId` | `ProcessDefinitionId` | Process definition ID of this process definition. | | `TenantId` | `TenantId` | Tenant ID of this process definition. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key for this process definition. | | `HasStartForm` | `Boolean` | Indicates whether the start event of the process has an associated Form Key. | | `State` | `ProcessDefinitionResultState` | The state of this process definition. `DRAINING` indicates the definition is being deleted but still has active process instances draining before it is removed. | ## ProcessDefinitionSearchQuery ```csharp public sealed class ProcessDefinitionSearchQuery ``` | Property | Type | Description | | -------- | ----------------------------------------------- | -------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ProcessDefinitionFilter` | The process definition search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ProcessDefinitionSearchQueryResult ```csharp public sealed class ProcessDefinitionSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching process definitions. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessDefinitionSearchQuerySortRequest ```csharp public sealed class ProcessDefinitionSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------------- | --------------------------------------------- | | `Field` | `ProcessDefinitionSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ProcessDefinitionStatisticsFilter Process definition statistics search filter. ```csharp public sealed class ProcessDefinitionStatisticsFilter ``` | Property | Type | Description | | ---------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `StartDate` | `DateTimeFilterProperty` | The start date. | | `EndDate` | `DateTimeFilterProperty` | The end date. | | `State` | `ProcessInstanceStateFilterProperty` | The process instance state. | | `HasIncident` | `Nullable` | Whether this process instance has a related incident or not. | | `SuspendedDate` | `DateTimeFilterProperty` | The time this process instance most recently entered the SUSPENDED state. This is cleared (null) again once the process instance is resumed. | | `TenantId` | `StringFilterProperty` | The tenant id. | | `Variables` | `List` | The process instance variables. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of this process instance. | | `ParentProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The parent process instance key. | | `ParentElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The parent element instance key. | | `BatchOperationId` | `StringFilterProperty` | The batch operation id. **Deprecated**: Use `batchOperationKey` instead. This field will be removed in a future release. If both `batchOperationId` and `batchOperationKey` are provided, the request will be rejected with a 400 error. | | `BatchOperationKey` | `StringFilterProperty` | The batch operation key. | | `ErrorMessage` | `StringFilterProperty` | The error message related to the process. | | `HasRetriesLeft` | `Nullable` | Whether the process has failed jobs with retries left. | | `ElementInstanceState` | `ElementInstanceStateFilterProperty` | The state of the element instances associated with the process instance. | | `ElementId` | `StringFilterProperty` | The element id associated with the process instance. | | `HasElementInstanceIncident` | `Nullable` | Whether the element instance has an incident or not. | | `IncidentErrorHashCode` | `IntegerFilterProperty` | The incident error hash code, associated with this process. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `StringFilterProperty` | The business id associated with the process instance. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "state": "ACTIVE", "tenantId": 123, "$or": [ { "processDefinitionId": "process_v1" }, { "processDefinitionId": "process_v2", "hasIncident": true } ] } ` This matches process instances that: are in ACTIVE state have tenant id equal to 123 and match either: processDefinitionId is process_v1, or processDefinitionId is process_v2 and hasIncident is true Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## ProcessDefinitionVariableNameFilter Process definition variable name filter request. ```csharp public sealed class ProcessDefinitionVariableNameFilter ``` | Property | Type | Description | | -------- | ---------------------- | -------------------------------- | | `Name` | `StringFilterProperty` | The variable name search filter. | ## ProcessDefinitionVariableNameSearchQuery Process definition variable name search query request. ```csharp public sealed class ProcessDefinitionVariableNameSearchQuery ``` | Property | Type | Description | | -------- | ------------------------------------- | ---------------------------------------------------- | | `Filter` | `ProcessDefinitionVariableNameFilter` | The process definition variable name search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ProcessDefinitionVariableNameSearchQueryResult Process definition variable name search query response. ```csharp public sealed class ProcessDefinitionVariableNameSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching variable names. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessDefinitionVariableNameSearchResult Process definition variable name search response item. ```csharp public sealed class ProcessDefinitionVariableNameSearchResult ``` | Property | Type | Description | | -------- | -------- | ------------------ | | `Name` | `String` | The variable name. | ## ProcessElementStatisticsResult Process element statistics response. ```csharp public sealed class ProcessElementStatisticsResult ``` | Property | Type | Description | | ----------- | ----------- | ------------------------------------------------------- | | `ElementId` | `ElementId` | The element ID for which the results are aggregated. | | `Active` | `Int64` | The total number of active instances of the element. | | `Canceled` | `Int64` | The total number of canceled instances of the element. | | `Incidents` | `Int64` | The total number of incidents for the element. | | `Completed` | `Int64` | The total number of completed instances of the element. | ## ProcessInstanceBusinessIdAssignmentInstruction The instruction describing the business id to assign to a running process instance. ```csharp public sealed class ProcessInstanceBusinessIdAssignmentInstruction ``` | Property | Type | Description | | ------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `BusinessId` | `BusinessId` | An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. | ## ProcessInstanceCallHierarchyEntry ```csharp public sealed class ProcessInstanceCallHierarchyEntry ``` | Property | Type | Description | | ----------------------- | ---------------------- | ---------------------------------------------------------------------------------------------- | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition. | | `ProcessDefinitionName` | `String` | The name of the process definition (fall backs to the process definition id if not available). | ## ProcessInstanceCancellationBatchOperationRequest The process instance filter that defines which process instances should be canceled. ```csharp public sealed class ProcessInstanceCancellationBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceCreationInstruction Instructions for creating a process instance. The process definition can be specified either by id or by key. ```csharp public abstract class ProcessInstanceCreationInstruction ``` ## ProcessInstanceCreationInstructionById ```csharp public sealed class ProcessInstanceCreationInstructionById : ProcessInstanceCreationInstruction, ITenantIdSettable ``` | Property | Type | Description | | -------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | The BPMN process id of the process definition to start an instance of. | | `ProcessDefinitionVersion` | `Nullable` | The version of the process. If omitted, the latest active version is used. | | `Variables` | `Object` | JSON object that will instantiate the variables for the root variable scope of the process instance. | | `TenantId` | `Nullable` | The tenant id of the process definition. If multi-tenancy is enabled, provide the tenant id of the process definition to start a process instance of. If multi-tenancy is disabled, don't provide this parameter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | | `StartInstructions` | `List` | List of start instructions. By default, the process instance will start at the start event. If provided, the process instance will apply start instructions after it has been created. | | `RuntimeInstructions` | `List` | Runtime instructions (alpha). List of instructions that affect the runtime behavior of the process instance. Refer to specific instruction types for more details. This parameter is an alpha feature and may be subject to change in future releases. | | `AwaitCompletion` | `Nullable` | Wait for the process instance to complete. If the process instance does not complete within the request timeout limit, a 504 response status will be returned. The process instance will continue to run in the background regardless of the timeout. Disabled by default. | | `FetchVariables` | `List` | List of variables by name to be included in the response when awaitCompletion is set to true. If empty, all visible variables in the root scope will be returned. | | `RequestTimeout` | `Nullable` | Timeout (in ms) the request waits for the process to complete. By default or when set to 0, the generic request timeout configured in the cluster is applied. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `Nullable` | An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. | ## ProcessInstanceCreationInstructionByKey ```csharp public sealed class ProcessInstanceCreationInstructionByKey : ProcessInstanceCreationInstruction, ITenantIdSettable ``` | Property | Type | Description | | -------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The unique key identifying the process definition, for example, returned for a process in the deploy resources endpoint. | | `ProcessDefinitionVersion` | `Nullable` | As the version is already identified by the `processDefinitionKey`, the value of this field is ignored. It's here for backwards-compatibility only as previous releases accepted it in request bodies. | | `Variables` | `Object` | Set of variables as JSON object to instantiate in the root variable scope of the process instance. Can include nested complex objects. | | `StartInstructions` | `List` | List of start instructions. By default, the process instance will start at the start event. If provided, the process instance will apply start instructions after it has been created. | | `RuntimeInstructions` | `List` | Runtime instructions (alpha). List of instructions that affect the runtime behavior of the process instance. Refer to specific instruction types for more details. This parameter is an alpha feature and may be subject to change in future releases. | | `TenantId` | `Nullable` | The tenant id of the process definition. If multi-tenancy is enabled, provide the tenant id of the process definition to start a process instance of. If multi-tenancy is disabled, don't provide this parameter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | | `AwaitCompletion` | `Nullable` | Wait for the process instance to complete. If the process instance does not complete within the request timeout limit, a 504 response status will be returned. The process instance will continue to run in the background regardless of the timeout. Disabled by default. | | `RequestTimeout` | `Nullable` | Timeout (in ms) the request waits for the process to complete. By default or when set to 0, the generic request timeout configured in the cluster is applied. | | `FetchVariables` | `List` | List of variables by name to be included in the response when awaitCompletion is set to true. If empty, all visible variables in the root scope will be returned. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `Nullable` | An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. | ## ProcessInstanceCreationRuntimeInstruction ```csharp public abstract class ProcessInstanceCreationRuntimeInstruction ``` ## ProcessInstanceCreationStartInstruction ```csharp public sealed class ProcessInstanceCreationStartInstruction ``` | Property | Type | Description | | ----------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ElementId` | `ElementId` | Future extensions might include: - different types of start instructions - ability to set local variables for different flow scopes For now, however, the start instruction is implicitly a "startBeforeElement" instruction | ## ProcessInstanceCreationTerminateInstruction Terminates the process instance after a specific BPMN element is completed or terminated. ```csharp public sealed class ProcessInstanceCreationTerminateInstruction : ProcessInstanceCreationRuntimeInstruction ``` | Property | Type | Description | | ---------------- | ----------- | -------------------------------------------------------------------------------------------------- | | `AfterElementId` | `ElementId` | The id of the element that, once completed or terminated, will cause the process to be terminated. | ## ProcessInstanceDeletionBatchOperationRequest The process instance filter that defines which process instances should be deleted. ```csharp public sealed class ProcessInstanceDeletionBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceElementStatisticsQueryResult Process instance element statistics query response. ```csharp public sealed class ProcessInstanceElementStatisticsQueryResult ``` | Property | Type | Description | | -------- | -------------------------------------- | ----------------------- | | `Items` | `List` | The element statistics. | ## ProcessInstanceFilter Process instance search filter. ```csharp public sealed class ProcessInstanceFilter ``` | Property | Type | Description | | ----------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition id. | | `ProcessDefinitionName` | `StringFilterProperty` | The process definition name. | | `ProcessDefinitionVersion` | `IntegerFilterProperty` | The process definition version. | | `ProcessDefinitionVersionTag` | `StringFilterProperty` | The process definition version tag. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key. | | `StartDate` | `DateTimeFilterProperty` | The start date. | | `EndDate` | `DateTimeFilterProperty` | The end date. | | `State` | `ProcessInstanceStateFilterProperty` | The process instance state. | | `HasIncident` | `Nullable` | Whether this process instance has a related incident or not. | | `SuspendedDate` | `DateTimeFilterProperty` | The time this process instance most recently entered the SUSPENDED state. This is cleared (null) again once the process instance is resumed. | | `TenantId` | `StringFilterProperty` | The tenant id. | | `Variables` | `List` | The process instance variables. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of this process instance. | | `ParentProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The parent process instance key. | | `ParentElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The parent element instance key. | | `BatchOperationId` | `StringFilterProperty` | The batch operation id. **Deprecated**: Use `batchOperationKey` instead. This field will be removed in a future release. If both `batchOperationId` and `batchOperationKey` are provided, the request will be rejected with a 400 error. | | `BatchOperationKey` | `StringFilterProperty` | The batch operation key. | | `ErrorMessage` | `StringFilterProperty` | The error message related to the process. | | `HasRetriesLeft` | `Nullable` | Whether the process has failed jobs with retries left. | | `ElementInstanceState` | `ElementInstanceStateFilterProperty` | The state of the element instances associated with the process instance. | | `ElementId` | `StringFilterProperty` | The element id associated with the process instance. | | `HasElementInstanceIncident` | `Nullable` | Whether the element instance has an incident or not. | | `IncidentErrorHashCode` | `IntegerFilterProperty` | The incident error hash code, associated with this process. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `StringFilterProperty` | The business id associated with the process instance. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "state": "ACTIVE", "tenantId": 123, "$or": [ { "processDefinitionId": "process_v1" }, { "processDefinitionId": "process_v2", "hasIncident": true } ] } ` This matches process instances that: are in ACTIVE state have tenant id equal to 123 and match either: processDefinitionId is process_v1, or processDefinitionId is process_v2 and hasIncident is true Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## ProcessInstanceFilterFields Process instance search filter. ```csharp public sealed class ProcessInstanceFilterFields ``` | Property | Type | Description | | ----------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `StringFilterProperty` | The process definition id. | | `ProcessDefinitionName` | `StringFilterProperty` | The process definition name. | | `ProcessDefinitionVersion` | `IntegerFilterProperty` | The process definition version. | | `ProcessDefinitionVersionTag` | `StringFilterProperty` | The process definition version tag. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The process definition key. | | `StartDate` | `DateTimeFilterProperty` | The start date. | | `EndDate` | `DateTimeFilterProperty` | The end date. | | `State` | `ProcessInstanceStateFilterProperty` | The process instance state. | | `HasIncident` | `Nullable` | Whether this process instance has a related incident or not. | | `SuspendedDate` | `DateTimeFilterProperty` | The time this process instance most recently entered the SUSPENDED state. This is cleared (null) again once the process instance is resumed. | | `TenantId` | `StringFilterProperty` | The tenant id. | | `Variables` | `List` | The process instance variables. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of this process instance. | | `ParentProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The parent process instance key. | | `ParentElementInstanceKey` | `ElementInstanceKeyFilterProperty` | The parent element instance key. | | `BatchOperationId` | `StringFilterProperty` | The batch operation id. **Deprecated**: Use `batchOperationKey` instead. This field will be removed in a future release. If both `batchOperationId` and `batchOperationKey` are provided, the request will be rejected with a 400 error. | | `BatchOperationKey` | `StringFilterProperty` | The batch operation key. | | `ErrorMessage` | `StringFilterProperty` | The error message related to the process. | | `HasRetriesLeft` | `Nullable` | Whether the process has failed jobs with retries left. | | `ElementInstanceState` | `ElementInstanceStateFilterProperty` | The state of the element instances associated with the process instance. | | `ElementId` | `StringFilterProperty` | The element id associated with the process instance. | | `HasElementInstanceIncident` | `Nullable` | Whether the element instance has an incident or not. | | `IncidentErrorHashCode` | `IntegerFilterProperty` | The incident error hash code, associated with this process. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `StringFilterProperty` | The business id associated with the process instance. | ## ProcessInstanceIncidentResolutionBatchOperationRequest The process instance filter that defines which process instances should have their incidents resolved. ```csharp public sealed class ProcessInstanceIncidentResolutionBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceKeyExactMatch Matches the value exactly. ```csharp public readonly record struct ProcessInstanceKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ProcessInstanceKeyFilterProperty ProcessInstanceKey property with full advanced search capabilities. ```csharp public sealed class ProcessInstanceKeyFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## ProcessInstanceMigrationBatchOperationPlan The migration instructions describe how to migrate a process instance from one process definition to another. ```csharp public sealed class ProcessInstanceMigrationBatchOperationPlan ``` | Property | Type | Description | | ---------------------------- | ------------------------------------------------ | ---------------------------------- | | `TargetProcessDefinitionKey` | `ProcessDefinitionKey` | The target process definition key. | | `MappingInstructions` | `List` | The mapping instructions. | ## ProcessInstanceMigrationBatchOperationRequest ```csharp public sealed class ProcessInstanceMigrationBatchOperationRequest ``` | Property | Type | Description | | -------------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `MigrationPlan` | `ProcessInstanceMigrationBatchOperationPlan` | The migration plan. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceMigrationInstruction The migration instructions describe how to migrate a process instance from one process definition to another. ```csharp public sealed class ProcessInstanceMigrationInstruction ``` | Property | Type | Description | | ---------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `TargetProcessDefinitionKey` | `ProcessDefinitionKey` | The key of process definition to migrate the process instance to. | | `MappingInstructions` | `List` | Element mappings from the source process instance to the target process instance. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceModificationActivateInstruction Instruction describing an element to activate. ```csharp public sealed class ProcessInstanceModificationActivateInstruction ``` | Property | Type | Description | | ---------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ElementId` | `ElementId` | The id of the element to activate. | | `VariableInstructions` | `List` | Instructions describing which variables to create or update. | | `AncestorElementInstanceKey` | `Nullable` | The key of the ancestor scope the element instance should be created in. Set to -1 to create the new element instance within an existing element instance of the flow scope. If multiple instances of the target element's flow scope exist, choose one specifically with this property by providing its key. | ## ProcessInstanceModificationBatchOperationRequest The process instance filter to define on which process instances tokens should be moved, and new element instances should be activated or terminated. ```csharp public sealed class ProcessInstanceModificationBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `MoveInstructions` | `List` | Instructions for moving tokens between elements. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceModificationInstruction ```csharp public sealed class ProcessInstanceModificationInstruction ``` | Property | Type | Description | | ----------------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | | `ActivateInstructions` | `List` | Instructions describing which elements to activate in which scopes and which variables to create or update. | | `MoveInstructions` | `List` | Instructions describing which elements to move from one scope to another. | | `TerminateInstructions` | `List` | Instructions describing which elements to terminate. | ## ProcessInstanceModificationMoveBatchOperationInstruction Instructions describing a move operation. This instruction will terminate all active element instances at `sourceElementId` and activate a new element instance for each terminated one at `targetElementId`. The new element instances are created in the parent scope of the source element instances. ```csharp public sealed class ProcessInstanceModificationMoveBatchOperationInstruction ``` | Property | Type | Description | | ----------------- | ----------- | ---------------------- | | `SourceElementId` | `ElementId` | The source element ID. | | `TargetElementId` | `ElementId` | The target element ID. | ## ProcessInstanceModificationMoveInstruction Instruction describing a move operation. This instruction will terminate active element instances based on the sourceElementInstruction and activate a new element instance for each terminated one at targetElementId. Note that, for multi-instance activities, only the multi-instance body instances will activate new element instances at the target id. ```csharp public sealed class ProcessInstanceModificationMoveInstruction ``` | Property | Type | Description | | -------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `SourceElementInstruction` | `SourceElementInstruction` | Defines the source element identifier for the move instruction. It can either be a sourceElementId, or sourceElementInstanceKey. | | `TargetElementId` | `ElementId` | The target element id. | | `AncestorScopeInstruction` | `AncestorScopeInstruction` | Defines the ancestor scope for the created element instances. The default behavior resembles a "direct" scope instruction with an `ancestorElementInstanceKey` of `"-1"`. | | `VariableInstructions` | `List` | Instructions describing which variables to create or update. | ## ProcessInstanceModificationTerminateByIdInstruction Instruction describing which elements to terminate. The element instances are determined at runtime by the given id. ```csharp public sealed class ProcessInstanceModificationTerminateByIdInstruction : ProcessInstanceModificationTerminateInstruction ``` | Property | Type | Description | | ----------- | ----------- | ------------------------------------------------------------------------------------- | | `ElementId` | `ElementId` | The id of the elements to terminate. The element instances are determined at runtime. | ## ProcessInstanceModificationTerminateByKeyInstruction Instruction providing the key of the element instance to terminate. ```csharp public sealed class ProcessInstanceModificationTerminateByKeyInstruction : ProcessInstanceModificationTerminateInstruction ``` | Property | Type | Description | | -------------------- | -------------------- | --------------------------------------------- | | `ElementInstanceKey` | `ElementInstanceKey` | The key of the element instance to terminate. | ## ProcessInstanceModificationTerminateInstruction Instruction describing which elements to terminate. ```csharp public abstract class ProcessInstanceModificationTerminateInstruction ``` ## ProcessInstanceReference ```csharp public sealed class ProcessInstanceReference ``` | Property | Type | Description | | ---------------------- | ---------------------- | ---------------------------------------- | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the created process instance. | ## ProcessInstanceResult Process instance search response item. ```csharp public sealed class ProcessInstanceResult ``` | Property | Type | Description | | ----------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProcessDefinitionId` | `ProcessDefinitionId` | Id of a process definition, from the model. Only ids of process definitions that are deployed are useful. | | `ProcessDefinitionName` | `String` | The process definition name. | | `ProcessDefinitionVersion` | `Int32` | The process definition version. | | `ProcessDefinitionVersionTag` | `String` | The process definition version tag. | | `StartDate` | `DateTimeOffset` | The start time of the process instance. | | `EndDate` | `Nullable` | The completion or termination time of the process instance. | | `State` | `ProcessInstanceStateEnum` | Process instance states | | `SuspendedDate` | `Nullable` | The time this process instance most recently entered the `SUSPENDED` state. This is `null` if the process instance is not currently suspended. | | `HasIncident` | `Boolean` | Whether this process instance has a related incident or not. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of this process instance. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key. | | `ParentProcessInstanceKey` | `Nullable` | The parent process instance key. | | `ParentElementInstanceKey` | `Nullable` | The parent element instance key. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `BusinessId` | `Nullable` | The business id associated with this process instance. | ## ProcessInstanceResumptionBatchOperationRequest The process instance filter that defines which process instances should be resumed. ```csharp public sealed class ProcessInstanceResumptionBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceSearchQuery Process instance search request. ```csharp public sealed class ProcessInstanceSearchQuery ``` | Property | Type | Description | | -------- | --------------------------------------------- | ------------------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ProcessInstanceFilter` | The process instance search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ProcessInstanceSearchQueryResult Process instance search response. ```csharp public sealed class ProcessInstanceSearchQueryResult ``` | Property | Type | Description | | -------- | ----------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching process instances. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ProcessInstanceSearchQuerySortRequest ```csharp public sealed class ProcessInstanceSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------------- | --------------------------------------------- | | `Field` | `ProcessInstanceSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## ProcessInstanceSequenceFlowResult Process instance sequence flow result. ```csharp public sealed class ProcessInstanceSequenceFlowResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `SequenceFlowId` | `String` | The sequence flow id. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of this process instance. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The process definition key. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The process definition id. | | `ElementId` | `ElementId` | The element id for this sequence flow, as provided in the BPMN process. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | ## ProcessInstanceSequenceFlowsQueryResult Process instance sequence flows query response. ```csharp public sealed class ProcessInstanceSequenceFlowsQueryResult ``` | Property | Type | Description | | -------- | ----------------------------------------- | ------------------- | | `Items` | `List` | The sequence flows. | ## ProcessInstanceStateExactMatch Matches the value exactly. ```csharp public readonly record struct ProcessInstanceStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ProcessInstanceStateFilterProperty ProcessInstanceStateEnum property with full advanced search capabilities. ```csharp public sealed class ProcessInstanceStateFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## ProcessInstanceSuspensionBatchOperationRequest The process instance filter that defines which process instances should be suspended. ```csharp public sealed class ProcessInstanceSuspensionBatchOperationRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `Filter` | `ProcessInstanceFilter` | The process instance filter. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## ProcessInstanceWaitStateStatisticsQueryResult Process instance wait state statistics query response. ```csharp public sealed class ProcessInstanceWaitStateStatisticsQueryResult ``` | Property | Type | Description | | -------- | ------------------------------------------------ | -------------------------- | | `Items` | `List` | The wait state statistics. | ## ProcessInstanceWaitStateStatisticsResult Process instance wait state statistics response item. ```csharp public sealed class ProcessInstanceWaitStateStatisticsResult ``` | Property | Type | Description | | -------------- | ----------- | -------------------------------------------------------- | | `ElementId` | `ElementId` | The element id for which the wait states are aggregated. | | `WaitingCount` | `Int64` | The total number of waiting instances of the element. | ## RebalanceCancellationResponse Response to a rebalance cancellation request. ```csharp public sealed class RebalanceCancellationResponse ``` | Property | Type | Description | | ------------ | --------- | -------------------------------------- | | `WasRunning` | `Boolean` | Whether there was a rebalance to stop. | ## ResolvedSecret ```csharp public sealed class ResolvedSecret ``` | Property | Type | Description | | ----------- | -------- | ------------------------------------------------------------- | | `Reference` | `String` | The resolved secret reference of the form `camunda.secrets.`. | | `Value` | `String` | The resolved secret value. | ## ResourceFilter Resource search filter. ```csharp public sealed class ResourceFilter ``` | Property | Type | Description | | --------------- | ----------------------------- | -------------------------------- | | `ResourceKey` | `ResourceKeyFilterProperty` | The key for this resource. | | `ResourceName` | `StringFilterProperty` | Resource name of this resource. | | `ResourceId` | `StringFilterProperty` | Resource ID of this resource. | | `Version` | `IntegerFilterProperty` | Version of this resource. | | `VersionTag` | `StringFilterProperty` | Version tag of this resource. | | `DeploymentKey` | `DeploymentKeyFilterProperty` | Deployment key of this resource. | | `TenantId` | `Nullable` | Tenant ID of this resource. | ## ResourceKeyExactMatch Matches the value exactly. ```csharp public readonly record struct ResourceKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ResourceKeyFilterProperty ResourceKey property with full advanced search capabilities. ```csharp public sealed class ResourceKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## ResourceResult ```csharp public sealed class ResourceResult ``` | Property | Type | Description | | -------------- | ------------- | ------------------------------------------------------ | | `ResourceName` | `String` | The resource name from which this resource was parsed. | | `Version` | `Int32` | The assigned resource version. | | `VersionTag` | `String` | The version tag of this resource. | | `ResourceId` | `String` | The resource ID of this resource. | | `TenantId` | `TenantId` | The tenant ID of this resource. | | `ResourceKey` | `ResourceKey` | The unique key of this resource. | ## ResourceSearchQuery ```csharp public sealed class ResourceSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------- | ---------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `ResourceFilter` | The resource search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## ResourceSearchQueryResult ```csharp public sealed class ResourceSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching resources. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## ResourceSearchQuerySortRequest ```csharp public sealed class ResourceSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `ResourceSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## RestoreBrokerStatus The restore status of a single broker. ```csharp public sealed class RestoreBrokerStatus ``` | Property | Type | Description | | --------------------- | ------------------------------ | --------------------------------------------------------------------- | | `BrokerId` | `String` | The ID of the broker, including its zone if it belongs to one. | | `PartitionsRestored` | `Int32` | The number of the broker's partitions that have been restored so far. | | `PartitionsToRestore` | `Int32` | The total number of the broker's partitions to restore. | | `Partitions` | `List` | The per-partition restore status for this broker. | ## RestorePartitionStatus The restore status of a single partition on a broker. ```csharp public sealed class RestorePartitionStatus ``` | Property | Type | Description | | ------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------- | | `PartitionId` | `Int32` | The ID of the partition. | | `State` | `RestorePartitionStatusState` | The restore state of the partition. | | `BackupIds` | `List` | The IDs of the backups this partition is restored from. | | `CompletedAt` | `Nullable` | The time the partition was restored, as an ISO 8601 timestamp; null unless the partition state is `RESTORED`. | ## RestoreRequest Describes a restore request. Provide either a list of backup IDs or a time range (`from`/`to`) that selects the backups to restore; the two are mutually exclusive. ```csharp public sealed class RestoreRequest ``` | Property | Type | Description | | ----------- | -------------------------- | ---------------------------------------------------------------------- | | `From` | `Nullable` | The start of the time range to restore from, as an ISO 8601 timestamp. | | `To` | `Nullable` | The end of the time range to restore from, as an ISO 8601 timestamp. | | `BackupIds` | `List` | The IDs of the backups to restore from, one per partition. | ## RestoreStatusResponse The status of the restore that is currently in progress. ```csharp public sealed class RestoreStatusResponse ``` | Property | Type | Description | | ----------- | ----------------------------- | ------------------------------------------------------- | | `Status` | `RestoreStatusResponseStatus` | The overall status of the restore. | | `ChangeId` | `String` | The ID of the cluster change that performs the restore. | | `StartedAt` | `Nullable` | The time the restore started, as an ISO 8601 timestamp. | | `Brokers` | `List` | The per-broker restore status. | ## ResumeProcessInstanceRequest ```csharp public sealed class ResumeProcessInstanceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## RetryDecision ```csharp public readonly record struct RetryDecision : IEquatable ``` | Property | Type | Description | | ----------- | --------- | ----------- | | `Retryable` | `Boolean` | | | `Reason` | `String` | | ## RoleClientResult ```csharp public sealed class RoleClientResult ``` | Property | Type | Description | | ---------- | ---------- | --------------------- | | `ClientId` | `ClientId` | The ID of the client. | ## RoleClientSearchQueryRequest ```csharp public sealed class RoleClientSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## RoleClientSearchQuerySortRequest ```csharp public sealed class RoleClientSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------------- | --------------------------------------------- | | `Field` | `RoleClientSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## RoleClientSearchResult ```csharp public sealed class RoleClientSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching clients. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## RoleCreateRequest ```csharp public sealed class RoleCreateRequest ``` | Property | Type | Description | | ------------- | -------- | --------------------------------- | | `RoleId` | `RoleId` | The ID of the new role. | | `Name` | `String` | The display name of the new role. | | `Description` | `String` | The description of the new role. | ## RoleCreateResult ```csharp public sealed class RoleCreateResult ``` | Property | Type | Description | | ------------- | -------- | ------------------------------------- | | `RoleId` | `RoleId` | The ID of the created role. | | `Name` | `String` | The display name of the created role. | | `Description` | `String` | The description of the created role. | ## RoleFilter Role filter request ```csharp public sealed class RoleFilter ``` | Property | Type | Description | | -------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `RoleId` | `StringFilterProperty` | The role ID search filters. | | `Name` | `StringFilterProperty` | The role name search filters. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "name": "Admin", "$or": [ { "roleId": "role-1" }, { "roleId": "role-2" } ] } ` This matches roles that: have name equal to Admin and match either: roleId is role-1, or roleId is role-2 Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## RoleFilterFields Role filter request ```csharp public sealed class RoleFilterFields ``` | Property | Type | Description | | -------- | ---------------------- | ----------------------------- | | `RoleId` | `StringFilterProperty` | The role ID search filters. | | `Name` | `StringFilterProperty` | The role name search filters. | ## RoleGroupResult ```csharp public sealed class RoleGroupResult ``` | Property | Type | Description | | --------- | --------- | -------------------- | | `GroupId` | `GroupId` | The id of the group. | ## RoleGroupSearchQueryRequest ```csharp public sealed class RoleGroupSearchQueryRequest ``` | Property | Type | Description | | -------- | --------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## RoleGroupSearchQuerySortRequest ```csharp public sealed class RoleGroupSearchQuerySortRequest ``` | Property | Type | Description | | -------- | -------------------------------------- | --------------------------------------------- | | `Field` | `RoleGroupSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## RoleGroupSearchResult ```csharp public sealed class RoleGroupSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching groups. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## RoleId The unique identifier of a role. ```csharp public readonly record struct RoleId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## RoleMappingRuleSearchResult ```csharp public sealed class RoleMappingRuleSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching mapping rules. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## RoleResult Role search response item. ```csharp public sealed class RoleResult ``` | Property | Type | Description | | ------------- | -------- | ---------------------------- | | `Name` | `String` | The role name. | | `RoleId` | `RoleId` | The role id. | | `Description` | `String` | The description of the role. | ## RoleSearchQueryRequest Role search request. ```csharp public sealed class RoleSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------- | ------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `RoleFilter` | The role search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## RoleSearchQueryResult Role search response. ```csharp public sealed class RoleSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching roles. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## RoleSearchQuerySortRequest ```csharp public sealed class RoleSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------- | --------------------------------------------- | | `Field` | `RoleSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## RoleUpdateRequest ```csharp public sealed class RoleUpdateRequest ``` | Property | Type | Description | | ------------- | -------- | --------------------------------- | | `Name` | `String` | The display name of the new role. | | `Description` | `String` | The description of the new role. | ## RoleUpdateResult ```csharp public sealed class RoleUpdateResult ``` | Property | Type | Description | | ------------- | -------- | ------------------------------------- | | `Name` | `String` | The display name of the updated role. | | `Description` | `String` | The description of the updated role. | | `RoleId` | `RoleId` | The ID of the updated role. | ## RoleUserFilterRequest Role user filter request ```csharp public sealed class RoleUserFilterRequest ``` | Property | Type | Description | | ---------- | ---------------------- | ---------------------------- | | `Username` | `StringFilterProperty` | The username search filters. | ## RoleUserResult ```csharp public sealed class RoleUserResult ``` | Property | Type | Description | | ---------- | ---------- | -------------------------- | | `Username` | `Username` | The unique name of a user. | ## RoleUserSearchQueryRequest ```csharp public sealed class RoleUserSearchQueryRequest ``` | Property | Type | Description | | -------- | -------------------------------------- | ------------------------- | | `Filter` | `RoleUserFilterRequest` | The user filter criteria. | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## RoleUserSearchQuerySortRequest ```csharp public sealed class RoleUserSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `RoleUserSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## RoleUserSearchResult ```csharp public sealed class RoleUserSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching users. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## RuntimeBackupState Information about the checkpoint and backup state of the physical tenant. ```csharp public sealed class RuntimeBackupState ``` | Property | Type | Description | | ------------------ | -------------------------------- | ------------------------------------ | | `CheckpointStates` | `List` | List of partition checkpoint states. | | `BackupStates` | `List` | List of partition backup states. | | `Ranges` | `List` | List of partition backup ranges. | ## ScopeKeyExactMatch Matches the value exactly. ```csharp public readonly record struct ScopeKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## ScopeKeyFilterProperty ScopeKey property with full advanced search capabilities. Filter by the key of the element instance or process instance that defines the scope of a variable. ```csharp public sealed class ScopeKeyFilterProperty ``` | Property | Type | Description | | ------------ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## SearchQueryPageRequest Pagination criteria. Can use offset-based pagination (from/limit) OR cursor-based pagination (after/before + limit), but not both. ```csharp public abstract class SearchQueryPageRequest ``` ## SearchQueryPageResponse Pagination information about the search results. ```csharp public sealed class SearchQueryPageResponse ``` | Property | Type | Description | | ------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `TotalItems` | `Int64` | Total items matching the criteria. | | `HasMoreTotalItems` | `Boolean` | Indicates whether the `totalItems` value has been capped due to system limits. When true, `totalItems` is a lower bound and the actual number of matching items is greater than the reported value. | | `StartCursor` | `Nullable` | The cursor value for getting the previous page of results. Use this in the `before` field of an ensuing request. | | `EndCursor` | `Nullable` | The cursor value for getting the next page of results. Use this in the `after` field of an ensuing request. | ## SearchQueryRequest ```csharp public sealed class SearchQueryRequest ``` | Property | Type | Description | | -------- | ------------------------ | -------------------- | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## SearchQueryResponse ```csharp public sealed class SearchQueryResponse ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## SecretListRequest Reserved for future filtering options. Currently takes no properties. The request body is optional: omitting it (or sending an empty object) applies no filters. ```csharp public sealed class SecretListRequest ``` ## SecretListResult The secret references the caller is authorized to see. Unbounded: the response carries the configured stores' full enumeration for the physical tenant. ```csharp public sealed class SecretListResult ``` | Property | Type | Description | | ------------ | -------------- | ----------------------------------------------------------- | | `References` | `List` | The secret references, each of the form `camunda.secrets.`. | ## SecretResolutionError ```csharp public sealed class SecretResolutionError ``` | Property | Type | Description | | ----------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Reference` | `String` | The secret reference that could not be resolved. | | `Code` | `SecretErrorCode` | The typed reason a reference could not be resolved. - `NOT_FOUND`: no secret exists for the reference. - `ACCESS_DENIED`: the caller lacks `SECRET:REVEAL` on the reference. - `INVALID_REFERENCE`: the reference is malformed, or the configured store rejected it as an invalid secret identifier. - `UNREADABLE`: the configured store could not return a value for the reference, for example because it rejected the cluster's own store credentials or the stored value could not be read. Whether the secret exists is not implied. | | `Message` | `String` | A human-readable description of the failure. Never contains the secret value; only error metadata (codes, names) is included. | ## SecretResolveRequest ```csharp public sealed class SecretResolveRequest ``` | Property | Type | Description | | ------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `References` | `List` | The secret references to resolve, each of the form `camunda.secrets.`. Duplicate references are deduplicated by the server and resolved once. At most 20 references may be requested in a single batch. | ## SecretResolveResult The per-reference outcome of a resolve request. ```csharp public sealed class SecretResolveResult ``` | Property | Type | Description | | ---------- | ----------------------------- | ------------------------------------------------------------------------ | | `Resolved` | `List` | The references that were successfully resolved. | | `Errors` | `List` | The references that could not be resolved, each with a typed error code. | ## SeededRandomSource A deterministic `IRandomSource` for tests: the same seed yields the same sequence of draws on every run, and in every Camunda SDK. The generator is SplitMix64, taking the top 53 bits of each output as a double. It is specified by the cross-SDK contract (camunda/sdk-infra#50) rather than borrowed from the platform, so a seed reproduces the same jitter regardless of runtime version or language. Draws are thread-safe. Reproducibility holds for draws made in a fixed order; if several workers draw concurrently, which of them receives which value is up to the scheduler. ```csharp public sealed class SeededRandomSource : IRandomSource ``` | Property | Type | Description | | -------- | -------- | --------------------------------------------------------------------------------------- | | `Seed` | `UInt64` | The seed this source was created with. Report it on failure to make the run replayable. | ## SetVariableRequest ```csharp public sealed class SetVariableRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Variables` | `Object` | JSON object representing the variables to set in the element’s scope. | | `Local` | `Nullable` | If set to `true`, the variables are merged strictly into the local scope (as specified by the `elementInstanceKey`). Otherwise, the variables are propagated to upper scopes and set at the outermost one. Let's consider the following example: There are two scopes '1' and '2'. Scope '1' is the parent scope of '2'. The effective variables of the scopes are: 1 => { "foo" : 2 } 2 => { "bar" : 1 } An update request with elementInstanceKey as '2', variables { "foo": 5 }, and local set to `true` leaves scope '1' unchanged and adjusts scope '2' to { "bar": 1, "foo": 5 }. By default, with local set to `false`, scope '1' will be { "foo": 5 } and scope '2' will be { "bar": 1 }. | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## SignalBroadcastRequest ```csharp public sealed class SignalBroadcastRequest : ITenantIdSettable ``` | Property | Type | Description | | ------------ | -------------------- | ------------------------------------------ | | `SignalName` | `String` | The name of the signal to broadcast. | | `Variables` | `Object` | The signal variables as a JSON object. | | `TenantId` | `Nullable` | The ID of the tenant that owns the signal. | ## SignalBroadcastResult ```csharp public sealed class SignalBroadcastResult ``` | Property | Type | Description | | ----------- | ----------- | ----------------------------------------------- | | `TenantId` | `TenantId` | The tenant ID of the signal that was broadcast. | | `SignalKey` | `SignalKey` | The key of the broadcasted signal. | ## SignalWaitStateDetails ```csharp public sealed class SignalWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | ------------ | -------- | ------------------------------------- | | `SignalName` | `String` | The name of the signal being awaited. | ## SourceElementIdInstruction Defines an instruction with a sourceElementId. The move instruction with this sourceType will terminate all active element instances with the sourceElementId and activate a new element instance for each terminated one at targetElementId. ```csharp public sealed class SourceElementIdInstruction : SourceElementInstruction ``` | Property | Type | Description | | ----------------- | ----------- | ------------------------------------------------------ | | `SourceElementId` | `ElementId` | The id of the source element for the move instruction. | ## SourceElementInstanceKeyInstruction Defines an instruction with a sourceElementInstanceKey. The move instruction with this sourceType will terminate one active element instance with the sourceElementInstanceKey and activate a new element instance at targetElementId. ```csharp public sealed class SourceElementInstanceKeyInstruction : SourceElementInstruction ``` | Property | Type | Description | | -------------------------- | -------------------- | --------------------------------------------------------- | | `SourceElementInstanceKey` | `ElementInstanceKey` | The source element instance key for the move instruction. | ## SourceElementInstruction Defines the source element identifier for the move instruction. It can either be a sourceElementId, or sourceElementInstanceKey. ```csharp public abstract class SourceElementInstruction ``` ## StartCursor The start cursor in a search query result set. ```csharp public readonly record struct StartCursor : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## StatusMetric Metric for a single job status. ```csharp public sealed class StatusMetric ``` | Property | Type | Description | | --------------- | -------------------------- | ------------------------------------------------------ | | `Count` | `Int64` | Number of jobs in this status. | | `LastUpdatedAt` | `Nullable` | ISO 8601 timestamp of the last update for this status. | ## StopResult Result of a `JobWorker.StopAsync` call. ```csharp public readonly record struct StopResult : IEquatable ``` | Property | Type | Description | | --------------- | --------- | ------------------------------------------------------------- | | `RemainingJobs` | `Int32` | Number of jobs still in-flight when stop completed. | | `TimedOut` | `Boolean` | Whether the grace period was exceeded with jobs still active. | ## StringFilterProperty String property with full advanced search capabilities. ```csharp public sealed class StringFilterProperty ``` | Property | Type | Description | | ------------ | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `String` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `String` | Checks for equality with the provided value. | | `Neq` | `String` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## SuspendProcessInstanceRequest ```csharp public sealed class SuspendProcessInstanceRequest ``` | Property | Type | Description | | -------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `OperationReference` | `Nullable` | A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. | ## SystemConfigurationResponse Envelope for all system configuration sections. Each property represents a feature area. ```csharp public sealed class SystemConfigurationResponse ``` | Property | Type | Description | | ---------------- | ------------------------------------- | -------------------------------------------------------------- | | `JobMetrics` | `JobMetricsConfigurationResponse` | Configuration for job metrics collection and export. | | `Components` | `ComponentsConfigurationResponse` | Configuration for active Camunda components in the deployment. | | `Deployment` | `DeploymentConfigurationResponse` | Configuration for deployment characteristics. | | `Authentication` | `AuthenticationConfigurationResponse` | Configuration for authentication and session management. | | `Cloud` | `CloudConfigurationResponse` | Configuration for SaaS/cloud-specific settings. | ## Tag A tag. Needs to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. ```csharp public readonly record struct Tag : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## TakeHistoryBackupRequest Request body for taking a history backup. ```csharp public sealed class TakeHistoryBackupRequest ``` | Property | Type | Description | | ---------- | ---------- | ----------------------------- | | `BackupId` | `BackupId` | The id of the backup to take. | ## TakeHistoryBackupResponse Response body for taking a history backup. ```csharp public sealed class TakeHistoryBackupResponse ``` | Property | Type | Description | | -------------------- | -------------- | -------------------------------------------------------------------- | | `BackupId` | `BackupId` | The id of the backup that has been scheduled. | | `ScheduledSnapshots` | `List` | The names of the snapshots that have been scheduled for this backup. | ## TakeRuntimeBackupRequest Request body for taking a runtime backup. ```csharp public sealed class TakeRuntimeBackupRequest ``` | Property | Type | Description | | ---------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | `BackupId` | `Nullable` | The id of the backup to take. Must be omitted if continuous backups and/or a backup or checkpoint schedule is enabled for the physical tenant. | ## TakeRuntimeBackupResponse Response body for taking a runtime backup. ```csharp public sealed class TakeRuntimeBackupResponse ``` | Property | Type | Description | | ---------- | ---------- | --------------------------------------------- | | `BackupId` | `BackupId` | The id of the backup that has been scheduled. | ## TenantClientResult ```csharp public sealed class TenantClientResult ``` | Property | Type | Description | | ---------- | ---------- | --------------------- | | `ClientId` | `ClientId` | The ID of the client. | ## TenantClientSearchQueryRequest ```csharp public sealed class TenantClientSearchQueryRequest ``` | Property | Type | Description | | -------- | ------------------------------------------ | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## TenantClientSearchQuerySortRequest ```csharp public sealed class TenantClientSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------------- | --------------------------------------------- | | `Field` | `TenantClientSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## TenantClientSearchResult ```csharp public sealed class TenantClientSearchResult ``` | Property | Type | Description | | -------- | -------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching clients. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TenantCreateRequest ```csharp public sealed class TenantCreateRequest ``` | Property | Type | Description | | ------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `TenantId` | `TenantId` | The unique ID for the tenant. Must be 31 characters or less and match `^[\w.-]{1,31}$` (word characters, `.`, `-`). The literal `` is also accepted as the default-tenant alias. | | `Name` | `String` | The name of the tenant. | | `Description` | `String` | The description of the tenant. | ## TenantCreateResult ```csharp public sealed class TenantCreateResult ``` | Property | Type | Description | | ------------- | ---------- | -------------------------------------------- | | `TenantId` | `TenantId` | The unique identifier of the created tenant. | | `Name` | `String` | The name of the tenant. | | `Description` | `String` | The description of the tenant. | ## TenantFilter Tenant filter request ```csharp public sealed class TenantFilter ``` | Property | Type | Description | | ---------- | -------------------- | ------------------------------------ | | `TenantId` | `Nullable` | The unique identifier of the tenant. | | `Name` | `String` | The name of the tenant. | ## TenantGroupResult ```csharp public sealed class TenantGroupResult ``` | Property | Type | Description | | --------- | --------- | ------------- | | `GroupId` | `GroupId` | The group ID. | ## TenantGroupSearchQueryRequest ```csharp public sealed class TenantGroupSearchQueryRequest ``` | Property | Type | Description | | -------- | ----------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## TenantGroupSearchQuerySortRequest ```csharp public sealed class TenantGroupSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ---------------------------------------- | --------------------------------------------- | | `Field` | `TenantGroupSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## TenantGroupSearchResult ```csharp public sealed class TenantGroupSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching groups. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TenantId The unique identifier of the tenant. ```csharp public readonly record struct TenantId : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## TenantMappingRuleSearchResult ```csharp public sealed class TenantMappingRuleSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching mapping rules. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TenantResult Tenant search response item. ```csharp public sealed class TenantResult ``` | Property | Type | Description | | ------------- | ---------- | ------------------------------------ | | `Name` | `String` | The tenant name. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `Description` | `String` | The tenant description. | ## TenantRoleSearchResult ```csharp public sealed class TenantRoleSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching roles. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TenantSearchQueryRequest Tenant search request ```csharp public sealed class TenantSearchQueryRequest ``` | Property | Type | Description | | -------- | ------------------------------------ | -------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `TenantFilter` | The tenant search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## TenantSearchQueryResult Tenant search response. ```csharp public sealed class TenantSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching tenants. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TenantSearchQuerySortRequest ```csharp public sealed class TenantSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ----------------------------------- | ------------------------------------------------------------------------- | | `Field` | `TenantSearchQuerySortRequestField` | The field to sort by. `key` is deprecated and should not be used anymore. | | `Order` | `Nullable` | The order in which to sort the related field. | ## TenantUpdateRequest ```csharp public sealed class TenantUpdateRequest ``` | Property | Type | Description | | ------------- | -------- | ---------------------------------- | | `Name` | `String` | The new name of the tenant. | | `Description` | `String` | The new description of the tenant. | ## TenantUpdateResult ```csharp public sealed class TenantUpdateResult ``` | Property | Type | Description | | ------------- | ---------- | -------------------------------------------- | | `TenantId` | `TenantId` | The unique identifier of the updated tenant. | | `Name` | `String` | The name of the tenant. | | `Description` | `String` | The description of the tenant. | ## TenantUserResult ```csharp public sealed class TenantUserResult ``` | Property | Type | Description | | ---------- | ---------- | -------------------------- | | `Username` | `Username` | The unique name of a user. | ## TenantUserSearchQueryRequest ```csharp public sealed class TenantUserSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------------- | -------------------- | | `Sort` | `List` | Sort field criteria. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## TenantUserSearchQuerySortRequest ```csharp public sealed class TenantUserSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------------- | --------------------------------------------- | | `Field` | `TenantUserSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## TenantUserSearchResult ```csharp public sealed class TenantUserSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching users. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## TimerWaitStateDetails ```csharp public sealed class TimerWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | ------------- | ----------------- | --------------------------------------------------------------------------------- | | `DueDate` | `Nullable` | When the timer is due, as a UNIX epoch timestamp in milliseconds. | | `Repetitions` | `Nullable` | The number of remaining timer repetitions (-1 for infinite, 0 for non-repeating). | ## TlsConfig TLS / mTLS configuration for custom certificates. ```csharp public sealed class TlsConfig ``` | Property | Type | Description | | --------------- | -------- | --------------------------------------------------- | | `Cert` | `String` | Inline PEM client certificate (overrides CertPath). | | `CertPath` | `String` | Path to PEM client certificate file. | | `Key` | `String` | Inline PEM client private key (overrides KeyPath). | | `KeyPath` | `String` | Path to PEM client private key file. | | `Ca` | `String` | Inline PEM CA bundle (overrides CaPath). | | `CaPath` | `String` | Path to PEM CA certificate bundle file. | | `KeyPassphrase` | `String` | Passphrase for an encrypted private key. | ## TopologyResponse The response of a topology request. ```csharp public sealed class TopologyResponse ``` | Property | Type | Description | | ----------------------- | ------------------ | ------------------------------------------------------- | | `Brokers` | `List` | A list of brokers that are part of this cluster. | | `ClusterId` | `String` | The cluster Id. | | `ClusterSize` | `Int32` | The number of brokers in the cluster. | | `PartitionsCount` | `Int32` | The number of partitions are spread across the cluster. | | `ReplicationFactor` | `Int32` | The configured replication factor for this cluster. | | `GatewayVersion` | `String` | The version of the Zeebe Gateway. | | `LastCompletedChangeId` | `String` | ID of the last completed change | ## TypedVariables Extension methods for deserializing Camunda variable and custom header payloads from untyped `object` properties into strongly-typed DTOs. Camunda API responses return `variables` and `customHeaders` as `object` properties which, at runtime, are `Json.JsonElement` values. These extensions let you opt in to typed deserialization: ```csharp // Define your domain DTO public record OrderVars(string OrderId, decimal Amount); // Deserialize variables from a process instance result var result = await client.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionById { ProcessDefinitionId = ProcessDefinitionId.AssumeExists("order-process"), Variables = new OrderVars("ord-123", 99.99m), // input: just assign your DTO }); var vars = result.Variables.DeserializeAs(); // output: typed extraction ``` For input (sending variables), simply assign your DTO to the `Variables` property — `System.Text.Json` serializes the runtime type automatically. For output (receiving variables), call `TypedVariables.DeserializeAs` on the `Variables` or `CustomHeaders` property to deserialize the underlying `Json.JsonElement` into your DTO type. ```csharp public static class TypedVariables ``` ## TypedVariablesException Base class for all errors raised by the DTO-driven typed variable map feature (`CamundaClient.SearchVariablesAsDtoAsync`). ```csharp public class TypedVariablesException : Exception, ISerializable ``` ## UpdateClusterVariableRequest ```csharp public sealed class UpdateClusterVariableRequest ``` | Property | Type | Description | | ---------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Value` | `Object` | The new value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses. | | `Metadata` | `Dictionary` | A generic key-value metadata bag attached to the cluster variable. Values must be strings or numbers. Limited to 100 entries and a configurable maximum serialized size (default: 100 entries at max key length of a cluster variable name (256 chars) plus the maximum value length, 8192 characters). | ## UpdateGlobalTaskListenerRequest ```csharp public sealed class UpdateGlobalTaskListenerRequest ``` | Property | Type | Description | | ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `EventTypes` | `List` | List of user task event types that trigger the listener. | | `Type` | `String` | The name of the job type, used as a reference to specify which job workers request the respective listener job. | | `Retries` | `Nullable` | Number of retries for the listener job. | | `AfterNonGlobal` | `Nullable` | Whether the listener should run after model-level listeners. | | `Priority` | `Nullable` | The priority of the listener. Higher priority listeners are executed before lower priority ones. | ## UsageMetricsResponse ```csharp public sealed class UsageMetricsResponse ``` | Property | Type | Description | | ------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------- | | `ActiveTenants` | `Int64` | The amount of active tenants. | | `Tenants` | `Dictionary` | The usage metrics by tenants. Only available if request `withTenants` query parameter was `true`. | | `ProcessInstances` | `Int64` | The amount of created root process instances. | | `DecisionInstances` | `Int64` | The amount of executed decision instances. | | `Assignees` | `Int64` | The amount of unique active task users. | ## UsageMetricsResponseItem ```csharp public sealed class UsageMetricsResponseItem ``` | Property | Type | Description | | ------------------- | ------- | --------------------------------------------- | | `ProcessInstances` | `Int64` | The amount of created root process instances. | | `DecisionInstances` | `Int64` | The amount of executed decision instances. | | `Assignees` | `Int64` | The amount of unique active task users. | ## UseSourceParentKeyInstruction Instructs the engine to use the source's direct parent key as the ancestor scope key for the target element. This is a simpler alternative to `inferred` that skips hierarchy traversal and directly uses the source's parent key. This is useful when the source and target elements are siblings within the same flow scope. ```csharp public sealed class UseSourceParentKeyInstruction : AncestorScopeInstruction ``` ## UserCreateResult ```csharp public sealed class UserCreateResult ``` | Property | Type | Description | | ---------- | ---------- | --------------------------------- | | `Username` | `Username` | The username of the created user. | | `Name` | `String` | The name of the user. | | `Email` | `String` | The email of the user. | ## UserFilter User search filter. ```csharp public sealed class UserFilter ``` | Property | Type | Description | | ---------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Username` | `StringFilterProperty` | The username of the user. | | `Name` | `StringFilterProperty` | The name of the user. | | `Email` | `StringFilterProperty` | The email of the user. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "$or": [ { "username": "user-1" }, { "username": "user-2" } ] } ` This matches users whose username is user-1 or user-2. Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## UserFilterFields User search filter fields. ```csharp public sealed class UserFilterFields ``` | Property | Type | Description | | ---------- | ---------------------- | ------------------------- | | `Username` | `StringFilterProperty` | The username of the user. | | `Name` | `StringFilterProperty` | The name of the user. | | `Email` | `StringFilterProperty` | The email of the user. | ## UserRequest ```csharp public sealed class UserRequest ``` | Property | Type | Description | | ---------- | ---------- | ----------------------------- | | `Password` | `String` | The password of the user. | | `Username` | `Username` | The username of the new user. | | `Name` | `String` | The name of the user. | | `Email` | `String` | The email of the user. | ## UserResult ```csharp public sealed class UserResult ``` | Property | Type | Description | | ---------- | ---------- | ------------------------- | | `Username` | `Username` | The username of the user. | | `Name` | `String` | The name of the user. | | `Email` | `String` | The email of the user. | ## UserSearchQueryRequest ```csharp public sealed class UserSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------- | ------------------------ | | `Sort` | `List` | Sort field criteria. | | `Filter` | `UserFilter` | The user search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## UserSearchQuerySortRequest ```csharp public sealed class UserSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------- | --------------------------------------------- | | `Field` | `UserSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## UserSearchResult ```csharp public sealed class UserSearchResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching users. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## UserTaskAssignmentRequest ```csharp public sealed class UserTaskAssignmentRequest ``` | Property | Type | Description | | --------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Assignee` | `String` | The assignee for the user task. The assignee must not be empty or `null`. | | `AllowOverride` | `Nullable` | By default, the task is reassigned if it was already assigned. Set this to `false` to return an error in such cases. The task must then first be unassigned to be assigned again. Use this when you have users picking from group task queues to prevent race conditions. | | `Action` | `String` | A custom action value that will be accessible from user task events resulting from this endpoint invocation. If not provided, it will default to "assign". | ## UserTaskAuditLogFilter The user task audit log search filters. ```csharp public sealed class UserTaskAuditLogFilter ``` | Property | Type | Description | | --------------- | --------------------------------- | ------------------------------------------- | | `OperationType` | `OperationTypeFilterProperty` | The audit log operation type search filter. | | `Result` | `AuditLogResultFilterProperty` | The audit log result search filter. | | `Timestamp` | `DateTimeFilterProperty` | The audit log timestamp filter. | | `ActorType` | `AuditLogActorTypeFilterProperty` | The actor type search filter. | | `ActorId` | `StringFilterProperty` | The actor ID search filter. | ## UserTaskAuditLogSearchQueryRequest User task search query request. ```csharp public sealed class UserTaskAuditLogSearchQueryRequest ``` | Property | Type | Description | | -------- | -------------------------------------- | --------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `UserTaskAuditLogFilter` | The user task audit log search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## UserTaskCompletionRequest ```csharp public sealed class UserTaskCompletionRequest ``` | Property | Type | Description | | ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Variables` | `Object` | The variables to complete the user task with. | | `Action` | `String` | A custom action value that will be accessible from user task events resulting from this endpoint invocation. If not provided, it will default to "complete". | ## UserTaskEffectiveVariableSearchQueryRequest User task effective variable search query request. Uses offset-based pagination only. ```csharp public sealed class UserTaskEffectiveVariableSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------------------- | -------------------------------------- | | `Page` | `OffsetPagination` | Pagination parameters. | | `Sort` | `List` | Sort field criteria. | | `Filter` | `UserTaskVariableFilter` | The user task variable search filters. | ## UserTaskFilter User task filter request. ```csharp public sealed class UserTaskFilter ``` | Property | Type | Description | | -------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `State` | `UserTaskStateFilterProperty` | The user task state. | | `IsSuspended` | `Nullable` | Whether the user task is suspended because its owning process instance is suspended. | | `Assignee` | `StringFilterProperty` | The assignee of the user task. | | `BusinessId` | `StringFilterProperty` | The business ID of the owning process instance the user task belongs to. This only works for user tasks created with 8.10 and onwards. Tasks from prior versions don't contain this data and cannot be found. | | `Priority` | `IntegerFilterProperty` | The priority of the user task. | | `ElementId` | `Nullable` | The element ID of the user task. | | `Name` | `StringFilterProperty` | The task name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found. | | `CandidateGroup` | `StringFilterProperty` | The candidate group for this user task. | | `CandidateUser` | `StringFilterProperty` | The candidate user for this user task. | | `TenantId` | `StringFilterProperty` | Tenant ID of this user task. | | `ProcessDefinitionId` | `ProcessDefinitionIdFilterProperty` | The ID of the process definition. | | `CreationDate` | `DateTimeFilterProperty` | The user task creation date. | | `CompletionDate` | `DateTimeFilterProperty` | The user task completion date. | | `FollowUpDate` | `DateTimeFilterProperty` | The user task follow-up date. | | `DueDate` | `DateTimeFilterProperty` | The user task due date. | | `ProcessInstanceVariables` | `List` | The variables of the process instance. | | `LocalVariables` | `List` | The local variables of the user task. | | `UserTaskKey` | `Nullable` | The key for this user task. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The key of the process definition. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of the process instance. | | `ElementInstanceKey` | `Nullable` | The key of the element instance. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `Or` | `List` | Defines a list of alternative filter groups combined using OR logic. Each object in the array is evaluated independently, and the filter matches if any one of them is satisfied. Top-level fields and the `$or` clause are combined using AND logic — meaning: (top-level filters) AND (any of the `$or` filters) must match. Example: `json { "assignee": "user1", "$or": [ { "candidateGroup": "groupA" }, { "candidateUser": "user2" } ] } ` This matches user tasks that: are assigned to user1 and match either: candidateGroup is groupA, or candidateUser is user2 Note: Using complex $or conditions may impact performance, use with caution in high-volume environments. | ## UserTaskFilterFields User task filter fields. ```csharp public sealed class UserTaskFilterFields ``` | Property | Type | Description | | -------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `State` | `UserTaskStateFilterProperty` | The user task state. | | `IsSuspended` | `Nullable` | Whether the user task is suspended because its owning process instance is suspended. | | `Assignee` | `StringFilterProperty` | The assignee of the user task. | | `BusinessId` | `StringFilterProperty` | The business ID of the owning process instance the user task belongs to. This only works for user tasks created with 8.10 and onwards. Tasks from prior versions don't contain this data and cannot be found. | | `Priority` | `IntegerFilterProperty` | The priority of the user task. | | `ElementId` | `Nullable` | The element ID of the user task. | | `Name` | `StringFilterProperty` | The task name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found. | | `CandidateGroup` | `StringFilterProperty` | The candidate group for this user task. | | `CandidateUser` | `StringFilterProperty` | The candidate user for this user task. | | `TenantId` | `StringFilterProperty` | Tenant ID of this user task. | | `ProcessDefinitionId` | `ProcessDefinitionIdFilterProperty` | The ID of the process definition. | | `CreationDate` | `DateTimeFilterProperty` | The user task creation date. | | `CompletionDate` | `DateTimeFilterProperty` | The user task completion date. | | `FollowUpDate` | `DateTimeFilterProperty` | The user task follow-up date. | | `DueDate` | `DateTimeFilterProperty` | The user task due date. | | `ProcessInstanceVariables` | `List` | The variables of the process instance. | | `LocalVariables` | `List` | The local variables of the user task. | | `UserTaskKey` | `Nullable` | The key for this user task. | | `ProcessDefinitionKey` | `ProcessDefinitionKeyFilterProperty` | The key of the process definition. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of the process instance. | | `ElementInstanceKey` | `Nullable` | The key of the element instance. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | ## UserTaskProperties Contains properties of a user task. ```csharp public sealed class UserTaskProperties ``` | Property | Type | Description | | ------------------- | ----------------------- | ------------------------------------------------------- | | `Action` | `String` | The action performed on the user task. | | `Assignee` | `String` | The user assigned to the task. | | `CandidateGroups` | `List` | The groups eligible to claim the task. | | `CandidateUsers` | `List` | The users eligible to claim the task. | | `ChangedAttributes` | `List` | The attributes that were changed in the task. | | `DueDate` | `String` | The due date of the user task in ISO 8601 format. | | `FollowUpDate` | `String` | The follow-up date of the user task in ISO 8601 format. | | `FormKey` | `Nullable` | The key of the form associated with the user task. | | `Priority` | `Nullable` | The priority of the user task. | | `UserTaskKey` | `Nullable` | The unique key identifying the user task. | ## UserTaskResult ```csharp public sealed class UserTaskResult ``` | Property | Type | Description | | -------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | The name for this user task. | | `State` | `UserTaskStateEnum` | The state of the user task. Note: FAILED state is only for legacy job-worker-based tasks. | | `Assignee` | `String` | The assignee of the user task. | | `ElementId` | `ElementId` | The element ID of the user task. | | `CandidateGroups` | `List` | The candidate groups for this user task. | | `CandidateUsers` | `List` | The candidate users for this user task. | | `ProcessDefinitionId` | `ProcessDefinitionId` | The ID of the process definition. | | `CreationDate` | `DateTimeOffset` | The creation date of a user task. | | `CompletionDate` | `Nullable` | The completion date of a user task. | | `FollowUpDate` | `Nullable` | The follow date of a user task. | | `DueDate` | `Nullable` | The due date of a user task. | | `TenantId` | `TenantId` | The unique identifier of the tenant. | | `ExternalFormReference` | `String` | The external form reference. | | `ProcessDefinitionVersion` | `Int32` | The version of the process definition. | | `CustomHeaders` | `Dictionary` | Custom headers for the user task. | | `Priority` | `Int32` | The priority of a user task. The higher the value the higher the priority. | | `IsSuspended` | `Boolean` | Whether the user task is suspended because its owning process instance is suspended. | | `UserTaskKey` | `UserTaskKey` | The key of the user task. | | `ElementInstanceKey` | `ElementInstanceKey` | The key of the element instance. | | `ProcessName` | `String` | The name of the process definition. This is `null` if the process has no name defined. | | `ProcessDefinitionKey` | `ProcessDefinitionKey` | The key of the process definition. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | | `BusinessId` | `Nullable` | The business ID of the owning process instance, inherited when the user task was created. This is `null` for user tasks created before version 8.10, and for user tasks whose owning process instance has no business ID. | | `FormKey` | `Nullable` | The key of the form. | | `Tags` | `List` | List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | ## UserTaskSearchQuery User task search query request. ```csharp public sealed class UserTaskSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------- | ----------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `UserTaskFilter` | The user task search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## UserTaskSearchQueryResult User task search query response. ```csharp public sealed class UserTaskSearchQueryResult ``` | Property | Type | Description | | -------- | ------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching user tasks. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## UserTaskSearchQuerySortRequest ```csharp public sealed class UserTaskSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `UserTaskSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## UserTaskStateExactMatch Matches the value exactly. ```csharp public readonly record struct UserTaskStateExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## UserTaskStateFilterProperty UserTaskStateEnum property with full advanced search capabilities. ```csharp public sealed class UserTaskStateFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## UserTaskUpdateRequest ```csharp public sealed class UserTaskUpdateRequest ``` | Property | Type | Description | | ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Changeset` | `Changeset` | JSON object with changed task attribute values. The following attributes can be adjusted with this endpoint, additional attributes will be ignored: * `candidateGroups` - reset by providing an empty list * `candidateUsers` - reset by providing an empty list * `dueDate` - reset by providing an empty String * `followUpDate` - reset by providing an empty String * `priority` - minimum 0, maximum 100, default 50 Providing any of those attributes with a `null` value or omitting it preserves the persisted attribute's value. The assignee cannot be adjusted with this endpoint, use the Assign task endpoint. This ensures correct event emission for assignee changes. | | `Action` | `String` | A custom action value that will be accessible from user task events resulting from this endpoint invocation. If not provided, it will default to "update". | ## UserTaskVariableFilter The user task variable search filters. ```csharp public sealed class UserTaskVariableFilter ``` | Property | Type | Description | | -------- | ---------------------- | --------------------- | | `Name` | `StringFilterProperty` | Name of the variable. | ## UserTaskVariableSearchQueryRequest User task search query request. ```csharp public sealed class UserTaskVariableSearchQueryRequest ``` | Property | Type | Description | | -------- | ---------------------------------------------- | -------------------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `UserTaskVariableFilter` | The user task variable search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## UserTaskVariableSearchQuerySortRequest ```csharp public sealed class UserTaskVariableSearchQuerySortRequest ``` | Property | Type | Description | | -------- | --------------------------------------------- | --------------------------------------------- | | `Field` | `UserTaskVariableSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## UserTaskWaitStateDetails ```csharp public sealed class UserTaskWaitStateDetails : WaitStateDetails ``` | Property | Type | Description | | --------- | -------------------------- | -------------------------------------- | | `TaskKey` | `UserTaskKey` | The key of the user task. | | `DueDate` | `Nullable` | The due date of the user task, if set. | ## UserUpdateRequest ```csharp public sealed class UserUpdateRequest ``` | Property | Type | Description | | ---------- | -------- | -------------------------------------------------------------- | | `Password` | `String` | The password of the user. If blank, the password is unchanged. | | `Name` | `String` | The name of the user. | | `Email` | `String` | The email of the user. | ## UserUpdateResult ```csharp public sealed class UserUpdateResult ``` | Property | Type | Description | | ---------- | ---------- | --------------------------------- | | `Username` | `Username` | The username of the updated user. | | `Name` | `String` | The name of the user. | | `Email` | `String` | The email of the user. | ## Username The unique name of a user. ```csharp public readonly record struct Username : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## VariableDeserializationException Raised when a present variable value cannot be deserialized. This covers both a value that is not parseable as JSON and a syntactically valid value that cannot be bound to the requested CLR type. A missing variable is not an error (it simply does not appear in the map); a present but undeserializable value is, and is surfaced here rather than silently dropped. ```csharp public sealed class VariableDeserializationException : TypedVariablesException, ISerializable ``` | Property | Type | Description | | -------------- | -------- | -------------------------------------------------- | | `VariableName` | `String` | The variable name whose value could not be parsed. | ## VariableFilter Variable filter request. ```csharp public sealed class VariableFilter ``` | Property | Type | Description | | -------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `Name` | `StringFilterProperty` | Name of the variable. | | `Value` | `StringFilterProperty` | The value of the variable. Variable values in filters need to be in serialized JSON format. For example, a variable with string value `myValue` can be found with the filter value `"myValue"`. Consider appropriate escaping for special characters in JSON strings when constructing filter values. | | `TenantId` | `Nullable` | Tenant ID of this variable. | | `IsTruncated` | `Nullable` | Whether the value is truncated or not. | | `VariableKey` | `VariableKeyFilterProperty` | The key for this variable. | | `ScopeKey` | `ScopeKeyFilterProperty` | The key of the scope that defines where this variable is directly defined. This can be a process instance key (for process-level variables) or an element instance key (for local variables scoped to tasks, subprocesses, gateways, events, etc.). Use this filter to find variables directly defined in specific scopes. Note that this does not include variables from parent scopes that would be visible through the scope hierarchy. | | `ProcessInstanceKey` | `ProcessInstanceKeyFilterProperty` | The key of the process instance of this variable. | ## VariableKeyExactMatch Matches the value exactly. ```csharp public readonly record struct VariableKeyExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## VariableKeyFilterProperty VariableKey property with full advanced search capabilities. ```csharp public sealed class VariableKeyFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `NotIn` | `List` | Checks if the property matches none of the provided values. | ## VariableMap Result of a DTO-driven variable search (`CamundaClient.SearchVariablesAsDtoAsync`). Holds the parsed variable values keyed by their query name (the DTO member's `[JsonPropertyName]` value, or the member name transformed by the serializer's naming policy). Provides lenient, defensive access via `VariableMap.Get` / `VariableMap.Get` and a strict `VariableMap.Validate` that constructs the declared DTO and enforces required members. ```csharp public sealed class VariableMap where T : class ``` | Property | Type | Description | | -------- | ------------------------------------------ | --------------------------------------------------- | | `Raw` | `IReadOnlyDictionary` | The parsed variable values, keyed by variable name. | ## VariableResult Variable search response item. ```csharp public sealed class VariableResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Value` | `String` | Full value of this variable. | | `Name` | `String` | Name of this variable. | | `TenantId` | `TenantId` | Tenant ID of this variable. | | `VariableKey` | `VariableKey` | The key for this variable. | | `ScopeKey` | `ScopeKey` | The key of the scope where this variable is directly defined. For process-level variables, this is the process instance key. For local variables, this is the key of the specific element instance (task, subprocess, gateway, event, etc.) where the variable is directly defined. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance of this variable. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | ## VariableResultBase Variable response item. ```csharp public sealed class VariableResultBase ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | Name of this variable. | | `TenantId` | `TenantId` | Tenant ID of this variable. | | `VariableKey` | `VariableKey` | The key for this variable. | | `ScopeKey` | `ScopeKey` | The key of the scope where this variable is directly defined. For process-level variables, this is the process instance key. For local variables, this is the key of the specific element instance (task, subprocess, gateway, event, etc.) where the variable is directly defined. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance of this variable. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | ## VariableScopeCollisionException Raised when a declared variable name is returned at more than one scope. The DTO is a flat name-to-value map, but BPMN variables are scoped (process-level vs. local element scopes). When a declared variable resolves to multiple scopes the SDK cannot deterministically choose one, so it raises rather than guessing. Pass `scopeKey` to the search call to disambiguate. ```csharp public sealed class VariableScopeCollisionException : TypedVariablesException, ISerializable ``` | Property | Type | Description | | -------------- | ----------------------- | ----------------------------------------------------------------------- | | `VariableName` | `String` | The variable name that was found at multiple scopes. | | `ScopeKeys` | `IReadOnlyList` | The distinct scope keys the variable was observed at, sorted ascending. | ## VariableSearchQuery Variable search query request. ```csharp public sealed class VariableSearchQuery ``` | Property | Type | Description | | -------- | -------------------------------------- | ---------------------------- | | `Sort` | `List` | Sort field criteria. | | `Filter` | `VariableFilter` | The variable search filters. | | `Page` | `SearchQueryPageRequest` | Pagination criteria. | ## VariableSearchQueryResult Variable search query response. ```csharp public sealed class VariableSearchQueryResult ``` | Property | Type | Description | | -------- | ---------------------------- | ------------------------------------------------ | | `Items` | `List` | The matching variables. | | `Page` | `SearchQueryPageResponse` | Pagination information about the search results. | ## VariableSearchQuerySortRequest ```csharp public sealed class VariableSearchQuerySortRequest ``` | Property | Type | Description | | -------- | ------------------------------------- | --------------------------------------------- | | `Field` | `VariableSearchQuerySortRequestField` | The field to sort by. | | `Order` | `Nullable` | The order in which to sort the related field. | ## VariableSearchResult Variable search response item. ```csharp public sealed class VariableSearchResult ``` | Property | Type | Description | | ------------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Value` | `String` | Value of this variable. Can be truncated. | | `IsTruncated` | `Boolean` | Whether the value is truncated or not. | | `Name` | `String` | Name of this variable. | | `TenantId` | `TenantId` | Tenant ID of this variable. | | `VariableKey` | `VariableKey` | The key for this variable. | | `ScopeKey` | `ScopeKey` | The key of the scope where this variable is directly defined. For process-level variables, this is the process instance key. For local variables, this is the key of the specific element instance (task, subprocess, gateway, event, etc.) where the variable is directly defined. | | `ProcessInstanceKey` | `ProcessInstanceKey` | The key of the process instance of this variable. | | `RootProcessInstanceKey` | `Nullable` | The key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy. This field is only present for data belonging to process instance hierarchies created in version 8.9 or later. | ## VariableValidationException Raised by `VariableMap.Validate` when one or more required DTO members (non-nullable members, or members marked with the `required` modifier) are absent from the search result. ```csharp public sealed class VariableValidationException : TypedVariablesException, ISerializable ``` | Property | Type | Description | | ---------------------- | ----------------------- | ------------------------------------------------------------- | | `DtoType` | `Type` | The DTO type that failed validation. | | `MissingVariableNames` | `IReadOnlyList` | The variable names of the required members that were missing. | ## VariableValueFilterProperty ```csharp public sealed class VariableValueFilterProperty ``` | Property | Type | Description | | -------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | `String` | Name of the variable. | | `Value` | `StringFilterProperty` | The value of the variable. Variable values in filters need to be in serialized JSON format. For example, a variable with string value `myValue` can be found with the filter value `"myValue"`. Consider appropriate escaping for special characters in JSON strings when constructing filter values. | ## WaitStateDetails Wait-state-specific details of an element instance. ```csharp public abstract class WaitStateDetails ``` ## WaitStateElementTypeExactMatch Matches the value exactly. ```csharp public readonly record struct WaitStateElementTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## WaitStateElementTypeFilterProperty Element type property with full advanced search capabilities. ```csharp public sealed class WaitStateElementTypeFilterProperty ``` | Property | Type | Description | | ------------ | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## WaitStateTypeExactMatch Matches the value exactly. ```csharp public readonly record struct WaitStateTypeExactMatch : ICamundaKey, IEquatable ``` | Property | Type | Description | | -------- | -------- | ---------------------------- | | `Value` | `String` | The underlying string value. | ## WaitStateTypeFilterProperty Wait state type property with full advanced search capabilities. ```csharp public sealed class WaitStateTypeFilterProperty ``` | Property | Type | Description | | ------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ExactMatch` | `Nullable` | Matches the value exactly. Serialized as the bare value — the form servers that predate advanced filtering on this field accept. | | `Eq` | `Nullable` | Checks for equality with the provided value. | | `Neq` | `Nullable` | Checks for inequality with the provided value. | | `Exists` | `Nullable` | Checks if the current property exists. | | `In` | `List` | Checks if the property matches any of the provided values. | | `Like` | `Nullable` | Checks if the property matches the provided like value. Supported wildcard characters are: * `*`: matches zero, one, or multiple characters. * `?`: matches one, single character. Wildcard characters can be escaped with backslash, for instance: `\*`. | ## WorkerDefaultsConfig ```csharp public sealed class WorkerDefaultsConfig ``` | Property | Type | Description | | ------------------------- | ------------------ | ----------- | | `JobTimeoutMs` | `Nullable` | | | `MaxConcurrentJobs` | `Nullable` | | | `PollTimeoutMs` | `Nullable` | | | `WorkerName` | `String` | | | `StartupJitterMaxSeconds` | `Nullable` | | --- ## Runtime Runtime infrastructure types: job workers, backpressure management, eventual consistency polling, error handling, and key serialization. --- ## Authentication(Csharp-sdk) - **OAuth** — Automatic token management with singleflight refresh, caching, and retry - **Basic** — HTTP Basic Authentication - **None** — No authentication (local development) Auth strategy is auto-detected from environment variables when not explicitly set. --- ## Configuration Reference The SDK uses environment variables for configuration, matching the [JS SDK](https://github.com/camunda/orchestration-cluster-api-js) conventions: | Variable | Description | Default | | -------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------- | | `CAMUNDA_REST_ADDRESS` | Cluster REST API address | — | | `CAMUNDA_REST_ADDRESS_EXACT` | Use `CAMUNDA_REST_ADDRESS` verbatim, skipping the automatic `/v2` suffix (e.g. behind a gateway) | `false` | | `CAMUNDA_AUTH_STRATEGY` | `NONE`, `OAUTH`, or `BASIC` | Auto-detected | | `CAMUNDA_CLIENT_ID` | OAuth client ID | — | | `CAMUNDA_CLIENT_SECRET` | OAuth client secret | — | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint | — | | `CAMUNDA_TOKEN_AUDIENCE` | OAuth audience | — | | `CAMUNDA_OAUTH_GRANT_TYPE` | OAuth grant type | `client_credentials` | | `CAMUNDA_OAUTH_SCOPE` | OAuth scope | — | | `CAMUNDA_OAUTH_TIMEOUT_MS` | OAuth token request timeout (ms) | `5000` | | `CAMUNDA_OAUTH_RETRY_MAX` | Max OAuth token fetch retries | `5` | | `CAMUNDA_OAUTH_RETRY_BASE_DELAY_MS` | OAuth retry base delay (ms) | `1000` | | `CAMUNDA_BASIC_AUTH_USERNAME` | Basic auth username | — | | `CAMUNDA_BASIC_AUTH_PASSWORD` | Basic auth password | — | | `CAMUNDA_DEFAULT_TENANT_ID` | Default tenant ID | `` | | `CAMUNDA_TENANT_IDS` | Comma-separated tenant IDs for job activation (overrides `CAMUNDA_DEFAULT_TENANT_ID` for workers) | — | | `CAMUNDA_SDK_LOG_LEVEL` | Log level (`error`, `warn`, `info`, `debug`, `trace`, `silent`) | `error` | | `CAMUNDA_SDK_VALIDATION` | Validation mode (see below) | `req:none,res:none` | | `CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS` | Total HTTP retry attempts (initial + retries) | `3` | | `CAMUNDA_SDK_HTTP_RETRY_BASE_DELAY_MS` | HTTP retry base backoff (ms) | `100` | | `CAMUNDA_SDK_HTTP_RETRY_MAX_DELAY_MS` | HTTP retry max backoff cap (ms) | `2000` | | `CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS` | Default eventual consistency poll interval (ms) | `500` | | `ZEEBE_REST_ADDRESS` | Alias for `CAMUNDA_REST_ADDRESS` | — | | `CAMUNDA_MTLS_CERT` | Inline PEM client certificate | — | | `CAMUNDA_MTLS_KEY` | Inline PEM client private key | — | | `CAMUNDA_MTLS_CA` | Inline PEM CA bundle | — | | `CAMUNDA_MTLS_CERT_PATH` | Path to client certificate (PEM) | — | | `CAMUNDA_MTLS_KEY_PATH` | Path to client private key (PEM) | — | | `CAMUNDA_MTLS_CA_PATH` | Path to CA bundle (PEM) | — | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | Passphrase for encrypted private key | — | For backpressure configuration variables, see [Global Backpressure](resilience.md#global-backpressure-adaptive-concurrency). --- ## Creating a Process Instance The recommended pattern is to obtain keys from a prior API response (e.g. a deployment) and pass them directly — no manual conversion needed: ```csharp using Camunda.Orchestration.Sdk; using var client = CamundaClient.Create(); var deployment = await client.DeployResourcesFromFilesAsync(["process.bpmn"]); var processKey = deployment.Processes[0].ProcessDefinitionKey; var result = await client.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionByKey { ProcessDefinitionKey = processKey, }); Console.WriteLine($"Process instance key: {result.ProcessInstanceKey}"); ``` If you need to restore a key from external storage (database, message queue, config file), wrap the raw value with the domain key constructor: ```csharp using Camunda.Orchestration.Sdk; using var client = CamundaClient.Create(); var storedKey = "2251799813685249"; // from a DB row or config var result = await client.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionByKey { ProcessDefinitionKey = ProcessDefinitionKey.AssumeExists(storedKey), }); Console.WriteLine($"Process instance key: {result.ProcessInstanceKey}"); ``` You can also start a process instance by BPMN process ID (which uses the latest deployed version): ```csharp var result = await client.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionById { ProcessDefinitionId = ProcessDefinitionId.AssumeExists("my-process-id"), }); ``` --- ## Deploying Resources Deploy BPMN, DMN, or Form files from disk: ```csharp using Camunda.Orchestration.Sdk; using var client = CamundaClient.Create(); var result = await client.DeployResourcesFromFilesAsync(["process.bpmn", "decision.dmn"]); Console.WriteLine($"Deployment key: {result.DeploymentKey}"); foreach (var process in result.Processes) { Console.WriteLine($" Process: {process.ProcessDefinitionId} (key: {process.ProcessDefinitionKey})"); } ``` --- ## Installation ```bash dotnet add package Camunda.Orchestration.Sdk ``` ## Versioning This SDK has a different release cadence from the Camunda server. Features and fixes land in the SDK during a server release. The major version of the SDK signals a 1:1 type coherence with the server API for a Camunda minor release. SDK version `n.y.z` -> server version `8.n`, so the type surface of SDK version 9.y.z matches the API surface of Camunda 8.9. Using a later SDK version, for example: SDK version 10.y.z with Camunda 8.9, means that the SDK contains additive surfaces that are not guaranteed at runtime, and the compiler cannot warn of unsupported operations. Using an earlier SDK version, for example: SDK version 9.y.z with Camunda 8.10, results in slightly degraded compiler reasoning: exhaustiveness checks cannot be guaranteed by the compiler for any extended surfaces (principally, enums with added members). In the vast majority of use-cases, this will not be an issue; but you should be aware that using the matching SDK major version for the server minor version provides the strongest compiler guarantees about runtime reliability. **Release lines** map to branches. Stable releases for a given server minor come from the `stable/` branch — `stable/10` publishes the `10.x` line for Camunda 8.10, and `stable/9` the `9.x` line for Camunda 8.9. The `main` branch publishes alpha prereleases for the **next** server minor — currently the `11.0.0-alpha.N` line for Camunda 8.11. Pick the line that matches your server: the latest `10.x` for 8.10 (the line starts at `10.0.1`), the latest `9.x` for 8.9, or opt into `11.x-alpha` to preview 8.11. **Recommended approach**: - Check the [CHANGELOG](https://github.com/camunda/orchestration-cluster-api-csharp/releases). - As a sanity check during server version upgrade, rebuild applications with the matching SDK major version to identify any affected runtime surfaces. --- ## Job Workers Job workers subscribe to a specific job type and process jobs as they become available. The worker handles polling, concurrent dispatch, auto-completion, and error handling. ## Basic Worker ```csharp using Camunda.Orchestration.Sdk; // Define input/output DTOs public record OrderOutput(bool Processed, string InvoiceNumber); using var client = CamundaClient.Create(); client.CreateJobWorker( new JobWorkerConfig { JobType = "process-order", JobTimeoutMs = 30_000, }, async (job, ct) => { var input = job.GetVariables(); var invoice = await ProcessOrder(input!, ct); // Return value auto-completes the job with these output variables return new OrderOutput(true, invoice); }); // Block until Ctrl+C using var cts = new CancellationTokenSource(); Console.CancelKeyPress += (_, e) => { e.Cancel = true; cts.Cancel(); }; await client.RunWorkersAsync(ct: cts.Token); ``` ## Handler Contract The handler return value determines the job outcome: | Handler behavior | Job outcome | | ----------------------------- | ----------------------------------------------------- | | Return `object` | Auto-complete with those variables | | Return `null` | Auto-complete with no variables | | Return `JobCompletionRequest` | Complete with structured result (corrections, denial) | | Throw `BpmnErrorException` | Trigger a BPMN error boundary event | | Throw `JobFailureException` | Fail with custom retries / back-off | | Throw any other exception | Auto-fail with `retries - 1` | ```csharp // BPMN error — caught by error boundary events in the process model throw new BpmnErrorException("INVALID_ORDER", "Order not found"); // Explicit failure with retry control throw new JobFailureException("Service unavailable", retries: 2, retryBackOffMs: 5000); ``` ## Job Corrections (User Task Listeners) When handling jobs from [user task listeners](../../components/concepts/user-task-listeners.md), you can return a `JobCompletionRequest` to apply corrections to the task or deny the action. Return a `JobCompletionRequest` from the handler instead of a plain variables object: ```csharp client.CreateJobWorker(config, async (job, ct) => { // Apply corrections to the user task return new JobCompletionRequest { Variables = new { reviewed = true }, Result = new JobResultUserTask { Corrections = new JobResultCorrections { Assignee = "new-assignee", Priority = 75, CandidateGroups = new List { "managers" }, }, }, }; }); ``` To deny the user task action (e.g. reject a completion): ```csharp client.CreateJobWorker(config, async (job, ct) => { return new JobCompletionRequest { Result = new JobResultUserTask { Denied = true, DeniedReason = "Missing required fields", }, }; }); ``` ## Void Handler (No Output Variables) For handlers that don't return output variables, use the void overload: ```csharp public record NotificationInput(string Message); client.CreateJobWorker(config, async (job, ct) => { await SendNotification(job.GetVariables()!, ct); // Auto-completes with no variables }); ``` ## Configuration | Property | Default | Description | | ------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | | `JobType` | _(required)_ | BPMN task type to subscribe to | | `JobTimeoutMs` | _(env / required)_ | Job lock duration (ms). Falls back to `CAMUNDA_WORKER_TIMEOUT` env var. | | `MaxConcurrentJobs` | `10` | Max in-flight jobs per worker. Falls back to `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` env var, then `10`. | | `PollIntervalMs` | `500` | Delay between polls when idle | | `PollTimeoutMs` | `null` | Long-poll timeout (null = broker default). Falls back to `CAMUNDA_WORKER_REQUEST_TIMEOUT` env var. | | `FetchVariables` | `null` | Variable names to fetch (null = all) | | `WorkerName` | auto | Worker name for logging. Falls back to `CAMUNDA_WORKER_NAME` env var. | | `AutoStart` | `true` | Start polling on creation | | `StartupJitterMaxSeconds` | `0` | Max random delay (seconds) before first poll. Falls back to `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` env var. | | `TenantIds` | `null` | Tenant IDs to activate jobs for. Falls back to `CAMUNDA_TENANT_IDS`, then `[CAMUNDA_DEFAULT_TENANT_ID]`. Mutually exclusive with `TenantId`. | | `TenantId` | `null` | Single-tenant convenience for `TenantIds`. Mutually exclusive with `TenantIds`. | | `TenantFilter` | `null` | Tenant filtering strategy (`PROVIDED` / `ASSIGNED`). See [Multi-Tenant Workers](#multi-tenant-workers). Requires Camunda 8.9+. | ## Multi-Tenant Workers A worker activates jobs for a fixed tenant set (`TenantIds` / `TenantId`), or delegates the choice to the server with `TenantFilter`: | `TenantFilter` | Behavior | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `null` / `PROVIDED` | Activate jobs for the tenants named in `TenantIds` / `TenantId`, falling back to `CAMUNDA_TENANT_IDS`, then the default tenant. | | `ASSIGNED` | Activate jobs for whichever tenants are currently assigned to the authenticated client. No tenant IDs are sent. | The fixed tenant set can also come from configuration, so a fleet of workers shares one tenant list: ```bash export CAMUNDA_TENANT_IDS=acme,globex ``` ```json // appsettings.json — array or comma-separated string { "Camunda": { "TenantIds": ["acme", "globex"] } } ``` **Tenant precedence** (highest wins): `JobWorkerConfig.TenantIds` / `TenantId` > `CAMUNDA_TENANT_IDS` > `[CAMUNDA_DEFAULT_TENANT_ID]`. An empty `TenantIds` list counts as unset. `TenantFilter = ASSIGNED` opts out of the chain entirely — the configured tenant IDs are ignored, not sent. ```csharp // Fixed tenant set — activate jobs for these tenants only client.CreateJobWorker( new JobWorkerConfig { JobType = "process-order", JobTimeoutMs = 30_000, TenantIds = new[] { "acme", "globex" }, }, async (job, ct) => null); // Dynamic tenant set — activate jobs for whichever tenants are currently // assigned to the authenticated client. The server re-evaluates the // assignment on every activation request, so tenants added or removed in // Camunda take effect without restarting the worker. client.CreateJobWorker( new JobWorkerConfig { JobType = "process-order", JobTimeoutMs = 30_000, TenantFilter = TenantFilterEnum.ASSIGNED, }, async (job, ct) => null); ``` `ASSIGNED` re-reads the assignment on every activation request, so the worker picks up newly assigned tenants and drops removed ones without restarting and without the application querying or caching the tenant list. Notes: - `ASSIGNED` cannot be combined with `TenantIds` or `TenantId` — the server would ignore them, so `CreateJobWorker` throws `ArgumentException` instead. - `ASSIGNED` requires multi-tenancy to be enabled on the cluster; otherwise the activation request is rejected with HTTP 400. ## Heritable Worker Defaults When running many workers with the same base configuration, you can set global defaults via environment variables. These apply to every worker created by the client unless the individual `JobWorkerConfig` explicitly overrides them. | Environment Variable | Config Property | Type | | ------------------------------------------- | ------------------------- | ------ | | `CAMUNDA_WORKER_TIMEOUT` | `JobTimeoutMs` | long | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | `MaxConcurrentJobs` | int | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | `PollTimeoutMs` | long | | `CAMUNDA_WORKER_NAME` | `WorkerName` | string | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | `StartupJitterMaxSeconds` | int | **Precedence:** explicit `JobWorkerConfig` value > environment variable > hardcoded default. ```bash export CAMUNDA_WORKER_TIMEOUT=30000 export CAMUNDA_WORKER_MAX_CONCURRENT_JOBS=8 export CAMUNDA_WORKER_NAME=order-service ``` ```csharp // Workers inherit timeout, concurrency, and name from environment client.CreateJobWorker( new JobWorkerConfig { JobType = "validate-order" }, async (job, ct) => null); client.CreateJobWorker( new JobWorkerConfig { JobType = "ship-order" }, async (job, ct) => null); // Per-worker override: this worker uses 32 concurrent jobs instead of the global 8 client.CreateJobWorker( new JobWorkerConfig { JobType = "bulk-import", MaxConcurrentJobs = 32 }, async (job, ct) => null); ``` You can also pass defaults programmatically via the client constructor: ```csharp var client = CamundaClient.Create(new CamundaOptions { Config = new Dictionary { ["CAMUNDA_WORKER_TIMEOUT"] = "30000", ["CAMUNDA_WORKER_MAX_CONCURRENT_JOBS"] = "8", }, }); ``` ## Concurrency Jobs are dispatched as concurrent `Task`s on the .NET thread pool. `MaxConcurrentJobs` controls how many jobs may be in-flight simultaneously. - **I/O-bound handlers** (HTTP calls, database queries): higher values like 32–128 improve throughput because `async` handlers release threads during `await` points — many jobs, few OS threads. - **CPU-bound handlers**: set `MaxConcurrentJobs` to `Environment.ProcessorCount` to match cores. - **Sequential processing**: set `MaxConcurrentJobs = 1`. ## Lifecycle ```csharp // Manual start/stop var worker = client.CreateJobWorker(new JobWorkerConfig { JobType = "example", JobTimeoutMs = 30_000, AutoStart = false }, handler); worker.Start(); // Graceful stop — waits up to 10s for in-flight jobs to finish var result = await worker.StopAsync(gracePeriod: TimeSpan.FromSeconds(10)); // result.RemainingJobs, result.TimedOut // Or stop all workers at once await client.StopAllWorkersAsync(TimeSpan.FromSeconds(10)); // DisposeAsync stops workers automatically await using var disposableClient = CamundaClient.Create(); ``` --- ## Logging The SDK uses `Microsoft.Extensions.Logging` — the standard .NET logging abstraction. This means it integrates with any logging framework that supports `ILoggerFactory` (Serilog, NLog, the built-in console logger, etc.). ## Default Behavior When no logger is injected, the SDK uses a built-in console logger filtered by `CAMUNDA_SDK_LOG_LEVEL`: | `CAMUNDA_SDK_LOG_LEVEL` | What is logged | | ----------------------- | ---------------------------------------------------------------- | | `error` (default) | Errors only | | `warn` | Errors + warnings | | `info` | + OAuth token events, worker start/stop | | `debug` | + HTTP requests/responses, retry decisions, backpressure changes | | `trace` | + tenant injection, internal diagnostics | | `silent` | Nothing (same as `NullLoggerFactory`) | Output uses a tagged format matching the JS SDK: ``` [camunda-sdk][info][CamundaClient] CamundaClient constructed with auth strategy OAuth [camunda-sdk][debug][CamundaClient] HTTP POST process-instances/search -> 200 [camunda-sdk][info][JobWorker.worker-process-order-1] JobWorker 'worker-process-order-1' started for type 'process-order' ``` ## Injecting Your Own Logger Pass an `ILoggerFactory` via `CamundaOptions` to integrate with your application's logging: ```csharp using Camunda.Orchestration.Sdk; using var loggerFactory = LoggerFactory.Create(builder => { builder .AddConsole() .SetMinimumLevel(LogLevel.Debug); }); using var client = CamundaClient.Create(new CamundaOptions { LoggerFactory = loggerFactory, }); ``` When an `ILoggerFactory` is provided, `CAMUNDA_SDK_LOG_LEVEL` is ignored — filtering is controlled entirely by the injected factory. ## ASP.NET Core / Dependency Injection When using `AddCamundaClient()`, the SDK automatically resolves `ILoggerFactory` from the DI container — no manual wiring needed: ```csharp using Camunda.Orchestration.Sdk; var builder = WebApplication.CreateBuilder(args); // Logging configuration builder.Logging.SetMinimumLevel(LogLevel.Debug); // SDK automatically uses the host's ILoggerFactory builder.Services.AddCamundaClient(builder.Configuration.GetSection("Camunda")); ``` All SDK log entries appear alongside your application logs with proper category names (`Camunda.Orchestration.Sdk.CamundaClient`, `Camunda.Orchestration.Sdk.JobWorker.*`, etc.). ## Serilog Integration ```csharp Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .WriteTo.Console() .CreateLogger(); using var loggerFactory = new SerilogLoggerFactory(); using var client = CamundaClient.Create(new CamundaOptions { LoggerFactory = loggerFactory, }); ``` ## What Gets Logged | Component | Level | Events | | --------------------- | ------- | ------------------------------------------------- | | `CamundaClient` | Debug | HTTP request method + path, response status codes | | `CamundaClient` | Warning | HTTP request failures (non-2xx) | | `CamundaClient` | Trace | Default tenant ID injection | | `OAuthManager` | Debug | Token request attempts | | `OAuthManager` | Info | Token acquired (with effective expiry) | | `BackpressureManager` | Debug | Permit reduction/recovery | | `HttpRetryExecutor` | Debug | Retry attempts with delay and reason | | `JobWorker.*` | Info | Worker started, worker stopped | | `JobWorker.*` | Debug | Job completed | | `JobWorker.*` | Error | Handler exceptions, poll failures | | `EventualPoller` | Debug | Consistency polling progress | --- ## Migration Guide: v9 → v10 Upgrading from `Camunda.Orchestration.Sdk` v9 (Camunda 8.9) to v10 (Camunda 8.10)? **→ See [MIGRATION.md](https://github.com/camunda/orchestration-cluster-api-csharp/blob/main/MIGRATION.md) for the full guide.** In short: 55 client method parameters moved from `string` to semantic key types (`GroupId`, `RoleId`, `MappingRuleId`, `ClientId`, `ClusterVariableName`), 26 types were renamed, 45 bare-`string` properties became typed enums, and binary responses now return `byte[]`. The compiler will point you at every affected call site. ```xml ``` --- ## Quick Start (Zero-Config — Recommended) Keep configuration out of application code. Let the factory read `CAMUNDA_*` variables from the environment (12-factor style). This makes rotation, secret management, and environment promotion safer and simpler. ```csharp using Camunda.Orchestration.Sdk; // Zero-config construction: reads CAMUNDA_* from environment variables. // If no configuration is present, defaults to Camunda 8 Run on localhost. using var client = CamundaClient.Create(); var topology = await client.GetTopologyAsync(); Console.WriteLine($"Brokers: {topology.Brokers?.Count ?? 0}"); ``` Typical environment (example): ```bash CAMUNDA_REST_ADDRESS=https://cluster.example # SDK appends /v2 automatically CAMUNDA_REST_ADDRESS_EXACT=false # optional: true = use address verbatim (no /v2), e.g. behind a gateway CAMUNDA_AUTH_STRATEGY=OAUTH CAMUNDA_CLIENT_ID=*** CAMUNDA_CLIENT_SECRET=*** CAMUNDA_OAUTH_URL=https://login.cloud.camunda.io/oauth/token CAMUNDA_DEFAULT_TENANT_ID= # optional: override default tenant ``` > **Why zero-config?** > > - **Separation of concerns**: business code depends on an interface, not on secrets/constants wiring. > - **12-Factor alignment**: config lives in the environment → simpler promotion (dev → staging → prod). > - **Secret rotation**: rotate credentials without a code change or redeploy. > - **Immutable start**: single hydration pass prevents drift / mid-request mutations. > - **Test ergonomics**: swap env vars per test without touching source; create multiple clients for multi-tenant tests. > - **Security review**: fewer code paths handling secrets; scanners & vault tooling work at the boundary. > - **Deploy portability**: same artifact runs everywhere; only the environment differs. > - **Cross-SDK consistency**: identical variable names across JavaScript, C#, and Python SDKs. ## Programmatic Overrides (Advanced) Use only when you must supply or mutate configuration dynamically (e.g. multi-tenant routing, tests, ephemeral preview environments). Keys mirror their `CAMUNDA_*` env names: ```csharp using Camunda.Orchestration.Sdk; using var client = CamundaClient.Create(new CamundaOptions { Config = new Dictionary { ["CAMUNDA_REST_ADDRESS"] = "https://my-cluster.camunda.io", ["CAMUNDA_AUTH_STRATEGY"] = "OAUTH", ["CAMUNDA_CLIENT_ID"] = "my-client-id", ["CAMUNDA_CLIENT_SECRET"] = "my-secret", ["CAMUNDA_OAUTH_URL"] = "https://login.cloud.camunda.io/oauth/token", ["CAMUNDA_TOKEN_AUDIENCE"] = "zeebe.camunda.io", }, }); ``` ## Configuration via `appsettings.json` The SDK can read configuration from any `IConfiguration` source (appsettings.json, user secrets, Azure Key Vault, etc.) using idiomatic .NET PascalCase section keys: ```json { "Camunda": { "RestAddress": "https://cluster.example.com", "Auth": { "Strategy": "OAUTH", "ClientId": "my-client-id", "ClientSecret": "my-secret" }, "OAuth": { "Url": "https://login.cloud.camunda.io/oauth/token" }, "Backpressure": { "Profile": "CONSERVATIVE" } } } ``` Pass the section to the client: ```csharp using Camunda.Orchestration.Sdk; var builder = WebApplication.CreateBuilder(args); using var client = CamundaClient.Create(new CamundaOptions { Configuration = builder.Configuration.GetSection("Camunda"), }); ``` Precedence (highest wins): `Config` dictionary > `IConfiguration` section > environment variables > defaults. This means you can set secrets via environment variables (or a vault) and non-sensitive settings via `appsettings.json` — they layer naturally: ```json // appsettings.json — non-sensitive, checked into source control { "Camunda": { "RestAddress": "https://cluster.example.com", "Backpressure": { "Profile": "CONSERVATIVE" } } } ``` ```bash # Secrets injected via environment (vault, CI, container orchestrator) CAMUNDA_CLIENT_ID=*** CAMUNDA_CLIENT_SECRET=*** CAMUNDA_OAUTH_URL=https://login.cloud.camunda.io/oauth/token ```
appsettings.json key reference | appsettings.json key | Maps to env var | | --------------------------------- | ------------------------------------------------------------------------------------------------- | | `RestAddress` | `CAMUNDA_REST_ADDRESS` | | `RestAddressExact` | `CAMUNDA_REST_ADDRESS_EXACT` (true = use `RestAddress` verbatim, skip the automatic `/v2` suffix) | | `TokenAudience` | `CAMUNDA_TOKEN_AUDIENCE` | | `DefaultTenantId` | `CAMUNDA_DEFAULT_TENANT_ID` | | `TenantIds` | `CAMUNDA_TENANT_IDS` (JSON array or comma-separated string) | | `LogLevel` | `CAMUNDA_SDK_LOG_LEVEL` | | `Validation` | `CAMUNDA_SDK_VALIDATION` | | `Auth:Strategy` | `CAMUNDA_AUTH_STRATEGY` | | `Auth:ClientId` | `CAMUNDA_CLIENT_ID` | | `Auth:ClientSecret` | `CAMUNDA_CLIENT_SECRET` | | `Auth:BasicUsername` | `CAMUNDA_BASIC_AUTH_USERNAME` | | `Auth:BasicPassword` | `CAMUNDA_BASIC_AUTH_PASSWORD` | | `OAuth:Url` | `CAMUNDA_OAUTH_URL` | | `OAuth:ClientId` | `CAMUNDA_CLIENT_ID` | | `OAuth:ClientSecret` | `CAMUNDA_CLIENT_SECRET` | | `OAuth:GrantType` | `CAMUNDA_OAUTH_GRANT_TYPE` | | `OAuth:Scope` | `CAMUNDA_OAUTH_SCOPE` | | `OAuth:TimeoutMs` | `CAMUNDA_OAUTH_TIMEOUT_MS` | | `OAuth:RetryMax` | `CAMUNDA_OAUTH_RETRY_MAX` | | `OAuth:RetryBaseDelayMs` | `CAMUNDA_OAUTH_RETRY_BASE_DELAY_MS` | | `HttpRetry:MaxAttempts` | `CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS` | | `HttpRetry:BaseDelayMs` | `CAMUNDA_SDK_HTTP_RETRY_BASE_DELAY_MS` | | `HttpRetry:MaxDelayMs` | `CAMUNDA_SDK_HTTP_RETRY_MAX_DELAY_MS` | | `Backpressure:Profile` | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | | `Backpressure:InitialMax` | `CAMUNDA_SDK_BACKPRESSURE_INITIAL_MAX` | | `Backpressure:SoftFactor` | `CAMUNDA_SDK_BACKPRESSURE_SOFT_FACTOR` | | `Backpressure:SevereFactor` | `CAMUNDA_SDK_BACKPRESSURE_SEVERE_FACTOR` | | `Backpressure:RecoveryIntervalMs` | `CAMUNDA_SDK_BACKPRESSURE_RECOVERY_INTERVAL_MS` | | `Backpressure:RecoveryStep` | `CAMUNDA_SDK_BACKPRESSURE_RECOVERY_STEP` | | `Backpressure:DecayQuietMs` | `CAMUNDA_SDK_BACKPRESSURE_DECAY_QUIET_MS` | | `Backpressure:Floor` | `CAMUNDA_SDK_BACKPRESSURE_FLOOR` | | `Backpressure:SevereThreshold` | `CAMUNDA_SDK_BACKPRESSURE_SEVERE_THRESHOLD` | | `Eventual:PollDefaultMs` | `CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS` |
## Dependency Injection (`AddCamundaClient`) For ASP.NET Core and other DI-based applications, use the `AddCamundaClient()` extension method on `IServiceCollection`. The client is registered as a singleton and automatically picks up `ILoggerFactory` from the container. **Zero-config** (environment variables only): ```csharp using Camunda.Orchestration.Sdk; var builder = WebApplication.CreateBuilder(args); builder.Services.AddCamundaClient(); ``` **With `appsettings.json`**: ```csharp using Camunda.Orchestration.Sdk; var builder = WebApplication.CreateBuilder(args); builder.Services.AddCamundaClient(builder.Configuration.GetSection("Camunda")); ``` **With options callback** (full control): ```csharp using Camunda.Orchestration.Sdk; builder.Services.AddCamundaClient(options => { options.Configuration = builder.Configuration.GetSection("Camunda"); // or: options.Config = new Dictionary { ... }; }); ``` Inject the client anywhere via constructor injection: ```csharp public class OrderController(CamundaClient camunda) : ControllerBase { [HttpPost] public async Task StartProcess() { var result = await camunda.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionById { ProcessDefinitionId = ProcessDefinitionId.AssumeExists("order-process"), }); return Ok(result); } } ``` ## Custom HttpClient ```csharp using Camunda.Orchestration.Sdk; var httpClient = new HttpClient { BaseAddress = new Uri("https://my-cluster/v2/") }; using var client = CamundaClient.Create(new CamundaOptions { HttpClient = httpClient, }); ``` --- ## Resilience ## HTTP Retry Automatic retry with exponential backoff and jitter for transient failures (429, 503, 500, timeouts). | Variable | Default | Description | | -------------------------------------- | ------- | ---------------------------------- | | `CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS` | `3` | Total attempts (initial + retries) | | `CAMUNDA_SDK_HTTP_RETRY_BASE_DELAY_MS` | `100` | Base backoff delay (ms) | | `CAMUNDA_SDK_HTTP_RETRY_MAX_DELAY_MS` | `2000` | Maximum backoff cap (ms) | ## Global Backpressure (Adaptive Concurrency) The client includes an adaptive backpressure manager that throttles the number of in-flight operations when the cluster signals resource exhaustion. It complements (not replaces) per-request HTTP retry. ### Signals Considered An HTTP response is treated as a backpressure signal when it matches one of: - `429` (Too Many Requests) — always - `503` with `title === "RESOURCE_EXHAUSTED"` - `500` whose RFC 9457 / 7807 `detail` text contains `RESOURCE_EXHAUSTED` All other 5xx variants are treated as non-retryable (fail fast) and do **not** influence the adaptive gate. ### How It Works 1. Normal state starts with the concurrency cap from `CAMUNDA_SDK_BACKPRESSURE_INITIAL_MAX` (default 16). 2. On backpressure signals the manager reduces available permits using the soft factor (70% by default). 3. Repeated consecutive signals escalate severity to `severe`, applying a stronger reduction factor (50%). 4. Successful (non-backpressure) completions trigger passive recovery checks that gradually restore permits over time if the system stays quiet. 5. Quiet periods (no signals for a configurable decay interval) downgrade severity and reset the consecutive counter. The policy is intentionally conservative: it only engages after genuine pressure signals and recovers gradually to avoid oscillation. ### Configuration | Variable | Default | Description | | ----------------------------------------------- | ---------- | ------------------------------------------------------- | | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | `BALANCED` | Preset profile (see below) | | `CAMUNDA_SDK_BACKPRESSURE_INITIAL_MAX` | `16` | Bootstrap concurrency cap | | `CAMUNDA_SDK_BACKPRESSURE_SOFT_FACTOR` | `70` | Percentage multiplier on soft backpressure (70 → 0.70×) | | `CAMUNDA_SDK_BACKPRESSURE_SEVERE_FACTOR` | `50` | Percentage multiplier on severe backpressure | | `CAMUNDA_SDK_BACKPRESSURE_RECOVERY_INTERVAL_MS` | `1000` | Interval between passive recovery checks (ms) | | `CAMUNDA_SDK_BACKPRESSURE_RECOVERY_STEP` | `1` | Permits regained per recovery interval | | `CAMUNDA_SDK_BACKPRESSURE_DECAY_QUIET_MS` | `2000` | Quiet period to downgrade severity (ms) | | `CAMUNDA_SDK_BACKPRESSURE_FLOOR` | `1` | Minimum concurrency floor while degraded | | `CAMUNDA_SDK_BACKPRESSURE_SEVERE_THRESHOLD` | `3` | Consecutive signals required to enter severe state | ### Profiles Profiles supply coordinated defaults. Any explicitly set env var overrides the profile value. | Profile | initialMax | softFactor% | severeFactor% | recoveryMs | recoveryStep | quietDecayMs | floor | severeThreshold | Use case | | -------------- | ---------- | ----------- | ------------- | ---------- | ------------ | ------------ | ----- | --------------- | ---------------------------- | | `BALANCED` | 16 | 70 | 50 | 1000 | 1 | 2000 | 1 | 3 | General workloads | | `CONSERVATIVE` | 12 | 60 | 40 | 1200 | 1 | 2500 | 1 | 2 | Tighter capacity constraints | | `AGGRESSIVE` | 24 | 80 | 60 | 800 | 2 | 1500 | 2 | 4 | High throughput scenarios | | `LEGACY` | — | — | — | — | — | — | — | — | Observe-only (no gating) | Select via environment: ```bash CAMUNDA_SDK_BACKPRESSURE_PROFILE=AGGRESSIVE ``` Override individual knobs on top of a profile: ```bash CAMUNDA_SDK_BACKPRESSURE_PROFILE=AGGRESSIVE CAMUNDA_SDK_BACKPRESSURE_INITIAL_MAX=32 ``` The `LEGACY` profile disables adaptive gating entirely — signals are still tracked for observability but no concurrency limits are applied. Use this to opt out of backpressure management while retaining per-request retry. ### Inspecting State Programmatically ```csharp var state = client.GetBackpressureState(); // state.Severity: "healthy", "soft", or "severe" // state.Consecutive: consecutive backpressure signals observed // state.PermitsMax: current concurrency cap (null when LEGACY / not engaged) ``` ## Eventual Consistency Built-in polling for eventually consistent endpoints with configurable wait times and predicates. --- ## Self-signed TLS / mTLS The SDK supports custom TLS certificates via environment variables. This is useful for: - **Self-signed server certificates** — trust a CA that signed your server's certificate, without presenting a client identity. - **Mutual TLS (mTLS)** — present a client certificate and key to prove the client's identity. - **Both** — trust a custom CA _and_ present client credentials. ## Trusting a self-signed server certificate Set only the CA certificate to trust the server's self-signed certificate: ```bash # Path to PEM file: CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem # Or inline PEM: CAMUNDA_MTLS_CA="-----BEGIN CERTIFICATE-----\n..." ``` ## Mutual TLS (client certificate) To present a client certificate for mutual TLS, provide both the certificate and private key: ```bash CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt CAMUNDA_MTLS_KEY_PATH=/path/to/client.key # Optional — passphrase if the key is encrypted: # CAMUNDA_MTLS_KEY_PASSPHRASE=secret ``` ## Full mTLS with custom CA Combine a custom CA with client credentials: ```bash CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt CAMUNDA_MTLS_KEY_PATH=/path/to/client.key ``` Inline PEM values (`CAMUNDA_MTLS_CERT`, `CAMUNDA_MTLS_KEY`, `CAMUNDA_MTLS_CA`) take precedence over their `_PATH` counterparts. TLS is applied to all outbound calls, including OAuth token requests. No code changes are needed — the SDK picks up TLS configuration from environment variables automatically: ```csharp using Camunda.Orchestration.Sdk; var client = CamundaClient.Create(); // TLS configured from env vars ``` --- ## Strongly-Typed Domain Keys All domain identifiers (process definition keys, job keys, user task keys, etc.) are `readonly record struct` types rather than plain strings. This prevents accidentally mixing different key types at compile time — the same pattern as the JS SDK's branded types. ```csharp using Camunda.Orchestration.Sdk; // Lift a raw value into the correct nominal type var defKey = ProcessDefinitionKey.AssumeExists("2251799813686749"); // Type safety — compiler prevents mixing key types var taskKey = UserTaskKey.AssumeExists("123456"); // await client.GetProcessDefinitionAsync(taskKey); // ← compile error // Validation — constraints (pattern, length) checked at construction ProcessDefinitionKey.IsValid("2251799813686749"); // true // Values returned from API calls are already typed var result = await client.GetProcessDefinitionAsync(defKey); // result.ProcessDefinitionKey is ProcessDefinitionKey, not string // Transparent JSON serialization — no special handling needed ``` Key types implement `ICamundaKey` (string-backed) or `ICamundaLongKey` (long-backed) and serialize as plain JSON values. Constraint validation (regex pattern, min/max length) is enforced in `AssumeExists()` and queryable via `IsValid()`. --- ## Support status The C# SDK is fully supported from Camunda 8.10. [Report an issue or share feedback](https://github.com/camunda/orchestration-cluster-api-csharp/issues) on GitHub. --- ## Typed Variables with DTOs Camunda API operations use dynamic `variables` and `customHeaders` payloads. By default these are untyped (`object`), but you can opt in to compile-time type safety using your own DTOs. ## Sending Variables (Input) Assign any DTO or dictionary to the `Variables` property — `System.Text.Json` serializes the runtime type automatically: ```csharp using Camunda.Orchestration.Sdk; // Define your application domain models public record OrderInput(string OrderId, decimal Amount); // Assign the DTO directly await client.CreateProcessInstanceAsync(new ProcessInstanceCreationInstructionById { ProcessDefinitionId = processDefinitionId, Variables = new OrderInput("ord-123", 99.99m), }); // Dictionaries also work — no DTO required await client.CompleteJobAsync(jobKey, new JobCompletionRequest { Variables = new Dictionary { ["processed"] = true }, }); ``` ## Receiving Variables (Output) Use `DeserializeAs()` to extract typed DTOs from API responses: ```csharp using Camunda.Orchestration.Sdk; public record OrderResult(bool Processed, string InvoiceNumber); // Deserialize variables from any API response var result = await client.CreateProcessInstanceAsync( new ProcessInstanceCreationInstructionById { ProcessDefinitionId = processDefinitionId, }); var output = result.Variables.DeserializeAs(); // output.Processed, output.InvoiceNumber — fully typed ``` `DeserializeAs()` handles the common runtime shapes: - `JsonElement` (standard API response) → deserialized via `System.Text.Json` - Already the target type → returned as-is (zero-copy) - `null` → returns `default(T)` Custom `JsonSerializerOptions` can be passed for non-standard naming conventions. ## Searching Variables as a DTO `SearchVariablesAsDtoAsync()` queries a process instance for exactly the variables declared on your DTO, pages through all results, and collapses them into a typed `VariableMap`. Variable names are derived from the same `JsonSerializerOptions` used to deserialize (camelCase by default, overridable with `[JsonPropertyName]`), so the query filter, the raw keys, and DTO binding always agree. ```csharp using Camunda.Orchestration.Sdk; public record OrderVariables(string OrderId, decimal Amount, string? Notes); // Query only the variables declared on the DTO, across all pages, and // collapse them into a single typed object. var map = await client.SearchVariablesAsDtoAsync(processInstanceKey); // Inspect individual values without materializing the whole DTO if (map.Contains("amount")) { var amount = map.Get("amount"); } // Validate() enforces that every non-nullable DTO member is present, // throwing VariableValidationException if any required variable is missing. OrderVariables order = map.Validate(); // order.OrderId, order.Amount — fully typed; order.Notes is optional ``` Behavior notes: - **Scope collision**: if the same variable name appears at more than one scope (e.g. a local and a parent scope), `SearchVariablesAsDtoAsync` throws `VariableScopeCollisionException` rather than guessing. Narrow the query with the optional `scopeKey` parameter. - **`Validate()`** throws `VariableValidationException` listing every missing required member; nullable members (`string?`, `int?`) are optional. - **`Get(name)`** and **`Get(name)`** read individual values lazily and return `default`/`null` when absent. --- ## C# SDK The C# client SDK for the [Camunda 8 Orchestration Cluster REST API](../apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). Unified configuration, OAuth/Basic auth, automatic retry, backpressure management, strongly-typed domain keys, and opt-in typed variables. --- ## Introduction to task applications Task applications are the interface between humans and Camunda processes to orchestrate human work. Learn key concepts of the architecture of task applications before you build your own. ## What are task applications? Task applications are end-user applications that allow humans to perform work orchestrated with a process. A [user task](/components/modeler/bpmn/user-tasks/user-tasks.md#user-task-forms) (for [human task orchestration](/guides/getting-started-orchestrate-human-tasks.md)) represents a single **work item** to be performed by an individual or a group, whether the preceding step ran automatically or an [AI agent](/reference/glossary.md#ai-agent) escalated it for human input. The jobs of a task application include: - Listing available tasks and allowing users to select a task to work on. - Providing filter and search options for users so they can more easily find the right next task to work on. - Presenting the selected task and an interface for completing the task, usually via a form. - Providing an interface to create new tasks, e.g. by starting a new process. - Provide insight into the progress of work tasks, including processes and cases. - Aggregate information so users and their managers can assess the impact on process goals, such as KPIs and SLAs. - Ensure tasks are visible only to authorized users. Task applications play a key role in the orchestration of business processes. They enable the orchestration of processes that still contain manual work without automating each process step in advance. This unlocks the potential for continuous improvement and for identifying opportunities for process optimization and automation. :::tip Not sure if you should use Camunda Tasklist, build your custom task application, or use a third-party application? Read the [guide to understand human task management](/components/best-practices/architecture/understanding-human-tasks-management.md#deciding-about-your-task-list-frontend) first. ::: ## Tasklist layout Camunda 8 comes with a ready-to-use Tasklist UI that implements all key concepts of a task application. The Tasklist UI is a generic task application; your custom task application should probably be tailored to your specific use case and also include external data sources and tools. The Tasklist UI is split into two main pages: the [tasks page](#task-page) and the [processes page](#processes-page). ### Task page The task page lists all tasks pending for a user or user group, and allows users to pick and claim a task from that queue to work on. On the same page, the details of a selected task are displayed including the form that the user must submit in order to execute and complete the task. The task page is optimized for efficient workflows, where the most important tasks should be worked on first. The task page is divided into two main areas: - Left side showing the tasks queue. - Right side showing the details of the selected task. #### Tasks queue The **tasks queue side panel** lists all tasks pending for a user or user group. It comes with filter and sort options that allow users to identify the right task to work on next. The tasks can be sorted by the creation date, due date, follow-up date, or priority. Learn more how to work with the task queue in the [Tasklist user guide](/components/tasklist/userguide/using-tasklist.md). #### Task details Task details are shown when a task is selected from the queue. A [form](/components/modeler/desktop-modeler/utilize-forms.md) is displayed as the task content, which must be filled out to complete the task. :::tip Typically, a task application utilizes forms to capture information from the user, to make a decision, to collect the results from a real-world task, or to provide task instructions to the user. However, a [user task](/components/modeler/bpmn/user-tasks/user-tasks.md#user-task-forms) is not limited to forms. A user task could also represent navigating to an external desktop or web application, where a task is to be performed, such as updating a record in a CRM. You can even use them to track physical work or actions using sensors, IoT devices, or any interface that can talk to the web, by using the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). For these cases, utilize the flexible [custom form key](/components/hub/workspace/modeler/modeling/advanced-modeling/form-linking.md#custom-form-key). ::: On the top of the form, a header shows the title of the task to work on, and the current assignee. Depending on the status of the assignment, a button allows you to assign the task to yourself or release it to the queue. At the bottom of the form there is a button with which you can complete the task. To the right of the task, you find additional information about the task, such as the [due date](/components/modeler/bpmn/user-tasks/user-tasks.md#scheduling) of the task, or the authorization data that controls who can work on the task. Potential extensions are dependent on your use case. You can consider adding more buttons to the bottom of the panel to indicate different task outcomes such as "approve" or "reject", or you could add a list of attachments to the right panel. Learn more how to work with the task details panel in the [Tasklist user guide](/components/tasklist/userguide/using-tasklist.md). ### Processes page The **Processes** page lists all processes available to the logged in user, and allows the user to start a process from there. Potential extensions are dependent on your use case. You can consider grouping processes by apps, domains, or teams, showing a process history, or adding a list of open process instances or cases. Learn more about the **Processes** page in the [Tasklist documentation](/components/tasklist/userguide/starting-processes.md). :::tip Alternative layouts There are many alternative layouts that you can choose for creating your task application. Design the layout based on the use case. For longer running processes and tasks with a lot of hierarchy between the tasks and the associated data, for example, tabular views together with multi-part detail views are more suitable. ::: ## Task lifecycle Every task follows a task life cycle. In the typical task life cycle, a task can, for example: - Be **created**, but not yet assigned - Be **assigned** and ready to work - Be **open** or **started** - Be **paused** and marked with a follow-up date - Be **delegated** to another user - Be **completed** or **canceled** Before you create your task application, you should be clear about [which task lifecycle is suitable for your use case](./02-user-task-lifecycle.md). ```mermaid flowchart subgraph Assignment Unassigned(Unassigned) -->|assign/claim| Assigned(fa:fa-user Assigned) Assigned -->|return| Unassigned Assigned -->|reassign| Assigned end subgraph Work state New(( )) -->|create| A(Open) A -->|start| B(In progress) B -->|complete| C(fa:fa-check Completed) B -->|pause| D(Paused) D -->|resume| B(In progress) B -->|return| A style New fill:black style C stroke-width:2px end ``` The lifecycle of human task orchestration is mostly a generic issue. There is no need to model common aspects into all your processes, as this often makes models unreadable. Use Camunda task management features or implement your requirements in a generic way. Learn how to define and implement your task lifecycle on the [user task lifecycle](./02-user-task-lifecycle.md) page. ## Task assignment Every task can be assigned to either a group of people, or a specific individual. An individual can **claim** a task, indicating that they are picking the task from the pool (to avoid multiple people working on the same task). As a general rule, you should assign user tasks in your business process to groups of people instead of specific individuals. This avoids bottlenecks (such as high workloads on single individuals or employees being on sick leave) and can greatly improve your process performance. In the [XML of a user task](/components/modeler/bpmn/user-tasks/user-tasks.md#xml-representations), this is represented as follows: ```xml ``` Then, require individual members of that group to explicitly claim tasks before working on them. This way, you avoid different people trying to work on the same task at the same time, which can cause a race condition. ## Additional elements and alternative use cases Often, task applications support the collaborative work on tasks, generally done using **comments**. **Document management** is a common use case of task applications, allowing users to upload, manage, and review **attachments**. Task applications are also the right place to browse, reference, and manage **case management data**. Task applications are not limited to web applications to be worked on desktops. Camunda has been used successfully for the development of omnichannel customer-facing applications, such as **mobile banking apps**, often via a **backend-for-frontend** implementation. ## Next steps You learned the basic concepts of a task application. Your possible next steps are: - Learn how to [embed or customize Camunda Forms](/apis-tools/frontend-development/03-forms/01-introduction-to-forms.md) to render tailored forms that can be designed by business users. - Learn how to utilize the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) to query and execute tasks in your task application, and to enrich it with process execution data. --- ## User task lifecycle The user task lifecycle in Camunda defines how users interact with tasks and perform work. Define it before implementing your application logic and user interface. ## Define your task lifecycle Define your task lifecycle based on your use case, the users interacting with the task, and the data you want to track. Use the following task lifecycle as a starting point. ## Task lifecycle example [Tasklist](/components/tasklist/introduction-to-tasklist.md) implements a lifecycle optimized for tracking work on individual tasks using [forms](../03-forms/01-introduction-to-forms.md). It separates assignment from task state to support collaborative processes. In a typical flow, users can: - Get assigned to a task, or assign the task to themselves. - Start working on the task. - Complete the task when the work is done. - Pause, resume, or return the task if they can't continue work, depending on how your task application handles interrupted work. If your application supports interrupted work, make sure it explicitly persists any draft or intermediate data before users leave the form. ```mermaid stateDiagram-v2 direction LR [*] --> creating creating --> created created --> assigning assigning --> created created --> updating updating --> created created --> completing completing --> created completing --> completed creating --> canceling created --> canceling assigning --> canceling updating --> canceling completing --> canceling canceling --> canceled classDef listenerEvent fill:#fc5d0d,color:white,font-weight:bold class creating listenerEvent class assigning listenerEvent class updating listenerEvent class completing listenerEvent class canceling listenerEvent ``` The engine derives the task state using a CQRS pattern. [Zeebe](/components/zeebe/zeebe-overview.md), Camunda's process execution engine, manages a stream of events. There is no single status attribute on tasks. Instead, the task status is derived from these events. User task listeners run in a blocking manner. The lifecycle transition pauses until all listeners complete. Listeners can also deny certain transitions. During `completing`, a listener can reject the transition and return the task to its previous state. :::tip Optimize currently tracks assigned and unassigned time for user tasks. If you need more detailed reporting, such as work started, paused, resumed, or returned, model these as custom `action` values and process them in your own reporting or audit logic. ::: ### Task assignment Assignment runs independently of the work state, so tasks can be reassigned while work is in progress. A task may be assigned but remain open for some time, indicating that the assigned user is not available to work on it immediately. The assignee can also change while work is in progress. In the Tasklist user interface, a task can be claimed by the logged-in user, which assigns the task to that user. Managers can assign unassigned tasks to team members and reassign them as needed. ```mermaid flowchart subgraph Assignment Unassigned(Unassigned) -->|assign/claim| Assigned(fa:fa-user Assigned) Assigned -->|return| Unassigned Assigned -->|reassign| Assigned end ``` The execution engine does not validate user authorization. Your application must enforce access control. Tasklist allows only the assigned user or another authorized user to update and complete a task. You can implement different rules in your application, such as allowing a user to complete a task on behalf of another user. In Camunda 8.9 and later, you can use [user task authorizations](../../../components/tasklist/user-task-authorization.md) to control who can read, update, assign, or complete user tasks. The following best practices are implemented in Tasklist: - `update` and `complete` operations can only be performed by the assigned user or an admin or manager. - Users can only see tasks assigned to them and tasks assigned to their candidate groups. - When a task is returned to the queue, the assignee is cleared so another user can pick it up. - Only authorized users can reassign tasks. - Users can return tasks, but they must provide a comment explaining why. - Users can mark tasks with a follow-up date. Depending on the assignment, the task remains assigned to the user or becomes unassigned. Define validation logic that matches your use case. ## Lifecycle events Camunda emits lifecycle events that can be triggered by REST API operations. User task listeners react to them to execute custom logic. For details, see [user task listeners](/components/concepts/user-task-listeners.md). Supported events: - `creating` - `assigning` - `updating` - `completing` - `canceling` Lifecycle events represent engine-level transitions. Supported API calls can include an `action` value to add application-specific meaning to the resulting user task listener event. For example, your application can use actions such as `start`, `pause`, or `resume` to represent application-level work progress. ### `creating` The `creating` event is emitted when a task instance is created. If the `creating` event already contains an assignee, no additional `assigning` event is fired. ### `assigning` The engine emits the `assigning` event when a task assignment changes. The resulting event can include an `action` value, such as `claim`, `assign`, `return`, or `unassign`. ### `updating` The engine emits the `updating` event when task data changes, except assignment changes. This can include changes to variables, candidate users, candidate groups, or other supported task fields. The update API can also include an `action` value. Use this value to add application-specific meaning to the resulting event, such as `start`, `pause`, or `resume`. ### `completing` The engine emits the `completing` event when a task is being completed. It can contain a custom action to indicate the outcome, such as `approved` or `rejected`. ### `canceling` The engine emits the `canceling` event when a user task is terminated by the process. This happens when the process instance is canceled or an interrupting catch event ends the user task. ## Implement the lifecycle Use the Orchestration Cluster REST API to implement task lifecycle operations in your application. See the [full API reference](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). ### Perform lifecycle operations You interact with user tasks through the following endpoints: - Assign or unassign a task: - [`POST /user-tasks/:userTaskKey/assignment`](/apis-tools/orchestration-cluster-api-rest/specifications/assign-user-task.api.mdx) - [`DELETE /user-tasks/:userTaskKey/assignee`](/apis-tools/orchestration-cluster-api-rest/specifications/unassign-user-task.api.mdx) - Update a task: - [`PATCH /user-tasks/:userTaskKey`](/apis-tools/orchestration-cluster-api-rest/specifications/update-user-task.api.mdx) - Complete a task: - [`POST /user-tasks/:userTaskKey/completion`](/apis-tools/orchestration-cluster-api-rest/specifications/complete-user-task.api.mdx) These operations trigger lifecycle events such as `assigning`, `updating`, and `completing`. ### Assign a task Use the assignment endpoint to assign, reassign, or unassign a task. - `POST /user-tasks/:userTaskKey/assignment` assigns or reassigns a task. - `DELETE /user-tasks/:userTaskKey/assignee` removes the current assignee. Use the `action` attribute to describe the reason for the change, such as `claim`, `assign`, or `reassign`. ### Update a task Use the update endpoint to modify task data or provide an application-specific `action` value. You can: - Update fields such as candidate users, candidate groups, due date, or follow-up date using a `changeset`. - Add application-specific meaning to the resulting event by providing an `action` value, such as `start`, `pause`, or `resume`. You can also send custom actions for audit or business logic purposes, such as `escalate`, `requestFurtherInformation`, `uploadDocument`, or `openExternalApp`. Example request: ```json { "changeset": { "dueDate": "2024-03-18T20:47:20.340Z" }, "action": "escalate" } ``` ### Complete a task Use `POST /user-tasks/:userTaskKey/completion` to complete a task. You can include an `action` to indicate the outcome, such as `approve` or `reject`. ## Reporting Use lifecycle events to build audit logs or productivity reports. ### Task lifecycle reporting in Optimize Optimize supports task productivity reports but currently measures only assigned vs. unassigned time. It does not calculate: - **Idle time:** Time a task was open (time to `start`). - **Net working time:** Time during which a task was processed from a custom `start` action to completion, excluding time between custom `pause` and `resume` actions. ### Export task lifecycle information Use user task listeners and job workers to send lifecycle event data to external systems such as analytics or monitoring tools. --- ## Task application architecture A typical task application architecture consists of a task application frontend, a backend-for-frontend, and one or more data sources or services that contain business data relevant for the application users to perform their work. The backend implements Camunda Zeebe and Tasklist clients to retrieve and interact with tasks via Camunda APIs. For historical process instance data, Operate is also required. Depending on the user task implementation type (job worker-based vs Camunda user task) you use in your processes, you need to run either the Tasklist or Zeebe client to run operations on tasks. Task, form, and variable retrieval happens via the API. Learn more about the differences of the task implementation types in the [migration guide for Camunda user tasks](/apis-tools/migration-manuals/migrate-to-camunda-user-tasks.md), and complete that migration before upgrading to 8.10 if you still use job worker-based user tasks. :::tip Starting a new project? Use Camunda user tasks to simplify your implementation. ::: Click on any element of this diagram to jump to the documentation page for the respective component: ```mermaid %%{init: {"flowchart": {"htmlLabels": true}} }%% flowchart LR subgraph Architecture direction LR subgraph Custom Task Application direction LR Frontend --- BFF B --- ExtData subgraph BFF[ ] direction TB B[BFF \n Backend for Frontend] ExtData[Business Data] end end subgraph Camunda 8 direction LR subgraph Tasklist Rest[Rest API] Forms end subgraph Zeebe ZeebeRest[Rest API] end Tasklist <-.-> Job[Job worker-based tasks] Tasklist <-.-> ZeebeTasks Rest <-.-> Forms Zeebe[Zeebe REST API] <-.-> ZeebeTasks[Zeebe-based tasks] end BFF -->|Query Tasks\nJob-Based or Zeebe| Tasklist BFF -->|Operation\nJob-based| Tasklist BFF -->|Operation\nZeebe| Zeebe end style Frontend fill:#2272c9,color:#fff style B fill:#2272c9,color:#fff style Rest fill:#10c95d,color:#fff style ZeebeRest fill:#ed7d31,color:#fff style Zeebe stroke:#ed7d31 style Job fill:#10c95d,color:#fff style ZeebeTasks fill:#ed7d31,color:#fff style subGraph1 fill:#e4eef8,stroke:#2272c9 style BFF fill:#c8dcf0,stroke:#2272c9 style ExtData fill:#a5caef,stroke:#2272c9 style Tasklist stroke:#10c95d,color:#000 click Forms "../../forms/introduction-to-forms" click Rest "../../../tasklist-api-rest/tasklist-api-rest-overview" click Job "../../../migration-manuals/migrate-to-camunda-user-tasks" click ZeebeTasks "../../../migration-manuals/migrate-to-camunda-user-tasks" click ZeebeRest "../../../zeebe-api-rest/zeebe-api-rest-overview" ``` Follow these resources to learn more about the individual components: - Learn how to use the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/specifications/assign-user-task.api.mdx) for task, variable, and form retrieval, and to run operations on Camunda user tasks. - If you still use older job worker-based user tasks, review [migrating to Camunda user tasks](/apis-tools/migration-manuals/migrate-to-camunda-user-tasks.md) and complete that migration before upgrading to 8.10, because this capability relied on the removed V1 Tasklist API. - Understand how to design, embed, and customize [forms](/apis-tools/frontend-development/03-forms/01-introduction-to-forms.md). - Understand how this architecture fits into the overall Camunda architecture with the [Java greenfield stack](/components/best-practices/architecture/deciding-about-your-stack.md). --- ## Introduction to forms Forms play a key role in giving work instructions, collecting information and making decisions within human task orchestration. Forms are lightweight user interfaces, tailored for focused data input in specific steps of a process, rendering the orchestration of human tasks more efficient than simply routing users to the applications that are orchestrated. Forms are commonly used in [user tasks](/components/modeler/bpmn/user-tasks/user-tasks.md#user-task-forms), but also as [start forms](/components/tasklist/userguide/starting-processes.md) to start a new process instance. ## Camunda Forms In Camunda 8, you can design forms using a drag'n'drop editor. The form editor is available in both Desktop and Camunda Hub. Learn more about Camunda Forms and available components in the [Camunda Forms reference documentation](/components/modeler/forms/camunda-forms-reference.md), and learn how to design a human workflow with forms in the [getting started guide](/guides/getting-started-orchestrate-human-tasks.md). ## form-js Camunda Forms present a flexible, open solution to form creation. Camunda Forms are based on the [form-js library](https://github.com/bpmn-io/form-js) , maintained by Camunda. As a result, the form editor and renderer are non-proprietary, open-source technology, and can be used everywhere, also outside the context of Camunda 8. This unlocks a world of use cases, and eliminates any doubt around vendor lock-in or technical barriers. Form-js is a vanilla JavaScript library with [Preact](https://preactjs.com/) in the background, and can be used in any framework, from Angular to React. The resulting forms are serialized as a JSON document. The JSON document conforms to an open form schema that allows you to render the form using both the built-in form render, or even with a custom render. The form schema is extensible, allowing you to build your own extensions or custom components. :::tip Want to Contribute? We welcome your contributions to form-js! Whether it's fixing a bug, adding a feature or a new component, your input is valuable. You can also provide your ideas by opening issues for us or the community. **How to Contribute:** 1. 🌐 Visit our [GitHub Repository](https://github.com/bpmn-io/form-js). 2. 🛠️ Check out the issues or open a new one. 3. 💻 Fork the repository and submit a pull request. Let's make form-js better together! 👩‍💻👨‍💻 ::: Continue reading to learn how to setup, embed, and extend form-js to build form-based task applications for any use case. --- ## Concepts Use form-js, the open-source library that powers Camunda Forms, to embed forms anywhere from vanilla JavaScript to low-code application platforms. With form-js, you can view, visually edit, and simulate forms that are based on pure JSON. ## form-js basics The form-js project is made of three core libraries: the [form editor](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-editor) , the [form viewer](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer) , and the [form playground](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-playground) . ### Form editor You can use the [form editor](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-editor) to design forms with a drag-and-drop interface. It uses [FEEL expressions](/components/modeler/feel/what-is-feel.md) to execute form logic in realtime, such as visibility conditions. Learn more about using the form editor in the [getting started guide](/components/modeler/desktop-modeler/utilize-forms.md). :::note The Camunda 8 form editor uses the [form playground](#form-playground) as it provides real-time preview and validation functionality. ::: ### Form viewer The [form viewer](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer) renders a form built using the form editor. It is versatile and can be embedded in any JavaScript application to render a form and capture user interactions. Learn more about embedding the form viewer on the following pages. See the following example form using the form viewer, and interact with it: ### Form playground The [form playground](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-playground) is a tool to preview forms, simulate their behavior, and explore form-js in a playful manner. It combines the [editor](#form-editor) and the [viewer](#form-viewer) with mock data input and output panels to test a form and form editor features instantly. There is also a [Camunda-flavored version of the form playground](https://github.com/camunda/form-playground) , which closely resembles the form editor experience in [Camunda Hub](/components/hub/workspace/modeler/index.md) and [Desktop Modeler](/components/modeler/desktop-modeler/index.md), and supports rapid development. The form playground mainly comprises the following areas: - The **component palette** to search and add components. - The **editor canvas**, allowing to compose a form by dragging components. - The **preview pane**, which shows an interactive preview of the form. The preview updates in real-time when a change happens in the editor, properties panel, or mock input data. - The **properties panel**, which is used to configure the properties of a component. - The **data input panel**, which allows to simulate the form preview using mock input data. - The **output panel**, which calculates and shows the current form output in real-time, based on the interactions with the preview. The input and output panel, together with the preview, come in handy to simulate the behavior of a form, and to validate or debug the configuration of one or multiple components, especially when using expressions extensively. Use the input data panel to simulate process variables, business objects, or static data used in your form. Try form playground Try the form playground yourself directly on the web, no log in needed. ## The form schema A form is serialized as plain JSON with a simple, flat structure to maximize flexibility and versatility. In the root, a form contains some metadata attributes. The main form is defined by a list of components, where the components carry their layout properties themselves (e.g. which row a component belongs to). This is in contrast to markup languages such as HTML, where the arrangement of the nodes determines the layout. This enables backward compatibility and compatibility with user-defined renderers. See this simple form schema for example, and the resulting form: ```json { "components": [ { "label": "First name", "type": "textfield", "layout": { "row": "Row_0hqc9xn", "columns": null }, "id": "Field_05l2s7c", "key": "firstName" }, { "label": "Last name", "type": "textfield", "layout": { "row": "Row_0hqc9xn", "columns": null }, "id": "Field_0nw7e1c", "key": "lastName" }, { "label": "Income", "type": "number", "layout": { "row": "Row_1ggwq2d", "columns": 8 }, "id": "Field_12yshuy", "key": "monthlyNetIncome", "description": "Monthly net income", "appearance": { "prefixAdorner": "USD" }, "increment": "100", "validate": { "required": true, "min": 0 } } ], "type": "default", "id": "ExampleForm", "executionPlatform": "Camunda Cloud", "executionPlatformVersion": "8.4.0", "exporter": { "name": "Camunda Modeler", "version": "5.18.0" }, "schemaVersion": 12 } ``` All form-js packages share the same [JSON schema](https://github.com/bpmn-io/form-js/tree/develop/packages/form-json-schema) for forms. This enables the interoperability of the created forms between the form editor and the viewer and possibly also between custom-made form renderers, or translating from a Camunda Form to another form. Using the form schema, you can write extensions to existing components, while still receiving benefits from updates made to the core form-js libraries. The schema abstracts the form model from the viewer, and allows you to inject another expression or templating language as an alternative to FEEL, since expressions are simply stored as strings. The schema is built on top of and validated by [`json-schema@draft-07`](https://json-schema.org/draft-07/json-schema-release-notes.html). :::tip You can use tools like this [JSON Schema Viewer](https://navneethg.github.io/jsonschemaviewer/) to explore the schema visually, or this [tool from Atlassian](https://json-schema.app/view/%23?url=https%3A%2F%2Funpkg.com%2F%40bpmn-io%2Fform-json-schema%401.6.0%2Fresources%2Fschema.json) to validate a form against the schema. ::: ### Schema variables Form-js comes with versatile methods to extract the expected input and output variables from a form schema. This makes it easy to validate the input and output of a form, and you can combine it with data validation libraries like [joi](https://github.com/hapijs/joi) to ensure type and schema safety. Learn more about schema variables in the [embedding guide](./02-embed-in-javascript.md). ## Examples Visit the [form-js examples repository](https://github.com/bpmn-io/form-js-examples) to explore form-js by playing with the toolkit. --- ## Embed forms in JavaScript Learn how to embed the form viewer in your own applications and web pages using JavaScript. ## Set up form-js Set up the [form viewer](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer) in your own JavaScript projects by importing the library from NPM or a CDN. Alternatively, you can fork the code and [build it yourself](https://github.com/bpmn-io/form-js?tab=readme-ov-file#build-and-run) . ### NPM If you use [NPM](https://docs.npmjs.com/getting-started/what-is-npm), install the form viewer as follows: ```sh npm install @bpmn-io/form-js-viewer ``` ### CDN You can import the form viewer from a content delivery network (CDN), for example when you want to use the form viewer directly in a browser environment without bundling it with your application. Form-js is served via unpkg. Specify the version you want to reference in the URL. ```js ``` If you want to automatically use the latest version of the form viewer, you can specify only the major version. ```js ``` Make sure to import the stylesheets as well, and ensure that the version matches: ```js ``` ## Embed into your application Embedding a form with the form viewer requires only a few steps. 1. Import the library 2. Specify the render target div and render the form 3. Import the [form schema](./01-concepts.md#the-form-schema) ```js const form = new Form({ container: document.querySelector("#form"), }); // schema of the form to embed const schema = { type: "default", id: "TestForm", components: [ { key: "name", label: "Name", type: "textfield", validate: { required: true, }, }, ], }; await form.importSchema(schema); ``` This results in: You can also detach a form from a container and attach to another during form runtime. Learn more about that in the [API documentation](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#formattachtoparentnode-htmlelement--void) . ### Input form context data To provide data to your form, such as process variables or business objects, pass a JSON object containing this data to the `importSchema` function. ```js ... const schema = { ... }; // form context/input data const data = { name: 'ACME Corp' }; await form.importSchema(schema, data); ``` This results in: You can use context data not just to populate field values, but also to control form behavior, to provide options for select fields, or even to provide localization to your forms. You can fetch business data via an API first, and inject it via the data object. The following example demonstrates how to provide select options via context data, by using a `valuesExpression`. ```js ... const schema = { components: [ { label: "Business domain", type: "select", key: "domain", valuesExpression: "=businessDomains" } ], type: "default", id: "TestForm", schemaVersion: 12 }; // form context/input data const data = { businessDomains: ["Software development", "Consulting"] }; await form.importSchema(schema, data); ``` This results in: ### Validate a form Before you allow a user to submit a form, you can use the `validate` function to ensure that all validation rules of your form are met and that all required fields are completed. Learn more in the [form API documentation](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#formvalidate--errors) . ```js const errors = form.validate(); if (Object.keys(errors).length) { console.error("Form has errors", errors); } ``` ### Trigger and listen to form events Form-js provides a comprehensive set of events and APIs to react on form state changes. You can listen for - [form state changes](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#changed---data-errors-) , - [form submissions](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#submit---data-errors-) , - [form layout changes](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#layouting-events) . In addition, hook into [lifecycle events](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#lifecycle-events) to add custom logic (e.g. initialize listeners on form fields after the form loaded). Learn more about the full API in the [GitHub repository documentation](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#api) . ### Retrieve form output data To retrieve the current form output data on any form state change, listen to the [`changed`](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#changed---data-errors--) event. To retrieve the data on submit, listen to the [`submit`](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer#formsubmit---data-data-errors-errors-) event. ### Retrieve schema variables Use the `getSchemaVariables` util to retrieve the [variables defined in a form schema](./01-concepts.md#schema-variables). This is useful to gather what data is consumed and produced by a form. ```javascript const variables = getSchemaVariables(schema); console.log("Schema variables", variables); ``` It is also possible to distinct between input and output variables: ```javascript const outputVariables = getSchemaVariables(schema, { inputs: false }); const inputVariables = getSchemaVariables(schema, { outputs: false }); ``` :::note form-js does not enforce typing. Retrieving schema variables returns the variable names, but not the type or whether the variable is optional (i.e. whether the field is required or not). To retrieve the expected type of the variable, parse the form schema manually. To enforce the typing of input variables, use validation libraries such as [joi](https://github.com/hapijs/joi) . ::: ### Next steps - [Style forms](../03-customize-and-extend/01-styling.md) using CSS and custom renderers. - [Integrate external data via APIs](../03-customize-and-extend/03-integrate-api-data.md) into your forms and task applications. - Create [custom form components](../03-customize-and-extend/02-custom-components.md) to design flexible forms tailored to your individual use case. --- ## Styling Forms can be easily styled by combining defining own CSS rules and overriding a set of CSS variables. If you want to go beyond CSS, you can fork the [form viewer](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer) and change the HTML returned by the individual form component renderers. ## Styling via CSS Form styling is built on two layers of CSS variables: | Layer | Variables | Purpose | | ----------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Semantic tokens** | `--bio-*` | Name a role rather than a component — surface, text, border, accent, radius. Rebinding one restyles every element in that role. | | **Component variables** | `--color-*`, `--font-*`, `--border-*`, … | What the form actually reads. Each color variable derives from a token; fonts, sizes, and geometry stand on their own. | Rebinding the tokens restyles the whole form, including the properties panel embedded in the form editor. Reach for a component variable only where you want to deviate from the shared semantics. ### Theming with semantic tokens form-js declares the tokens on the `bio-theme-parent` class, which it adds to every root it renders — the form container and any popup it attaches to `document.body`. Override them from an ancestor, and apply your theme class at the **application root** rather than around the form. Popups and tooltips are appended to the end of ``, outside the element that opened them, and a theme only reaches what it contains. ```css .my-theme .bio-theme-parent, .my-theme.bio-theme-parent { --bio-primary: #0f62fe; --bio-surface: #ffffff; --bio-border: #8d8d8d; --bio-text: #161616; } ``` Both selectors are required. A custom property declared on an element always beats one inherited from an ancestor, so a theme has to match the element form-js declared its tokens on — sitting above it is not enough. The complete, always-current list of tokens and the component variables derived from them lives in the stylesheets themselves: - [`form-js-base.css`](https://github.com/bpmn-io/form-js/blob/develop/packages/form-js-viewer/assets/form-js-base.css) — viewer - [`form-js-editor-base.css`](https://github.com/bpmn-io/form-js/blob/develop/packages/form-js-editor/assets/form-js-editor-base.css) — editor In both files the `.bio-theme-parent` block declares the tokens, and the `.fjs-container` block below it maps them onto component variables. ### Component variables Where a token does not express what you need, override the component variable directly on the form container: ```css .fjs-container { --color-background-disabled: #f4f4f4; --font-family: "IBM Plex Sans", sans-serif; --font-size-base: 14px; --form-field-height: 36px; } ``` Fonts, sizes, spacing, and field geometry are only available as component variables — they have no token equivalent. ### Styleable classes The simplest way to find the right styleable elements to override is inspecting form-js using your browser's developer tools. Scope rules with the `.fjs-container` class to prevent CSS conflicts. For example, to override field borders for single-line fields: ```css .fjs-container .fjs-input-group { border-width: 0 0 1px 0; } ``` ### Example To theme a form after another design system, bind the tokens to its palette. This is how the **Custom style (Material-like)** preview below is built: ```css .materialized .bio-theme-parent, .materialized.bio-theme-parent { --bio-surface: rgba(0, 0, 0, 0.06); --bio-text: rgba(0, 0, 0, 0.87); --bio-text-subtle: rgba(0, 0, 0, 0.6); --bio-border: rgba(0, 0, 0, 0.42); --bio-border-subtle: rgba(0, 0, 0, 0.12); --bio-primary: #5453d3; --bio-focus: #5453d3; --bio-danger: #d32f2f; } ``` That covers color. Anything the tokens don't express is defined by a component variable or a plain rule. This includes typography and Material's underlined field, which uses a border shape rather than a color: ```css .materialized .fjs-container { --font-family: Roboto, Helvetica, Arial, sans-serif; --line-height-input: 24px; } .materialized .fjs-container .fjs-input-group { border: none; border-bottom: 1px solid var(--bio-border); border-radius: 4px 4px 0 0; } ``` Basic style Custom style (Material-like) ## Styling via form viewer customization The [form viewer](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer) contains all [basic form components](https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer/src/render/components/form-fields) shipped in Camunda Forms. For full flexibility, fork the library and change the returned HTML of the individual components, or override existing components via [custom form components](02-custom-components.md). ### Example The following example demonstrates replacing the default rendering of the [text field component](https://github.com/bpmn-io/form-js/blob/develop/packages/form-js-viewer/src/render/components/form-fields/Textfield.js) with [Material UI](https://mui.com/material-ui/react-text-field/). ```js title="packages/form-js-viewer/src/render/components/form-fields/Textfield.js" ... export default function Textfield(props) { const { ... } = props; ... const onInputBlur = () => { ... }; return // using MUI TextField instead of default { ... }} /> ; ... } ``` --- ## Custom components Form-js comes with an extension point to hook in custom components. You can define the renderer, the configuration options of the component in the properties panel, and the palette entry. Custom components are built and distributed separately from the form viewer and renderer, and can be plugged in on demand by registering them as `additionalModules`. ```js new Form({ container, schema, data, additionalModules: [MyCustomComponent], }); ``` Read the [step-by-step guide](https://github.com/bpmn-io/form-js-examples/tree/master/custom-components) and inspect the example component to learn how to write your own custom components. :::note Custom components currently cannot be imported into [Camunda Hub](/components/hub/workspace/modeler/index.md) or [Desktop Modeler](/components/modeler/desktop-modeler/index.md). If you use custom components, you need to host the form editor yourself. ::: ## Use cases for custom components - **Integration with external APIs:** create components that integrate with external APIs to fetch real-time data or perform specific actions. For example, a location input component could connect to a mapping API to suggest locations as users type. - **Tailored services architecture:** write your own backend (micro-)services coupled to your components, and let the components communicate with these services to fetch domain-specifc or internal data in a secure fashion. - **File upload:** develop a component that allows users to upload a file, which is stored in a document storage system and returns the reference ID or URL of the document as the component/form output. - **Data visualization:** build components that visualize data directly within the form. This could include charts, graphs, or other visual representations of information relevant to the form's purpose. - **Geolocation services:** create components that leverage geolocation services to capture or display location-based information. This can be helpful for forms that require location-specific data. - **Payment processing:** develop secure components that integrate with payment gateways to handle financial transactions within a form. --- ## Integrate API data Read this page to learn how to integrate external business data into your forms via APIs. ## Load data on form initation Before you initiate your form with data, make sure to fetch external business data and merge it with the process variables first. Data that is not bound to a form field using a key will not be submitted, keeping process instance data clean. As an example, use a `valuesExpression` in your form to populate the options of a select field. ```js //... const schema = { components: [ { label: "Opportunities", type: "select", key: "opportunity", valuesExpression: "=external.salesforce.opportunities", }, ], type: "default", id: "TestForm", schemaVersion: 12, }; const response = await fetch(url, fetchOptions); const opportunities = await response.json(); //... // form context/input data const data = { ...processVariables, external: { salesforce: { opportunities, }, // ... }, }; await form.importSchema(schema, data); ``` ## Load data on runtime with form events :::info Workaround Currently, there is no built-in way to update a form's context data on runtime. However, a workaround exists. ::: To load and update data on runtime (e.g. when searching in a searchable select box, or entering a query in a text field), follow these steps: 1. Listen to the `changed`, `formField.blur`, or `formField.search` event. 2. Gather the current form state from the `changed` event, or call the `submit` function to retrieve the data. 3. Find the query term in the changed state that is relevant for your API calls. 4. Run your API call, e.g. fetch records based on the query term. 5. Re-import the form schema but with the updated data (the current form state you obtained earlier, merged with the API results). Don't forget to block the UI, e.g. using a loading spinner. ## Load data on runtime with a custom component A convenient way to provide realtime data fetching capabilities to your form designers is to design a custom component. For example, you can create a searcheable select that allows users to search and select a record from a CRM system. With custom components, you can create any logic for data retrieval without limitations. You could consider writing your own backend (micro-)services coupled to your components, and let the components communicate with these services to fetch domain-specifc or internal data in a secure fashion. Learn how to develop a custom component in the [custom component guide](./02-custom-components.md). :::note Custom components currently cannot be imported into [Camunda Hub](/components/hub/workspace/modeler/index.md) or [Desktop Modeler](/components/modeler/desktop-modeler/index.md). If you use custom components, you need to host the form editor yourself. ::: --- ## CamundaClient(Api-reference) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: CamundaClient is the ergonomic entry point to the Camunda 8 Orchestration Cluster API. It wraps the generated REST client with configuration, authentication, adaptive backpressure, and transient retry. Its per-operation methods are generated in facade_generated.go. `CamundaClient` exposes **252** methods covering the full Orchestration Cluster REST API surface, with authentication, retries, and backpressure applied automatically. ```go ``` ## Constructors ### New ```go func New(opts ...Option) (*CamundaClient, error) ``` New resolves configuration from environment variables and options, then builds a ready-to-use client. Options take precedence over the environment. ## Methods | Method | Description | | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | [`ActivateAdHocSubProcessActivities`](#activateadhocsubprocessactivities) | ActivateAdHocSubProcessActivities calls the ActivateAdHocSubProcessActivities operation. | | [`ActivateJobs`](#activatejobs) | ActivateJobs calls the ActivateJobs operation. | | [`AssignClientToGroup`](#assignclienttogroup) | AssignClientToGroup calls the AssignClientToGroup operation. | | [`AssignClientToTenant`](#assignclienttotenant) | AssignClientToTenant calls the AssignClientToTenant operation. | | [`AssignGroupToTenant`](#assigngrouptotenant) | AssignGroupToTenant calls the AssignGroupToTenant operation. | | [`AssignMappingRuleToGroup`](#assignmappingruletogroup) | AssignMappingRuleToGroup calls the AssignMappingRuleToGroup operation. | | [`AssignMappingRuleToTenant`](#assignmappingruletotenant) | AssignMappingRuleToTenant calls the AssignMappingRuleToTenant operation. | | [`AssignProcessInstanceBusinessId`](#assignprocessinstancebusinessid) | AssignProcessInstanceBusinessId calls the AssignProcessInstanceBusinessId operation. | | [`AssignRoleToClient`](#assignroletoclient) | AssignRoleToClient calls the AssignRoleToClient operation. | | [`AssignRoleToGroup`](#assignroletogroup) | AssignRoleToGroup calls the AssignRoleToGroup operation. | | [`AssignRoleToMappingRule`](#assignroletomappingrule) | AssignRoleToMappingRule calls the AssignRoleToMappingRule operation. | | [`AssignRoleToTenant`](#assignroletotenant) | AssignRoleToTenant calls the AssignRoleToTenant operation. | | [`AssignRoleToUser`](#assignroletouser) | AssignRoleToUser calls the AssignRoleToUser operation. | | [`AssignUserTask`](#assignusertask) | AssignUserTask calls the AssignUserTask operation. | | [`AssignUserToGroup`](#assignusertogroup) | AssignUserToGroup calls the AssignUserToGroup operation. | | [`AssignUserToTenant`](#assignusertotenant) | AssignUserToTenant calls the AssignUserToTenant operation. | | [`BroadcastSignal`](#broadcastsignal) | BroadcastSignal calls the BroadcastSignal operation. | | [`CancelBatchOperation`](#cancelbatchoperation) | CancelBatchOperation calls the CancelBatchOperation operation. | | [`CancelClusterRebalance`](#cancelclusterrebalance) | CancelClusterRebalance calls the CancelClusterRebalance operation. | | [`CancelProcessInstance`](#cancelprocessinstance) | CancelProcessInstance calls the CancelProcessInstance operation. | | [`CancelProcessInstancesBatchOperation`](#cancelprocessinstancesbatchoperation) | CancelProcessInstancesBatchOperation calls the CancelProcessInstancesBatchOperation operation. | | [`ChangeClusterMode`](#changeclustermode) | ChangeClusterMode calls the ChangeClusterMode operation. | | [`ChangeClusterModeAsClusterAdmin`](#changeclustermodeasclusteradmin) | ChangeClusterModeAsClusterAdmin calls the ChangeClusterModeAsClusterAdmin operation. | | [`Clock`](#clock) | Clock returns the clock this client resolves cadence through. | | [`CompleteJob`](#completejob) | CompleteJob calls the CompleteJob operation. | | [`CompleteUserTask`](#completeusertask) | CompleteUserTask calls the CompleteUserTask operation. | | [`Config`](#config) | Config returns the resolved configuration. | | [`CorrelateMessage`](#correlatemessage) | CorrelateMessage calls the CorrelateMessage operation. | | [`CreateAdminUser`](#createadminuser) | CreateAdminUser calls the CreateAdminUser operation. | | [`CreateAgentInstance`](#createagentinstance) | CreateAgentInstance calls the CreateAgentInstance operation. | | [`CreateAuthorization`](#createauthorization) | CreateAuthorization calls the CreateAuthorization operation. | | [`CreateDeployment`](#createdeployment) | CreateDeployment calls the CreateDeployment operation. | | [`CreateDocument`](#createdocument) | CreateDocument calls the CreateDocument operation. | | [`CreateDocumentLink`](#createdocumentlink) | CreateDocumentLink calls the CreateDocumentLink operation. | | [`CreateDocuments`](#createdocuments) | CreateDocuments calls the CreateDocuments operation. | | [`CreateElementInstanceVariables`](#createelementinstancevariables) | CreateElementInstanceVariables calls the CreateElementInstanceVariables operation. | | [`CreateGlobalClusterVariable`](#createglobalclustervariable) | CreateGlobalClusterVariable calls the CreateGlobalClusterVariable operation. | | [`CreateGlobalTaskListener`](#createglobaltasklistener) | CreateGlobalTaskListener calls the CreateGlobalTaskListener operation. | | [`CreateGroup`](#creategroup) | CreateGroup calls the CreateGroup operation. | | [`CreateMappingRule`](#createmappingrule) | CreateMappingRule calls the CreateMappingRule operation. | | [`CreateProcessInstance`](#createprocessinstance) | CreateProcessInstance creates (starts) a process instance. | | [`CreateRole`](#createrole) | CreateRole calls the CreateRole operation. | | [`CreateTenant`](#createtenant) | CreateTenant calls the CreateTenant operation. | | [`CreateTenantClusterVariable`](#createtenantclustervariable) | CreateTenantClusterVariable calls the CreateTenantClusterVariable operation. | | [`CreateUser`](#createuser) | CreateUser calls the CreateUser operation. | | [`DeleteAuthorization`](#deleteauthorization) | DeleteAuthorization calls the DeleteAuthorization operation. | | [`DeleteDecisionInstance`](#deletedecisioninstance) | DeleteDecisionInstance calls the DeleteDecisionInstance operation. | | [`DeleteDecisionInstancesBatchOperation`](#deletedecisioninstancesbatchoperation) | DeleteDecisionInstancesBatchOperation calls the DeleteDecisionInstancesBatchOperation operation. | | [`DeleteDocument`](#deletedocument) | DeleteDocument calls the DeleteDocument operation. | | [`DeleteGlobalClusterVariable`](#deleteglobalclustervariable) | DeleteGlobalClusterVariable calls the DeleteGlobalClusterVariable operation. | | [`DeleteGlobalTaskListener`](#deleteglobaltasklistener) | DeleteGlobalTaskListener calls the DeleteGlobalTaskListener operation. | | [`DeleteGroup`](#deletegroup) | DeleteGroup calls the DeleteGroup operation. | | [`DeleteHistoryBackup`](#deletehistorybackup) | DeleteHistoryBackup calls the DeleteHistoryBackup operation. | | [`DeleteHistoryBackupAsClusterAdmin`](#deletehistorybackupasclusteradmin) | DeleteHistoryBackupAsClusterAdmin calls the DeleteHistoryBackupAsClusterAdmin operation. | | [`DeleteMappingRule`](#deletemappingrule) | DeleteMappingRule calls the DeleteMappingRule operation. | | [`DeleteProcessInstance`](#deleteprocessinstance) | DeleteProcessInstance calls the DeleteProcessInstance operation. | | [`DeleteProcessInstancesBatchOperation`](#deleteprocessinstancesbatchoperation) | DeleteProcessInstancesBatchOperation calls the DeleteProcessInstancesBatchOperation operation. | | [`DeleteResource`](#deleteresource) | DeleteResource calls the DeleteResource operation. | | [`DeleteRole`](#deleterole) | DeleteRole calls the DeleteRole operation. | | [`DeleteRuntimeBackup`](#deleteruntimebackup) | DeleteRuntimeBackup calls the DeleteRuntimeBackup operation. | | [`DeleteRuntimeBackupAsClusterAdmin`](#deleteruntimebackupasclusteradmin) | DeleteRuntimeBackupAsClusterAdmin calls the DeleteRuntimeBackupAsClusterAdmin operation. | | [`DeleteRuntimeBackupState`](#deleteruntimebackupstate) | DeleteRuntimeBackupState calls the DeleteRuntimeBackupState operation. | | [`DeleteRuntimeBackupStateAsClusterAdmin`](#deleteruntimebackupstateasclusteradmin) | DeleteRuntimeBackupStateAsClusterAdmin calls the DeleteRuntimeBackupStateAsClusterAdmin operation. | | [`DeleteTenant`](#deletetenant) | DeleteTenant calls the DeleteTenant operation. | | [`DeleteTenantClusterVariable`](#deletetenantclustervariable) | DeleteTenantClusterVariable calls the DeleteTenantClusterVariable operation. | | [`DeleteUser`](#deleteuser) | DeleteUser calls the DeleteUser operation. | | [`EvaluateConditionals`](#evaluateconditionals) | EvaluateConditionals calls the EvaluateConditionals operation. | | [`EvaluateDecision`](#evaluatedecision) | EvaluateDecision calls the EvaluateDecision operation. | | [`EvaluateExpression`](#evaluateexpression) | EvaluateExpression calls the EvaluateExpression operation. | | [`FailJob`](#failjob) | FailJob calls the FailJob operation. | | [`GetAgentDefinition`](#getagentdefinition) | GetAgentDefinition calls the GetAgentDefinition operation. | | [`GetAgentInstance`](#getagentinstance) | GetAgentInstance calls the GetAgentInstance operation. | | [`GetAuditLog`](#getauditlog) | GetAuditLog calls the GetAuditLog operation. | | [`GetAuthentication`](#getauthentication) | GetAuthentication calls the GetAuthentication operation. | | [`GetAuthorization`](#getauthorization) | GetAuthorization calls the GetAuthorization operation. | | [`GetBatchOperation`](#getbatchoperation) | GetBatchOperation calls the GetBatchOperation operation. | | [`GetClusterExportingStatus`](#getclusterexportingstatus) | GetClusterExportingStatus calls the GetClusterExportingStatus operation. | | [`GetClusterRebalance`](#getclusterrebalance) | GetClusterRebalance calls the GetClusterRebalance operation. | | [`GetClusterStatus`](#getclusterstatus) | GetClusterStatus calls the GetClusterStatus operation. | | [`GetClusterTopology`](#getclustertopology) | GetClusterTopology calls the GetClusterTopology operation. | | [`GetClusterUpgradeStatus`](#getclusterupgradestatus) | GetClusterUpgradeStatus calls the GetClusterUpgradeStatus operation. | | [`GetDecisionDefinition`](#getdecisiondefinition) | GetDecisionDefinition calls the GetDecisionDefinition operation. | | [`GetDecisionDefinitionXML`](#getdecisiondefinitionxml) | GetDecisionDefinitionXML calls the GetDecisionDefinitionXML operation. | | [`GetDecisionInstance`](#getdecisioninstance) | GetDecisionInstance calls the GetDecisionInstance operation. | | [`GetDecisionRequirements`](#getdecisionrequirements) | GetDecisionRequirements calls the GetDecisionRequirements operation. | | [`GetDecisionRequirementsXML`](#getdecisionrequirementsxml) | GetDecisionRequirementsXML calls the GetDecisionRequirementsXML operation. | | [`GetDocument`](#getdocument) | GetDocument calls the GetDocument operation. | | [`GetElementInstance`](#getelementinstance) | GetElementInstance calls the GetElementInstance operation. | | [`GetExportingStatus`](#getexportingstatus) | GetExportingStatus calls the GetExportingStatus operation. | | [`GetFormByKey`](#getformbykey) | GetFormByKey calls the GetFormByKey operation. | | [`GetGlobalClusterVariable`](#getglobalclustervariable) | GetGlobalClusterVariable calls the GetGlobalClusterVariable operation. | | [`GetGlobalJobStatistics`](#getglobaljobstatistics) | GetGlobalJobStatistics calls the GetGlobalJobStatistics operation. | | [`GetGlobalTaskListener`](#getglobaltasklistener) | GetGlobalTaskListener calls the GetGlobalTaskListener operation. | | [`GetGroup`](#getgroup) | GetGroup calls the GetGroup operation. | | [`GetHistoryBackup`](#gethistorybackup) | GetHistoryBackup calls the GetHistoryBackup operation. | | [`GetHistoryBackupAsClusterAdmin`](#gethistorybackupasclusteradmin) | GetHistoryBackupAsClusterAdmin calls the GetHistoryBackupAsClusterAdmin operation. | | [`GetIncident`](#getincident) | GetIncident calls the GetIncident operation. | | [`GetJobErrorStatistics`](#getjoberrorstatistics) | GetJobErrorStatistics calls the GetJobErrorStatistics operation. | | [`GetJobTimeSeriesStatistics`](#getjobtimeseriesstatistics) | GetJobTimeSeriesStatistics calls the GetJobTimeSeriesStatistics operation. | | [`GetJobTypeStatistics`](#getjobtypestatistics) | GetJobTypeStatistics calls the GetJobTypeStatistics operation. | | [`GetJobWorkerStatistics`](#getjobworkerstatistics) | GetJobWorkerStatistics calls the GetJobWorkerStatistics operation. | | [`GetLicense`](#getlicense) | GetLicense calls the GetLicense operation. | | [`GetMappingRule`](#getmappingrule) | GetMappingRule calls the GetMappingRule operation. | | [`GetProcessDefinition`](#getprocessdefinition) | GetProcessDefinition calls the GetProcessDefinition operation. | | [`GetProcessDefinitionInstanceStatistics`](#getprocessdefinitioninstancestatistics) | GetProcessDefinitionInstanceStatistics calls the GetProcessDefinitionInstanceStatistics operation. | | [`GetProcessDefinitionInstanceVersionStatistics`](#getprocessdefinitioninstanceversionstatistics) | GetProcessDefinitionInstanceVersionStatistics calls the GetProcessDefinitionInstanceVersionStatistics operation. | | [`GetProcessDefinitionMessageSubscriptionStatistics`](#getprocessdefinitionmessagesubscriptionstatistics) | GetProcessDefinitionMessageSubscriptionStatistics calls the GetProcessDefinitionMessageSubscriptionStatistics operation. | | [`GetProcessDefinitionStatistics`](#getprocessdefinitionstatistics) | GetProcessDefinitionStatistics calls the GetProcessDefinitionStatistics operation. | | [`GetProcessDefinitionXML`](#getprocessdefinitionxml) | GetProcessDefinitionXML calls the GetProcessDefinitionXML operation. | | [`GetProcessInstance`](#getprocessinstance) | GetProcessInstance calls the GetProcessInstance operation. | | [`GetProcessInstanceCallHierarchy`](#getprocessinstancecallhierarchy) | GetProcessInstanceCallHierarchy calls the GetProcessInstanceCallHierarchy operation. | | [`GetProcessInstanceSequenceFlows`](#getprocessinstancesequenceflows) | GetProcessInstanceSequenceFlows calls the GetProcessInstanceSequenceFlows operation. | | [`GetProcessInstanceStatistics`](#getprocessinstancestatistics) | GetProcessInstanceStatistics calls the GetProcessInstanceStatistics operation. | | [`GetProcessInstanceStatisticsByDefinition`](#getprocessinstancestatisticsbydefinition) | GetProcessInstanceStatisticsByDefinition calls the GetProcessInstanceStatisticsByDefinition operation. | | [`GetProcessInstanceStatisticsByError`](#getprocessinstancestatisticsbyerror) | GetProcessInstanceStatisticsByError calls the GetProcessInstanceStatisticsByError operation. | | [`GetProcessInstanceWaitStateStatistics`](#getprocessinstancewaitstatestatistics) | GetProcessInstanceWaitStateStatistics calls the GetProcessInstanceWaitStateStatistics operation. | | [`GetResource`](#getresource) | GetResource calls the GetResource operation. | | [`GetResourceContent`](#getresourcecontent) | GetResourceContent calls the GetResourceContent operation. | | [`GetResourceContentBinary`](#getresourcecontentbinary) | GetResourceContentBinary calls the GetResourceContentBinary operation. | | [`GetRestoreStatus`](#getrestorestatus) | GetRestoreStatus calls the GetRestoreStatus operation. | | [`GetRole`](#getrole) | GetRole calls the GetRole operation. | | [`GetRuntimeBackup`](#getruntimebackup) | GetRuntimeBackup calls the GetRuntimeBackup operation. | | [`GetRuntimeBackupAsClusterAdmin`](#getruntimebackupasclusteradmin) | GetRuntimeBackupAsClusterAdmin calls the GetRuntimeBackupAsClusterAdmin operation. | | [`GetRuntimeBackupState`](#getruntimebackupstate) | GetRuntimeBackupState calls the GetRuntimeBackupState operation. | | [`GetRuntimeBackupStateAsClusterAdmin`](#getruntimebackupstateasclusteradmin) | GetRuntimeBackupStateAsClusterAdmin calls the GetRuntimeBackupStateAsClusterAdmin operation. | | [`GetStartProcessForm`](#getstartprocessform) | GetStartProcessForm calls the GetStartProcessForm operation. | | [`GetStatus`](#getstatus) | GetStatus calls the GetStatus operation. | | [`GetSystemConfiguration`](#getsystemconfiguration) | GetSystemConfiguration calls the GetSystemConfiguration operation. | | [`GetTenant`](#gettenant) | GetTenant calls the GetTenant operation. | | [`GetTenantClusterVariable`](#gettenantclustervariable) | GetTenantClusterVariable calls the GetTenantClusterVariable operation. | | [`GetTopology`](#gettopology) | GetTopology calls the GetTopology operation. | | [`GetUsageMetrics`](#getusagemetrics) | GetUsageMetrics calls the GetUsageMetrics operation. | | [`GetUser`](#getuser) | GetUser calls the GetUser operation. | | [`GetUserTask`](#getusertask) | GetUserTask calls the GetUserTask operation. | | [`GetUserTaskForm`](#getusertaskform) | GetUserTaskForm calls the GetUserTaskForm operation. | | [`GetVariable`](#getvariable) | GetVariable calls the GetVariable operation. | | [`ListHistoryBackups`](#listhistorybackups) | ListHistoryBackups calls the ListHistoryBackups operation. | | [`ListHistoryBackupsAsClusterAdmin`](#listhistorybackupsasclusteradmin) | ListHistoryBackupsAsClusterAdmin calls the ListHistoryBackupsAsClusterAdmin operation. | | [`ListRuntimeBackups`](#listruntimebackups) | ListRuntimeBackups calls the ListRuntimeBackups operation. | | [`ListRuntimeBackupsAsClusterAdmin`](#listruntimebackupsasclusteradmin) | ListRuntimeBackupsAsClusterAdmin calls the ListRuntimeBackupsAsClusterAdmin operation. | | [`ListSecrets`](#listsecrets) | ListSecrets calls the ListSecrets operation. | | [`MigrateProcessInstance`](#migrateprocessinstance) | MigrateProcessInstance calls the MigrateProcessInstance operation. | | [`MigrateProcessInstancesBatchOperation`](#migrateprocessinstancesbatchoperation) | MigrateProcessInstancesBatchOperation calls the MigrateProcessInstancesBatchOperation operation. | | [`ModifyProcessInstance`](#modifyprocessinstance) | ModifyProcessInstance calls the ModifyProcessInstance operation. | | [`ModifyProcessInstancesBatchOperation`](#modifyprocessinstancesbatchoperation) | ModifyProcessInstancesBatchOperation calls the ModifyProcessInstancesBatchOperation operation. | | [`NewJobWorker`](#newjobworker) | NewJobWorker creates a worker for jobType. Defaults are seeded from the client's CAMUNDA_WORKER_* configuration and can be overridden with options. | | [`NewStreamJobWorker`](#newstreamjobworker) | NewStreamJobWorker creates a gRPC streaming worker for jobType. Defaults are seeded from the client's CAMUNDA_WORKER_* configuration and can be overridden with options. | | [`PauseClusterExporting`](#pauseclusterexporting) | PauseClusterExporting calls the PauseClusterExporting operation. | | [`PauseExporting`](#pauseexporting) | PauseExporting calls the PauseExporting operation. | | [`PinAt`](#pinat) | PinAt moves the engine clock to t. | | [`PinClock`](#pinclock) | PinClock calls the PinClock operation. | | [`PublishMessage`](#publishmessage) | PublishMessage calls the PublishMessage operation. | | [`Random`](#random) | Random returns the source this client draws jitter from. | | [`Raw`](#raw) | Raw returns the underlying generated client for operations or options not yet surfaced on the ergonomic facade. | | [`ResetClock`](#resetclock) | ResetClock calls the ResetClock operation. | | [`ResetToLive`](#resettolive) | ResetToLive returns the engine clock to real time. | | [`ResolveIncident`](#resolveincident) | ResolveIncident calls the ResolveIncident operation. | | [`ResolveIncidentsBatchOperation`](#resolveincidentsbatchoperation) | ResolveIncidentsBatchOperation calls the ResolveIncidentsBatchOperation operation. | | [`ResolveProcessInstanceIncidents`](#resolveprocessinstanceincidents) | ResolveProcessInstanceIncidents calls the ResolveProcessInstanceIncidents operation. | | [`ResolveSecrets`](#resolvesecrets) | ResolveSecrets calls the ResolveSecrets operation. | | [`Restore`](#restore) | Restore calls the Restore operation. | | [`RestoreAsClusterAdmin`](#restoreasclusteradmin) | RestoreAsClusterAdmin calls the RestoreAsClusterAdmin operation. | | [`ResumeBatchOperation`](#resumebatchoperation) | ResumeBatchOperation calls the ResumeBatchOperation operation. | | [`ResumeClusterExporting`](#resumeclusterexporting) | ResumeClusterExporting calls the ResumeClusterExporting operation. | | [`ResumeExporting`](#resumeexporting) | ResumeExporting calls the ResumeExporting operation. | | [`ResumeProcessInstance`](#resumeprocessinstance) | ResumeProcessInstance calls the ResumeProcessInstance operation. | | [`ResumeProcessInstancesBatchOperation`](#resumeprocessinstancesbatchoperation) | ResumeProcessInstancesBatchOperation calls the ResumeProcessInstancesBatchOperation operation. | | [`SearchAgentDefinitions`](#searchagentdefinitions) | SearchAgentDefinitions calls the SearchAgentDefinitions operation. | | [`SearchAgentInstanceHistory`](#searchagentinstancehistory) | SearchAgentInstanceHistory calls the SearchAgentInstanceHistory operation. | | [`SearchAgentInstances`](#searchagentinstances) | SearchAgentInstances calls the SearchAgentInstances operation. | | [`SearchAuditLogs`](#searchauditlogs) | SearchAuditLogs calls the SearchAuditLogs operation. | | [`SearchAuthorizations`](#searchauthorizations) | SearchAuthorizations calls the SearchAuthorizations operation. | | [`SearchBatchOperationItems`](#searchbatchoperationitems) | SearchBatchOperationItems calls the SearchBatchOperationItems operation. | | [`SearchBatchOperations`](#searchbatchoperations) | SearchBatchOperations calls the SearchBatchOperations operation. | | [`SearchClientsForGroup`](#searchclientsforgroup) | SearchClientsForGroup calls the SearchClientsForGroup operation. | | [`SearchClientsForRole`](#searchclientsforrole) | SearchClientsForRole calls the SearchClientsForRole operation. | | [`SearchClientsForTenant`](#searchclientsfortenant) | SearchClientsForTenant calls the SearchClientsForTenant operation. | | [`SearchClusterVariables`](#searchclustervariables) | SearchClusterVariables calls the SearchClusterVariables operation. | | [`SearchCorrelatedMessageSubscriptions`](#searchcorrelatedmessagesubscriptions) | SearchCorrelatedMessageSubscriptions calls the SearchCorrelatedMessageSubscriptions operation. | | [`SearchDecisionDefinitions`](#searchdecisiondefinitions) | SearchDecisionDefinitions calls the SearchDecisionDefinitions operation. | | [`SearchDecisionInstances`](#searchdecisioninstances) | SearchDecisionInstances calls the SearchDecisionInstances operation. | | [`SearchDecisionRequirements`](#searchdecisionrequirements) | SearchDecisionRequirements calls the SearchDecisionRequirements operation. | | [`SearchElementInstanceIncidents`](#searchelementinstanceincidents) | SearchElementInstanceIncidents calls the SearchElementInstanceIncidents operation. | | [`SearchElementInstanceWaitStates`](#searchelementinstancewaitstates) | SearchElementInstanceWaitStates calls the SearchElementInstanceWaitStates operation. | | [`SearchElementInstances`](#searchelementinstances) | SearchElementInstances calls the SearchElementInstances operation. | | [`SearchGlobalTaskListeners`](#searchglobaltasklisteners) | SearchGlobalTaskListeners calls the SearchGlobalTaskListeners operation. | | [`SearchGroupIdsForTenant`](#searchgroupidsfortenant) | SearchGroupIdsForTenant calls the SearchGroupIdsForTenant operation. | | [`SearchGroups`](#searchgroups) | SearchGroups calls the SearchGroups operation. | | [`SearchGroupsForRole`](#searchgroupsforrole) | SearchGroupsForRole calls the SearchGroupsForRole operation. | | [`SearchIncidents`](#searchincidents) | SearchIncidents calls the SearchIncidents operation. | | [`SearchJobs`](#searchjobs) | SearchJobs calls the SearchJobs operation. | | [`SearchMappingRule`](#searchmappingrule) | SearchMappingRule calls the SearchMappingRule operation. | | [`SearchMappingRulesForGroup`](#searchmappingrulesforgroup) | SearchMappingRulesForGroup calls the SearchMappingRulesForGroup operation. | | [`SearchMappingRulesForRole`](#searchmappingrulesforrole) | SearchMappingRulesForRole calls the SearchMappingRulesForRole operation. | | [`SearchMappingRulesForTenant`](#searchmappingrulesfortenant) | SearchMappingRulesForTenant calls the SearchMappingRulesForTenant operation. | | [`SearchMessageSubscriptions`](#searchmessagesubscriptions) | SearchMessageSubscriptions calls the SearchMessageSubscriptions operation. | | [`SearchOwnAuthorizations`](#searchownauthorizations) | SearchOwnAuthorizations calls the SearchOwnAuthorizations operation. | | [`SearchProcessDefinitionVariableNames`](#searchprocessdefinitionvariablenames) | SearchProcessDefinitionVariableNames calls the SearchProcessDefinitionVariableNames operation. | | [`SearchProcessDefinitions`](#searchprocessdefinitions) | SearchProcessDefinitions calls the SearchProcessDefinitions operation. | | [`SearchProcessInstanceIncidents`](#searchprocessinstanceincidents) | SearchProcessInstanceIncidents calls the SearchProcessInstanceIncidents operation. | | [`SearchProcessInstances`](#searchprocessinstances) | SearchProcessInstances calls the SearchProcessInstances operation. | | [`SearchResources`](#searchresources) | SearchResources calls the SearchResources operation. | | [`SearchRoles`](#searchroles) | SearchRoles calls the SearchRoles operation. | | [`SearchRolesForGroup`](#searchrolesforgroup) | SearchRolesForGroup calls the SearchRolesForGroup operation. | | [`SearchRolesForTenant`](#searchrolesfortenant) | SearchRolesForTenant calls the SearchRolesForTenant operation. | | [`SearchTenants`](#searchtenants) | SearchTenants calls the SearchTenants operation. | | [`SearchUserTaskAuditLogs`](#searchusertaskauditlogs) | SearchUserTaskAuditLogs calls the SearchUserTaskAuditLogs operation. | | [`SearchUserTaskEffectiveVariables`](#searchusertaskeffectivevariables) | SearchUserTaskEffectiveVariables calls the SearchUserTaskEffectiveVariables operation. | | [`SearchUserTaskVariables`](#searchusertaskvariables) | SearchUserTaskVariables calls the SearchUserTaskVariables operation. | | [`SearchUserTasks`](#searchusertasks) | SearchUserTasks calls the SearchUserTasks operation. | | [`SearchUsers`](#searchusers) | SearchUsers calls the SearchUsers operation. | | [`SearchUsersForGroup`](#searchusersforgroup) | SearchUsersForGroup calls the SearchUsersForGroup operation. | | [`SearchUsersForRole`](#searchusersforrole) | SearchUsersForRole calls the SearchUsersForRole operation. | | [`SearchUsersForTenant`](#searchusersfortenant) | SearchUsersForTenant calls the SearchUsersForTenant operation. | | [`SearchVariables`](#searchvariables) | SearchVariables calls the SearchVariables operation. | | [`SuspendBatchOperation`](#suspendbatchoperation) | SuspendBatchOperation calls the SuspendBatchOperation operation. | | [`SuspendProcessInstance`](#suspendprocessinstance) | SuspendProcessInstance calls the SuspendProcessInstance operation. | | [`SuspendProcessInstancesBatchOperation`](#suspendprocessinstancesbatchoperation) | SuspendProcessInstancesBatchOperation calls the SuspendProcessInstancesBatchOperation operation. | | [`SyncRuntimeBackupState`](#syncruntimebackupstate) | SyncRuntimeBackupState calls the SyncRuntimeBackupState operation. | | [`SyncRuntimeBackupStateAsClusterAdmin`](#syncruntimebackupstateasclusteradmin) | SyncRuntimeBackupStateAsClusterAdmin calls the SyncRuntimeBackupStateAsClusterAdmin operation. | | [`TakeHistoryBackup`](#takehistorybackup) | TakeHistoryBackup calls the TakeHistoryBackup operation. | | [`TakeHistoryBackupAsClusterAdmin`](#takehistorybackupasclusteradmin) | TakeHistoryBackupAsClusterAdmin calls the TakeHistoryBackupAsClusterAdmin operation. | | [`TakeRuntimeBackup`](#takeruntimebackup) | TakeRuntimeBackup calls the TakeRuntimeBackup operation. | | [`TakeRuntimeBackupAsClusterAdmin`](#takeruntimebackupasclusteradmin) | TakeRuntimeBackupAsClusterAdmin calls the TakeRuntimeBackupAsClusterAdmin operation. | | [`ThrowJobError`](#throwjoberror) | ThrowJobError calls the ThrowJobError operation. | | [`TriggerClusterRebalance`](#triggerclusterrebalance) | TriggerClusterRebalance calls the TriggerClusterRebalance operation. | | [`UnassignClientFromGroup`](#unassignclientfromgroup) | UnassignClientFromGroup calls the UnassignClientFromGroup operation. | | [`UnassignClientFromTenant`](#unassignclientfromtenant) | UnassignClientFromTenant calls the UnassignClientFromTenant operation. | | [`UnassignGroupFromTenant`](#unassigngroupfromtenant) | UnassignGroupFromTenant calls the UnassignGroupFromTenant operation. | | [`UnassignMappingRuleFromGroup`](#unassignmappingrulefromgroup) | UnassignMappingRuleFromGroup calls the UnassignMappingRuleFromGroup operation. | | [`UnassignMappingRuleFromTenant`](#unassignmappingrulefromtenant) | UnassignMappingRuleFromTenant calls the UnassignMappingRuleFromTenant operation. | | [`UnassignRoleFromClient`](#unassignrolefromclient) | UnassignRoleFromClient calls the UnassignRoleFromClient operation. | | [`UnassignRoleFromGroup`](#unassignrolefromgroup) | UnassignRoleFromGroup calls the UnassignRoleFromGroup operation. | | [`UnassignRoleFromMappingRule`](#unassignrolefrommappingrule) | UnassignRoleFromMappingRule calls the UnassignRoleFromMappingRule operation. | | [`UnassignRoleFromTenant`](#unassignrolefromtenant) | UnassignRoleFromTenant calls the UnassignRoleFromTenant operation. | | [`UnassignRoleFromUser`](#unassignrolefromuser) | UnassignRoleFromUser calls the UnassignRoleFromUser operation. | | [`UnassignUserFromGroup`](#unassignuserfromgroup) | UnassignUserFromGroup calls the UnassignUserFromGroup operation. | | [`UnassignUserFromTenant`](#unassignuserfromtenant) | UnassignUserFromTenant calls the UnassignUserFromTenant operation. | | [`UnassignUserTask`](#unassignusertask) | UnassignUserTask calls the UnassignUserTask operation. | | [`UpdateAgentInstance`](#updateagentinstance) | UpdateAgentInstance calls the UpdateAgentInstance operation. | | [`UpdateAuthorization`](#updateauthorization) | UpdateAuthorization calls the UpdateAuthorization operation. | | [`UpdateGlobalClusterVariable`](#updateglobalclustervariable) | UpdateGlobalClusterVariable calls the UpdateGlobalClusterVariable operation. | | [`UpdateGlobalTaskListener`](#updateglobaltasklistener) | UpdateGlobalTaskListener calls the UpdateGlobalTaskListener operation. | | [`UpdateGroup`](#updategroup) | UpdateGroup calls the UpdateGroup operation. | | [`UpdateJob`](#updatejob) | UpdateJob calls the UpdateJob operation. | | [`UpdateJobsBatchOperation`](#updatejobsbatchoperation) | UpdateJobsBatchOperation calls the UpdateJobsBatchOperation operation. | | [`UpdateMappingRule`](#updatemappingrule) | UpdateMappingRule calls the UpdateMappingRule operation. | | [`UpdateRole`](#updaterole) | UpdateRole calls the UpdateRole operation. | | [`UpdateTenant`](#updatetenant) | UpdateTenant calls the UpdateTenant operation. | | [`UpdateTenantClusterVariable`](#updatetenantclustervariable) | UpdateTenantClusterVariable calls the UpdateTenantClusterVariable operation. | | [`UpdateUser`](#updateuser) | UpdateUser calls the UpdateUser operation. | | [`UpdateUserTask`](#updateusertask) | UpdateUserTask calls the UpdateUserTask operation. | ## Method details ### ActivateAdHocSubProcessActivities ```go func (c *CamundaClient) ActivateAdHocSubProcessActivities(ctx context.Context, adHocSubProcessInstanceKey ElementInstanceKey, body AdHocSubProcessActivateActivitiesInstruction, opts ...func(ApiActivateAdHocSubProcessActivitiesRequest) ApiActivateAdHocSubProcessActivitiesRequest) error ``` **Types:** [`ElementInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceKey), [`AdHocSubProcessActivateActivitiesInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AdHocSubProcessActivateActivitiesInstruction), [`ApiActivateAdHocSubProcessActivitiesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiActivateAdHocSubProcessActivitiesRequest) ActivateAdHocSubProcessActivities calls the ActivateAdHocSubProcessActivities operation. Example: ```go instruction := camunda.NewAdHocSubProcessActivateActivitiesInstruction( []camunda.AdHocSubProcessActivateActivityReference{ *camunda.NewAdHocSubProcessActivateActivityReference("review-task"), }) return client.ActivateAdHocSubProcessActivities(ctx, camunda.MustElementInstanceKey("2251799813685360"), *instruction) ``` ### ActivateJobs ```go func (c *CamundaClient) ActivateJobs(ctx context.Context, body JobActivationRequest, opts ...func(ApiActivateJobsRequest) ApiActivateJobsRequest) (*JobActivationResult, error) ``` **Types:** [`JobActivationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobActivationRequest), [`ApiActivateJobsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiActivateJobsRequest), [`JobActivationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobActivationResult) ActivateJobs calls the ActivateJobs operation. Example: ```go // Activate up to 10 "greet" jobs with a 60s activation timeout. req := camunda.NewJobActivationRequest("greet", 60_000, 10) req.SetWorker("greet-worker") result, err := client.ActivateJobs(ctx, *req) if err != nil { return err } for _, job := range result.GetJobs() { fmt.Printf("activated job %v\n", job.GetJobKey()) } ``` ### AssignClientToGroup ```go func (c *CamundaClient) AssignClientToGroup(ctx context.Context, groupId string, clientId string, opts ...func(ApiAssignClientToGroupRequest) ApiAssignClientToGroupRequest) error ``` **Types:** [`ApiAssignClientToGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignClientToGroupRequest) AssignClientToGroup calls the AssignClientToGroup operation. Example: ```go return client.AssignClientToGroup(ctx, "finance", "reporting-service") ``` ### AssignClientToTenant ```go func (c *CamundaClient) AssignClientToTenant(ctx context.Context, tenantId string, clientId string, opts ...func(ApiAssignClientToTenantRequest) ApiAssignClientToTenantRequest) error ``` **Types:** [`ApiAssignClientToTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignClientToTenantRequest) AssignClientToTenant calls the AssignClientToTenant operation. Example: ```go return client.AssignClientToTenant(ctx, "tenant-a", "reporting-service") ``` ### AssignGroupToTenant ```go func (c *CamundaClient) AssignGroupToTenant(ctx context.Context, tenantId string, groupId string, opts ...func(ApiAssignGroupToTenantRequest) ApiAssignGroupToTenantRequest) error ``` **Types:** [`ApiAssignGroupToTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignGroupToTenantRequest) AssignGroupToTenant calls the AssignGroupToTenant operation. Example: ```go return client.AssignGroupToTenant(ctx, "tenant-a", "finance") ``` ### AssignMappingRuleToGroup ```go func (c *CamundaClient) AssignMappingRuleToGroup(ctx context.Context, groupId string, mappingRuleId string, opts ...func(ApiAssignMappingRuleToGroupRequest) ApiAssignMappingRuleToGroupRequest) error ``` **Types:** [`ApiAssignMappingRuleToGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignMappingRuleToGroupRequest) AssignMappingRuleToGroup calls the AssignMappingRuleToGroup operation. Example: ```go return client.AssignMappingRuleToGroup(ctx, "finance", "sso-auditors") ``` ### AssignMappingRuleToTenant ```go func (c *CamundaClient) AssignMappingRuleToTenant(ctx context.Context, tenantId string, mappingRuleId string, opts ...func(ApiAssignMappingRuleToTenantRequest) ApiAssignMappingRuleToTenantRequest) error ``` **Types:** [`ApiAssignMappingRuleToTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignMappingRuleToTenantRequest) AssignMappingRuleToTenant calls the AssignMappingRuleToTenant operation. Example: ```go return client.AssignMappingRuleToTenant(ctx, "tenant-a", "sso-auditors") ``` ### AssignProcessInstanceBusinessId ```go func (c *CamundaClient) AssignProcessInstanceBusinessId(ctx context.Context, processInstanceKey ProcessInstanceKey, body ProcessInstanceBusinessIdAssignmentInstruction, opts ...func(ApiAssignProcessInstanceBusinessIdRequest) ApiAssignProcessInstanceBusinessIdRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ProcessInstanceBusinessIdAssignmentInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceBusinessIdAssignmentInstruction), [`ApiAssignProcessInstanceBusinessIdRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignProcessInstanceBusinessIdRequest) AssignProcessInstanceBusinessId calls the AssignProcessInstanceBusinessId operation. Example: ```go return client.AssignProcessInstanceBusinessId(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewProcessInstanceBusinessIdAssignmentInstruction("order-42")) ``` ### AssignRoleToClient ```go func (c *CamundaClient) AssignRoleToClient(ctx context.Context, roleId string, clientId string, opts ...func(ApiAssignRoleToClientRequest) ApiAssignRoleToClientRequest) error ``` **Types:** [`ApiAssignRoleToClientRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignRoleToClientRequest) AssignRoleToClient calls the AssignRoleToClient operation. Example: ```go return client.AssignRoleToClient(ctx, "auditor", "reporting-service") ``` ### AssignRoleToGroup ```go func (c *CamundaClient) AssignRoleToGroup(ctx context.Context, roleId string, groupId string, opts ...func(ApiAssignRoleToGroupRequest) ApiAssignRoleToGroupRequest) error ``` **Types:** [`ApiAssignRoleToGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignRoleToGroupRequest) AssignRoleToGroup calls the AssignRoleToGroup operation. Example: ```go return client.AssignRoleToGroup(ctx, "auditor", "finance") ``` ### AssignRoleToMappingRule ```go func (c *CamundaClient) AssignRoleToMappingRule(ctx context.Context, roleId string, mappingRuleId string, opts ...func(ApiAssignRoleToMappingRuleRequest) ApiAssignRoleToMappingRuleRequest) error ``` **Types:** [`ApiAssignRoleToMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignRoleToMappingRuleRequest) AssignRoleToMappingRule calls the AssignRoleToMappingRule operation. Example: ```go return client.AssignRoleToMappingRule(ctx, "auditor", "sso-auditors") ``` ### AssignRoleToTenant ```go func (c *CamundaClient) AssignRoleToTenant(ctx context.Context, tenantId string, roleId string, opts ...func(ApiAssignRoleToTenantRequest) ApiAssignRoleToTenantRequest) error ``` **Types:** [`ApiAssignRoleToTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignRoleToTenantRequest) AssignRoleToTenant calls the AssignRoleToTenant operation. Example: ```go return client.AssignRoleToTenant(ctx, "tenant-a", "auditor") ``` ### AssignRoleToUser ```go func (c *CamundaClient) AssignRoleToUser(ctx context.Context, roleId string, username string, opts ...func(ApiAssignRoleToUserRequest) ApiAssignRoleToUserRequest) error ``` **Types:** [`ApiAssignRoleToUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignRoleToUserRequest) AssignRoleToUser calls the AssignRoleToUser operation. Example: ```go return client.AssignRoleToUser(ctx, "auditor", "alice") ``` ### AssignUserTask ```go func (c *CamundaClient) AssignUserTask(ctx context.Context, userTaskKey UserTaskKey, body UserTaskAssignmentRequest, opts ...func(ApiAssignUserTaskRequest) ApiAssignUserTaskRequest) error ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskAssignmentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskAssignmentRequest), [`ApiAssignUserTaskRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignUserTaskRequest) AssignUserTask calls the AssignUserTask operation. Example: ```go req := camunda.NewUserTaskAssignmentRequest("alice") return client.AssignUserTask(ctx, camunda.MustUserTaskKey("2251799813685380"), *req) ``` ### AssignUserToGroup ```go func (c *CamundaClient) AssignUserToGroup(ctx context.Context, groupId string, username string, opts ...func(ApiAssignUserToGroupRequest) ApiAssignUserToGroupRequest) error ``` **Types:** [`ApiAssignUserToGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignUserToGroupRequest) AssignUserToGroup calls the AssignUserToGroup operation. Example: ```go return client.AssignUserToGroup(ctx, "finance", "alice") ``` ### AssignUserToTenant ```go func (c *CamundaClient) AssignUserToTenant(ctx context.Context, tenantId string, username string, opts ...func(ApiAssignUserToTenantRequest) ApiAssignUserToTenantRequest) error ``` **Types:** [`ApiAssignUserToTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiAssignUserToTenantRequest) AssignUserToTenant calls the AssignUserToTenant operation. Example: ```go return client.AssignUserToTenant(ctx, "tenant-a", "alice") ``` ### BroadcastSignal ```go func (c *CamundaClient) BroadcastSignal(ctx context.Context, body SignalBroadcastRequest, opts ...func(ApiBroadcastSignalRequest) ApiBroadcastSignalRequest) (*SignalBroadcastResult, error) ``` **Types:** [`SignalBroadcastRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SignalBroadcastRequest), [`ApiBroadcastSignalRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiBroadcastSignalRequest), [`SignalBroadcastResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SignalBroadcastResult) BroadcastSignal calls the BroadcastSignal operation. Example: ```go req := camunda.NewSignalBroadcastRequest("cancel-all-orders") req.SetVariables(map[string]any{"reason": "maintenance"}) result, err := client.BroadcastSignal(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CancelBatchOperation ```go func (c *CamundaClient) CancelBatchOperation(ctx context.Context, batchOperationKey string, opts ...func(ApiCancelBatchOperationRequest) ApiCancelBatchOperationRequest) error ``` **Types:** [`ApiCancelBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCancelBatchOperationRequest) CancelBatchOperation calls the CancelBatchOperation operation. Example: ```go return client.CancelBatchOperation(ctx, "2251799813685290") ``` ### CancelClusterRebalance ```go func (c *CamundaClient) CancelClusterRebalance(ctx context.Context, opts ...func(ApiCancelClusterRebalanceRequest) ApiCancelClusterRebalanceRequest) (*RebalanceCancellationResponse, error) ``` **Types:** [`ApiCancelClusterRebalanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCancelClusterRebalanceRequest), [`RebalanceCancellationResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RebalanceCancellationResponse) CancelClusterRebalance calls the CancelClusterRebalance operation. Example: ```go // Requires cluster-admin credentials (a separate cluster-admin security chain) — // calling this with standard Orchestration credentials will fail authorization. resp, err := client.CancelClusterRebalance(ctx) if err != nil { return err } if resp.GetWasRunning() { fmt.Println("rebalance cancelled") } else { fmt.Println("no rebalance was running") } ``` ### CancelProcessInstance ```go func (c *CamundaClient) CancelProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body CancelProcessInstanceRequest, opts ...func(ApiCancelProcessInstanceRequest) ApiCancelProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`CancelProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CancelProcessInstanceRequest), [`ApiCancelProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCancelProcessInstanceRequest) CancelProcessInstance calls the CancelProcessInstance operation. Example: ```go return client.CancelProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewCancelProcessInstanceRequest()) ``` ### CancelProcessInstancesBatchOperation ```go func (c *CamundaClient) CancelProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceCancellationBatchOperationRequest, opts ...func(ApiCancelProcessInstancesBatchOperationRequest) ApiCancelProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceCancellationBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceCancellationBatchOperationRequest), [`ApiCancelProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCancelProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) CancelProcessInstancesBatchOperation calls the CancelProcessInstancesBatchOperation operation. Example: ```go // Cancel every instance matching a filter in a single batch operation. req := camunda.NewProcessInstanceCancellationBatchOperationRequest(*camunda.NewProcessInstanceFilter()) result, err := client.CancelProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### ChangeClusterMode ```go func (c *CamundaClient) ChangeClusterMode(ctx context.Context, opts ...func(ApiChangeClusterModeRequest) ApiChangeClusterModeRequest) (*ClusterModeChangeResponse, error) ``` **Types:** [`ApiChangeClusterModeRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiChangeClusterModeRequest), [`ClusterModeChangeResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterModeChangeResponse) ChangeClusterMode calls the ChangeClusterMode operation. Example: ```go result, err := client.ChangeClusterMode(ctx) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### ChangeClusterModeAsClusterAdmin ```go func (c *CamundaClient) ChangeClusterModeAsClusterAdmin(ctx context.Context, opts ...func(ApiChangeClusterModeAsClusterAdminRequest) ApiChangeClusterModeAsClusterAdminRequest) (*ClusterModeChangeResponse, error) ``` **Types:** [`ApiChangeClusterModeAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiChangeClusterModeAsClusterAdminRequest), [`ClusterModeChangeResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterModeChangeResponse) ChangeClusterModeAsClusterAdmin calls the ChangeClusterModeAsClusterAdmin operation. Example: ```go // Changes the cluster mode as a cluster-level admin (cross-tenant authority). result, err := client.ChangeClusterModeAsClusterAdmin(ctx, func(r camunda.ApiChangeClusterModeAsClusterAdminRequest) camunda.ApiChangeClusterModeAsClusterAdminRequest { return r.Mode(camunda.MODE_RECOVERING) }) if err != nil { return err } fmt.Printf("change %s: %d planned operation group(s)\n", result.GetChangeId(), len(result.GetPlannedChanges())) ``` ### Clock ```go func (c *CamundaClient) Clock() Clock ``` Clock returns the clock this client resolves cadence through. ### CompleteJob ```go func (c *CamundaClient) CompleteJob(ctx context.Context, jobKey JobKey, body JobCompletionRequest, opts ...func(ApiCompleteJobRequest) ApiCompleteJobRequest) error ``` **Types:** [`JobKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobKey), [`JobCompletionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobCompletionRequest), [`ApiCompleteJobRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCompleteJobRequest) CompleteJob calls the CompleteJob operation. Example: ```go req := camunda.NewJobCompletionRequest() req.SetVariables(map[string]any{"greeting": "Hello!"}) return client.CompleteJob(ctx, camunda.MustJobKey("2251799813685424"), *req) ``` ### CompleteUserTask ```go func (c *CamundaClient) CompleteUserTask(ctx context.Context, userTaskKey UserTaskKey, body UserTaskCompletionRequest, opts ...func(ApiCompleteUserTaskRequest) ApiCompleteUserTaskRequest) error ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskCompletionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskCompletionRequest), [`ApiCompleteUserTaskRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCompleteUserTaskRequest) CompleteUserTask calls the CompleteUserTask operation. Example: ```go req := camunda.NewUserTaskCompletionRequest() req.SetVariables(map[string]any{"approved": true}) return client.CompleteUserTask(ctx, camunda.MustUserTaskKey("2251799813685380"), *req) ``` ### Config ```go func (c *CamundaClient) Config() *Config ``` Config returns the resolved configuration. ### CorrelateMessage ```go func (c *CamundaClient) CorrelateMessage(ctx context.Context, body MessageCorrelationRequest, opts ...func(ApiCorrelateMessageRequest) ApiCorrelateMessageRequest) (*MessageCorrelationResult, error) ``` **Types:** [`MessageCorrelationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessageCorrelationRequest), [`ApiCorrelateMessageRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCorrelateMessageRequest), [`MessageCorrelationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessageCorrelationResult) CorrelateMessage calls the CorrelateMessage operation. Example: ```go req := camunda.NewMessageCorrelationRequest("order-confirmed") req.SetCorrelationKey("order-42") req.SetVariables(map[string]any{"confirmedBy": "payment-service"}) result, err := client.CorrelateMessage(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateAdminUser ```go func (c *CamundaClient) CreateAdminUser(ctx context.Context, body UserRequest, opts ...func(ApiCreateAdminUserRequest) ApiCreateAdminUserRequest) (*UserCreateResult, error) ``` **Types:** [`UserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserRequest), [`ApiCreateAdminUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateAdminUserRequest), [`UserCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserCreateResult) CreateAdminUser calls the CreateAdminUser operation. Example: ```go // One-time setup: create the initial administrator on a fresh cluster. // "admin-password-123" is a placeholder — don't hardcode passwords in production. result, err := client.CreateAdminUser(ctx, *camunda.NewUserRequest("admin-password-123", "admin")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateAgentInstance ```go func (c *CamundaClient) CreateAgentInstance(ctx context.Context, body AgentInstanceCreationRequest, opts ...func(ApiCreateAgentInstanceRequest) ApiCreateAgentInstanceRequest) (*AgentInstanceCreationResult, error) ``` **Types:** [`AgentInstanceCreationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceCreationRequest), [`ApiCreateAgentInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateAgentInstanceRequest), [`AgentInstanceCreationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceCreationResult) CreateAgentInstance calls the CreateAgentInstance operation. Example: ```go systemPrompt := []camunda.AgentInstanceMessageContent{ camunda.AgentInstanceTextContentAsAgentInstanceMessageContent( camunda.NewAgentInstanceTextContent("TEXT", "You are a helpful assistant.")), } configItem := camunda.NewAgentInstanceHistoryItem( "config-1", camunda.MustLoopIterationId(1), camunda.AGENTINSTANCEHISTORYROLEENUM_CONFIGURATION, nil, time.Now()) configItem.SetModel("gpt-4o") configItem.SetProvider("openai") configItem.SetSystemPrompt(systemPrompt) req := camunda.NewAgentInstanceCreationRequest( camunda.ElementInstanceKey("2251799813685360"), // elementInstanceKey camunda.JobKey("2251799813685424"), // jobKey "lease-token", []camunda.AgentInstanceHistoryItem{*configItem}, // history ) result, err := client.CreateAgentInstance(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateAuthorization ```go func (c *CamundaClient) CreateAuthorization(ctx context.Context, body AuthorizationRequest, opts ...func(ApiCreateAuthorizationRequest) ApiCreateAuthorizationRequest) (*AuthorizationCreateResult, error) ``` **Types:** [`AuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationRequest), [`ApiCreateAuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateAuthorizationRequest), [`AuthorizationCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationCreateResult) CreateAuthorization calls the CreateAuthorization operation. Example: ```go // AuthorizationRequest is a union; grant an id-based authorization here. grant := camunda.NewAuthorizationIdBasedRequest( "user@example.com", camunda.OWNERTYPEENUM_USER, "order-process", camunda.RESOURCETYPEENUM_PROCESS_DEFINITION, []camunda.PermissionTypeEnum{ camunda.PERMISSIONTYPEENUM_READ_PROCESS_DEFINITION, camunda.PERMISSIONTYPEENUM_CREATE_PROCESS_INSTANCE, }, ) result, err := client.CreateAuthorization(ctx, camunda.AuthorizationIdBasedRequestAsAuthorizationRequest(grant)) if err != nil { return err } fmt.Printf("created authorization %v\n", result.GetAuthorizationKey()) ``` ### CreateDeployment ```go func (c *CamundaClient) CreateDeployment(ctx context.Context, opts ...func(ApiCreateDeploymentRequest) ApiCreateDeploymentRequest) (*DeploymentResult, error) ``` **Types:** [`ApiCreateDeploymentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateDeploymentRequest), [`DeploymentResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DeploymentResult) CreateDeployment calls the CreateDeployment operation. Example: ```go // Multipart resource upload is done through the Raw() generated client. f, err := os.Open("order-process.bpmn") if err != nil { return err } defer func() { _ = f.Close() }() deployment, _, err := client.Raw().ResourceAPI.CreateDeployment(ctx). Resources([]*os.File{f}). Execute() if err != nil { return err } fmt.Printf("deployment key %v\n", deployment.GetDeploymentKey()) ``` ### CreateDocument ```go func (c *CamundaClient) CreateDocument(ctx context.Context, opts ...func(ApiCreateDocumentRequest) ApiCreateDocumentRequest) (*DocumentReference, error) ``` **Types:** [`ApiCreateDocumentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateDocumentRequest), [`DocumentReference`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DocumentReference) CreateDocument calls the CreateDocument operation. Example: ```go // The document payload is attached via request options (functional opts) or // the Raw() client; here we call the ergonomic facade method. ref, err := client.CreateDocument(ctx) if err != nil { return err } fmt.Printf("%v\n", ref) ``` ### CreateDocumentLink ```go func (c *CamundaClient) CreateDocumentLink(ctx context.Context, documentId string, body DocumentLinkRequest, opts ...func(ApiCreateDocumentLinkRequest) ApiCreateDocumentLinkRequest) (*DocumentLink, error) ``` **Types:** [`DocumentLinkRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DocumentLinkRequest), [`ApiCreateDocumentLinkRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateDocumentLinkRequest), [`DocumentLink`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DocumentLink) CreateDocumentLink calls the CreateDocumentLink operation. Example: ```go // Create a short-lived, shareable download link for a stored document. link, err := client.CreateDocumentLink(ctx, "doc-123", *camunda.NewDocumentLinkRequest()) if err != nil { return err } fmt.Printf("%v\n", link) ``` ### CreateDocuments ```go func (c *CamundaClient) CreateDocuments(ctx context.Context, opts ...func(ApiCreateDocumentsRequest) ApiCreateDocumentsRequest) (*DocumentCreationBatchResponse, error) ``` **Types:** [`ApiCreateDocumentsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateDocumentsRequest), [`DocumentCreationBatchResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DocumentCreationBatchResponse) CreateDocuments calls the CreateDocuments operation. Example: ```go // Batch upload multiple documents in a single multipart request. result, err := client.CreateDocuments(ctx) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateElementInstanceVariables ```go func (c *CamundaClient) CreateElementInstanceVariables(ctx context.Context, elementInstanceKey ElementInstanceKey, body SetVariableRequest, opts ...func(ApiCreateElementInstanceVariablesRequest) ApiCreateElementInstanceVariablesRequest) error ``` **Types:** [`ElementInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceKey), [`SetVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SetVariableRequest), [`ApiCreateElementInstanceVariablesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateElementInstanceVariablesRequest) CreateElementInstanceVariables calls the CreateElementInstanceVariables operation. Example: ```go // Set local variables on a specific element instance scope. req := camunda.NewSetVariableRequest(map[string]any{"approved": true}) return client.CreateElementInstanceVariables(ctx, camunda.MustElementInstanceKey("2251799813685360"), *req) ``` ### CreateGlobalClusterVariable ```go func (c *CamundaClient) CreateGlobalClusterVariable(ctx context.Context, body CreateClusterVariableRequest, opts ...func(ApiCreateGlobalClusterVariableRequest) ApiCreateGlobalClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`CreateClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CreateClusterVariableRequest), [`ApiCreateGlobalClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateGlobalClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) CreateGlobalClusterVariable calls the CreateGlobalClusterVariable operation. Example: ```go result, err := client.CreateGlobalClusterVariable(ctx, *camunda.NewCreateClusterVariableRequest("region", map[string]any{"value": "eu-1"})) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateGlobalTaskListener ```go func (c *CamundaClient) CreateGlobalTaskListener(ctx context.Context, body CreateGlobalTaskListenerRequest, opts ...func(ApiCreateGlobalTaskListenerRequest) ApiCreateGlobalTaskListenerRequest) (*GlobalTaskListenerResult, error) ``` **Types:** [`CreateGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CreateGlobalTaskListenerRequest), [`ApiCreateGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateGlobalTaskListenerRequest), [`GlobalTaskListenerResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalTaskListenerResult) CreateGlobalTaskListener calls the CreateGlobalTaskListener operation. Example: ```go result, err := client.CreateGlobalTaskListener(ctx, *camunda.NewCreateGlobalTaskListenerRequest("audit-listener")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateGroup ```go func (c *CamundaClient) CreateGroup(ctx context.Context, body GroupCreateRequest, opts ...func(ApiCreateGroupRequest) ApiCreateGroupRequest) (*GroupCreateResult, error) ``` **Types:** [`GroupCreateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupCreateRequest), [`ApiCreateGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateGroupRequest), [`GroupCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupCreateResult) CreateGroup calls the CreateGroup operation. Example: ```go result, err := client.CreateGroup(ctx, *camunda.NewGroupCreateRequest("finance", "Finance")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateMappingRule ```go func (c *CamundaClient) CreateMappingRule(ctx context.Context, body MappingRuleCreateRequest, opts ...func(ApiCreateMappingRuleRequest) ApiCreateMappingRuleRequest) (*MappingRuleCreateResult, error) ``` **Types:** [`MappingRuleCreateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleCreateRequest), [`ApiCreateMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateMappingRuleRequest), [`MappingRuleCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleCreateResult) CreateMappingRule calls the CreateMappingRule operation. Example: ```go // Map the IdP claim `groups=auditors` to a Camunda mapping-rule identity. result, err := client.CreateMappingRule(ctx, *camunda.NewMappingRuleCreateRequest("groups", "auditors", "SSO Auditors", "sso-auditors")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateProcessInstance ```go func (c *CamundaClient) CreateProcessInstance(ctx context.Context, body ProcessInstanceCreationInstruction, opts ...func(ApiCreateProcessInstanceRequest) ApiCreateProcessInstanceRequest) (*CreateProcessInstanceResult, error) ``` **Types:** [`ProcessInstanceCreationInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceCreationInstruction), [`ApiCreateProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateProcessInstanceRequest), [`CreateProcessInstanceResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CreateProcessInstanceResult) CreateProcessInstance creates (starts) a process instance. When the gateway advertises the FALCON command stream (a nanobpmn gateway) and FALCON is enabled, the create is routed over the credit-metered WebSocket command stream: a flood of creates queues on the client's submission-credit window instead of being shed with 503s. Against stock Camunda — or if the stream cannot be established — it falls back transparently to the REST endpoint. The variadic request-builder options apply only on the REST path. Example: ```go instruction := camunda.ProcessInstanceCreationInstructionByIdAsProcessInstanceCreationInstruction( camunda.NewProcessInstanceCreationInstructionById("order-process")) result, err := client.CreateProcessInstance(ctx, instruction) ``` ### CreateRole ```go func (c *CamundaClient) CreateRole(ctx context.Context, body RoleCreateRequest, opts ...func(ApiCreateRoleRequest) ApiCreateRoleRequest) (*RoleCreateResult, error) ``` **Types:** [`RoleCreateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleCreateRequest), [`ApiCreateRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateRoleRequest), [`RoleCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleCreateResult) CreateRole calls the CreateRole operation. Example: ```go result, err := client.CreateRole(ctx, *camunda.NewRoleCreateRequest("auditor", "Auditor")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateTenant ```go func (c *CamundaClient) CreateTenant(ctx context.Context, body TenantCreateRequest, opts ...func(ApiCreateTenantRequest) ApiCreateTenantRequest) (*TenantCreateResult, error) ``` **Types:** [`TenantCreateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantCreateRequest), [`ApiCreateTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateTenantRequest), [`TenantCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantCreateResult) CreateTenant calls the CreateTenant operation. Example: ```go result, err := client.CreateTenant(ctx, *camunda.NewTenantCreateRequest("tenant-a", "Tenant A")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateTenantClusterVariable ```go func (c *CamundaClient) CreateTenantClusterVariable(ctx context.Context, tenantId string, body CreateClusterVariableRequest, opts ...func(ApiCreateTenantClusterVariableRequest) ApiCreateTenantClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`CreateClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CreateClusterVariableRequest), [`ApiCreateTenantClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateTenantClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) CreateTenantClusterVariable calls the CreateTenantClusterVariable operation. Example: ```go result, err := client.CreateTenantClusterVariable(ctx, "tenant-a", *camunda.NewCreateClusterVariableRequest("region", map[string]any{"value": "eu-1"})) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### CreateUser ```go func (c *CamundaClient) CreateUser(ctx context.Context, body UserRequest, opts ...func(ApiCreateUserRequest) ApiCreateUserRequest) (*UserCreateResult, error) ``` **Types:** [`UserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserRequest), [`ApiCreateUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiCreateUserRequest), [`UserCreateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserCreateResult) CreateUser calls the CreateUser operation. Example: ```go // "secure-password-123" is a placeholder — don't hardcode passwords in production. req := camunda.NewUserRequest("secure-password-123", "alice") req.SetName("Alice Example") req.SetEmail("alice@example.com") result, err := client.CreateUser(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### DeleteAuthorization ```go func (c *CamundaClient) DeleteAuthorization(ctx context.Context, authorizationKey AuthorizationKey, opts ...func(ApiDeleteAuthorizationRequest) ApiDeleteAuthorizationRequest) error ``` **Types:** [`AuthorizationKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationKey), [`ApiDeleteAuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteAuthorizationRequest) DeleteAuthorization calls the DeleteAuthorization operation. Example: ```go return client.DeleteAuthorization(ctx, camunda.MustAuthorizationKey("2251799813685280")) ``` ### DeleteDecisionInstance ```go func (c *CamundaClient) DeleteDecisionInstance(ctx context.Context, decisionEvaluationKey DecisionEvaluationKey, body DeleteDecisionInstanceRequest, opts ...func(ApiDeleteDecisionInstanceRequest) ApiDeleteDecisionInstanceRequest) error ``` **Types:** [`DecisionEvaluationKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionEvaluationKey), [`DeleteDecisionInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DeleteDecisionInstanceRequest), [`ApiDeleteDecisionInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteDecisionInstanceRequest) DeleteDecisionInstance calls the DeleteDecisionInstance operation. Example: ```go return client.DeleteDecisionInstance(ctx, camunda.MustDecisionEvaluationKey("2251799813685310"), *camunda.NewDeleteDecisionInstanceRequest()) ``` ### DeleteDecisionInstancesBatchOperation ```go func (c *CamundaClient) DeleteDecisionInstancesBatchOperation(ctx context.Context, body DecisionInstanceDeletionBatchOperationRequest, opts ...func(ApiDeleteDecisionInstancesBatchOperationRequest) ApiDeleteDecisionInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`DecisionInstanceDeletionBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionInstanceDeletionBatchOperationRequest), [`ApiDeleteDecisionInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteDecisionInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) DeleteDecisionInstancesBatchOperation calls the DeleteDecisionInstancesBatchOperation operation. Example: ```go req := camunda.NewDecisionInstanceDeletionBatchOperationRequest(*camunda.NewDecisionInstanceFilter()) result, err := client.DeleteDecisionInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### DeleteDocument ```go func (c *CamundaClient) DeleteDocument(ctx context.Context, documentId string, opts ...func(ApiDeleteDocumentRequest) ApiDeleteDocumentRequest) error ``` **Types:** [`ApiDeleteDocumentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteDocumentRequest) DeleteDocument calls the DeleteDocument operation. Example: ```go return client.DeleteDocument(ctx, "doc-123") ``` ### DeleteGlobalClusterVariable ```go func (c *CamundaClient) DeleteGlobalClusterVariable(ctx context.Context, name string, opts ...func(ApiDeleteGlobalClusterVariableRequest) ApiDeleteGlobalClusterVariableRequest) error ``` **Types:** [`ApiDeleteGlobalClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteGlobalClusterVariableRequest) DeleteGlobalClusterVariable calls the DeleteGlobalClusterVariable operation. Example: ```go return client.DeleteGlobalClusterVariable(ctx, "region") ``` ### DeleteGlobalTaskListener ```go func (c *CamundaClient) DeleteGlobalTaskListener(ctx context.Context, id string, opts ...func(ApiDeleteGlobalTaskListenerRequest) ApiDeleteGlobalTaskListenerRequest) error ``` **Types:** [`ApiDeleteGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteGlobalTaskListenerRequest) DeleteGlobalTaskListener calls the DeleteGlobalTaskListener operation. Example: ```go return client.DeleteGlobalTaskListener(ctx, "audit-listener") ``` ### DeleteGroup ```go func (c *CamundaClient) DeleteGroup(ctx context.Context, groupId string, opts ...func(ApiDeleteGroupRequest) ApiDeleteGroupRequest) error ``` **Types:** [`ApiDeleteGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteGroupRequest) DeleteGroup calls the DeleteGroup operation. Example: ```go return client.DeleteGroup(ctx, "finance") ``` ### DeleteHistoryBackup ```go func (c *CamundaClient) DeleteHistoryBackup(ctx context.Context, backupId int64, opts ...func(ApiDeleteHistoryBackupRequest) ApiDeleteHistoryBackupRequest) error ``` **Types:** [`ApiDeleteHistoryBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteHistoryBackupRequest) DeleteHistoryBackup calls the DeleteHistoryBackup operation. Example: ```go if err := client.DeleteHistoryBackup(ctx, 42); err != nil { return err } ``` ### DeleteHistoryBackupAsClusterAdmin ```go func (c *CamundaClient) DeleteHistoryBackupAsClusterAdmin(ctx context.Context, backupId int64, opts ...func(ApiDeleteHistoryBackupAsClusterAdminRequest) ApiDeleteHistoryBackupAsClusterAdminRequest) error ``` **Types:** [`ApiDeleteHistoryBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteHistoryBackupAsClusterAdminRequest) DeleteHistoryBackupAsClusterAdmin calls the DeleteHistoryBackupAsClusterAdmin operation. Example: ```go if err := client.DeleteHistoryBackupAsClusterAdmin(ctx, 42); err != nil { return err } ``` ### DeleteMappingRule ```go func (c *CamundaClient) DeleteMappingRule(ctx context.Context, mappingRuleId string, opts ...func(ApiDeleteMappingRuleRequest) ApiDeleteMappingRuleRequest) error ``` **Types:** [`ApiDeleteMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteMappingRuleRequest) DeleteMappingRule calls the DeleteMappingRule operation. Example: ```go return client.DeleteMappingRule(ctx, "sso-auditors") ``` ### DeleteProcessInstance ```go func (c *CamundaClient) DeleteProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body DeleteProcessInstanceRequest, opts ...func(ApiDeleteProcessInstanceRequest) ApiDeleteProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`DeleteProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DeleteProcessInstanceRequest), [`ApiDeleteProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteProcessInstanceRequest) DeleteProcessInstance calls the DeleteProcessInstance operation. Example: ```go return client.DeleteProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewDeleteProcessInstanceRequest()) ``` ### DeleteProcessInstancesBatchOperation ```go func (c *CamundaClient) DeleteProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceDeletionBatchOperationRequest, opts ...func(ApiDeleteProcessInstancesBatchOperationRequest) ApiDeleteProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceDeletionBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceDeletionBatchOperationRequest), [`ApiDeleteProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) DeleteProcessInstancesBatchOperation calls the DeleteProcessInstancesBatchOperation operation. Example: ```go req := camunda.NewProcessInstanceDeletionBatchOperationRequest(*camunda.NewProcessInstanceFilter()) result, err := client.DeleteProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### DeleteResource ```go func (c *CamundaClient) DeleteResource(ctx context.Context, resourceKey ResourceKey, body DeleteResourceRequest, opts ...func(ApiDeleteResourceRequest) ApiDeleteResourceRequest) (*DeleteResourceResponse, error) ``` **Types:** [`ResourceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceKey), [`DeleteResourceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DeleteResourceRequest), [`ApiDeleteResourceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteResourceRequest), [`DeleteResourceResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DeleteResourceResponse) DeleteResource calls the DeleteResource operation. Example: ```go result, err := client.DeleteResource(ctx, camunda.MustResourceKey("2251799813685350"), *camunda.NewDeleteResourceRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### DeleteRole ```go func (c *CamundaClient) DeleteRole(ctx context.Context, roleId string, opts ...func(ApiDeleteRoleRequest) ApiDeleteRoleRequest) error ``` **Types:** [`ApiDeleteRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteRoleRequest) DeleteRole calls the DeleteRole operation. Example: ```go return client.DeleteRole(ctx, "auditor") ``` ### DeleteRuntimeBackup ```go func (c *CamundaClient) DeleteRuntimeBackup(ctx context.Context, backupId int64, opts ...func(ApiDeleteRuntimeBackupRequest) ApiDeleteRuntimeBackupRequest) error ``` **Types:** [`ApiDeleteRuntimeBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteRuntimeBackupRequest) DeleteRuntimeBackup calls the DeleteRuntimeBackup operation. Example: ```go if err := client.DeleteRuntimeBackup(ctx, 42); err != nil { return err } ``` ### DeleteRuntimeBackupAsClusterAdmin ```go func (c *CamundaClient) DeleteRuntimeBackupAsClusterAdmin(ctx context.Context, backupId int64, opts ...func(ApiDeleteRuntimeBackupAsClusterAdminRequest) ApiDeleteRuntimeBackupAsClusterAdminRequest) error ``` **Types:** [`ApiDeleteRuntimeBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteRuntimeBackupAsClusterAdminRequest) DeleteRuntimeBackupAsClusterAdmin calls the DeleteRuntimeBackupAsClusterAdmin operation. Example: ```go // Deletes the runtime backup with the given id from all physical tenants. if err := client.DeleteRuntimeBackupAsClusterAdmin(ctx, 42); err != nil { return err } ``` ### DeleteRuntimeBackupState ```go func (c *CamundaClient) DeleteRuntimeBackupState(ctx context.Context, opts ...func(ApiDeleteRuntimeBackupStateRequest) ApiDeleteRuntimeBackupStateRequest) error ``` **Types:** [`ApiDeleteRuntimeBackupStateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteRuntimeBackupStateRequest) DeleteRuntimeBackupState calls the DeleteRuntimeBackupState operation. Example: ```go if err := client.DeleteRuntimeBackupState(ctx); err != nil { return err } ``` ### DeleteRuntimeBackupStateAsClusterAdmin ```go func (c *CamundaClient) DeleteRuntimeBackupStateAsClusterAdmin(ctx context.Context, opts ...func(ApiDeleteRuntimeBackupStateAsClusterAdminRequest) ApiDeleteRuntimeBackupStateAsClusterAdminRequest) error ``` **Types:** [`ApiDeleteRuntimeBackupStateAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteRuntimeBackupStateAsClusterAdminRequest) DeleteRuntimeBackupStateAsClusterAdmin calls the DeleteRuntimeBackupStateAsClusterAdmin operation. Example: ```go // Clears the persisted runtime backup state across all physical tenants. if err := client.DeleteRuntimeBackupStateAsClusterAdmin(ctx); err != nil { return err } ``` ### DeleteTenant ```go func (c *CamundaClient) DeleteTenant(ctx context.Context, tenantId string, opts ...func(ApiDeleteTenantRequest) ApiDeleteTenantRequest) error ``` **Types:** [`ApiDeleteTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteTenantRequest) DeleteTenant calls the DeleteTenant operation. Example: ```go return client.DeleteTenant(ctx, "tenant-a") ``` ### DeleteTenantClusterVariable ```go func (c *CamundaClient) DeleteTenantClusterVariable(ctx context.Context, tenantId string, name string, opts ...func(ApiDeleteTenantClusterVariableRequest) ApiDeleteTenantClusterVariableRequest) error ``` **Types:** [`ApiDeleteTenantClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteTenantClusterVariableRequest) DeleteTenantClusterVariable calls the DeleteTenantClusterVariable operation. Example: ```go return client.DeleteTenantClusterVariable(ctx, "tenant-a", "region") ``` ### DeleteUser ```go func (c *CamundaClient) DeleteUser(ctx context.Context, username string, opts ...func(ApiDeleteUserRequest) ApiDeleteUserRequest) error ``` **Types:** [`ApiDeleteUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiDeleteUserRequest) DeleteUser calls the DeleteUser operation. Example: ```go return client.DeleteUser(ctx, "alice") ``` ### EvaluateConditionals ```go func (c *CamundaClient) EvaluateConditionals(ctx context.Context, body ConditionalEvaluationInstruction, opts ...func(ApiEvaluateConditionalsRequest) ApiEvaluateConditionalsRequest) (*EvaluateConditionalResult, error) ``` **Types:** [`ConditionalEvaluationInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ConditionalEvaluationInstruction), [`ApiEvaluateConditionalsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiEvaluateConditionalsRequest), [`EvaluateConditionalResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#EvaluateConditionalResult) EvaluateConditionals calls the EvaluateConditionals operation. Example: ```go // Evaluate which conditional start events match the given variables. req := camunda.NewConditionalEvaluationInstruction(map[string]any{"temperature": 42}) result, err := client.EvaluateConditionals(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### EvaluateDecision ```go func (c *CamundaClient) EvaluateDecision(ctx context.Context, body DecisionEvaluationInstruction, opts ...func(ApiEvaluateDecisionRequest) ApiEvaluateDecisionRequest) (*EvaluateDecisionResult, error) ``` **Types:** [`DecisionEvaluationInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionEvaluationInstruction), [`ApiEvaluateDecisionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiEvaluateDecisionRequest), [`EvaluateDecisionResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#EvaluateDecisionResult) EvaluateDecision calls the EvaluateDecision operation. Example: ```go // DecisionEvaluationInstruction is a union; evaluate by decision id here. byID := camunda.NewDecisionEvaluationById("dish-decision") byID.SetVariables(map[string]any{"season": "Winter", "guestCount": 4}) result, err := client.EvaluateDecision(ctx, camunda.DecisionEvaluationByIdAsDecisionEvaluationInstruction(byID)) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### EvaluateExpression ```go func (c *CamundaClient) EvaluateExpression(ctx context.Context, body ExpressionEvaluationRequest, opts ...func(ApiEvaluateExpressionRequest) ApiEvaluateExpressionRequest) (*ExpressionEvaluationResult, error) ``` **Types:** [`ExpressionEvaluationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ExpressionEvaluationRequest), [`ApiEvaluateExpressionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiEvaluateExpressionRequest), [`ExpressionEvaluationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ExpressionEvaluationResult) EvaluateExpression calls the EvaluateExpression operation. Example: ```go // Evaluate a FEEL expression against a set of variables. req := camunda.NewExpressionEvaluationRequest("a + b") req.SetVariables(map[string]any{"a": 2, "b": 3}) result, err := client.EvaluateExpression(ctx, *req) if err != nil { return err } fmt.Printf("result: %v\n", result.GetResult()) ``` ### FailJob ```go func (c *CamundaClient) FailJob(ctx context.Context, jobKey JobKey, body JobFailRequest, opts ...func(ApiFailJobRequest) ApiFailJobRequest) error ``` **Types:** [`JobKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobKey), [`JobFailRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobFailRequest), [`ApiFailJobRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiFailJobRequest) FailJob calls the FailJob operation. Example: ```go req := camunda.NewJobFailRequest() req.SetRetries(2) req.SetErrorMessage("inventory service unavailable") return client.FailJob(ctx, camunda.MustJobKey("2251799813685424"), *req) ``` ### GetAgentDefinition ```go func (c *CamundaClient) GetAgentDefinition(ctx context.Context, agentDefinitionKey AgentDefinitionKey, opts ...func(ApiGetAgentDefinitionRequest) ApiGetAgentDefinitionRequest) (*AgentDefinitionResult, error) ``` **Types:** [`AgentDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentDefinitionKey), [`ApiGetAgentDefinitionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetAgentDefinitionRequest), [`AgentDefinitionResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentDefinitionResult) GetAgentDefinition calls the GetAgentDefinition operation. Example: ```go definition, err := client.GetAgentDefinition(ctx, camunda.MustAgentDefinitionKey("2251799813691958")) if err != nil { return err } fmt.Printf("%v\n", definition) ``` ### GetAgentInstance ```go func (c *CamundaClient) GetAgentInstance(ctx context.Context, agentInstanceKey AgentInstanceKey, opts ...func(ApiGetAgentInstanceRequest) ApiGetAgentInstanceRequest) (*AgentInstanceResult, error) ``` **Types:** [`AgentInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceKey), [`ApiGetAgentInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetAgentInstanceRequest), [`AgentInstanceResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceResult) GetAgentInstance calls the GetAgentInstance operation. Example: ```go agent, err := client.GetAgentInstance(ctx, camunda.MustAgentInstanceKey("2251799813685370")) if err != nil { return err } fmt.Printf("%v\n", agent) ``` ### GetAuditLog ```go func (c *CamundaClient) GetAuditLog(ctx context.Context, auditLogKey AuditLogKey, opts ...func(ApiGetAuditLogRequest) ApiGetAuditLogRequest) (*AuditLogResult, error) ``` **Types:** [`AuditLogKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuditLogKey), [`ApiGetAuditLogRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetAuditLogRequest), [`AuditLogResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuditLogResult) GetAuditLog calls the GetAuditLog operation. Example: ```go entry, err := client.GetAuditLog(ctx, camunda.MustAuditLogKey("2251799813685270")) if err != nil { return err } fmt.Printf("%v\n", entry) ``` ### GetAuthentication ```go func (c *CamundaClient) GetAuthentication(ctx context.Context, opts ...func(ApiGetAuthenticationRequest) ApiGetAuthenticationRequest) (*CamundaUserResult, error) ``` **Types:** [`ApiGetAuthenticationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetAuthenticationRequest), [`CamundaUserResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CamundaUserResult) GetAuthentication calls the GetAuthentication operation. Example: ```go // Return the authenticated user derived from the current credentials. me, err := client.GetAuthentication(ctx) if err != nil { return err } fmt.Printf("authenticated as %s\n", me.GetUsername()) ``` ### GetAuthorization ```go func (c *CamundaClient) GetAuthorization(ctx context.Context, authorizationKey AuthorizationKey, opts ...func(ApiGetAuthorizationRequest) ApiGetAuthorizationRequest) (*AuthorizationResult, error) ``` **Types:** [`AuthorizationKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationKey), [`ApiGetAuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetAuthorizationRequest), [`AuthorizationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationResult) GetAuthorization calls the GetAuthorization operation. Example: ```go auth, err := client.GetAuthorization(ctx, camunda.MustAuthorizationKey("2251799813685280")) if err != nil { return err } fmt.Printf("%v\n", auth) ``` ### GetBatchOperation ```go func (c *CamundaClient) GetBatchOperation(ctx context.Context, batchOperationKey string, opts ...func(ApiGetBatchOperationRequest) ApiGetBatchOperationRequest) (*BatchOperationResponse, error) ``` **Types:** [`ApiGetBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetBatchOperationRequest), [`BatchOperationResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationResponse) GetBatchOperation calls the GetBatchOperation operation. Example: ```go op, err := client.GetBatchOperation(ctx, "2251799813685290") if err != nil { return err } fmt.Printf("%v\n", op) ``` ### GetClusterExportingStatus ```go func (c *CamundaClient) GetClusterExportingStatus(ctx context.Context, opts ...func(ApiGetClusterExportingStatusRequest) ApiGetClusterExportingStatusRequest) (*ExportingStatusResponse, error) ``` **Types:** [`ApiGetClusterExportingStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetClusterExportingStatusRequest), [`ExportingStatusResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ExportingStatusResponse) GetClusterExportingStatus calls the GetClusterExportingStatus operation. Example: ```go // Retrieves the exporting status aggregated across all physical tenants in the cluster. status, err := client.GetClusterExportingStatus(ctx) if err != nil { return err } fmt.Printf("cluster exporting status: %s\n", status.GetStatus()) ``` ### GetClusterRebalance ```go func (c *CamundaClient) GetClusterRebalance(ctx context.Context, opts ...func(ApiGetClusterRebalanceRequest) ApiGetClusterRebalanceRequest) (*ClusterBalanceResponse, error) ``` **Types:** [`ApiGetClusterRebalanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetClusterRebalanceRequest), [`ClusterBalanceResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterBalanceResponse) GetClusterRebalance calls the GetClusterRebalance operation. Example: ```go // Requires cluster-admin credentials (a separate cluster-admin security chain) — // calling this with standard Orchestration credentials will fail authorization. balance, err := client.GetClusterRebalance(ctx) if err != nil { return err } fmt.Printf("cluster balance state: %s, %d partition(s)\n", balance.GetState(), len(balance.GetPartitions())) if running, ok := balance.GetRunningRebalanceOk(); ok && running != nil { fmt.Printf("rebalance in progress: %v\n", running) } ``` ### GetClusterStatus ```go func (c *CamundaClient) GetClusterStatus(ctx context.Context, opts ...func(ApiGetClusterStatusRequest) ApiGetClusterStatusRequest) (*ClusterStatusResponse, error) ``` **Types:** [`ApiGetClusterStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetClusterStatusRequest), [`ClusterStatusResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterStatusResponse) GetClusterStatus calls the GetClusterStatus operation. Example: ```go // Aggregated over every physical tenant: HEALTHY, DEGRADED, or DOWN. status, err := client.GetClusterStatus(ctx) if err != nil { return err } fmt.Printf("cluster status: %s\n", status.GetStatus()) ``` ### GetClusterTopology ```go func (c *CamundaClient) GetClusterTopology(ctx context.Context, opts ...func(ApiGetClusterTopologyRequest) ApiGetClusterTopologyRequest) (*ClusterTopologyResponse, error) ``` **Types:** [`ApiGetClusterTopologyRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetClusterTopologyRequest), [`ClusterTopologyResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterTopologyResponse) GetClusterTopology calls the GetClusterTopology operation. Example: ```go // Returns the topology of all brokers across every physical tenant. // Requires cluster-admin credentials (a separate cluster-admin security chain) — // calling this with standard Orchestration credentials will fail authorization. topology, err := client.GetClusterTopology(ctx) if err != nil { return err } fmt.Printf("cluster %s — %d broker(s), %d physical tenant(s)\n", topology.GetClusterId(), len(topology.GetBrokers()), len(topology.GetPhysicalTenants())) ``` ### GetClusterUpgradeStatus ```go func (c *CamundaClient) GetClusterUpgradeStatus(ctx context.Context, opts ...func(ApiGetClusterUpgradeStatusRequest) ApiGetClusterUpgradeStatusRequest) (*ClusterUpgradeStatusResponse, error) ``` **Types:** [`ApiGetClusterUpgradeStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetClusterUpgradeStatusRequest), [`ClusterUpgradeStatusResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterUpgradeStatusResponse) GetClusterUpgradeStatus calls the GetClusterUpgradeStatus operation. Example: ```go // One overall status folded over every physical tenant and condition: // MIGRATED, MIGRATION_IN_PROGRESS, or UNKNOWN before anything has been reported yet. status, err := client.GetClusterUpgradeStatus(ctx) if err != nil { return err } fmt.Printf("cluster upgrade status: %s\n", status.GetStatus()) ``` ### GetDecisionDefinition ```go func (c *CamundaClient) GetDecisionDefinition(ctx context.Context, decisionDefinitionKey DecisionDefinitionKey, opts ...func(ApiGetDecisionDefinitionRequest) ApiGetDecisionDefinitionRequest) (*DecisionDefinitionResult, error) ``` **Types:** [`DecisionDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionDefinitionKey), [`ApiGetDecisionDefinitionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDecisionDefinitionRequest), [`DecisionDefinitionResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionDefinitionResult) GetDecisionDefinition calls the GetDecisionDefinition operation. Example: ```go def, err := client.GetDecisionDefinition(ctx, camunda.MustDecisionDefinitionKey("2251799813685310")) if err != nil { return err } fmt.Printf("%v\n", def) ``` ### GetDecisionDefinitionXML ```go func (c *CamundaClient) GetDecisionDefinitionXML(ctx context.Context, decisionDefinitionKey DecisionDefinitionKey, opts ...func(ApiGetDecisionDefinitionXMLRequest) ApiGetDecisionDefinitionXMLRequest) (string, error) ``` **Types:** [`DecisionDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionDefinitionKey), [`ApiGetDecisionDefinitionXMLRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDecisionDefinitionXMLRequest) GetDecisionDefinitionXML calls the GetDecisionDefinitionXML operation. Example: ```go xml, err := client.GetDecisionDefinitionXML(ctx, camunda.MustDecisionDefinitionKey("2251799813685310")) if err != nil { return err } fmt.Println(xml) ``` ### GetDecisionInstance ```go func (c *CamundaClient) GetDecisionInstance(ctx context.Context, decisionEvaluationInstanceKey string, opts ...func(ApiGetDecisionInstanceRequest) ApiGetDecisionInstanceRequest) (*DecisionInstanceGetQueryResult, error) ``` **Types:** [`ApiGetDecisionInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDecisionInstanceRequest), [`DecisionInstanceGetQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionInstanceGetQueryResult) GetDecisionInstance calls the GetDecisionInstance operation. Example: ```go instance, err := client.GetDecisionInstance(ctx, "2251799813685310-1") if err != nil { return err } fmt.Printf("%v\n", instance) ``` ### GetDecisionRequirements ```go func (c *CamundaClient) GetDecisionRequirements(ctx context.Context, decisionRequirementsKey DecisionRequirementsKey, opts ...func(ApiGetDecisionRequirementsRequest) ApiGetDecisionRequirementsRequest) (*DecisionRequirementsResult, error) ``` **Types:** [`DecisionRequirementsKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionRequirementsKey), [`ApiGetDecisionRequirementsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDecisionRequirementsRequest), [`DecisionRequirementsResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionRequirementsResult) GetDecisionRequirements calls the GetDecisionRequirements operation. Example: ```go drd, err := client.GetDecisionRequirements(ctx, camunda.MustDecisionRequirementsKey("2251799813685320")) if err != nil { return err } fmt.Printf("%v\n", drd) ``` ### GetDecisionRequirementsXML ```go func (c *CamundaClient) GetDecisionRequirementsXML(ctx context.Context, decisionRequirementsKey DecisionRequirementsKey, opts ...func(ApiGetDecisionRequirementsXMLRequest) ApiGetDecisionRequirementsXMLRequest) (string, error) ``` **Types:** [`DecisionRequirementsKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionRequirementsKey), [`ApiGetDecisionRequirementsXMLRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDecisionRequirementsXMLRequest) GetDecisionRequirementsXML calls the GetDecisionRequirementsXML operation. Example: ```go xml, err := client.GetDecisionRequirementsXML(ctx, camunda.MustDecisionRequirementsKey("2251799813685320")) if err != nil { return err } fmt.Println(xml) ``` ### GetDocument ```go func (c *CamundaClient) GetDocument(ctx context.Context, documentId string, opts ...func(ApiGetDocumentRequest) ApiGetDocumentRequest) (*os.File, error) ``` **Types:** [`ApiGetDocumentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetDocumentRequest) GetDocument calls the GetDocument operation. Example: ```go file, err := client.GetDocument(ctx, "doc-123") if err != nil { return err } fmt.Printf("downloaded to %s\n", file.Name()) ``` ### GetElementInstance ```go func (c *CamundaClient) GetElementInstance(ctx context.Context, elementInstanceKey ElementInstanceKey, opts ...func(ApiGetElementInstanceRequest) ApiGetElementInstanceRequest) (*ElementInstanceResult, error) ``` **Types:** [`ElementInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceKey), [`ApiGetElementInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetElementInstanceRequest), [`ElementInstanceResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceResult) GetElementInstance calls the GetElementInstance operation. Example: ```go element, err := client.GetElementInstance(ctx, camunda.MustElementInstanceKey("2251799813685360")) if err != nil { return err } fmt.Printf("%v\n", element) ``` ### GetExportingStatus ```go func (c *CamundaClient) GetExportingStatus(ctx context.Context, opts ...func(ApiGetExportingStatusRequest) ApiGetExportingStatusRequest) (*ExportingStatusResponse, error) ``` **Types:** [`ApiGetExportingStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetExportingStatusRequest), [`ExportingStatusResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ExportingStatusResponse) GetExportingStatus calls the GetExportingStatus operation. Example: ```go // Aggregated over every replica of the physical tenant. status, err := client.GetExportingStatus(ctx) if err != nil { return err } fmt.Printf("exporting status: %s\n", status.GetStatus()) ``` ### GetFormByKey ```go func (c *CamundaClient) GetFormByKey(ctx context.Context, formKey FormKey, opts ...func(ApiGetFormByKeyRequest) ApiGetFormByKeyRequest) (*FormResult, error) ``` **Types:** [`FormKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#FormKey), [`ApiGetFormByKeyRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetFormByKeyRequest), [`FormResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#FormResult) GetFormByKey calls the GetFormByKey operation. Example: ```go form, err := client.GetFormByKey(ctx, camunda.MustFormKey("2251799813685260")) if err != nil { return err } fmt.Printf("form %v version %d\n", form.GetFormId(), form.GetVersion()) ``` ### GetGlobalClusterVariable ```go func (c *CamundaClient) GetGlobalClusterVariable(ctx context.Context, name string, opts ...func(ApiGetGlobalClusterVariableRequest) ApiGetGlobalClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`ApiGetGlobalClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetGlobalClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) GetGlobalClusterVariable calls the GetGlobalClusterVariable operation. Example: ```go result, err := client.GetGlobalClusterVariable(ctx, "region") if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetGlobalJobStatistics ```go func (c *CamundaClient) GetGlobalJobStatistics(ctx context.Context, opts ...func(ApiGetGlobalJobStatisticsRequest) ApiGetGlobalJobStatisticsRequest) (*GlobalJobStatisticsQueryResult, error) ``` **Types:** [`ApiGetGlobalJobStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetGlobalJobStatisticsRequest), [`GlobalJobStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalJobStatisticsQueryResult) GetGlobalJobStatistics calls the GetGlobalJobStatistics operation. Example: ```go result, err := client.GetGlobalJobStatistics(ctx) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetGlobalTaskListener ```go func (c *CamundaClient) GetGlobalTaskListener(ctx context.Context, id string, opts ...func(ApiGetGlobalTaskListenerRequest) ApiGetGlobalTaskListenerRequest) (*GlobalTaskListenerResult, error) ``` **Types:** [`ApiGetGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetGlobalTaskListenerRequest), [`GlobalTaskListenerResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalTaskListenerResult) GetGlobalTaskListener calls the GetGlobalTaskListener operation. Example: ```go result, err := client.GetGlobalTaskListener(ctx, "audit-listener") if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetGroup ```go func (c *CamundaClient) GetGroup(ctx context.Context, groupId string, opts ...func(ApiGetGroupRequest) ApiGetGroupRequest) (*GroupResult, error) ``` **Types:** [`ApiGetGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetGroupRequest), [`GroupResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupResult) GetGroup calls the GetGroup operation. Example: ```go group, err := client.GetGroup(ctx, "finance") if err != nil { return err } fmt.Printf("%v\n", group) ``` ### GetHistoryBackup ```go func (c *CamundaClient) GetHistoryBackup(ctx context.Context, backupId int64, opts ...func(ApiGetHistoryBackupRequest) ApiGetHistoryBackupRequest) (*HistoryBackupInfo, error) ``` **Types:** [`ApiGetHistoryBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetHistoryBackupRequest), [`HistoryBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#HistoryBackupInfo) GetHistoryBackup calls the GetHistoryBackup operation. Example: ```go backup, err := client.GetHistoryBackup(ctx, 42) if err != nil { return err } fmt.Printf("history backup %d state=%v\n", backup.GetBackupId(), backup.GetState()) for _, snapshot := range backup.GetDetails() { fmt.Printf(" snapshot %v\n", snapshot) } ``` ### GetHistoryBackupAsClusterAdmin ```go func (c *CamundaClient) GetHistoryBackupAsClusterAdmin(ctx context.Context, backupId int64, opts ...func(ApiGetHistoryBackupAsClusterAdminRequest) ApiGetHistoryBackupAsClusterAdminRequest) (*ClusterHistoryBackupInfo, error) ``` **Types:** [`ApiGetHistoryBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetHistoryBackupAsClusterAdminRequest), [`ClusterHistoryBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterHistoryBackupInfo) GetHistoryBackupAsClusterAdmin calls the GetHistoryBackupAsClusterAdmin operation. Example: ```go backup, err := client.GetHistoryBackupAsClusterAdmin(ctx, 42) if err != nil { return err } for _, tenant := range backup.GetPhysicalTenants() { fmt.Printf("tenant %s: state=%v\n", tenant.GetPhysicalTenantId(), tenant.GetState()) } ``` ### GetIncident ```go func (c *CamundaClient) GetIncident(ctx context.Context, incidentKey IncidentKey, opts ...func(ApiGetIncidentRequest) ApiGetIncidentRequest) (*IncidentResult, error) ``` **Types:** [`IncidentKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentKey), [`ApiGetIncidentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetIncidentRequest), [`IncidentResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentResult) GetIncident calls the GetIncident operation. Example: ```go incident, err := client.GetIncident(ctx, camunda.MustIncidentKey("2251799813685300")) if err != nil { return err } fmt.Printf("%v\n", incident) ``` ### GetJobErrorStatistics ```go func (c *CamundaClient) GetJobErrorStatistics(ctx context.Context, body JobErrorStatisticsQuery, opts ...func(ApiGetJobErrorStatisticsRequest) ApiGetJobErrorStatisticsRequest) (*JobErrorStatisticsQueryResult, error) ``` **Types:** [`JobErrorStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobErrorStatisticsQuery), [`ApiGetJobErrorStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetJobErrorStatisticsRequest), [`JobErrorStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobErrorStatisticsQueryResult) GetJobErrorStatistics calls the GetJobErrorStatistics operation. Example: ```go from, to := time.Now().Add(-24*time.Hour), time.Now() query := camunda.NewJobErrorStatisticsQuery(*camunda.NewJobErrorStatisticsFilter(from, to, "greet")) result, err := client.GetJobErrorStatistics(ctx, *query) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetJobTimeSeriesStatistics ```go func (c *CamundaClient) GetJobTimeSeriesStatistics(ctx context.Context, body JobTimeSeriesStatisticsQuery, opts ...func(ApiGetJobTimeSeriesStatisticsRequest) ApiGetJobTimeSeriesStatisticsRequest) (*JobTimeSeriesStatisticsQueryResult, error) ``` **Types:** [`JobTimeSeriesStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobTimeSeriesStatisticsQuery), [`ApiGetJobTimeSeriesStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetJobTimeSeriesStatisticsRequest), [`JobTimeSeriesStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobTimeSeriesStatisticsQueryResult) GetJobTimeSeriesStatistics calls the GetJobTimeSeriesStatistics operation. Example: ```go from, to := time.Now().Add(-24*time.Hour), time.Now() query := camunda.NewJobTimeSeriesStatisticsQuery(*camunda.NewJobTimeSeriesStatisticsFilter(from, to, "greet")) result, err := client.GetJobTimeSeriesStatistics(ctx, *query) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetJobTypeStatistics ```go func (c *CamundaClient) GetJobTypeStatistics(ctx context.Context, body JobTypeStatisticsQuery, opts ...func(ApiGetJobTypeStatisticsRequest) ApiGetJobTypeStatisticsRequest) (*JobTypeStatisticsQueryResult, error) ``` **Types:** [`JobTypeStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobTypeStatisticsQuery), [`ApiGetJobTypeStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetJobTypeStatisticsRequest), [`JobTypeStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobTypeStatisticsQueryResult) GetJobTypeStatistics calls the GetJobTypeStatistics operation. Example: ```go result, err := client.GetJobTypeStatistics(ctx, *camunda.NewJobTypeStatisticsQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetJobWorkerStatistics ```go func (c *CamundaClient) GetJobWorkerStatistics(ctx context.Context, body JobWorkerStatisticsQuery, opts ...func(ApiGetJobWorkerStatisticsRequest) ApiGetJobWorkerStatisticsRequest) (*JobWorkerStatisticsQueryResult, error) ``` **Types:** [`JobWorkerStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobWorkerStatisticsQuery), [`ApiGetJobWorkerStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetJobWorkerStatisticsRequest), [`JobWorkerStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobWorkerStatisticsQueryResult) GetJobWorkerStatistics calls the GetJobWorkerStatistics operation. Example: ```go from, to := time.Now().Add(-24*time.Hour), time.Now() query := camunda.NewJobWorkerStatisticsQuery(*camunda.NewJobWorkerStatisticsFilter(from, to, "greet")) result, err := client.GetJobWorkerStatistics(ctx, *query) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetLicense ```go func (c *CamundaClient) GetLicense(ctx context.Context, opts ...func(ApiGetLicenseRequest) ApiGetLicenseRequest) (*LicenseResponse, error) ``` **Types:** [`ApiGetLicenseRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetLicenseRequest), [`LicenseResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#LicenseResponse) GetLicense calls the GetLicense operation. Example: ```go license, err := client.GetLicense(ctx) if err != nil { return err } fmt.Printf("license type=%s valid=%v\n", license.GetLicenseType(), license.GetValidLicense()) ``` ### GetMappingRule ```go func (c *CamundaClient) GetMappingRule(ctx context.Context, mappingRuleId string, opts ...func(ApiGetMappingRuleRequest) ApiGetMappingRuleRequest) (*MappingRuleResult, error) ``` **Types:** [`ApiGetMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetMappingRuleRequest), [`MappingRuleResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleResult) GetMappingRule calls the GetMappingRule operation. Example: ```go rule, err := client.GetMappingRule(ctx, "sso-auditors") if err != nil { return err } fmt.Printf("%v\n", rule) ``` ### GetProcessDefinition ```go func (c *CamundaClient) GetProcessDefinition(ctx context.Context, processDefinitionKey ProcessDefinitionKey, opts ...func(ApiGetProcessDefinitionRequest) ApiGetProcessDefinitionRequest) (*ProcessDefinitionResult, error) ``` **Types:** [`ProcessDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionKey), [`ApiGetProcessDefinitionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionRequest), [`ProcessDefinitionResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionResult) GetProcessDefinition calls the GetProcessDefinition operation. Example: ```go def, err := client.GetProcessDefinition(ctx, camunda.MustProcessDefinitionKey("2251799813685330")) if err != nil { return err } fmt.Printf("%v\n", def) ``` ### GetProcessDefinitionInstanceStatistics ```go func (c *CamundaClient) GetProcessDefinitionInstanceStatistics(ctx context.Context, body ProcessDefinitionInstanceStatisticsQuery, opts ...func(ApiGetProcessDefinitionInstanceStatisticsRequest) ApiGetProcessDefinitionInstanceStatisticsRequest) (*ProcessDefinitionInstanceStatisticsQueryResult, error) ``` **Types:** [`ProcessDefinitionInstanceStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionInstanceStatisticsQuery), [`ApiGetProcessDefinitionInstanceStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionInstanceStatisticsRequest), [`ProcessDefinitionInstanceStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionInstanceStatisticsQueryResult) GetProcessDefinitionInstanceStatistics calls the GetProcessDefinitionInstanceStatistics operation. Example: ```go result, err := client.GetProcessDefinitionInstanceStatistics(ctx, *camunda.NewProcessDefinitionInstanceStatisticsQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessDefinitionInstanceVersionStatistics ```go func (c *CamundaClient) GetProcessDefinitionInstanceVersionStatistics(ctx context.Context, body ProcessDefinitionInstanceVersionStatisticsQuery, opts ...func(ApiGetProcessDefinitionInstanceVersionStatisticsRequest) ApiGetProcessDefinitionInstanceVersionStatisticsRequest) (*ProcessDefinitionInstanceVersionStatisticsQueryResult, error) ``` **Types:** [`ProcessDefinitionInstanceVersionStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionInstanceVersionStatisticsQuery), [`ApiGetProcessDefinitionInstanceVersionStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionInstanceVersionStatisticsRequest), [`ProcessDefinitionInstanceVersionStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionInstanceVersionStatisticsQueryResult) GetProcessDefinitionInstanceVersionStatistics calls the GetProcessDefinitionInstanceVersionStatistics operation. Example: ```go query := camunda.NewProcessDefinitionInstanceVersionStatisticsQuery( *camunda.NewProcessDefinitionInstanceVersionStatisticsFilter("order-process")) result, err := client.GetProcessDefinitionInstanceVersionStatistics(ctx, *query) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessDefinitionMessageSubscriptionStatistics ```go func (c *CamundaClient) GetProcessDefinitionMessageSubscriptionStatistics(ctx context.Context, body ProcessDefinitionMessageSubscriptionStatisticsQuery, opts ...func(ApiGetProcessDefinitionMessageSubscriptionStatisticsRequest) ApiGetProcessDefinitionMessageSubscriptionStatisticsRequest) (*ProcessDefinitionMessageSubscriptionStatisticsQueryResult, error) ``` **Types:** [`ProcessDefinitionMessageSubscriptionStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionMessageSubscriptionStatisticsQuery), [`ApiGetProcessDefinitionMessageSubscriptionStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionMessageSubscriptionStatisticsRequest), [`ProcessDefinitionMessageSubscriptionStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionMessageSubscriptionStatisticsQueryResult) GetProcessDefinitionMessageSubscriptionStatistics calls the GetProcessDefinitionMessageSubscriptionStatistics operation. Example: ```go result, err := client.GetProcessDefinitionMessageSubscriptionStatistics(ctx, *camunda.NewProcessDefinitionMessageSubscriptionStatisticsQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessDefinitionStatistics ```go func (c *CamundaClient) GetProcessDefinitionStatistics(ctx context.Context, processDefinitionKey ProcessDefinitionKey, body ProcessDefinitionElementStatisticsQuery, opts ...func(ApiGetProcessDefinitionStatisticsRequest) ApiGetProcessDefinitionStatisticsRequest) (*ProcessDefinitionElementStatisticsQueryResult, error) ``` **Types:** [`ProcessDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionKey), [`ProcessDefinitionElementStatisticsQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionElementStatisticsQuery), [`ApiGetProcessDefinitionStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionStatisticsRequest), [`ProcessDefinitionElementStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionElementStatisticsQueryResult) GetProcessDefinitionStatistics calls the GetProcessDefinitionStatistics operation. Example: ```go result, err := client.GetProcessDefinitionStatistics(ctx, camunda.MustProcessDefinitionKey("2251799813685330"), *camunda.NewProcessDefinitionElementStatisticsQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessDefinitionXML ```go func (c *CamundaClient) GetProcessDefinitionXML(ctx context.Context, processDefinitionKey ProcessDefinitionKey, opts ...func(ApiGetProcessDefinitionXMLRequest) ApiGetProcessDefinitionXMLRequest) (string, error) ``` **Types:** [`ProcessDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionKey), [`ApiGetProcessDefinitionXMLRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessDefinitionXMLRequest) GetProcessDefinitionXML calls the GetProcessDefinitionXML operation. Example: ```go xml, err := client.GetProcessDefinitionXML(ctx, camunda.MustProcessDefinitionKey("2251799813685330")) if err != nil { return err } fmt.Println(xml) ``` ### GetProcessInstance ```go func (c *CamundaClient) GetProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiGetProcessInstanceRequest) ApiGetProcessInstanceRequest) (*ProcessInstanceResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiGetProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceRequest), [`ProcessInstanceResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceResult) GetProcessInstance calls the GetProcessInstance operation. Example: ```go instance, err := client.GetProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } fmt.Printf("state=%v definition=%q\n", instance.GetState(), instance.GetProcessDefinitionId()) ``` ### GetProcessInstanceCallHierarchy ```go func (c *CamundaClient) GetProcessInstanceCallHierarchy(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiGetProcessInstanceCallHierarchyRequest) ApiGetProcessInstanceCallHierarchyRequest) ([]ProcessInstanceCallHierarchyEntry, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiGetProcessInstanceCallHierarchyRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceCallHierarchyRequest), [`ProcessInstanceCallHierarchyEntry`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceCallHierarchyEntry) GetProcessInstanceCallHierarchy calls the GetProcessInstanceCallHierarchy operation. Example: ```go hierarchy, err := client.GetProcessInstanceCallHierarchy(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } for _, entry := range hierarchy { fmt.Printf("%v\n", entry) } ``` ### GetProcessInstanceSequenceFlows ```go func (c *CamundaClient) GetProcessInstanceSequenceFlows(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiGetProcessInstanceSequenceFlowsRequest) ApiGetProcessInstanceSequenceFlowsRequest) (*ProcessInstanceSequenceFlowsQueryResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiGetProcessInstanceSequenceFlowsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceSequenceFlowsRequest), [`ProcessInstanceSequenceFlowsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceSequenceFlowsQueryResult) GetProcessInstanceSequenceFlows calls the GetProcessInstanceSequenceFlows operation. Example: ```go result, err := client.GetProcessInstanceSequenceFlows(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessInstanceStatistics ```go func (c *CamundaClient) GetProcessInstanceStatistics(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiGetProcessInstanceStatisticsRequest) ApiGetProcessInstanceStatisticsRequest) (*ProcessInstanceElementStatisticsQueryResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiGetProcessInstanceStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceStatisticsRequest), [`ProcessInstanceElementStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceElementStatisticsQueryResult) GetProcessInstanceStatistics calls the GetProcessInstanceStatistics operation. Example: ```go result, err := client.GetProcessInstanceStatistics(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessInstanceStatisticsByDefinition ```go func (c *CamundaClient) GetProcessInstanceStatisticsByDefinition(ctx context.Context, body IncidentProcessInstanceStatisticsByDefinitionQuery, opts ...func(ApiGetProcessInstanceStatisticsByDefinitionRequest) ApiGetProcessInstanceStatisticsByDefinitionRequest) (*IncidentProcessInstanceStatisticsByDefinitionQueryResult, error) ``` **Types:** [`IncidentProcessInstanceStatisticsByDefinitionQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentProcessInstanceStatisticsByDefinitionQuery), [`ApiGetProcessInstanceStatisticsByDefinitionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceStatisticsByDefinitionRequest), [`IncidentProcessInstanceStatisticsByDefinitionQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentProcessInstanceStatisticsByDefinitionQueryResult) GetProcessInstanceStatisticsByDefinition calls the GetProcessInstanceStatisticsByDefinition operation. Example: ```go query := camunda.NewIncidentProcessInstanceStatisticsByDefinitionQuery( *camunda.NewIncidentProcessInstanceStatisticsByDefinitionFilter(0)) result, err := client.GetProcessInstanceStatisticsByDefinition(ctx, *query) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessInstanceStatisticsByError ```go func (c *CamundaClient) GetProcessInstanceStatisticsByError(ctx context.Context, body IncidentProcessInstanceStatisticsByErrorQuery, opts ...func(ApiGetProcessInstanceStatisticsByErrorRequest) ApiGetProcessInstanceStatisticsByErrorRequest) (*IncidentProcessInstanceStatisticsByErrorQueryResult, error) ``` **Types:** [`IncidentProcessInstanceStatisticsByErrorQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentProcessInstanceStatisticsByErrorQuery), [`ApiGetProcessInstanceStatisticsByErrorRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceStatisticsByErrorRequest), [`IncidentProcessInstanceStatisticsByErrorQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentProcessInstanceStatisticsByErrorQueryResult) GetProcessInstanceStatisticsByError calls the GetProcessInstanceStatisticsByError operation. Example: ```go result, err := client.GetProcessInstanceStatisticsByError(ctx, *camunda.NewIncidentProcessInstanceStatisticsByErrorQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetProcessInstanceWaitStateStatistics ```go func (c *CamundaClient) GetProcessInstanceWaitStateStatistics(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiGetProcessInstanceWaitStateStatisticsRequest) ApiGetProcessInstanceWaitStateStatisticsRequest) (*ProcessInstanceWaitStateStatisticsQueryResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiGetProcessInstanceWaitStateStatisticsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetProcessInstanceWaitStateStatisticsRequest), [`ProcessInstanceWaitStateStatisticsQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceWaitStateStatisticsQueryResult) GetProcessInstanceWaitStateStatistics calls the GetProcessInstanceWaitStateStatistics operation. Example: ```go result, err := client.GetProcessInstanceWaitStateStatistics(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetResource ```go func (c *CamundaClient) GetResource(ctx context.Context, resourceKey ResourceKey, opts ...func(ApiGetResourceRequest) ApiGetResourceRequest) (*ResourceResult, error) ``` **Types:** [`ResourceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceKey), [`ApiGetResourceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetResourceRequest), [`ResourceResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceResult) GetResource calls the GetResource operation. Example: ```go resource, err := client.GetResource(ctx, camunda.MustResourceKey("2251799813685350")) if err != nil { return err } fmt.Printf("%v\n", resource) ``` ### GetResourceContent ```go func (c *CamundaClient) GetResourceContent(ctx context.Context, resourceKey ResourceKey, opts ...func(ApiGetResourceContentRequest) ApiGetResourceContentRequest) (map[string]interface{}, error) ``` **Types:** [`ResourceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceKey), [`ApiGetResourceContentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetResourceContentRequest) GetResourceContent calls the GetResourceContent operation. Example: ```go content, err := client.GetResourceContent(ctx, camunda.MustResourceKey("2251799813685350")) if err != nil { return err } fmt.Printf("%v\n", content) ``` ### GetResourceContentBinary ```go func (c *CamundaClient) GetResourceContentBinary(ctx context.Context, resourceKey ResourceKey, opts ...func(ApiGetResourceContentBinaryRequest) ApiGetResourceContentBinaryRequest) (*os.File, error) ``` **Types:** [`ResourceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceKey), [`ApiGetResourceContentBinaryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetResourceContentBinaryRequest) GetResourceContentBinary calls the GetResourceContentBinary operation. Example: ```go file, err := client.GetResourceContentBinary(ctx, camunda.MustResourceKey("2251799813685350")) if err != nil { return err } fmt.Printf("downloaded to %s\n", file.Name()) ``` ### GetRestoreStatus ```go func (c *CamundaClient) GetRestoreStatus(ctx context.Context, opts ...func(ApiGetRestoreStatusRequest) ApiGetRestoreStatusRequest) (*RestoreStatusResponse, error) ``` **Types:** [`ApiGetRestoreStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRestoreStatusRequest), [`RestoreStatusResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RestoreStatusResponse) GetRestoreStatus calls the GetRestoreStatus operation. Example: ```go // Reports the in-flight restore only — 404 once it has finished. status, err := client.GetRestoreStatus(ctx) if err != nil { return err } fmt.Printf("restore %s: %s\n", status.GetChangeId(), status.GetStatus()) for _, broker := range status.GetBrokers() { fmt.Printf("%v\n", broker) } ``` ### GetRole ```go func (c *CamundaClient) GetRole(ctx context.Context, roleId string, opts ...func(ApiGetRoleRequest) ApiGetRoleRequest) (*RoleResult, error) ``` **Types:** [`ApiGetRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRoleRequest), [`RoleResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleResult) GetRole calls the GetRole operation. Example: ```go role, err := client.GetRole(ctx, "auditor") if err != nil { return err } fmt.Printf("%v\n", role) ``` ### GetRuntimeBackup ```go func (c *CamundaClient) GetRuntimeBackup(ctx context.Context, backupId int64, opts ...func(ApiGetRuntimeBackupRequest) ApiGetRuntimeBackupRequest) (*BackupInfo, error) ``` **Types:** [`ApiGetRuntimeBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRuntimeBackupRequest), [`BackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BackupInfo) GetRuntimeBackup calls the GetRuntimeBackup operation. Example: ```go backup, err := client.GetRuntimeBackup(ctx, 42) if err != nil { return err } // Details cover every partition of the physical tenant. for _, partition := range backup.GetDetails() { fmt.Printf("%v\n", partition) } ``` ### GetRuntimeBackupAsClusterAdmin ```go func (c *CamundaClient) GetRuntimeBackupAsClusterAdmin(ctx context.Context, backupId int64, opts ...func(ApiGetRuntimeBackupAsClusterAdminRequest) ApiGetRuntimeBackupAsClusterAdminRequest) (*ClusterRuntimeBackupInfo, error) ``` **Types:** [`ApiGetRuntimeBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRuntimeBackupAsClusterAdminRequest), [`ClusterRuntimeBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRuntimeBackupInfo) GetRuntimeBackupAsClusterAdmin calls the GetRuntimeBackupAsClusterAdmin operation. Example: ```go backup, err := client.GetRuntimeBackupAsClusterAdmin(ctx, 42) if err != nil { return err } fmt.Printf("cluster runtime backup %d: state=%v\n", backup.GetBackupId(), backup.GetState()) for _, tenant := range backup.GetPhysicalTenants() { fmt.Printf(" tenant %v\n", tenant) } ``` ### GetRuntimeBackupState ```go func (c *CamundaClient) GetRuntimeBackupState(ctx context.Context, opts ...func(ApiGetRuntimeBackupStateRequest) ApiGetRuntimeBackupStateRequest) (*RuntimeBackupState, error) ``` **Types:** [`ApiGetRuntimeBackupStateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRuntimeBackupStateRequest), [`RuntimeBackupState`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RuntimeBackupState) GetRuntimeBackupState calls the GetRuntimeBackupState operation. Example: ```go state, err := client.GetRuntimeBackupState(ctx) if err != nil { return err } for _, checkpoint := range state.GetCheckpointStates() { fmt.Printf("%v\n", checkpoint) } ``` ### GetRuntimeBackupStateAsClusterAdmin ```go func (c *CamundaClient) GetRuntimeBackupStateAsClusterAdmin(ctx context.Context, opts ...func(ApiGetRuntimeBackupStateAsClusterAdminRequest) ApiGetRuntimeBackupStateAsClusterAdminRequest) (*ClusterRuntimeBackupState, error) ``` **Types:** [`ApiGetRuntimeBackupStateAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetRuntimeBackupStateAsClusterAdminRequest), [`ClusterRuntimeBackupState`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRuntimeBackupState) GetRuntimeBackupStateAsClusterAdmin calls the GetRuntimeBackupStateAsClusterAdmin operation. Example: ```go // Returns the runtime backup state for every physical tenant in the cluster. state, err := client.GetRuntimeBackupStateAsClusterAdmin(ctx) if err != nil { return err } for _, tenant := range state.GetPhysicalTenants() { fmt.Printf("%v\n", tenant) } ``` ### GetStartProcessForm ```go func (c *CamundaClient) GetStartProcessForm(ctx context.Context, processDefinitionKey ProcessDefinitionKey, opts ...func(ApiGetStartProcessFormRequest) ApiGetStartProcessFormRequest) (*FormResult, error) ``` **Types:** [`ProcessDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionKey), [`ApiGetStartProcessFormRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetStartProcessFormRequest), [`FormResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#FormResult) GetStartProcessForm calls the GetStartProcessForm operation. Example: ```go form, err := client.GetStartProcessForm(ctx, camunda.MustProcessDefinitionKey("2251799813685330")) if err != nil { return err } fmt.Printf("%v\n", form) ``` ### GetStatus ```go func (c *CamundaClient) GetStatus(ctx context.Context, opts ...func(ApiGetStatusRequest) ApiGetStatusRequest) error ``` **Types:** [`ApiGetStatusRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetStatusRequest) GetStatus calls the GetStatus operation. Example: ```go // Readiness probe: returns a non-nil error when the cluster is not ready. if err := client.GetStatus(ctx); err != nil { return err } fmt.Println("cluster is ready") ``` ### GetSystemConfiguration ```go func (c *CamundaClient) GetSystemConfiguration(ctx context.Context, opts ...func(ApiGetSystemConfigurationRequest) ApiGetSystemConfigurationRequest) (*SystemConfigurationResponse, error) ``` **Types:** [`ApiGetSystemConfigurationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetSystemConfigurationRequest), [`SystemConfigurationResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SystemConfigurationResponse) GetSystemConfiguration calls the GetSystemConfiguration operation. Example: ```go config, err := client.GetSystemConfiguration(ctx) if err != nil { return err } fmt.Printf("%v\n", config) ``` ### GetTenant ```go func (c *CamundaClient) GetTenant(ctx context.Context, tenantId string, opts ...func(ApiGetTenantRequest) ApiGetTenantRequest) (*TenantResult, error) ``` **Types:** [`ApiGetTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetTenantRequest), [`TenantResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantResult) GetTenant calls the GetTenant operation. Example: ```go tenant, err := client.GetTenant(ctx, "tenant-a") if err != nil { return err } fmt.Printf("%v\n", tenant) ``` ### GetTenantClusterVariable ```go func (c *CamundaClient) GetTenantClusterVariable(ctx context.Context, tenantId string, name string, opts ...func(ApiGetTenantClusterVariableRequest) ApiGetTenantClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`ApiGetTenantClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetTenantClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) GetTenantClusterVariable calls the GetTenantClusterVariable operation. Example: ```go result, err := client.GetTenantClusterVariable(ctx, "tenant-a", "region") if err != nil { return err } fmt.Printf("%v\n", result) ``` ### GetTopology ```go func (c *CamundaClient) GetTopology(ctx context.Context, opts ...func(ApiGetTopologyRequest) ApiGetTopologyRequest) (*TopologyResponse, error) ``` **Types:** [`ApiGetTopologyRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetTopologyRequest), [`TopologyResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TopologyResponse) GetTopology calls the GetTopology operation. Example: ```go topology, err := client.GetTopology(ctx) if err != nil { return err } fmt.Printf("gateway %s — %d broker(s), %d partition(s)\n", topology.GetGatewayVersion(), len(topology.GetBrokers()), topology.GetPartitionsCount()) ``` ### GetUsageMetrics ```go func (c *CamundaClient) GetUsageMetrics(ctx context.Context, opts ...func(ApiGetUsageMetricsRequest) ApiGetUsageMetricsRequest) (*UsageMetricsResponse, error) ``` **Types:** [`ApiGetUsageMetricsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetUsageMetricsRequest), [`UsageMetricsResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UsageMetricsResponse) GetUsageMetrics calls the GetUsageMetrics operation. Example: ```go metrics, err := client.GetUsageMetrics(ctx) if err != nil { return err } fmt.Printf("%v\n", metrics) ``` ### GetUser ```go func (c *CamundaClient) GetUser(ctx context.Context, username string, opts ...func(ApiGetUserRequest) ApiGetUserRequest) (*UserResult, error) ``` **Types:** [`ApiGetUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetUserRequest), [`UserResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserResult) GetUser calls the GetUser operation. Example: ```go user, err := client.GetUser(ctx, "alice") if err != nil { return err } fmt.Printf("%v\n", user) ``` ### GetUserTask ```go func (c *CamundaClient) GetUserTask(ctx context.Context, userTaskKey UserTaskKey, opts ...func(ApiGetUserTaskRequest) ApiGetUserTaskRequest) (*UserTaskResult, error) ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`ApiGetUserTaskRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetUserTaskRequest), [`UserTaskResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskResult) GetUserTask calls the GetUserTask operation. Example: ```go task, err := client.GetUserTask(ctx, camunda.MustUserTaskKey("2251799813685380")) if err != nil { return err } fmt.Printf("%v\n", task) ``` ### GetUserTaskForm ```go func (c *CamundaClient) GetUserTaskForm(ctx context.Context, userTaskKey UserTaskKey, opts ...func(ApiGetUserTaskFormRequest) ApiGetUserTaskFormRequest) (*FormResult, error) ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`ApiGetUserTaskFormRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetUserTaskFormRequest), [`FormResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#FormResult) GetUserTaskForm calls the GetUserTaskForm operation. Example: ```go form, err := client.GetUserTaskForm(ctx, camunda.MustUserTaskKey("2251799813685380")) if err != nil { return err } fmt.Printf("%v\n", form) ``` ### GetVariable ```go func (c *CamundaClient) GetVariable(ctx context.Context, variableKey VariableKey, opts ...func(ApiGetVariableRequest) ApiGetVariableRequest) (*VariableResult, error) ``` **Types:** [`VariableKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableKey), [`ApiGetVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiGetVariableRequest), [`VariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableResult) GetVariable calls the GetVariable operation. Example: ```go variable, err := client.GetVariable(ctx, camunda.MustVariableKey("2251799813685390")) if err != nil { return err } fmt.Printf("%v\n", variable) ``` ### ListHistoryBackups ```go func (c *CamundaClient) ListHistoryBackups(ctx context.Context, opts ...func(ApiListHistoryBackupsRequest) ApiListHistoryBackupsRequest) ([]HistoryBackupInfo, error) ``` **Types:** [`ApiListHistoryBackupsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiListHistoryBackupsRequest), [`HistoryBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#HistoryBackupInfo) ListHistoryBackups calls the ListHistoryBackups operation. Example: ```go backups, err := client.ListHistoryBackups(ctx) if err != nil { return err } for _, backup := range backups { fmt.Printf("history backup %d is %v\n", backup.GetBackupId(), backup.GetState()) } ``` ### ListHistoryBackupsAsClusterAdmin ```go func (c *CamundaClient) ListHistoryBackupsAsClusterAdmin(ctx context.Context, opts ...func(ApiListHistoryBackupsAsClusterAdminRequest) ApiListHistoryBackupsAsClusterAdminRequest) ([]ClusterHistoryBackupInfo, error) ``` **Types:** [`ApiListHistoryBackupsAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiListHistoryBackupsAsClusterAdminRequest), [`ClusterHistoryBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterHistoryBackupInfo) ListHistoryBackupsAsClusterAdmin calls the ListHistoryBackupsAsClusterAdmin operation. Example: ```go // Lists history backups across all physical tenants in the cluster. backups, err := client.ListHistoryBackupsAsClusterAdmin(ctx) if err != nil { return err } for _, backup := range backups { fmt.Printf("cluster history backup %d: %d tenant(s)\n", backup.GetBackupId(), len(backup.GetPhysicalTenants())) } ``` ### ListRuntimeBackups ```go func (c *CamundaClient) ListRuntimeBackups(ctx context.Context, opts ...func(ApiListRuntimeBackupsRequest) ApiListRuntimeBackupsRequest) ([]BackupInfo, error) ``` **Types:** [`ApiListRuntimeBackupsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiListRuntimeBackupsRequest), [`BackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BackupInfo) ListRuntimeBackups calls the ListRuntimeBackups operation. Example: ```go backups, err := client.ListRuntimeBackups(ctx) if err != nil { return err } for _, backup := range backups { fmt.Printf("backup %v is %v\n", backup.GetBackupId(), backup.GetState()) } ``` ### ListRuntimeBackupsAsClusterAdmin ```go func (c *CamundaClient) ListRuntimeBackupsAsClusterAdmin(ctx context.Context, opts ...func(ApiListRuntimeBackupsAsClusterAdminRequest) ApiListRuntimeBackupsAsClusterAdminRequest) ([]ClusterRuntimeBackupInfo, error) ``` **Types:** [`ApiListRuntimeBackupsAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiListRuntimeBackupsAsClusterAdminRequest), [`ClusterRuntimeBackupInfo`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRuntimeBackupInfo) ListRuntimeBackupsAsClusterAdmin calls the ListRuntimeBackupsAsClusterAdmin operation. Example: ```go // Lists runtime backups across all physical tenants in the cluster. backups, err := client.ListRuntimeBackupsAsClusterAdmin(ctx) if err != nil { return err } for _, backup := range backups { fmt.Printf("cluster runtime backup %d: state=%v, %d tenant(s)\n", backup.GetBackupId(), backup.GetState(), len(backup.GetPhysicalTenants())) } ``` ### ListSecrets ```go func (c *CamundaClient) ListSecrets(ctx context.Context, opts ...func(ApiListSecretsRequest) ApiListSecretsRequest) (*SecretListResult, error) ``` **Types:** [`ApiListSecretsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiListSecretsRequest), [`SecretListResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SecretListResult) ListSecrets calls the ListSecrets operation. Example: ```go // Returns only the references the caller is authorized to see — never values. result, err := client.ListSecrets(ctx) if err != nil { return err } for _, reference := range result.GetReferences() { fmt.Printf("%v\n", reference) } ``` ### MigrateProcessInstance ```go func (c *CamundaClient) MigrateProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body ProcessInstanceMigrationInstruction, opts ...func(ApiMigrateProcessInstanceRequest) ApiMigrateProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ProcessInstanceMigrationInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceMigrationInstruction), [`ApiMigrateProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiMigrateProcessInstanceRequest) MigrateProcessInstance calls the MigrateProcessInstance operation. Example: ```go instruction := camunda.NewProcessInstanceMigrationInstruction( camunda.ProcessDefinitionKey("2251799813685399"), []camunda.MigrateProcessInstanceMappingInstruction{ *camunda.NewMigrateProcessInstanceMappingInstruction("review", "review-v2"), }) return client.MigrateProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *instruction) ``` ### MigrateProcessInstancesBatchOperation ```go func (c *CamundaClient) MigrateProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceMigrationBatchOperationRequest, opts ...func(ApiMigrateProcessInstancesBatchOperationRequest) ApiMigrateProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceMigrationBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceMigrationBatchOperationRequest), [`ApiMigrateProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiMigrateProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) MigrateProcessInstancesBatchOperation calls the MigrateProcessInstancesBatchOperation operation. Example: ```go plan := camunda.NewProcessInstanceMigrationBatchOperationPlan( camunda.ProcessDefinitionKey("2251799813685399"), []camunda.MigrateProcessInstanceMappingInstruction{ *camunda.NewMigrateProcessInstanceMappingInstruction("review", "review-v2"), }) req := camunda.NewProcessInstanceMigrationBatchOperationRequest(*camunda.NewProcessInstanceFilter(), *plan) result, err := client.MigrateProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### ModifyProcessInstance ```go func (c *CamundaClient) ModifyProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body ProcessInstanceModificationInstruction, opts ...func(ApiModifyProcessInstanceRequest) ApiModifyProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ProcessInstanceModificationInstruction`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceModificationInstruction), [`ApiModifyProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiModifyProcessInstanceRequest) ModifyProcessInstance calls the ModifyProcessInstance operation. Example: ```go return client.ModifyProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewProcessInstanceModificationInstruction()) ``` ### ModifyProcessInstancesBatchOperation ```go func (c *CamundaClient) ModifyProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceModificationBatchOperationRequest, opts ...func(ApiModifyProcessInstancesBatchOperationRequest) ApiModifyProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceModificationBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceModificationBatchOperationRequest), [`ApiModifyProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiModifyProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) ModifyProcessInstancesBatchOperation calls the ModifyProcessInstancesBatchOperation operation. Example: ```go req := camunda.NewProcessInstanceModificationBatchOperationRequest( *camunda.NewProcessInstanceFilter(), []camunda.ProcessInstanceModificationMoveBatchOperationInstruction{ *camunda.NewProcessInstanceModificationMoveBatchOperationInstruction("review", "approve"), }) result, err := client.ModifyProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### NewJobWorker ```go func (c *CamundaClient) NewJobWorker(jobType string, handler JobHandler, opts ...WorkerOption) *JobWorker ``` NewJobWorker creates a worker for jobType. Defaults are seeded from the client's CAMUNDA_WORKER_* configuration and can be overridden with options. ### NewStreamJobWorker ```go func (c *CamundaClient) NewStreamJobWorker(jobType string, handler JobHandler, opts ...StreamWorkerOption) *StreamJobWorker ``` NewStreamJobWorker creates a gRPC streaming worker for jobType. Defaults are seeded from the client's CAMUNDA_WORKER_* configuration and can be overridden with options. ### PauseClusterExporting ```go func (c *CamundaClient) PauseClusterExporting(ctx context.Context, opts ...func(ApiPauseClusterExportingRequest) ApiPauseClusterExportingRequest) error ``` **Types:** [`ApiPauseClusterExportingRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiPauseClusterExportingRequest) PauseClusterExporting calls the PauseClusterExporting operation. Example: ```go // Pauses exporting across all physical tenants in the cluster. // While paused, reads from secondary storage stop advancing for every tenant. if err := client.PauseClusterExporting(ctx); err != nil { return err } ``` ### PauseExporting ```go func (c *CamundaClient) PauseExporting(ctx context.Context, opts ...func(ApiPauseExportingRequest) ApiPauseExportingRequest) error ``` **Types:** [`ApiPauseExportingRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiPauseExportingRequest) PauseExporting calls the PauseExporting operation. Example: ```go // While exporting is paused, reads from secondary storage stop advancing. if err := client.PauseExporting(ctx); err != nil { return err } ``` ### PinAt ```go func (c *CamundaClient) PinAt(ctx context.Context, t time.Time) error ``` PinAt moves the engine clock to t. ### PinClock ```go func (c *CamundaClient) PinClock(ctx context.Context, body ClockPinRequest, opts ...func(ApiPinClockRequest) ApiPinClockRequest) error ``` **Types:** [`ClockPinRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClockPinRequest), [`ApiPinClockRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiPinClockRequest) PinClock calls the PinClock operation. Example: ```go // Pin the cluster clock to a fixed instant (epoch milliseconds). pinned := time.Date(2025, time.January, 1, 0, 0, 0, 0, time.UTC) return client.PinClock(ctx, *camunda.NewClockPinRequest(pinned.UnixMilli())) ``` ### PublishMessage ```go func (c *CamundaClient) PublishMessage(ctx context.Context, body MessagePublicationRequest, opts ...func(ApiPublishMessageRequest) ApiPublishMessageRequest) (*MessagePublicationResult, error) ``` **Types:** [`MessagePublicationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessagePublicationRequest), [`ApiPublishMessageRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiPublishMessageRequest), [`MessagePublicationResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessagePublicationResult) PublishMessage calls the PublishMessage operation. Example: ```go req := camunda.NewMessagePublicationRequest("order-confirmed") req.SetCorrelationKey("order-42") req.SetVariables(map[string]any{"confirmedBy": "payment-service"}) result, err := client.PublishMessage(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### Random ```go func (c *CamundaClient) Random() Random ``` Random returns the source this client draws jitter from. ### Raw ```go func (c *CamundaClient) Raw() *camundaapi.APIClient ``` Raw returns the underlying generated client for operations or options not yet surfaced on the ergonomic facade. ### ResetClock ```go func (c *CamundaClient) ResetClock(ctx context.Context, opts ...func(ApiResetClockRequest) ApiResetClockRequest) error ``` **Types:** [`ApiResetClockRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResetClockRequest) ResetClock calls the ResetClock operation. Example: ```go // Release a previously pinned clock back to system time. return client.ResetClock(ctx) ``` ### ResetToLive ```go func (c *CamundaClient) ResetToLive(ctx context.Context) error ``` ResetToLive returns the engine clock to real time. ### ResolveIncident ```go func (c *CamundaClient) ResolveIncident(ctx context.Context, incidentKey IncidentKey, body IncidentResolutionRequest, opts ...func(ApiResolveIncidentRequest) ApiResolveIncidentRequest) error ``` **Types:** [`IncidentKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentKey), [`IncidentResolutionRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentResolutionRequest), [`ApiResolveIncidentRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResolveIncidentRequest) ResolveIncident calls the ResolveIncident operation. Example: ```go // After fixing the root cause (e.g. correcting a variable), resolve the // incident so the engine retries the failed element. return client.ResolveIncident(ctx, camunda.MustIncidentKey("2251799813685300"), *camunda.NewIncidentResolutionRequest()) ``` ### ResolveIncidentsBatchOperation ```go func (c *CamundaClient) ResolveIncidentsBatchOperation(ctx context.Context, body ProcessInstanceIncidentResolutionBatchOperationRequest, opts ...func(ApiResolveIncidentsBatchOperationRequest) ApiResolveIncidentsBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceIncidentResolutionBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceIncidentResolutionBatchOperationRequest), [`ApiResolveIncidentsBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResolveIncidentsBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) ResolveIncidentsBatchOperation calls the ResolveIncidentsBatchOperation operation. Example: ```go req := camunda.NewProcessInstanceIncidentResolutionBatchOperationRequest(*camunda.NewProcessInstanceFilter()) result, err := client.ResolveIncidentsBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### ResolveProcessInstanceIncidents ```go func (c *CamundaClient) ResolveProcessInstanceIncidents(ctx context.Context, processInstanceKey ProcessInstanceKey, opts ...func(ApiResolveProcessInstanceIncidentsRequest) ApiResolveProcessInstanceIncidentsRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ApiResolveProcessInstanceIncidentsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResolveProcessInstanceIncidentsRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) ResolveProcessInstanceIncidents calls the ResolveProcessInstanceIncidents operation. Example: ```go result, err := client.ResolveProcessInstanceIncidents(ctx, camunda.MustProcessInstanceKey("2251799813685340")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### ResolveSecrets ```go func (c *CamundaClient) ResolveSecrets(ctx context.Context, body SecretResolveRequest, opts ...func(ApiResolveSecretsRequest) ApiResolveSecretsRequest) (*SecretResolveResult, error) ``` **Types:** [`SecretResolveRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SecretResolveRequest), [`ApiResolveSecretsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResolveSecretsRequest), [`SecretResolveResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SecretResolveResult) ResolveSecrets calls the ResolveSecrets operation. Example: ```go // References take the form `camunda.secrets.`. req := camunda.NewSecretResolveRequest([]string{"camunda.secrets.MY_API_KEY", "camunda.secrets.MY_TOKEN"}) result, err := client.ResolveSecrets(ctx, *req) if err != nil { return err } for _, secret := range result.GetResolved() { fmt.Printf("%v = %v\n", secret.GetReference(), secret.GetValue()) } ``` ### Restore ```go func (c *CamundaClient) Restore(ctx context.Context, body RestoreRequest, opts ...func(ApiRestoreRequest) ApiRestoreRequest) (*ClusterRestoreResponse, error) ``` **Types:** [`RestoreRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RestoreRequest), [`ApiRestoreRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiRestoreRequest), [`ClusterRestoreResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRestoreResponse) Restore calls the Restore operation. Example: ```go result, err := client.Restore(ctx, *camunda.NewRestoreRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### RestoreAsClusterAdmin ```go func (c *CamundaClient) RestoreAsClusterAdmin(ctx context.Context, body ClusterRestoreRequest, opts ...func(ApiRestoreAsClusterAdminRequest) ApiRestoreAsClusterAdminRequest) (*ClusterRestoreResponse, error) ``` **Types:** [`ClusterRestoreRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRestoreRequest), [`ApiRestoreAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiRestoreAsClusterAdminRequest), [`ClusterRestoreResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRestoreResponse) RestoreAsClusterAdmin calls the RestoreAsClusterAdmin operation. Example: ```go // Triggers a cluster-level restore (cluster-admin authority), restoring from the given backup IDs. // backupIds are one per partition, so the placeholder slice below must be extended to // match the actual partition count of the target cluster (shown here for a 2-partition cluster). restoreRequest := camunda.NewClusterRestoreRequestWithDefaults() restoreRequest.SetBackupIds([]int64{1, 2}) result, err := client.RestoreAsClusterAdmin(ctx, *restoreRequest) if err != nil { return err } fmt.Printf("restore change id: %s\n", result.GetChangeId()) ``` ### ResumeBatchOperation ```go func (c *CamundaClient) ResumeBatchOperation(ctx context.Context, batchOperationKey string, opts ...func(ApiResumeBatchOperationRequest) ApiResumeBatchOperationRequest) error ``` **Types:** [`ApiResumeBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResumeBatchOperationRequest) ResumeBatchOperation calls the ResumeBatchOperation operation. Example: ```go return client.ResumeBatchOperation(ctx, "2251799813685290") ``` ### ResumeClusterExporting ```go func (c *CamundaClient) ResumeClusterExporting(ctx context.Context, opts ...func(ApiResumeClusterExportingRequest) ApiResumeClusterExportingRequest) error ``` **Types:** [`ApiResumeClusterExportingRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResumeClusterExportingRequest) ResumeClusterExporting calls the ResumeClusterExporting operation. Example: ```go // Resumes exporting across all physical tenants in the cluster. if err := client.ResumeClusterExporting(ctx); err != nil { return err } ``` ### ResumeExporting ```go func (c *CamundaClient) ResumeExporting(ctx context.Context, opts ...func(ApiResumeExportingRequest) ApiResumeExportingRequest) error ``` **Types:** [`ApiResumeExportingRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResumeExportingRequest) ResumeExporting calls the ResumeExporting operation. Example: ```go if err := client.ResumeExporting(ctx); err != nil { return err } ``` ### ResumeProcessInstance ```go func (c *CamundaClient) ResumeProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body ResumeProcessInstanceRequest, opts ...func(ApiResumeProcessInstanceRequest) ApiResumeProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`ResumeProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResumeProcessInstanceRequest), [`ApiResumeProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResumeProcessInstanceRequest) ResumeProcessInstance calls the ResumeProcessInstance operation. Example: ```go return client.ResumeProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewResumeProcessInstanceRequest()) ``` ### ResumeProcessInstancesBatchOperation ```go func (c *CamundaClient) ResumeProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceResumptionBatchOperationRequest, opts ...func(ApiResumeProcessInstancesBatchOperationRequest) ApiResumeProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceResumptionBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceResumptionBatchOperationRequest), [`ApiResumeProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiResumeProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) ResumeProcessInstancesBatchOperation calls the ResumeProcessInstancesBatchOperation operation. Example: ```go // Resume every previously-suspended instance matching a filter. req := camunda.NewProcessInstanceResumptionBatchOperationRequest(*camunda.NewProcessInstanceFilter()) result, err := client.ResumeProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### SearchAgentDefinitions ```go func (c *CamundaClient) SearchAgentDefinitions(ctx context.Context, body AgentDefinitionSearchQuery, opts ...func(ApiSearchAgentDefinitionsRequest) ApiSearchAgentDefinitionsRequest) (*AgentDefinitionSearchQueryResult, error) ``` **Types:** [`AgentDefinitionSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentDefinitionSearchQuery), [`ApiSearchAgentDefinitionsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchAgentDefinitionsRequest), [`AgentDefinitionSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentDefinitionSearchQueryResult) SearchAgentDefinitions calls the SearchAgentDefinitions operation. Example: ```go result, err := client.SearchAgentDefinitions(ctx, *camunda.NewAgentDefinitionSearchQuery()) if err != nil { return err } for _, d := range result.GetItems() { fmt.Printf("%v\n", d) } ``` ### SearchAgentInstanceHistory ```go func (c *CamundaClient) SearchAgentInstanceHistory(ctx context.Context, agentInstanceKey AgentInstanceKey, body AgentInstanceHistorySearchQuery, opts ...func(ApiSearchAgentInstanceHistoryRequest) ApiSearchAgentInstanceHistoryRequest) (*AgentInstanceHistorySearchQueryResult, error) ``` **Types:** [`AgentInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceKey), [`AgentInstanceHistorySearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceHistorySearchQuery), [`ApiSearchAgentInstanceHistoryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchAgentInstanceHistoryRequest), [`AgentInstanceHistorySearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceHistorySearchQueryResult) SearchAgentInstanceHistory calls the SearchAgentInstanceHistory operation. Example: ```go result, err := client.SearchAgentInstanceHistory(ctx, camunda.MustAgentInstanceKey("2251799813685370"), *camunda.NewAgentInstanceHistorySearchQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchAgentInstances ```go func (c *CamundaClient) SearchAgentInstances(ctx context.Context, body AgentInstanceSearchQuery, opts ...func(ApiSearchAgentInstancesRequest) ApiSearchAgentInstancesRequest) (*AgentInstanceSearchQueryResult, error) ``` **Types:** [`AgentInstanceSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceSearchQuery), [`ApiSearchAgentInstancesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchAgentInstancesRequest), [`AgentInstanceSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceSearchQueryResult) SearchAgentInstances calls the SearchAgentInstances operation. Example: ```go result, err := client.SearchAgentInstances(ctx, *camunda.NewAgentInstanceSearchQuery()) if err != nil { return err } for _, a := range result.GetItems() { fmt.Printf("%v\n", a) } ``` ### SearchAuditLogs ```go func (c *CamundaClient) SearchAuditLogs(ctx context.Context, body AuditLogSearchQueryRequest, opts ...func(ApiSearchAuditLogsRequest) ApiSearchAuditLogsRequest) (*AuditLogSearchQueryResult, error) ``` **Types:** [`AuditLogSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuditLogSearchQueryRequest), [`ApiSearchAuditLogsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchAuditLogsRequest), [`AuditLogSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuditLogSearchQueryResult) SearchAuditLogs calls the SearchAuditLogs operation. Example: ```go result, err := client.SearchAuditLogs(ctx, *camunda.NewAuditLogSearchQueryRequest()) if err != nil { return err } for _, entry := range result.GetItems() { fmt.Printf("%v\n", entry) } ``` ### SearchAuthorizations ```go func (c *CamundaClient) SearchAuthorizations(ctx context.Context, body AuthorizationSearchQuery, opts ...func(ApiSearchAuthorizationsRequest) ApiSearchAuthorizationsRequest) (*AuthorizationSearchResult, error) ``` **Types:** [`AuthorizationSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationSearchQuery), [`ApiSearchAuthorizationsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchAuthorizationsRequest), [`AuthorizationSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationSearchResult) SearchAuthorizations calls the SearchAuthorizations operation. Example: ```go result, err := client.SearchAuthorizations(ctx, *camunda.NewAuthorizationSearchQuery()) if err != nil { return err } for _, a := range result.GetItems() { fmt.Printf("%v\n", a) } ``` ### SearchBatchOperationItems ```go func (c *CamundaClient) SearchBatchOperationItems(ctx context.Context, body BatchOperationItemSearchQuery, opts ...func(ApiSearchBatchOperationItemsRequest) ApiSearchBatchOperationItemsRequest) (*BatchOperationItemSearchQueryResult, error) ``` **Types:** [`BatchOperationItemSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationItemSearchQuery), [`ApiSearchBatchOperationItemsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchBatchOperationItemsRequest), [`BatchOperationItemSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationItemSearchQueryResult) SearchBatchOperationItems calls the SearchBatchOperationItems operation. Example: ```go result, err := client.SearchBatchOperationItems(ctx, *camunda.NewBatchOperationItemSearchQuery()) if err != nil { return err } for _, item := range result.GetItems() { fmt.Printf("%v\n", item) } ``` ### SearchBatchOperations ```go func (c *CamundaClient) SearchBatchOperations(ctx context.Context, body BatchOperationSearchQuery, opts ...func(ApiSearchBatchOperationsRequest) ApiSearchBatchOperationsRequest) (*BatchOperationSearchQueryResult, error) ``` **Types:** [`BatchOperationSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationSearchQuery), [`ApiSearchBatchOperationsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchBatchOperationsRequest), [`BatchOperationSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationSearchQueryResult) SearchBatchOperations calls the SearchBatchOperations operation. Example: ```go result, err := client.SearchBatchOperations(ctx, *camunda.NewBatchOperationSearchQuery()) if err != nil { return err } for _, op := range result.GetItems() { fmt.Printf("%v\n", op) } ``` ### SearchClientsForGroup ```go func (c *CamundaClient) SearchClientsForGroup(ctx context.Context, groupId string, body GroupClientSearchQueryRequest, opts ...func(ApiSearchClientsForGroupRequest) ApiSearchClientsForGroupRequest) (*GroupClientSearchResult, error) ``` **Types:** [`GroupClientSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupClientSearchQueryRequest), [`ApiSearchClientsForGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchClientsForGroupRequest), [`GroupClientSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupClientSearchResult) SearchClientsForGroup calls the SearchClientsForGroup operation. Example: ```go result, err := client.SearchClientsForGroup(ctx, "finance", *camunda.NewGroupClientSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchClientsForRole ```go func (c *CamundaClient) SearchClientsForRole(ctx context.Context, roleId string, body RoleClientSearchQueryRequest, opts ...func(ApiSearchClientsForRoleRequest) ApiSearchClientsForRoleRequest) (*RoleClientSearchResult, error) ``` **Types:** [`RoleClientSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleClientSearchQueryRequest), [`ApiSearchClientsForRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchClientsForRoleRequest), [`RoleClientSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleClientSearchResult) SearchClientsForRole calls the SearchClientsForRole operation. Example: ```go result, err := client.SearchClientsForRole(ctx, "auditor", *camunda.NewRoleClientSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchClientsForTenant ```go func (c *CamundaClient) SearchClientsForTenant(ctx context.Context, tenantId string, body TenantClientSearchQueryRequest, opts ...func(ApiSearchClientsForTenantRequest) ApiSearchClientsForTenantRequest) (*TenantClientSearchResult, error) ``` **Types:** [`TenantClientSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantClientSearchQueryRequest), [`ApiSearchClientsForTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchClientsForTenantRequest), [`TenantClientSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantClientSearchResult) SearchClientsForTenant calls the SearchClientsForTenant operation. Example: ```go result, err := client.SearchClientsForTenant(ctx, "tenant-a", *camunda.NewTenantClientSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchClusterVariables ```go func (c *CamundaClient) SearchClusterVariables(ctx context.Context, body ClusterVariableSearchQueryRequest, opts ...func(ApiSearchClusterVariablesRequest) ApiSearchClusterVariablesRequest) (*ClusterVariableSearchQueryResult, error) ``` **Types:** [`ClusterVariableSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableSearchQueryRequest), [`ApiSearchClusterVariablesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchClusterVariablesRequest), [`ClusterVariableSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableSearchQueryResult) SearchClusterVariables calls the SearchClusterVariables operation. Example: ```go result, err := client.SearchClusterVariables(ctx, *camunda.NewClusterVariableSearchQueryRequest()) if err != nil { return err } for _, v := range result.GetItems() { fmt.Printf("%v\n", v) } ``` ### SearchCorrelatedMessageSubscriptions ```go func (c *CamundaClient) SearchCorrelatedMessageSubscriptions(ctx context.Context, body CorrelatedMessageSubscriptionSearchQuery, opts ...func(ApiSearchCorrelatedMessageSubscriptionsRequest) ApiSearchCorrelatedMessageSubscriptionsRequest) (*CorrelatedMessageSubscriptionSearchQueryResult, error) ``` **Types:** [`CorrelatedMessageSubscriptionSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CorrelatedMessageSubscriptionSearchQuery), [`ApiSearchCorrelatedMessageSubscriptionsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchCorrelatedMessageSubscriptionsRequest), [`CorrelatedMessageSubscriptionSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#CorrelatedMessageSubscriptionSearchQueryResult) SearchCorrelatedMessageSubscriptions calls the SearchCorrelatedMessageSubscriptions operation. Example: ```go result, err := client.SearchCorrelatedMessageSubscriptions(ctx, *camunda.NewCorrelatedMessageSubscriptionSearchQuery()) if err != nil { return err } for _, s := range result.GetItems() { fmt.Printf("%v\n", s) } ``` ### SearchDecisionDefinitions ```go func (c *CamundaClient) SearchDecisionDefinitions(ctx context.Context, body DecisionDefinitionSearchQuery, opts ...func(ApiSearchDecisionDefinitionsRequest) ApiSearchDecisionDefinitionsRequest) (*DecisionDefinitionSearchQueryResult, error) ``` **Types:** [`DecisionDefinitionSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionDefinitionSearchQuery), [`ApiSearchDecisionDefinitionsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchDecisionDefinitionsRequest), [`DecisionDefinitionSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionDefinitionSearchQueryResult) SearchDecisionDefinitions calls the SearchDecisionDefinitions operation. Example: ```go result, err := client.SearchDecisionDefinitions(ctx, *camunda.NewDecisionDefinitionSearchQuery()) if err != nil { return err } for _, d := range result.GetItems() { fmt.Printf("%v\n", d) } ``` ### SearchDecisionInstances ```go func (c *CamundaClient) SearchDecisionInstances(ctx context.Context, body DecisionInstanceSearchQuery, opts ...func(ApiSearchDecisionInstancesRequest) ApiSearchDecisionInstancesRequest) (*DecisionInstanceSearchQueryResult, error) ``` **Types:** [`DecisionInstanceSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionInstanceSearchQuery), [`ApiSearchDecisionInstancesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchDecisionInstancesRequest), [`DecisionInstanceSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionInstanceSearchQueryResult) SearchDecisionInstances calls the SearchDecisionInstances operation. Example: ```go result, err := client.SearchDecisionInstances(ctx, *camunda.NewDecisionInstanceSearchQuery()) if err != nil { return err } for _, d := range result.GetItems() { fmt.Printf("%v\n", d) } ``` ### SearchDecisionRequirements ```go func (c *CamundaClient) SearchDecisionRequirements(ctx context.Context, body DecisionRequirementsSearchQuery, opts ...func(ApiSearchDecisionRequirementsRequest) ApiSearchDecisionRequirementsRequest) (*DecisionRequirementsSearchQueryResult, error) ``` **Types:** [`DecisionRequirementsSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionRequirementsSearchQuery), [`ApiSearchDecisionRequirementsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchDecisionRequirementsRequest), [`DecisionRequirementsSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#DecisionRequirementsSearchQueryResult) SearchDecisionRequirements calls the SearchDecisionRequirements operation. Example: ```go result, err := client.SearchDecisionRequirements(ctx, *camunda.NewDecisionRequirementsSearchQuery()) if err != nil { return err } for _, d := range result.GetItems() { fmt.Printf("%v\n", d) } ``` ### SearchElementInstanceIncidents ```go func (c *CamundaClient) SearchElementInstanceIncidents(ctx context.Context, elementInstanceKey ElementInstanceKey, body IncidentSearchQuery, opts ...func(ApiSearchElementInstanceIncidentsRequest) ApiSearchElementInstanceIncidentsRequest) (*IncidentSearchQueryResult, error) ``` **Types:** [`ElementInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceKey), [`IncidentSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQuery), [`ApiSearchElementInstanceIncidentsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchElementInstanceIncidentsRequest), [`IncidentSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQueryResult) SearchElementInstanceIncidents calls the SearchElementInstanceIncidents operation. Example: ```go result, err := client.SearchElementInstanceIncidents(ctx, camunda.MustElementInstanceKey("2251799813685360"), *camunda.NewIncidentSearchQuery()) if err != nil { return err } for _, inc := range result.GetItems() { fmt.Printf("%v\n", inc) } ``` ### SearchElementInstanceWaitStates ```go func (c *CamundaClient) SearchElementInstanceWaitStates(ctx context.Context, body ElementInstanceWaitStateQuery, opts ...func(ApiSearchElementInstanceWaitStatesRequest) ApiSearchElementInstanceWaitStatesRequest) (*ElementInstanceWaitStateQueryResult, error) ``` **Types:** [`ElementInstanceWaitStateQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceWaitStateQuery), [`ApiSearchElementInstanceWaitStatesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchElementInstanceWaitStatesRequest), [`ElementInstanceWaitStateQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceWaitStateQueryResult) SearchElementInstanceWaitStates calls the SearchElementInstanceWaitStates operation. Example: ```go result, err := client.SearchElementInstanceWaitStates(ctx, *camunda.NewElementInstanceWaitStateQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchElementInstances ```go func (c *CamundaClient) SearchElementInstances(ctx context.Context, body ElementInstanceSearchQuery, opts ...func(ApiSearchElementInstancesRequest) ApiSearchElementInstancesRequest) (*ElementInstanceSearchQueryResult, error) ``` **Types:** [`ElementInstanceSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceSearchQuery), [`ApiSearchElementInstancesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchElementInstancesRequest), [`ElementInstanceSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ElementInstanceSearchQueryResult) SearchElementInstances calls the SearchElementInstances operation. Example: ```go result, err := client.SearchElementInstances(ctx, *camunda.NewElementInstanceSearchQuery()) if err != nil { return err } for _, e := range result.GetItems() { fmt.Printf("%v\n", e) } ``` ### SearchGlobalTaskListeners ```go func (c *CamundaClient) SearchGlobalTaskListeners(ctx context.Context, body GlobalTaskListenerSearchQueryRequest, opts ...func(ApiSearchGlobalTaskListenersRequest) ApiSearchGlobalTaskListenersRequest) (*GlobalTaskListenerSearchQueryResult, error) ``` **Types:** [`GlobalTaskListenerSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalTaskListenerSearchQueryRequest), [`ApiSearchGlobalTaskListenersRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchGlobalTaskListenersRequest), [`GlobalTaskListenerSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalTaskListenerSearchQueryResult) SearchGlobalTaskListeners calls the SearchGlobalTaskListeners operation. Example: ```go result, err := client.SearchGlobalTaskListeners(ctx, *camunda.NewGlobalTaskListenerSearchQueryRequest()) if err != nil { return err } for _, l := range result.GetItems() { fmt.Printf("%v\n", l) } ``` ### SearchGroupIdsForTenant ```go func (c *CamundaClient) SearchGroupIdsForTenant(ctx context.Context, tenantId string, body TenantGroupSearchQueryRequest, opts ...func(ApiSearchGroupIdsForTenantRequest) ApiSearchGroupIdsForTenantRequest) (*TenantGroupSearchResult, error) ``` **Types:** [`TenantGroupSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantGroupSearchQueryRequest), [`ApiSearchGroupIdsForTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchGroupIdsForTenantRequest), [`TenantGroupSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantGroupSearchResult) SearchGroupIdsForTenant calls the SearchGroupIdsForTenant operation. Example: ```go result, err := client.SearchGroupIdsForTenant(ctx, "tenant-a", *camunda.NewTenantGroupSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchGroups ```go func (c *CamundaClient) SearchGroups(ctx context.Context, body GroupSearchQueryRequest, opts ...func(ApiSearchGroupsRequest) ApiSearchGroupsRequest) (*GroupSearchQueryResult, error) ``` **Types:** [`GroupSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupSearchQueryRequest), [`ApiSearchGroupsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchGroupsRequest), [`GroupSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupSearchQueryResult) SearchGroups calls the SearchGroups operation. Example: ```go result, err := client.SearchGroups(ctx, *camunda.NewGroupSearchQueryRequest()) if err != nil { return err } for _, g := range result.GetItems() { fmt.Printf("%v\n", g) } ``` ### SearchGroupsForRole ```go func (c *CamundaClient) SearchGroupsForRole(ctx context.Context, roleId string, body RoleGroupSearchQueryRequest, opts ...func(ApiSearchGroupsForRoleRequest) ApiSearchGroupsForRoleRequest) (*RoleGroupSearchResult, error) ``` **Types:** [`RoleGroupSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleGroupSearchQueryRequest), [`ApiSearchGroupsForRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchGroupsForRoleRequest), [`RoleGroupSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleGroupSearchResult) SearchGroupsForRole calls the SearchGroupsForRole operation. Example: ```go result, err := client.SearchGroupsForRole(ctx, "auditor", *camunda.NewRoleGroupSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchIncidents ```go func (c *CamundaClient) SearchIncidents(ctx context.Context, body IncidentSearchQuery, opts ...func(ApiSearchIncidentsRequest) ApiSearchIncidentsRequest) (*IncidentSearchQueryResult, error) ``` **Types:** [`IncidentSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQuery), [`ApiSearchIncidentsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchIncidentsRequest), [`IncidentSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQueryResult) SearchIncidents calls the SearchIncidents operation. Example: ```go result, err := client.SearchIncidents(ctx, *camunda.NewIncidentSearchQuery()) if err != nil { return err } for _, inc := range result.GetItems() { fmt.Printf("incident %v: %s\n", inc.GetIncidentKey(), inc.GetErrorType()) } ``` ### SearchJobs ```go func (c *CamundaClient) SearchJobs(ctx context.Context, body JobSearchQuery, opts ...func(ApiSearchJobsRequest) ApiSearchJobsRequest) (*JobSearchQueryResult, error) ``` **Types:** [`JobSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobSearchQuery), [`ApiSearchJobsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchJobsRequest), [`JobSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobSearchQueryResult) SearchJobs calls the SearchJobs operation. Example: ```go result, err := client.SearchJobs(ctx, *camunda.NewJobSearchQuery()) if err != nil { return err } for _, job := range result.GetItems() { fmt.Printf("%v\n", job) } ``` ### SearchMappingRule ```go func (c *CamundaClient) SearchMappingRule(ctx context.Context, body MappingRuleSearchQueryRequest, opts ...func(ApiSearchMappingRuleRequest) ApiSearchMappingRuleRequest) (*MappingRuleSearchQueryResult, error) ``` **Types:** [`MappingRuleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleSearchQueryRequest), [`ApiSearchMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchMappingRuleRequest), [`MappingRuleSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleSearchQueryResult) SearchMappingRule calls the SearchMappingRule operation. Example: ```go result, err := client.SearchMappingRule(ctx, *camunda.NewMappingRuleSearchQueryRequest()) if err != nil { return err } for _, r := range result.GetItems() { fmt.Printf("%v\n", r) } ``` ### SearchMappingRulesForGroup ```go func (c *CamundaClient) SearchMappingRulesForGroup(ctx context.Context, groupId string, body MappingRuleSearchQueryRequest, opts ...func(ApiSearchMappingRulesForGroupRequest) ApiSearchMappingRulesForGroupRequest) (*GroupMappingRuleSearchResult, error) ``` **Types:** [`MappingRuleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleSearchQueryRequest), [`ApiSearchMappingRulesForGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchMappingRulesForGroupRequest), [`GroupMappingRuleSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupMappingRuleSearchResult) SearchMappingRulesForGroup calls the SearchMappingRulesForGroup operation. Example: ```go result, err := client.SearchMappingRulesForGroup(ctx, "finance", *camunda.NewMappingRuleSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchMappingRulesForRole ```go func (c *CamundaClient) SearchMappingRulesForRole(ctx context.Context, roleId string, body MappingRuleSearchQueryRequest, opts ...func(ApiSearchMappingRulesForRoleRequest) ApiSearchMappingRulesForRoleRequest) (*RoleMappingRuleSearchResult, error) ``` **Types:** [`MappingRuleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleSearchQueryRequest), [`ApiSearchMappingRulesForRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchMappingRulesForRoleRequest), [`RoleMappingRuleSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleMappingRuleSearchResult) SearchMappingRulesForRole calls the SearchMappingRulesForRole operation. Example: ```go result, err := client.SearchMappingRulesForRole(ctx, "auditor", *camunda.NewMappingRuleSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchMappingRulesForTenant ```go func (c *CamundaClient) SearchMappingRulesForTenant(ctx context.Context, tenantId string, body MappingRuleSearchQueryRequest, opts ...func(ApiSearchMappingRulesForTenantRequest) ApiSearchMappingRulesForTenantRequest) (*TenantMappingRuleSearchResult, error) ``` **Types:** [`MappingRuleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleSearchQueryRequest), [`ApiSearchMappingRulesForTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchMappingRulesForTenantRequest), [`TenantMappingRuleSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantMappingRuleSearchResult) SearchMappingRulesForTenant calls the SearchMappingRulesForTenant operation. Example: ```go result, err := client.SearchMappingRulesForTenant(ctx, "tenant-a", *camunda.NewMappingRuleSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchMessageSubscriptions ```go func (c *CamundaClient) SearchMessageSubscriptions(ctx context.Context, body MessageSubscriptionSearchQuery, opts ...func(ApiSearchMessageSubscriptionsRequest) ApiSearchMessageSubscriptionsRequest) (*MessageSubscriptionSearchQueryResult, error) ``` **Types:** [`MessageSubscriptionSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessageSubscriptionSearchQuery), [`ApiSearchMessageSubscriptionsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchMessageSubscriptionsRequest), [`MessageSubscriptionSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MessageSubscriptionSearchQueryResult) SearchMessageSubscriptions calls the SearchMessageSubscriptions operation. Example: ```go result, err := client.SearchMessageSubscriptions(ctx, *camunda.NewMessageSubscriptionSearchQuery()) if err != nil { return err } for _, s := range result.GetItems() { fmt.Printf("%v\n", s) } ``` ### SearchOwnAuthorizations ```go func (c *CamundaClient) SearchOwnAuthorizations(ctx context.Context, body AuthorizationSearchQuery, opts ...func(ApiSearchOwnAuthorizationsRequest) ApiSearchOwnAuthorizationsRequest) (*OwnAuthorizationSearchResult, error) ``` **Types:** [`AuthorizationSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationSearchQuery), [`ApiSearchOwnAuthorizationsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchOwnAuthorizationsRequest), [`OwnAuthorizationSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#OwnAuthorizationSearchResult) SearchOwnAuthorizations calls the SearchOwnAuthorizations operation. Example: ```go // Scoped to the authenticated principal: direct grants plus those inherited // from a group, role, or mapping rule. result, err := client.SearchOwnAuthorizations(ctx, *camunda.NewAuthorizationSearchQuery()) if err != nil { return err } for _, a := range result.GetItems() { fmt.Printf("%v\n", a) } ``` ### SearchProcessDefinitionVariableNames ```go func (c *CamundaClient) SearchProcessDefinitionVariableNames(ctx context.Context, processDefinitionKey ProcessDefinitionKey, body ProcessDefinitionVariableNameSearchQuery, opts ...func(ApiSearchProcessDefinitionVariableNamesRequest) ApiSearchProcessDefinitionVariableNamesRequest) (*ProcessDefinitionVariableNameSearchQueryResult, error) ``` **Types:** [`ProcessDefinitionKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionKey), [`ProcessDefinitionVariableNameSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionVariableNameSearchQuery), [`ApiSearchProcessDefinitionVariableNamesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchProcessDefinitionVariableNamesRequest), [`ProcessDefinitionVariableNameSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionVariableNameSearchQueryResult) SearchProcessDefinitionVariableNames calls the SearchProcessDefinitionVariableNames operation. Example: ```go result, err := client.SearchProcessDefinitionVariableNames(ctx, camunda.MustProcessDefinitionKey("2251799813685330"), *camunda.NewProcessDefinitionVariableNameSearchQuery()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchProcessDefinitions ```go func (c *CamundaClient) SearchProcessDefinitions(ctx context.Context, body ProcessDefinitionSearchQuery, opts ...func(ApiSearchProcessDefinitionsRequest) ApiSearchProcessDefinitionsRequest) (*ProcessDefinitionSearchQueryResult, error) ``` **Types:** [`ProcessDefinitionSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionSearchQuery), [`ApiSearchProcessDefinitionsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchProcessDefinitionsRequest), [`ProcessDefinitionSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessDefinitionSearchQueryResult) SearchProcessDefinitions calls the SearchProcessDefinitions operation. Example: ```go result, err := client.SearchProcessDefinitions(ctx, *camunda.NewProcessDefinitionSearchQuery()) if err != nil { return err } for _, d := range result.GetItems() { fmt.Printf("%v\n", d) } ``` ### SearchProcessInstanceIncidents ```go func (c *CamundaClient) SearchProcessInstanceIncidents(ctx context.Context, processInstanceKey ProcessInstanceKey, body IncidentSearchQuery, opts ...func(ApiSearchProcessInstanceIncidentsRequest) ApiSearchProcessInstanceIncidentsRequest) (*IncidentSearchQueryResult, error) ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`IncidentSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQuery), [`ApiSearchProcessInstanceIncidentsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchProcessInstanceIncidentsRequest), [`IncidentSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#IncidentSearchQueryResult) SearchProcessInstanceIncidents calls the SearchProcessInstanceIncidents operation. Example: ```go result, err := client.SearchProcessInstanceIncidents(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewIncidentSearchQuery()) if err != nil { return err } for _, inc := range result.GetItems() { fmt.Printf("%v\n", inc) } ``` ### SearchProcessInstances ```go func (c *CamundaClient) SearchProcessInstances(ctx context.Context, body ProcessInstanceSearchQuery, opts ...func(ApiSearchProcessInstancesRequest) ApiSearchProcessInstancesRequest) (*ProcessInstanceSearchQueryResult, error) ``` **Types:** [`ProcessInstanceSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceSearchQuery), [`ApiSearchProcessInstancesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchProcessInstancesRequest), [`ProcessInstanceSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceSearchQueryResult) SearchProcessInstances calls the SearchProcessInstances operation. Example: ```go result, err := client.SearchProcessInstances(ctx, *camunda.NewProcessInstanceSearchQuery()) if err != nil { return err } for _, pi := range result.GetItems() { fmt.Printf("%v: %v\n", pi.GetProcessInstanceKey(), pi.GetState()) } ``` ### SearchResources ```go func (c *CamundaClient) SearchResources(ctx context.Context, body ResourceSearchQuery, opts ...func(ApiSearchResourcesRequest) ApiSearchResourcesRequest) (*ResourceSearchQueryResult, error) ``` **Types:** [`ResourceSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceSearchQuery), [`ApiSearchResourcesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchResourcesRequest), [`ResourceSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ResourceSearchQueryResult) SearchResources calls the SearchResources operation. Example: ```go result, err := client.SearchResources(ctx, *camunda.NewResourceSearchQuery()) if err != nil { return err } for _, r := range result.GetItems() { fmt.Printf("%v\n", r) } ``` ### SearchRoles ```go func (c *CamundaClient) SearchRoles(ctx context.Context, body RoleSearchQueryRequest, opts ...func(ApiSearchRolesRequest) ApiSearchRolesRequest) (*RoleSearchQueryResult, error) ``` **Types:** [`RoleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleSearchQueryRequest), [`ApiSearchRolesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchRolesRequest), [`RoleSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleSearchQueryResult) SearchRoles calls the SearchRoles operation. Example: ```go result, err := client.SearchRoles(ctx, *camunda.NewRoleSearchQueryRequest()) if err != nil { return err } for _, r := range result.GetItems() { fmt.Printf("%v\n", r) } ``` ### SearchRolesForGroup ```go func (c *CamundaClient) SearchRolesForGroup(ctx context.Context, groupId string, body RoleSearchQueryRequest, opts ...func(ApiSearchRolesForGroupRequest) ApiSearchRolesForGroupRequest) (*GroupRoleSearchResult, error) ``` **Types:** [`RoleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleSearchQueryRequest), [`ApiSearchRolesForGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchRolesForGroupRequest), [`GroupRoleSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupRoleSearchResult) SearchRolesForGroup calls the SearchRolesForGroup operation. Example: ```go result, err := client.SearchRolesForGroup(ctx, "finance", *camunda.NewRoleSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchRolesForTenant ```go func (c *CamundaClient) SearchRolesForTenant(ctx context.Context, tenantId string, body RoleSearchQueryRequest, opts ...func(ApiSearchRolesForTenantRequest) ApiSearchRolesForTenantRequest) (*TenantRoleSearchResult, error) ``` **Types:** [`RoleSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleSearchQueryRequest), [`ApiSearchRolesForTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchRolesForTenantRequest), [`TenantRoleSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantRoleSearchResult) SearchRolesForTenant calls the SearchRolesForTenant operation. Example: ```go result, err := client.SearchRolesForTenant(ctx, "tenant-a", *camunda.NewRoleSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchTenants ```go func (c *CamundaClient) SearchTenants(ctx context.Context, body TenantSearchQueryRequest, opts ...func(ApiSearchTenantsRequest) ApiSearchTenantsRequest) (*TenantSearchQueryResult, error) ``` **Types:** [`TenantSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantSearchQueryRequest), [`ApiSearchTenantsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchTenantsRequest), [`TenantSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantSearchQueryResult) SearchTenants calls the SearchTenants operation. Example: ```go result, err := client.SearchTenants(ctx, *camunda.NewTenantSearchQueryRequest()) if err != nil { return err } for _, t := range result.GetItems() { fmt.Printf("%v\n", t) } ``` ### SearchUserTaskAuditLogs ```go func (c *CamundaClient) SearchUserTaskAuditLogs(ctx context.Context, userTaskKey UserTaskKey, body UserTaskAuditLogSearchQueryRequest, opts ...func(ApiSearchUserTaskAuditLogsRequest) ApiSearchUserTaskAuditLogsRequest) (*AuditLogSearchQueryResult, error) ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskAuditLogSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskAuditLogSearchQueryRequest), [`ApiSearchUserTaskAuditLogsRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUserTaskAuditLogsRequest), [`AuditLogSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuditLogSearchQueryResult) SearchUserTaskAuditLogs calls the SearchUserTaskAuditLogs operation. Example: ```go result, err := client.SearchUserTaskAuditLogs(ctx, camunda.MustUserTaskKey("2251799813685380"), *camunda.NewUserTaskAuditLogSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchUserTaskEffectiveVariables ```go func (c *CamundaClient) SearchUserTaskEffectiveVariables(ctx context.Context, userTaskKey UserTaskKey, body UserTaskEffectiveVariableSearchQueryRequest, opts ...func(ApiSearchUserTaskEffectiveVariablesRequest) ApiSearchUserTaskEffectiveVariablesRequest) (*VariableSearchQueryResult, error) ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskEffectiveVariableSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskEffectiveVariableSearchQueryRequest), [`ApiSearchUserTaskEffectiveVariablesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUserTaskEffectiveVariablesRequest), [`VariableSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableSearchQueryResult) SearchUserTaskEffectiveVariables calls the SearchUserTaskEffectiveVariables operation. Example: ```go result, err := client.SearchUserTaskEffectiveVariables(ctx, camunda.MustUserTaskKey("2251799813685380"), *camunda.NewUserTaskEffectiveVariableSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchUserTaskVariables ```go func (c *CamundaClient) SearchUserTaskVariables(ctx context.Context, userTaskKey UserTaskKey, body UserTaskVariableSearchQueryRequest, opts ...func(ApiSearchUserTaskVariablesRequest) ApiSearchUserTaskVariablesRequest) (*VariableSearchQueryResult, error) ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskVariableSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskVariableSearchQueryRequest), [`ApiSearchUserTaskVariablesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUserTaskVariablesRequest), [`VariableSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableSearchQueryResult) SearchUserTaskVariables calls the SearchUserTaskVariables operation. Example: ```go result, err := client.SearchUserTaskVariables(ctx, camunda.MustUserTaskKey("2251799813685380"), *camunda.NewUserTaskVariableSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchUserTasks ```go func (c *CamundaClient) SearchUserTasks(ctx context.Context, body UserTaskSearchQuery, opts ...func(ApiSearchUserTasksRequest) ApiSearchUserTasksRequest) (*UserTaskSearchQueryResult, error) ``` **Types:** [`UserTaskSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskSearchQuery), [`ApiSearchUserTasksRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUserTasksRequest), [`UserTaskSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskSearchQueryResult) SearchUserTasks calls the SearchUserTasks operation. Example: ```go result, err := client.SearchUserTasks(ctx, *camunda.NewUserTaskSearchQuery()) if err != nil { return err } for _, t := range result.GetItems() { fmt.Printf("%v\n", t) } ``` ### SearchUsers ```go func (c *CamundaClient) SearchUsers(ctx context.Context, body UserSearchQueryRequest, opts ...func(ApiSearchUsersRequest) ApiSearchUsersRequest) (*UserSearchResult, error) ``` **Types:** [`UserSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserSearchQueryRequest), [`ApiSearchUsersRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUsersRequest), [`UserSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserSearchResult) SearchUsers calls the SearchUsers operation. Example: ```go result, err := client.SearchUsers(ctx, *camunda.NewUserSearchQueryRequest()) if err != nil { return err } for _, u := range result.GetItems() { fmt.Printf("%v\n", u) } ``` ### SearchUsersForGroup ```go func (c *CamundaClient) SearchUsersForGroup(ctx context.Context, groupId string, body GroupUserSearchQueryRequest, opts ...func(ApiSearchUsersForGroupRequest) ApiSearchUsersForGroupRequest) (*GroupUserSearchResult, error) ``` **Types:** [`GroupUserSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupUserSearchQueryRequest), [`ApiSearchUsersForGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUsersForGroupRequest), [`GroupUserSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupUserSearchResult) SearchUsersForGroup calls the SearchUsersForGroup operation. Example: ```go result, err := client.SearchUsersForGroup(ctx, "finance", *camunda.NewGroupUserSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchUsersForRole ```go func (c *CamundaClient) SearchUsersForRole(ctx context.Context, roleId string, body RoleUserSearchQueryRequest, opts ...func(ApiSearchUsersForRoleRequest) ApiSearchUsersForRoleRequest) (*RoleUserSearchResult, error) ``` **Types:** [`RoleUserSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleUserSearchQueryRequest), [`ApiSearchUsersForRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUsersForRoleRequest), [`RoleUserSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleUserSearchResult) SearchUsersForRole calls the SearchUsersForRole operation. Example: ```go result, err := client.SearchUsersForRole(ctx, "auditor", *camunda.NewRoleUserSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchUsersForTenant ```go func (c *CamundaClient) SearchUsersForTenant(ctx context.Context, tenantId string, body TenantUserSearchQueryRequest, opts ...func(ApiSearchUsersForTenantRequest) ApiSearchUsersForTenantRequest) (*TenantUserSearchResult, error) ``` **Types:** [`TenantUserSearchQueryRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantUserSearchQueryRequest), [`ApiSearchUsersForTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchUsersForTenantRequest), [`TenantUserSearchResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantUserSearchResult) SearchUsersForTenant calls the SearchUsersForTenant operation. Example: ```go result, err := client.SearchUsersForTenant(ctx, "tenant-a", *camunda.NewTenantUserSearchQueryRequest()) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### SearchVariables ```go func (c *CamundaClient) SearchVariables(ctx context.Context, body VariableSearchQuery, opts ...func(ApiSearchVariablesRequest) ApiSearchVariablesRequest) (*VariableSearchQueryResult, error) ``` **Types:** [`VariableSearchQuery`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableSearchQuery), [`ApiSearchVariablesRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSearchVariablesRequest), [`VariableSearchQueryResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#VariableSearchQueryResult) SearchVariables calls the SearchVariables operation. Example: ```go result, err := client.SearchVariables(ctx, *camunda.NewVariableSearchQuery()) if err != nil { return err } for _, v := range result.GetItems() { fmt.Printf("%v\n", v) } ``` ### SuspendBatchOperation ```go func (c *CamundaClient) SuspendBatchOperation(ctx context.Context, batchOperationKey string, opts ...func(ApiSuspendBatchOperationRequest) ApiSuspendBatchOperationRequest) error ``` **Types:** [`ApiSuspendBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSuspendBatchOperationRequest) SuspendBatchOperation calls the SuspendBatchOperation operation. Example: ```go return client.SuspendBatchOperation(ctx, "2251799813685290") ``` ### SuspendProcessInstance ```go func (c *CamundaClient) SuspendProcessInstance(ctx context.Context, processInstanceKey ProcessInstanceKey, body SuspendProcessInstanceRequest, opts ...func(ApiSuspendProcessInstanceRequest) ApiSuspendProcessInstanceRequest) error ``` **Types:** [`ProcessInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceKey), [`SuspendProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#SuspendProcessInstanceRequest), [`ApiSuspendProcessInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSuspendProcessInstanceRequest) SuspendProcessInstance calls the SuspendProcessInstance operation. Example: ```go return client.SuspendProcessInstance(ctx, camunda.MustProcessInstanceKey("2251799813685340"), *camunda.NewSuspendProcessInstanceRequest()) ``` ### SuspendProcessInstancesBatchOperation ```go func (c *CamundaClient) SuspendProcessInstancesBatchOperation(ctx context.Context, body ProcessInstanceSuspensionBatchOperationRequest, opts ...func(ApiSuspendProcessInstancesBatchOperationRequest) ApiSuspendProcessInstancesBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`ProcessInstanceSuspensionBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ProcessInstanceSuspensionBatchOperationRequest), [`ApiSuspendProcessInstancesBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSuspendProcessInstancesBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) SuspendProcessInstancesBatchOperation calls the SuspendProcessInstancesBatchOperation operation. Example: ```go // Suspend every instance matching a filter in a single batch operation. req := camunda.NewProcessInstanceSuspensionBatchOperationRequest(*camunda.NewProcessInstanceFilter()) result, err := client.SuspendProcessInstancesBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### SyncRuntimeBackupState ```go func (c *CamundaClient) SyncRuntimeBackupState(ctx context.Context, opts ...func(ApiSyncRuntimeBackupStateRequest) ApiSyncRuntimeBackupStateRequest) (*RuntimeBackupState, error) ``` **Types:** [`ApiSyncRuntimeBackupStateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSyncRuntimeBackupStateRequest), [`RuntimeBackupState`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RuntimeBackupState) SyncRuntimeBackupState calls the SyncRuntimeBackupState operation. Example: ```go // Re-reads the backup store so the reported state matches what is stored. state, err := client.SyncRuntimeBackupState(ctx) if err != nil { return err } for _, backup := range state.GetBackupStates() { fmt.Printf("%v\n", backup) } ``` ### SyncRuntimeBackupStateAsClusterAdmin ```go func (c *CamundaClient) SyncRuntimeBackupStateAsClusterAdmin(ctx context.Context, opts ...func(ApiSyncRuntimeBackupStateAsClusterAdminRequest) ApiSyncRuntimeBackupStateAsClusterAdminRequest) (*ClusterRuntimeBackupState, error) ``` **Types:** [`ApiSyncRuntimeBackupStateAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiSyncRuntimeBackupStateAsClusterAdminRequest), [`ClusterRuntimeBackupState`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRuntimeBackupState) SyncRuntimeBackupStateAsClusterAdmin calls the SyncRuntimeBackupStateAsClusterAdmin operation. Example: ```go // Force-writes the current checkpoint/backup metadata to each physical tenant's // backup store and returns the updated state. Use this to repair stale or missing // state entries without triggering a new backup. state, err := client.SyncRuntimeBackupStateAsClusterAdmin(ctx) if err != nil { return err } for _, tenant := range state.GetPhysicalTenants() { fmt.Printf("%v\n", tenant) } ``` ### TakeHistoryBackup ```go func (c *CamundaClient) TakeHistoryBackup(ctx context.Context, body TakeHistoryBackupRequest, opts ...func(ApiTakeHistoryBackupRequest) ApiTakeHistoryBackupRequest) (*TakeHistoryBackupResponse, error) ``` **Types:** [`TakeHistoryBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeHistoryBackupRequest), [`ApiTakeHistoryBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiTakeHistoryBackupRequest), [`TakeHistoryBackupResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeHistoryBackupResponse) TakeHistoryBackup calls the TakeHistoryBackup operation. Example: ```go result, err := client.TakeHistoryBackup(ctx, *camunda.NewTakeHistoryBackupRequest(42)) if err != nil { return err } fmt.Printf("backup %d scheduled %d snapshot(s)\n", result.GetBackupId(), len(result.GetScheduledSnapshots())) ``` ### TakeHistoryBackupAsClusterAdmin ```go func (c *CamundaClient) TakeHistoryBackupAsClusterAdmin(ctx context.Context, body TakeHistoryBackupRequest, opts ...func(ApiTakeHistoryBackupAsClusterAdminRequest) ApiTakeHistoryBackupAsClusterAdminRequest) (*ClusterTakeHistoryBackupResponse, error) ``` **Types:** [`TakeHistoryBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeHistoryBackupRequest), [`ApiTakeHistoryBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiTakeHistoryBackupAsClusterAdminRequest), [`ClusterTakeHistoryBackupResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterTakeHistoryBackupResponse) TakeHistoryBackupAsClusterAdmin calls the TakeHistoryBackupAsClusterAdmin operation. Example: ```go // Takes a history backup for every physical tenant in the cluster simultaneously. result, err := client.TakeHistoryBackupAsClusterAdmin(ctx, *camunda.NewTakeHistoryBackupRequest(42)) if err != nil { return err } fmt.Printf("cluster history backup %d across %d tenant(s)\n", result.GetBackupId(), len(result.GetPhysicalTenants())) ``` ### TakeRuntimeBackup ```go func (c *CamundaClient) TakeRuntimeBackup(ctx context.Context, body TakeRuntimeBackupRequest, opts ...func(ApiTakeRuntimeBackupRequest) ApiTakeRuntimeBackupRequest) (*TakeRuntimeBackupResponse, error) ``` **Types:** [`TakeRuntimeBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeRuntimeBackupRequest), [`ApiTakeRuntimeBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiTakeRuntimeBackupRequest), [`TakeRuntimeBackupResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeRuntimeBackupResponse) TakeRuntimeBackup calls the TakeRuntimeBackup operation. Example: ```go req := camunda.NewTakeRuntimeBackupRequest() // The id is required here, and must be omitted instead when continuous backups // or a backup/checkpoint schedule is enabled for the tenant — the server // generates it in that case. req.SetBackupId(42) result, err := client.TakeRuntimeBackup(ctx, *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### TakeRuntimeBackupAsClusterAdmin ```go func (c *CamundaClient) TakeRuntimeBackupAsClusterAdmin(ctx context.Context, body TakeRuntimeBackupRequest, opts ...func(ApiTakeRuntimeBackupAsClusterAdminRequest) ApiTakeRuntimeBackupAsClusterAdminRequest) (*ClusterTakeRuntimeBackupResponse, error) ``` **Types:** [`TakeRuntimeBackupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TakeRuntimeBackupRequest), [`ApiTakeRuntimeBackupAsClusterAdminRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiTakeRuntimeBackupAsClusterAdminRequest), [`ClusterTakeRuntimeBackupResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterTakeRuntimeBackupResponse) TakeRuntimeBackupAsClusterAdmin calls the TakeRuntimeBackupAsClusterAdmin operation. Example: ```go // Takes a runtime backup across every physical tenant in the cluster simultaneously. // Pass SetBackupId to use an explicit backup ID; omit it to let the cluster // generate one automatically (generated-id mode). Do not mix modes: sending a // backup ID when the cluster is configured for generated IDs will be rejected. req := camunda.NewTakeRuntimeBackupRequest() req.SetBackupId(42) result, err := client.TakeRuntimeBackupAsClusterAdmin(ctx, *req) if err != nil { return err } for _, tenant := range result.GetPhysicalTenants() { fmt.Printf("%v\n", tenant) } ``` ### ThrowJobError ```go func (c *CamundaClient) ThrowJobError(ctx context.Context, jobKey JobKey, body JobErrorRequest, opts ...func(ApiThrowJobErrorRequest) ApiThrowJobErrorRequest) error ``` **Types:** [`JobKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobKey), [`JobErrorRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobErrorRequest), [`ApiThrowJobErrorRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiThrowJobErrorRequest) ThrowJobError calls the ThrowJobError operation. Example: ```go req := camunda.NewJobErrorRequest("OUT_OF_STOCK") req.SetErrorMessage("item is out of stock") return client.ThrowJobError(ctx, camunda.MustJobKey("2251799813685424"), *req) ``` ### TriggerClusterRebalance ```go func (c *CamundaClient) TriggerClusterRebalance(ctx context.Context, body ClusterRebalanceRequest, opts ...func(ApiTriggerClusterRebalanceRequest) ApiTriggerClusterRebalanceRequest) (*ClusterBalanceResponse, error) ``` **Types:** [`ClusterRebalanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterRebalanceRequest), [`ApiTriggerClusterRebalanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiTriggerClusterRebalanceRequest), [`ClusterBalanceResponse`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterBalanceResponse) TriggerClusterRebalance calls the TriggerClusterRebalance operation. Example: ```go // Starts a cluster rebalance, redistributing partition leadership to the preferred nodes. // Requires cluster-admin credentials (a separate cluster-admin security chain) — // calling this with standard Orchestration credentials will fail authorization. req := camunda.NewClusterRebalanceRequest() req.SetReplicationLagThreshold(1024 * 1024) // 1 MiB max lag for leader transfer balance, err := client.TriggerClusterRebalance(ctx, *req) if err != nil { return err } fmt.Printf("cluster balance state: %s, %d partition(s)\n", balance.GetState(), len(balance.GetPartitions())) ``` ### UnassignClientFromGroup ```go func (c *CamundaClient) UnassignClientFromGroup(ctx context.Context, groupId string, clientId string, opts ...func(ApiUnassignClientFromGroupRequest) ApiUnassignClientFromGroupRequest) error ``` **Types:** [`ApiUnassignClientFromGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignClientFromGroupRequest) UnassignClientFromGroup calls the UnassignClientFromGroup operation. Example: ```go return client.UnassignClientFromGroup(ctx, "finance", "reporting-service") ``` ### UnassignClientFromTenant ```go func (c *CamundaClient) UnassignClientFromTenant(ctx context.Context, tenantId string, clientId string, opts ...func(ApiUnassignClientFromTenantRequest) ApiUnassignClientFromTenantRequest) error ``` **Types:** [`ApiUnassignClientFromTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignClientFromTenantRequest) UnassignClientFromTenant calls the UnassignClientFromTenant operation. Example: ```go return client.UnassignClientFromTenant(ctx, "tenant-a", "reporting-service") ``` ### UnassignGroupFromTenant ```go func (c *CamundaClient) UnassignGroupFromTenant(ctx context.Context, tenantId string, groupId string, opts ...func(ApiUnassignGroupFromTenantRequest) ApiUnassignGroupFromTenantRequest) error ``` **Types:** [`ApiUnassignGroupFromTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignGroupFromTenantRequest) UnassignGroupFromTenant calls the UnassignGroupFromTenant operation. Example: ```go return client.UnassignGroupFromTenant(ctx, "tenant-a", "finance") ``` ### UnassignMappingRuleFromGroup ```go func (c *CamundaClient) UnassignMappingRuleFromGroup(ctx context.Context, groupId string, mappingRuleId string, opts ...func(ApiUnassignMappingRuleFromGroupRequest) ApiUnassignMappingRuleFromGroupRequest) error ``` **Types:** [`ApiUnassignMappingRuleFromGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignMappingRuleFromGroupRequest) UnassignMappingRuleFromGroup calls the UnassignMappingRuleFromGroup operation. Example: ```go return client.UnassignMappingRuleFromGroup(ctx, "finance", "sso-auditors") ``` ### UnassignMappingRuleFromTenant ```go func (c *CamundaClient) UnassignMappingRuleFromTenant(ctx context.Context, tenantId string, mappingRuleId string, opts ...func(ApiUnassignMappingRuleFromTenantRequest) ApiUnassignMappingRuleFromTenantRequest) error ``` **Types:** [`ApiUnassignMappingRuleFromTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignMappingRuleFromTenantRequest) UnassignMappingRuleFromTenant calls the UnassignMappingRuleFromTenant operation. Example: ```go return client.UnassignMappingRuleFromTenant(ctx, "tenant-a", "sso-auditors") ``` ### UnassignRoleFromClient ```go func (c *CamundaClient) UnassignRoleFromClient(ctx context.Context, roleId string, clientId string, opts ...func(ApiUnassignRoleFromClientRequest) ApiUnassignRoleFromClientRequest) error ``` **Types:** [`ApiUnassignRoleFromClientRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignRoleFromClientRequest) UnassignRoleFromClient calls the UnassignRoleFromClient operation. Example: ```go return client.UnassignRoleFromClient(ctx, "auditor", "reporting-service") ``` ### UnassignRoleFromGroup ```go func (c *CamundaClient) UnassignRoleFromGroup(ctx context.Context, roleId string, groupId string, opts ...func(ApiUnassignRoleFromGroupRequest) ApiUnassignRoleFromGroupRequest) error ``` **Types:** [`ApiUnassignRoleFromGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignRoleFromGroupRequest) UnassignRoleFromGroup calls the UnassignRoleFromGroup operation. Example: ```go return client.UnassignRoleFromGroup(ctx, "auditor", "finance") ``` ### UnassignRoleFromMappingRule ```go func (c *CamundaClient) UnassignRoleFromMappingRule(ctx context.Context, roleId string, mappingRuleId string, opts ...func(ApiUnassignRoleFromMappingRuleRequest) ApiUnassignRoleFromMappingRuleRequest) error ``` **Types:** [`ApiUnassignRoleFromMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignRoleFromMappingRuleRequest) UnassignRoleFromMappingRule calls the UnassignRoleFromMappingRule operation. Example: ```go return client.UnassignRoleFromMappingRule(ctx, "auditor", "sso-auditors") ``` ### UnassignRoleFromTenant ```go func (c *CamundaClient) UnassignRoleFromTenant(ctx context.Context, tenantId string, roleId string, opts ...func(ApiUnassignRoleFromTenantRequest) ApiUnassignRoleFromTenantRequest) error ``` **Types:** [`ApiUnassignRoleFromTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignRoleFromTenantRequest) UnassignRoleFromTenant calls the UnassignRoleFromTenant operation. Example: ```go return client.UnassignRoleFromTenant(ctx, "tenant-a", "auditor") ``` ### UnassignRoleFromUser ```go func (c *CamundaClient) UnassignRoleFromUser(ctx context.Context, roleId string, username string, opts ...func(ApiUnassignRoleFromUserRequest) ApiUnassignRoleFromUserRequest) error ``` **Types:** [`ApiUnassignRoleFromUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignRoleFromUserRequest) UnassignRoleFromUser calls the UnassignRoleFromUser operation. Example: ```go return client.UnassignRoleFromUser(ctx, "auditor", "alice") ``` ### UnassignUserFromGroup ```go func (c *CamundaClient) UnassignUserFromGroup(ctx context.Context, groupId string, username string, opts ...func(ApiUnassignUserFromGroupRequest) ApiUnassignUserFromGroupRequest) error ``` **Types:** [`ApiUnassignUserFromGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignUserFromGroupRequest) UnassignUserFromGroup calls the UnassignUserFromGroup operation. Example: ```go return client.UnassignUserFromGroup(ctx, "finance", "alice") ``` ### UnassignUserFromTenant ```go func (c *CamundaClient) UnassignUserFromTenant(ctx context.Context, tenantId string, username string, opts ...func(ApiUnassignUserFromTenantRequest) ApiUnassignUserFromTenantRequest) error ``` **Types:** [`ApiUnassignUserFromTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignUserFromTenantRequest) UnassignUserFromTenant calls the UnassignUserFromTenant operation. Example: ```go return client.UnassignUserFromTenant(ctx, "tenant-a", "alice") ``` ### UnassignUserTask ```go func (c *CamundaClient) UnassignUserTask(ctx context.Context, userTaskKey UserTaskKey, opts ...func(ApiUnassignUserTaskRequest) ApiUnassignUserTaskRequest) error ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`ApiUnassignUserTaskRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUnassignUserTaskRequest) UnassignUserTask calls the UnassignUserTask operation. Example: ```go return client.UnassignUserTask(ctx, camunda.MustUserTaskKey("2251799813685380")) ``` ### UpdateAgentInstance ```go func (c *CamundaClient) UpdateAgentInstance(ctx context.Context, agentInstanceKey AgentInstanceKey, body AgentInstanceUpdateRequest, opts ...func(ApiUpdateAgentInstanceRequest) ApiUpdateAgentInstanceRequest) (*AgentInstanceUpdateResult, error) ``` **Types:** [`AgentInstanceKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceKey), [`AgentInstanceUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceUpdateRequest), [`ApiUpdateAgentInstanceRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateAgentInstanceRequest), [`AgentInstanceUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AgentInstanceUpdateResult) UpdateAgentInstance calls the UpdateAgentInstance operation. Example: ```go req := camunda.NewAgentInstanceUpdateRequest( camunda.ElementInstanceKey("2251799813685360"), // elementInstanceKey camunda.JobKey("2251799813685424"), // jobKey "lease-token", ) result, err := client.UpdateAgentInstance(ctx, camunda.MustAgentInstanceKey("2251799813685370"), *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateAuthorization ```go func (c *CamundaClient) UpdateAuthorization(ctx context.Context, authorizationKey AuthorizationKey, body AuthorizationRequest, opts ...func(ApiUpdateAuthorizationRequest) ApiUpdateAuthorizationRequest) error ``` **Types:** [`AuthorizationKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationKey), [`AuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#AuthorizationRequest), [`ApiUpdateAuthorizationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateAuthorizationRequest) UpdateAuthorization calls the UpdateAuthorization operation. Example: ```go updated := camunda.NewAuthorizationIdBasedRequest( "user@example.com", camunda.OWNERTYPEENUM_USER, "order-process", camunda.RESOURCETYPEENUM_PROCESS_DEFINITION, []camunda.PermissionTypeEnum{camunda.PERMISSIONTYPEENUM_READ_PROCESS_DEFINITION}, ) return client.UpdateAuthorization(ctx, camunda.MustAuthorizationKey("2251799813685280"), camunda.AuthorizationIdBasedRequestAsAuthorizationRequest(updated)) ``` ### UpdateGlobalClusterVariable ```go func (c *CamundaClient) UpdateGlobalClusterVariable(ctx context.Context, name string, body UpdateClusterVariableRequest, opts ...func(ApiUpdateGlobalClusterVariableRequest) ApiUpdateGlobalClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`UpdateClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UpdateClusterVariableRequest), [`ApiUpdateGlobalClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateGlobalClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) UpdateGlobalClusterVariable calls the UpdateGlobalClusterVariable operation. Example: ```go result, err := client.UpdateGlobalClusterVariable(ctx, "region", *camunda.NewUpdateClusterVariableRequest(map[string]any{"value": "eu-2"})) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateGlobalTaskListener ```go func (c *CamundaClient) UpdateGlobalTaskListener(ctx context.Context, id string, body UpdateGlobalTaskListenerRequest, opts ...func(ApiUpdateGlobalTaskListenerRequest) ApiUpdateGlobalTaskListenerRequest) (*GlobalTaskListenerResult, error) ``` **Types:** [`UpdateGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UpdateGlobalTaskListenerRequest), [`ApiUpdateGlobalTaskListenerRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateGlobalTaskListenerRequest), [`GlobalTaskListenerResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GlobalTaskListenerResult) UpdateGlobalTaskListener calls the UpdateGlobalTaskListener operation. Example: ```go result, err := client.UpdateGlobalTaskListener(ctx, "audit-listener", *camunda.NewUpdateGlobalTaskListenerRequest( "audit-worker", []camunda.GlobalTaskListenerEventTypeEnum{camunda.GLOBALTASKLISTENEREVENTTYPEENUM_ALL}, )) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateGroup ```go func (c *CamundaClient) UpdateGroup(ctx context.Context, groupId string, body GroupUpdateRequest, opts ...func(ApiUpdateGroupRequest) ApiUpdateGroupRequest) (*GroupUpdateResult, error) ``` **Types:** [`GroupUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupUpdateRequest), [`ApiUpdateGroupRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateGroupRequest), [`GroupUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#GroupUpdateResult) UpdateGroup calls the UpdateGroup operation. Example: ```go result, err := client.UpdateGroup(ctx, "finance", *camunda.NewGroupUpdateRequest("Finance & Accounting")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateJob ```go func (c *CamundaClient) UpdateJob(ctx context.Context, jobKey JobKey, body JobUpdateRequest, opts ...func(ApiUpdateJobRequest) ApiUpdateJobRequest) error ``` **Types:** [`JobKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobKey), [`JobUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobUpdateRequest), [`ApiUpdateJobRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateJobRequest) UpdateJob calls the UpdateJob operation. Example: ```go changeset := camunda.NewJobChangeset() changeset.SetRetries(3) return client.UpdateJob(ctx, camunda.MustJobKey("2251799813685424"), *camunda.NewJobUpdateRequest(*changeset)) ``` ### UpdateJobsBatchOperation ```go func (c *CamundaClient) UpdateJobsBatchOperation(ctx context.Context, body JobBatchUpdateRequest, opts ...func(ApiUpdateJobsBatchOperationRequest) ApiUpdateJobsBatchOperationRequest) (*BatchOperationCreatedResult, error) ``` **Types:** [`JobBatchUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#JobBatchUpdateRequest), [`ApiUpdateJobsBatchOperationRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateJobsBatchOperationRequest), [`BatchOperationCreatedResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#BatchOperationCreatedResult) UpdateJobsBatchOperation calls the UpdateJobsBatchOperation operation. Example: ```go changeset := camunda.NewJobChangeset() changeset.SetRetries(3) req := camunda.NewJobBatchUpdateRequest(*camunda.NewJobFilter(), *changeset) result, err := client.UpdateJobsBatchOperation(ctx, *req) if err != nil { return err } fmt.Printf("created batch operation %v\n", result.GetBatchOperationKey()) ``` ### UpdateMappingRule ```go func (c *CamundaClient) UpdateMappingRule(ctx context.Context, mappingRuleId string, body MappingRuleUpdateRequest, opts ...func(ApiUpdateMappingRuleRequest) ApiUpdateMappingRuleRequest) (*MappingRuleUpdateResult, error) ``` **Types:** [`MappingRuleUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleUpdateRequest), [`ApiUpdateMappingRuleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateMappingRuleRequest), [`MappingRuleUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#MappingRuleUpdateResult) UpdateMappingRule calls the UpdateMappingRule operation. Example: ```go result, err := client.UpdateMappingRule(ctx, "sso-auditors", *camunda.NewMappingRuleUpdateRequest("groups", "senior-auditors", "SSO Senior Auditors")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateRole ```go func (c *CamundaClient) UpdateRole(ctx context.Context, roleId string, body RoleUpdateRequest, opts ...func(ApiUpdateRoleRequest) ApiUpdateRoleRequest) (*RoleUpdateResult, error) ``` **Types:** [`RoleUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleUpdateRequest), [`ApiUpdateRoleRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateRoleRequest), [`RoleUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#RoleUpdateResult) UpdateRole calls the UpdateRole operation. Example: ```go result, err := client.UpdateRole(ctx, "auditor", *camunda.NewRoleUpdateRequest("Senior Auditor")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateTenant ```go func (c *CamundaClient) UpdateTenant(ctx context.Context, tenantId string, body TenantUpdateRequest, opts ...func(ApiUpdateTenantRequest) ApiUpdateTenantRequest) (*TenantUpdateResult, error) ``` **Types:** [`TenantUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantUpdateRequest), [`ApiUpdateTenantRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateTenantRequest), [`TenantUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#TenantUpdateResult) UpdateTenant calls the UpdateTenant operation. Example: ```go result, err := client.UpdateTenant(ctx, "tenant-a", *camunda.NewTenantUpdateRequest("Tenant A (renamed)")) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateTenantClusterVariable ```go func (c *CamundaClient) UpdateTenantClusterVariable(ctx context.Context, tenantId string, name string, body UpdateClusterVariableRequest, opts ...func(ApiUpdateTenantClusterVariableRequest) ApiUpdateTenantClusterVariableRequest) (*ClusterVariableResult, error) ``` **Types:** [`UpdateClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UpdateClusterVariableRequest), [`ApiUpdateTenantClusterVariableRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateTenantClusterVariableRequest), [`ClusterVariableResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ClusterVariableResult) UpdateTenantClusterVariable calls the UpdateTenantClusterVariable operation. Example: ```go result, err := client.UpdateTenantClusterVariable(ctx, "tenant-a", "region", *camunda.NewUpdateClusterVariableRequest(map[string]any{"value": "eu-2"})) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateUser ```go func (c *CamundaClient) UpdateUser(ctx context.Context, username string, body UserUpdateRequest, opts ...func(ApiUpdateUserRequest) ApiUpdateUserRequest) (*UserUpdateResult, error) ``` **Types:** [`UserUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserUpdateRequest), [`ApiUpdateUserRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateUserRequest), [`UserUpdateResult`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserUpdateResult) UpdateUser calls the UpdateUser operation. Example: ```go req := camunda.NewUserUpdateRequest() req.SetName("Alice Updated") result, err := client.UpdateUser(ctx, "alice", *req) if err != nil { return err } fmt.Printf("%v\n", result) ``` ### UpdateUserTask ```go func (c *CamundaClient) UpdateUserTask(ctx context.Context, userTaskKey UserTaskKey, body UserTaskUpdateRequest, opts ...func(ApiUpdateUserTaskRequest) ApiUpdateUserTaskRequest) error ``` **Types:** [`UserTaskKey`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskKey), [`UserTaskUpdateRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#UserTaskUpdateRequest), [`ApiUpdateUserTaskRequest`](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client#ApiUpdateUserTaskRequest) UpdateUserTask calls the UpdateUserTask operation. Example: ```go // Update fields (priority, due/follow-up dates, ...) via the request's // changeset. An empty request is a no-op. req := camunda.NewUserTaskUpdateRequest() return client.UpdateUserTask(ctx, camunda.MustUserTaskKey("2251799813685380"), *req) ``` --- ## Configuration(3) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Configuration is resolved from explicit options first, then environment variables, then built-in defaults, and validated fail-fast at construction. ## AuthStrategy ```go type AuthStrategy int ``` AuthStrategy selects the authentication mechanism. ### Constants ```go const ( AuthNone AuthStrategy = iota AuthBasic AuthOAuth ) ``` Authentication strategies. ### Functions #### ParseAuthStrategy ```go func ParseAuthStrategy(s string) (AuthStrategy, error) ``` ParseAuthStrategy parses a CAMUNDA_AUTH_STRATEGY value. ### Methods #### String ```go func (s AuthStrategy) String() string ``` ## BackpressureProfile ```go type BackpressureProfile int ``` BackpressureProfile selects the backpressure controller behavior. ### Constants ```go const ( ProfileBalanced BackpressureProfile = iota ProfileLegacy ) ``` Backpressure profiles. ### Functions #### ParseBackpressureProfile ```go func ParseBackpressureProfile(s string) (BackpressureProfile, error) ``` ParseBackpressureProfile parses a CAMUNDA_SDK_BACKPRESSURE_PROFILE value. ### Methods #### String ```go func (p BackpressureProfile) String() string ``` ## Config Config is the resolved SDK configuration. ### Fields | Field | Type | Description | | --------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `RestAddress` | `string` | | | `GrpcAddress` | `string` | | | `ExactRestAddress` | `bool` | ExactRestAddress opts out of the automatic /v2 suffix normally appended to RestAddress (CAMUNDA_REST_ADDRESS_EXACT). When true, the SDK targets RestAddress exactly as provided — useful behind an API gateway / reverse proxy that mounts the REST API under a prefix that does not follow the .../v2 convention. | | `AuthStrategy` | `AuthStrategy` | | | `ClientID` | `string` | | | `ClientSecret` | `string` | | | `OAuthURL` | `string` | | | `TokenAudience` | `string` | | | `OAuthScope` | `string` | | | `OAuthCacheDir` | `string` | | | `BasicAuthUsername` | `string` | | | `BasicAuthPassword` | `string` | | | `DefaultTenantID` | `string` | | | `Falcon` | `bool` | Falcon enables the FALCON (nanobpmn command-stream) transport upgrade when the gateway advertises it (CAMUNDA_FALCON, default true). ForceREST forces the pure-REST path even when FALCON is advertised (CAMUNDA_FORCE_REST), e.g. where WebSockets are blocked. Use FalconEnabled for the resolved state. | | `ForceREST` | `bool` | | | `BackpressureProfile` | `BackpressureProfile` | | | `LogLevel` | `LogLevel` | | | `EventualPollDefault` | `time.Duration` | | | `Retry` | `RetryConfig` | | | `TLS` | `TLSConfig` | | | `WorkerDefaults` | `WorkerDefaults` | | | `Clock` | `Clock` | Clock resolves runtime cadence. Nil selects `LiveClock`. | | `Random` | `Random` | Random is the source jitter is drawn from. Nil selects `LiveRandom`. | ### Functions #### LoadConfig ```go func LoadConfig(opts ...Option) (*Config, error) ``` LoadConfig resolves configuration from environment variables, applies opts (which take precedence over the environment), and validates the result. ### Methods #### FalconEnabled ```go func (c *Config) FalconEnabled() bool ``` FalconEnabled reports whether the FALCON command-stream transport may be used: it must be enabled (CAMUNDA_FALCON) and not force-disabled (CAMUNDA_FORCE_REST). It only engages when the gateway actually advertises FALCON support; against stock Camunda the SDK stays on REST regardless. #### Validate ```go func (c *Config) Validate() error ``` Validate performs fail-fast validation, returning an actionable error (wrapping ErrConfig) when the configuration cannot support the selected strategy. ## ConfigField ConfigField documents a single environment variable the SDK reads while resolving configuration. It carries the variable's alias precedence, default, and whether it holds credential material. ### Fields | Field | Type | Description | | ------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Keys` | `[]string` | Keys are the environment variable names checked in precedence order; the first non-empty value wins. The first entry is the canonical CAMUNDA_* name; later entries are accepted aliases (e.g. legacy ZEEBE_* names). | | `Default` | `string` | Default is the value applied when none of Keys is set. Empty means the field has no built-in default (it stays unset / zero). | | `Secret` | `bool` | Secret marks credential material that must be redacted in diagnostics. | | `Description` | `string` | Description is a one-line human-readable summary. | ## LogLevel ```go type LogLevel int ``` LogLevel controls SDK log verbosity. ### Constants ```go const ( LogOff LogLevel = iota LogError LogWarn LogInfo LogDebug LogTrace ) ``` Log levels. ### Functions #### ParseLogLevel ```go func ParseLogLevel(s string) (LogLevel, error) ``` ParseLogLevel parses a CAMUNDA_SDK_LOG_LEVEL value. ### Methods #### String ```go func (l LogLevel) String() string ``` ## Option ```go type Option func(*Config) ``` Option configures a Config. Options are applied after environment resolution and therefore take precedence over environment variables. ### Functions #### WithBackpressureProfile ```go func WithBackpressureProfile(p BackpressureProfile) Option ``` WithBackpressureProfile sets the adaptive backpressure profile. #### WithBasicAuth ```go func WithBasicAuth(username, password string) Option ``` WithBasicAuth selects HTTP Basic authentication with the given credentials. #### WithClock ```go func WithClock(c Clock) Option ``` WithClock sets the clock the client will resolve cadence through. Defaults to `LiveClock`. Runtime call sites are being migrated onto the injected clock (see camunda/orchestration-cluster-api-go#40); until that lands the clock is stored and reachable via CamundaClient.Clock, but retry backoff, the backpressure gate, token refresh, worker polling and consistency polling still use real time. A nil Clock selects the default. A _typed_ nil -- a nil pointer boxed in a non-nil interface, such as (*myClock)(nil) -- is rejected by `New` with a configuration error instead: unlike an untyped nil it claims to be a usable clock, and would panic on first use deep inside the runtime. #### WithDefaultTenantID ```go func WithDefaultTenantID(id string) Option ``` WithDefaultTenantID sets the default tenant id applied to operations that accept one. #### WithExactRestAddress ```go func WithExactRestAddress(exact bool) Option ``` WithExactRestAddress controls whether the SDK uses RestAddress exactly as provided. When exact is true, the automatic /v2 suffix is not appended — the address is used verbatim. This is intended for deployments behind an API gateway / reverse proxy whose base path does not follow the .../v2 convention. It maps to the CAMUNDA_REST_ADDRESS_EXACT environment variable. #### WithFalcon ```go func WithFalcon(enabled bool) Option ``` WithFalcon enables or disables the FALCON (nanobpmn command-stream) transport upgrade. It is enabled by default and only engages when the gateway advertises FALCON support; against stock Camunda the SDK stays on REST regardless. #### WithForceREST ```go func WithForceREST(force bool) Option ``` WithForceREST forces the pure-REST path even when the gateway advertises FALCON support (useful where WebSockets are blocked by a proxy). #### WithGrpcAddress ```go func WithGrpcAddress(addr string) Option ``` WithGrpcAddress sets the Zeebe gRPC gateway address (host:port) used by the gRPC streaming job worker. #### WithLogLevel ```go func WithLogLevel(l LogLevel) Option ``` WithLogLevel sets the SDK log level. #### WithNoAuth ```go func WithNoAuth() Option ``` WithNoAuth selects the no-authentication strategy (e.g. local development). #### WithOAuth ```go func WithOAuth(clientID, clientSecret, tokenURL string) Option ``` WithOAuth selects the OAuth 2.0 client-credentials strategy with the given client id, secret, and token endpoint URL. #### WithOAuthAudience ```go func WithOAuthAudience(audience string) Option ``` WithOAuthAudience sets the OAuth token audience. #### WithOAuthCacheDir ```go func WithOAuthCacheDir(dir string) Option ``` WithOAuthCacheDir enables the on-disk OAuth token cache at dir. #### WithOAuthScope ```go func WithOAuthScope(scope string) Option ``` WithOAuthScope sets the OAuth token scope. #### WithRandom ```go func WithRandom(r Random) Option ``` WithRandom sets the source of randomness the client draws jitter from: retry backoff, worker startup delay and FALCON endpoint selection. Defaults to `LiveRandom`. Pass a `SeededRandom` to make those draws reproducible. A nil Random selects the default; a typed nil is rejected by `New`, as for `WithClock`. #### WithRestAddress ```go func WithRestAddress(addr string) Option ``` WithRestAddress sets the Orchestration Cluster REST base address. #### WithRetry ```go func WithRetry(rc RetryConfig) Option ``` WithRetry sets the transient-error retry policy. ## RetryConfig RetryConfig is the transient-error HTTP retry policy. ### Fields | Field | Type | Description | | ------------- | --------------- | ----------- | | `MaxAttempts` | `int` | | | `BaseDelay` | `time.Duration` | | | `MaxDelay` | `time.Duration` | | ## TLSConfig TLSConfig holds TLS / mutual-TLS material. Inline PEM values take precedence over the *Path file locations. ### Fields | Field | Type | Description | | --------------- | -------- | ----------- | | `Cert` | `string` | | | `Key` | `string` | | | `CA` | `string` | | | `CertPath` | `string` | | | `KeyPath` | `string` | | | `CAPath` | `string` | | | `KeyPassphrase` | `string` | | ### Methods #### IsConfigured ```go func (t TLSConfig) IsConfigured() bool ``` IsConfigured reports whether any TLS material has been supplied. ## WorkerDefaults WorkerDefaults holds default job-worker settings sourced from CAMUNDA_WORKER_*. ### Fields | Field | Type | Description | | ------------------------- | -------- | ----------- | | `TimeoutMs` | `int64` | | | `MaxConcurrentJobs` | `int` | | | `RequestTimeoutMs` | `int64` | | | `Name` | `string` | | | `StartupJitterMaxSeconds` | `int` | | ## ConfigSchema ConfigSchema is the canonical registry of every environment variable the SDK consumes during configuration resolution (see loadConfig in config.go). It is the single source of truth for the SDK's configuration surface: it documents the accepted variables, their aliases, and their defaults, and it is kept in lock-step with the actual resolution code by TestConfigSchemaMatchesReads (configschema_test.go), which fails if a variable is read but unregistered or registered but never read. It intentionally mirrors the JS SDK's configSchema so the SDKs expose the same configuration contract. --- ## Domain keys :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The Camunda Domain Type System replaces the bare `string` identifiers emitted by the OpenAPI generator with validated named types. Passing a `ProcessInstanceKey` where a `JobKey` is expected is a compile error, so whole classes of identifier mix-ups are caught before the request is sent. ```go ``` Every key type exposes the same surface, shown here for `AgentDefinitionKey`: | Function or method | Description | | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | `MustAgentDefinitionKey(s string) AgentDefinitionKey` | MustAgentDefinitionKey is like NewAgentDefinitionKey but panics if s is invalid. | | `NewAgentDefinitionKey(s string) (AgentDefinitionKey, error)` | NewAgentDefinitionKey validates s against the AgentDefinitionKey constraints and returns a AgentDefinitionKey. | | `(k AgentDefinitionKey) String() string` | String returns the underlying string value. | | `(k AgentDefinitionKey) Validate() error` | Validate reports whether k satisfies the AgentDefinitionKey constraints. | ## Key types | Key type | Underlying | Description | | ------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `AgentDefinitionKey` | `string` | Identifier for an agent definition. | | `AgentHistoryItemKey` | `string` | Identifier for an agent history item. | | `AgentInstanceKey` | `string` | Identifier for an agent instance. | | `AuditLogEntityKey` | `string` | Identifier for an audit log entity. | | `AuditLogKey` | `string` | Identifier for an audit log. | | `AuthorizationKey` | `string` | Identifier for an authorization. | | `BatchOperationKey` | `string` | Identifier for a batch operation. | | `BusinessId` | `string` | Identifier for a business. | | `ClientId` | `string` | Identifier for a client. | | `ClusterVariableName` | `string` | Name of a cluster variable. | | `ConditionalEvaluationKey` | `string` | Identifier for a conditional evaluation. | | `DecisionDefinitionId` | `string` | Identifier for a decision definition. | | `DecisionDefinitionKey` | `string` | Identifier for a decision definition. | | `DecisionEvaluationInstanceKey` | `string` | Identifier for a decision evaluation instance. | | `DecisionEvaluationKey` | `string` | Identifier for a decision evaluation. | | `DecisionInstanceKey` | `string` | Identifier for a decision instance. | | `DecisionRequirementsKey` | `string` | Identifier for a decision requirements. | | `DeploymentKey` | `string` | Identifier for a deployment. | | `DocumentId` | `string` | Identifier for a document. | | `ElementId` | `string` | Identifier for an element. | | `ElementInstanceKey` | `string` | Identifier for an element instance. | | `EndCursor` | `string` | Pagination cursor marking the end of a result page. | | `FormId` | `string` | Identifier for a form. | | `FormKey` | `string` | Identifier for a form. | | `GlobalListenerId` | `string` | Identifier for a global listener. | | `GroupId` | `string` | Identifier for a group. | | `HistoryItemId` | `string` | Identifier for a history item. | | `IncidentKey` | `string` | Identifier for an incident. | | `JobKey` | `string` | Identifier for a job. | | `LoopIterationId` | `int32` | LoopIterationId is a Camunda semantic integer identifier. Construct it with NewLoopIterationId (validated) or MustLoopIterationId (panics on invalid input). | | `MappingRuleId` | `string` | Identifier for a mapping rule. | | `MessageKey` | `string` | Identifier for a message. | | `MessageSubscriptionKey` | `string` | Identifier for a message subscription. | | `ProcessDefinitionId` | `string` | Identifier for a process definition. | | `ProcessDefinitionKey` | `string` | Identifier for a process definition. | | `ProcessInstanceKey` | `string` | Identifier for a process instance. | | `ResourceKey` | `string` | Identifier for a resource. | | `RoleId` | `string` | Identifier for a role. | | `ScopeKey` | `string` | Identifier for a scope. | | `SignalKey` | `string` | Identifier for a signal. | | `StartCursor` | `string` | Pagination cursor marking the start of a result page. | | `Tag` | `string` | Validated tag value. | | `TenantId` | `string` | Identifier for a tenant. | | `UserTaskKey` | `string` | Identifier for a user task. | | `Username` | `string` | Validated username value. | | `VariableKey` | `string` | Identifier for a variable. | Each key also has a matching `ExactMatch` wrapper used by the search filter models to express an exact-value match. --- ## API reference :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: This reference covers the hand-written ergonomic surface of the Go SDK: the client, its configuration, the job workers, and the error and polling helpers. | Page | Contents | | ---------------------------------- | -------------------------------------------------------------------- | | [CamundaClient](camunda-client.md) | The client and its 252 API methods. | | [Configuration](configuration.md) | Client configuration, authentication, TLS, and retry policy. | | [Job workers](job-workers.md) | REST and gRPC job workers, their options, and the handler contract. | | [Runtime](runtime.md) | Error types, error classification, and eventual-consistency polling. | | [Domain keys](domain-keys.md) | 46 validated identifier types. | The generated request and response models, enums and builders are not reproduced here — there are several hundred of them. Import them from the `camunda` package like everything else (for example `camunda.ProcessInstanceResult`); their fields and methods are documented on [pkg.go.dev](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11/client). Each method on the [CamundaClient](camunda-client.md) page links the generated types in its signature to that documentation. --- ## Job workers(Api-reference) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Job workers obtain jobs of a given type — by polling the REST activation endpoint or over the gRPC job stream — run a handler, and report the outcome back to the cluster. ## Job Job is an activated job passed to a JobHandler. It is transport-agnostic: the same type is produced by the REST job worker and the gRPC streaming worker. ### Methods #### Clock ```go func (j *Job) Clock() Clock ``` Clock returns the worker's clock. A handler that needs to wait should use this rather than time.Sleep, so an injected clock controls it. For short in-handler coordination only -- spacing a retry, waiting for a resource to settle. A long or business wait belongs in the process as a BPMN timer event: a handler holding a job for minutes occupies a worker slot, risks the job timeout expiring underneath it, and hides the wait from the process model where it cannot be seen or changed. #### CustomHeaders ```go func (j *Job) CustomHeaders() map[string]any ``` CustomHeaders returns the job's custom headers. #### ElementID ```go func (j *Job) ElementID() string ``` ElementID returns the BPMN element id that created the job. #### Key ```go func (j *Job) Key() string ``` Key returns the job key. #### LeaseToken ```go func (j *Job) LeaseToken() string ``` LeaseToken returns the activation lease token, or "" if the job was not leased. #### ProcessInstanceKey ```go func (j *Job) ProcessInstanceKey() string ``` ProcessInstanceKey returns the key of the owning process instance. #### RawVariables ```go func (j *Job) RawVariables() map[string]any ``` RawVariables returns the job variables as a decoded map. #### Retries ```go func (j *Job) Retries() int32 ``` Retries returns the job's remaining retries. #### Type ```go func (j *Job) Type() string ``` Type returns the job type. #### Variables ```go func (j *Job) Variables(v any) error ``` Variables unmarshals the job variables into v (a pointer to a struct or map). ## JobHandler ```go type JobHandler func(ctx context.Context, job *Job) (map[string]any, error) ``` JobHandler processes an activated job: - returning (variables, nil) completes the job with those variables; - returning a *BpmnError throws a BPMN error; - returning any other error fails the job (decrementing its retries). ## JobWorker JobWorker polls for jobs of a given type and dispatches them to a handler with bounded concurrency. Job completion, failure, and BPMN-error operations are drain operations and bypass the client-side backpressure gate. ### Methods #### Run ```go func (w *JobWorker) Run(ctx context.Context) error ``` Run polls and dispatches jobs until ctx is canceled, then waits for in-flight handlers to finish and returns ctx.Err(). Run blocks; call it in a goroutine to run alongside other work. A worker configured with a startup jitter (CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS) first waits out its delay on the client's clock. When the gateway advertises the FALCON command stream (a nanobpmn gateway) and FALCON is enabled, jobs are pushed over a WebSocket subscription instead of REST long-polling. If the subscription cannot be established (e.g. a proxy blocks WebSockets) the worker transparently falls back to REST polling. ## StreamJobWorker StreamJobWorker activates jobs over the Zeebe gRPC StreamActivatedJobs stream and completes, fails, or throws BPMN errors over gRPC. Unlike the REST JobWorker it does not poll: the engine pushes jobs as they become available. ### Methods #### Run ```go func (w *StreamJobWorker) Run(ctx context.Context) error ``` Run opens the job stream and dispatches jobs until ctx is canceled. The gRPC connection is held for the worker's lifetime and the stream is reopened (after reconnectBackoff) whenever it ends, so in-flight acknowledgements are never cut off by a reconnect. Run blocks; call it in a goroutine to run alongside other work. A worker configured with a startup jitter (CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS) first waits out its delay on the client's clock. ## StreamWorkerOption ```go type StreamWorkerOption func(*StreamJobWorker) ``` StreamWorkerOption customizes a StreamJobWorker. ### Functions #### WithStreamFetchVariables ```go func WithStreamFetchVariables(vars ...string) StreamWorkerOption ``` WithStreamFetchVariables restricts the variables fetched with each job. Empty fetches all. #### WithStreamJobLease ```go func WithStreamJobLease(enabled bool) StreamWorkerOption ``` WithStreamJobLease requests leased jobs. Each job then carries a distinct lease token, which this worker sends back on complete, fail, and throw-error. The engine rejects a command bearing a stale token, fencing the job against a superseded activation — for example after the job timed out and another worker picked it up. Off by default, matching the gateway's own default. Enabling it requires an engine that supports job leases: a gateway that ignores the field would leave every acknowledgement unfenced, so a job arriving without a token fails the activation with ErrLeaseNotHonored rather than being handled unfenced. It covers both channels: the gRPC stream and the REST sidecar poll (see WithStreamPollInterval). #### WithStreamJobTimeout ```go func WithStreamJobTimeout(d time.Duration) StreamWorkerOption ``` WithStreamJobTimeout sets how long a streamed job is exclusively locked to this worker. #### WithStreamMaxConcurrentJobs ```go func WithStreamMaxConcurrentJobs(n int) StreamWorkerOption ``` WithStreamMaxConcurrentJobs caps the number of jobs handled concurrently. #### WithStreamPollInterval ```go func WithStreamPollInterval(d time.Duration) StreamWorkerOption ``` WithStreamPollInterval sets the interval between REST sidecar-poll cycles. The sidecar poll is a low-frequency safety net that picks up jobs the stream may have missed (e.g. jobs re-queued after a timeout or during a brief reconnect). A value <= 0 disables the sidecar poll entirely (pure gRPC streaming). #### WithStreamPollMaxJobs ```go func WithStreamPollMaxJobs(n int) StreamWorkerOption ``` WithStreamPollMaxJobs caps the number of jobs activated per REST sidecar-poll cycle. #### WithStreamReconnectBackoff ```go func WithStreamReconnectBackoff(d time.Duration) StreamWorkerOption ``` WithStreamReconnectBackoff sets the pause before reopening the stream after it ends. #### WithStreamTenantIDs ```go func WithStreamTenantIDs(ids ...string) StreamWorkerOption ``` WithStreamTenantIDs restricts job activation to the given tenant ids, overriding the client's default tenant. #### WithStreamWorkerName ```go func WithStreamWorkerName(name string) StreamWorkerOption ``` WithStreamWorkerName sets the worker name reported to the engine. ## WorkerOption ```go type WorkerOption func(*JobWorker) ``` WorkerOption customizes a JobWorker. ### Functions #### WithFetchVariables ```go func WithFetchVariables(vars ...string) WorkerOption ``` WithFetchVariables restricts the variables fetched with each job. Empty fetches all. #### WithJobLease ```go func WithJobLease(enabled bool) WorkerOption ``` WithJobLease activates jobs with a lease. Each job then carries a lease token, which this worker sends back on complete, fail, and throw-error. The engine rejects a command bearing a stale token, fencing the job against a superseded activation — for example after the job timed out and another worker picked it up. Off by default, matching the engine's own default. Enabling it requires an engine that supports job leases: a server that ignores the flag would leave every acknowledgement unfenced, so a job arriving without a token fails the activation with ErrLeaseNotHonored rather than being handled unfenced. It has no effect when jobs arrive over the FALCON command stream, which activates them outside the REST activation API. #### WithJobTimeout ```go func WithJobTimeout(d time.Duration) WorkerOption ``` WithJobTimeout sets how long an activated job is exclusively locked to this worker. #### WithMaxConcurrentJobs ```go func WithMaxConcurrentJobs(n int) WorkerOption ``` WithMaxConcurrentJobs caps the number of jobs handled concurrently. #### WithPollInterval ```go func WithPollInterval(d time.Duration) WorkerOption ``` WithPollInterval sets the pause between polls when idle, at capacity, or after an activation error. #### WithRequestTimeout ```go func WithRequestTimeout(d time.Duration) WorkerOption ``` WithRequestTimeout sets the long-poll request timeout for job activation. #### WithWorkerName ```go func WithWorkerName(name string) WorkerOption ``` WithWorkerName sets the worker name reported to the engine. #### WithWorkerTenantIDs ```go func WithWorkerTenantIDs(ids ...string) WorkerOption ``` WithWorkerTenantIDs restricts job activation to the given tenant ids, overriding the client's default tenant. --- ## Runtime(Api-reference) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Error types returned by every SDK call, the helpers that classify them, and the polling helper that absorbs eventual consistency. ## APIError APIError is returned when the server responds with a non-success HTTP status. It carries the status code and the (often RFC 7807 problem-detail) response body. ### Fields | Field | Type | Description | | -------- | -------- | -------------------------------------- | | `Status` | `int` | Status is the HTTP status code. | | `Body` | `string` | Body is the raw response body, if any. | ### Methods #### Error ```go func (e *APIError) Error() string ``` ## BpmnError BpmnError is an error that, when returned by a JobHandler, makes the worker throw a BPMN error (raising a catch event) instead of failing the job. ### Fields | Field | Type | Description | | ----------- | ---------------- | ----------- | | `Code` | `string` | | | `Message` | `string` | | | `Variables` | `map[string]any` | | ### Methods #### Error ```go func (e *BpmnError) Error() string ``` ## Clock Clock is time and waiting, as an injectable dependency. It exists so that runtime cadence can be resolved through a clock a test controls rather than by calling the time package directly. Inject one with `WithClock`; the default is `LiveClock`. Runtime call sites are being migrated onto it (see camunda/orchestration-cluster-api-go#40); until that lands, an injected clock is stored and reachable via CamundaClient.Clock but does not yet drive retry, backpressure, worker or consistency cadence. Implementations must be safe for concurrent use. ## ClockController ClockController is the engine-side clock an `EngineClock` drives. Implemented by `CamundaClient` in terms of PUT /clock and POST /clock/reset. It is an interface so the pin semantics can be tested without a running engine. ## EngineClock EngineClock is a clock bound to the engine's own clock. A wait does not pass time locally: it moves the _engine_ forward and reports the new instant. Process instances, timers and the SDK therefore agree on what time it is, which a purely local test clock cannot achieve. A wait resolves against an instant read before the engine is contacted, so waits that overlap -- those that read the clock before any of them lands -- settle at a single instant instead of summing. A wait that begins after an earlier one has landed reads the new time and composes from it, which is the intended behaviour: it really did start later. Clock pinning is an alpha engine endpoint intended for tests, not production clusters. Pass the client the pin requests should travel on; it keeps real time, so the requests themselves are unaffected by the pinning. ### Functions #### NewEngineClock ```go func NewEngineClock(engine ClockController) *EngineClock ``` NewEngineClock binds to an engine. The clock starts unpinned, following real time until the first wait or `EngineClock.PinTo`. engine must not be a client using this clock: a client captures its clock when it is built, so the one passed here always predates this clock. ### Methods #### After ```go func (c *EngineClock) After(d time.Duration) <-chan time.Time ``` After returns immediately with a channel that receives once the engine clock has been advanced by d. The advance runs in the background, so After stays usable in a select rather than blocking the caller for an engine round-trip. A failed pin panics in that goroutine. Because the panic is not on the caller's goroutine it cannot be recovered, and terminates the program: After has no way to report an error, and reporting a time the engine never moved to would be worse. The panic value is an error wrapping the cause so the crash names it. Use `EngineClock.Sleep` wherever failure needs handling; it returns the error. #### IsPinned ```go func (c *EngineClock) IsPinned() bool ``` IsPinned reports whether this clock currently holds the engine clock pinned. #### Now ```go func (c *EngineClock) Now() time.Time ``` Now reports the pinned instant, or live time when unpinned. #### PinTo ```go func (c *EngineClock) PinTo(ctx context.Context, t time.Time) error ``` PinTo moves the engine clock to an absolute instant, and reports that instant from `EngineClock.Now` once the engine accepts it -- including when t is in the past, since the SDK's reading has to match the engine's. A no-op when the clock already sits at or past t, which is what makes overlapping waits settle at a single instant. The local reading is published only after the engine accepts the pin, so a failed request leaves the clock untouched. Waits never move the clock backwards: `EngineClock.Sleep` derives its instant by adding to the current reading. #### Reset ```go func (c *EngineClock) Reset(ctx context.Context) error ``` Reset returns the engine to real time. Readings follow live time again afterwards, rather than freezing at the last pinned instant. #### Sleep ```go func (c *EngineClock) Sleep(ctx context.Context, d time.Duration) error ``` Sleep advances the engine clock by d rather than waiting for it to pass. ## LiveClock LiveClock is real time, backed by the time package. It is the clock used when none is injected. ### Methods #### After ```go func (LiveClock) After(d time.Duration) <-chan time.Time ``` After returns a channel that receives once d has elapsed. #### Now ```go func (LiveClock) Now() time.Time ``` Now reports the current system time. #### Sleep ```go func (LiveClock) Sleep(ctx context.Context, d time.Duration) error ``` Sleep waits for d or until ctx is canceled. ## LiveRandom LiveRandom draws from the process-wide generator. It is the default when no `Random` is injected. ### Methods #### Float64 ```go func (LiveRandom) Float64() float64 ``` Float64 implements `Random`. ## PollOption ```go type PollOption func(*pollConfig) ``` PollOption customizes Poll. ### Functions #### WithPollClock ```go func WithPollClock(clock Clock) PollOption ``` WithPollClock resolves the poll interval and timeout through clock. Poll is a package-level function with no client to inherit one from, so pass the client's clock (CamundaClient.Clock) to keep a test on a single timeline. #### WithPollRetryInterval ```go func WithPollRetryInterval(d time.Duration) PollOption ``` WithPollRetryInterval sets the delay between polling attempts. #### WithPollTimeout ```go func WithPollTimeout(d time.Duration) PollOption ``` WithPollTimeout sets the overall polling deadline. #### WithRetryOn ```go func WithRetryOn(pred func(error) bool) PollOption ``` WithRetryOn overrides the predicate that decides whether an error is retryable (the entity is not yet consistent). The default retries on 404. ## Random Random is the source of randomness the SDK draws jitter from: retry backoff, worker startup delay and FALCON endpoint selection. Inject one with `WithRandom`; the default is `LiveRandom`. Implementations must be safe for concurrent use, since retries and workers draw from one source on many goroutines. ## SeededRandom SeededRandom is a deterministic `Random`. Two sources with the same seed produce the same sequence, so a test can assert the exact delays the SDK schedules and replay a failure. It is safe for concurrent use, though concurrent callers then share one sequence in nondeterministic order. The generator is SplitMix64, taking the top 53 bits of each output. It is specified across the Camunda SDKs, so one seed yields the same sequence in every language. ### Functions #### NewSeededRandom ```go func NewSeededRandom(seed uint64) *SeededRandom ``` NewSeededRandom returns a source that replays the sequence for seed. #### SeededRandomFromEnv ```go func SeededRandomFromEnv() (*SeededRandom, error) ``` SeededRandomFromEnv seeds from CAMUNDA_TEST_SEED when it is set, otherwise from a fresh random seed. Either way the source reports its seed through `SeededRandom.Seed` and `SeededRandom.String`, so a failing test can be replayed. Only an unset variable means absent. Any other value that is not a decimal integer in the uint64 range, including an empty string, returns an error wrapping `ErrConfig` rather than silently running with a different seed. ### Methods #### Float64 ```go func (r *SeededRandom) Float64() float64 ``` Float64 implements `Random`. #### Seed ```go func (r *SeededRandom) Seed() uint64 ``` Seed returns the seed this source was created with. #### String ```go func (r *SeededRandom) String() string ``` String names the seed and how to replay it, so a test that prints the source on failure says how to reproduce the run. ## Package functions ### IsEventuallyConsistent ```go func IsEventuallyConsistent(operationID string) bool ``` IsEventuallyConsistent reports whether the REST operation with the given operationId is eventually consistent: a read issued immediately after a related write may not observe the write yet. Wrap such reads in Poll to tolerate propagation delay. The operationId is the OpenAPI operation id (camelCase), e.g. "getProcessInstance". The set is generated from the spec metadata. ### IsNotFound ```go func IsNotFound(err error) bool ``` IsNotFound reports whether err is (or wraps) an *APIError with HTTP 404. ### Poll ```go func Poll[T any](ctx context.Context, fn func(context.Context) (T, error), opts ...PollOption) (T, error) ``` Poll repeatedly calls fn until it succeeds, the retry predicate returns false, the timeout elapses, or ctx is canceled. It is intended for eventually-consistent reads: newly created or modified entities may not be immediately visible in the cluster's secondary storage, surfacing as a 404. By default Poll retries while fn returns a 404 and gives up after the timeout with ErrEventualConsistencyTimeout (wrapping the last error). A non-retryable error is returned immediately. Example: ```go pi, err := camunda.Poll(ctx, func(ctx context.Context) (*camunda.ProcessInstanceResult, error) { return client.GetProcessInstance(ctx, key) }) ``` ### StatusCode ```go func StatusCode(err error) (status int, ok bool) ``` StatusCode returns the HTTP status code carried by err if it is (or wraps) an *APIError, and ok reports whether it was found. ## SeedEnvVar ```go const SeedEnvVar = "CAMUNDA_TEST_SEED" ``` SeedEnvVar names the environment variable `SeededRandomFromEnv` reads. A test that fails under a seeded source can be replayed by setting it to the seed the failure reported. ## ErrConfig, ErrAuth, ErrBackpressureQueueFull, ErrEventualConsistencyTimeout, ErrLeaseNotHonored ```go var ( // ErrConfig indicates configuration was invalid or incomplete. ErrConfig = errors.New("camunda: configuration error") // ErrAuth indicates a failure obtaining or refreshing an auth token. ErrAuth = errors.New("camunda: authentication error") // ErrBackpressureQueueFull indicates the client-side backpressure controller // rejected the request because its waiter queue is at capacity. It is the same // value the backpressure gate returns, so errors.Is matches it on any request // rejected for this reason (facade, Raw client, or job workers). ErrBackpressureQueueFull = backpressure.ErrQueueFull // ErrEventualConsistencyTimeout indicates an eventual-consistency polling // helper timed out before its predicate was met. ErrEventualConsistencyTimeout = errors.New("camunda: eventual consistency timeout") // ErrLeaseNotHonored indicates a worker activated jobs with a lease but the // server returned a job carrying no lease token. // // The specification declares the token present exactly when the activation sets // the lease flag (see presentwhen.go). A server that predates job leases, or one // that ignores the flag, breaks that quietly: the worker would go on to complete, // fail, or throw an error for the job with no token, so the engine could not fence // the command against a superseded activation. The caller asked for fencing and // would not be getting it, which is worth failing over rather than logging. ErrLeaseNotHonored = errors.New("camunda: activation requested a job lease but the server returned no lease token") ) ``` Sentinel errors. Use errors.Is to test for them. --- ## Architecture :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ``` OpenAPI spec ──▶ openapi-generator ──▶ client/ (generated REST client, never hand-edited) gateway.proto ──▶ buf ──▶ pb/ (generated gRPC stubs, never hand-edited) │ ergonomic runtime ───┤ config · auth · backpressure · retry · (hand-written) │ eventual consistency · job workers ▼ CamundaClient (the facade you use) ``` Cross-cutting concerns are implemented as a composable `http.RoundTripper` chain (`backpressure → retry → auth → base`) injected into the generated client, so the generated code stays pure and regenerable. - **Configuration** — resolved from `CAMUNDA_*` environment variables (with `ZEEBE_*` fallbacks) and overridable via functional options. Validated fail-fast at construction. - **Authentication** — OAuth 2.0 client-credentials (with in-memory + on-disk token cache), HTTP Basic, or None. - **Adaptive backpressure** — an AIMD concurrency limiter that reacts to broker backpressure (HTTP 429 / 503 / `RESOURCE_EXHAUSTED`). `BALANCED` (default) gates; `LEGACY` observes only. - **Transient retry** — exponential backoff with full jitter on 429/502/503/504 and network errors. - **Job workers** — a REST activate-jobs worker (`NewJobWorker`) and a gRPC `StreamActivatedJobs` streaming worker (`NewStreamJobWorker`). Both share one `JobHandler` contract: returning variables completes the job, returning a `*BpmnError` throws a BPMN error, and returning any other error fails the job (decrementing its retries). The streaming worker also runs a low-frequency REST sidecar poll (a safety net for jobs re-queued after a timeout or a brief reconnect); poll-activated jobs are acknowledged over REST, streamed jobs over gRPC. Set `WithStreamPollInterval` to tune or disable it. --- ## Authentication(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Three strategies are supported: OAuth 2.0 client credentials, HTTP Basic, and none. The strategy is inferred from the credentials you supply, or set explicitly with `CAMUNDA_AUTH_STRATEGY=OAUTH|BASIC|NONE`. ```go // OAuth 2.0 client credentials. Tokens are cached in memory and on disk, and // refreshed before expiry; concurrent refreshes are collapsed into one. oauthClient, err := camunda.New( camunda.WithOAuth( "my-client-id", "my-client-secret", "https://login.cloud.camunda.io/oauth/token", ), camunda.WithOAuthAudience("zeebe.camunda.io"), camunda.WithOAuthScope("camunda:read"), camunda.WithOAuthCacheDir("/var/cache/camunda"), ) // HTTP Basic — typical for a Self-Managed cluster behind basic auth. basicClient, err := camunda.New( camunda.WithBasicAuth("demo", "demo"), ) // No authentication — a local development cluster with auth disabled. openClient, err := camunda.New(camunda.WithNoAuth()) ``` The OAuth token cache is two-tier: an in-memory cache backed by an on-disk cache (`CAMUNDA_OAUTH_CACHE_DIR`), so short-lived processes and CLI invocations reuse a valid token instead of re-authenticating on every start. Concurrent refreshes are collapsed into a single in-flight request. --- ## Backpressure :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: A Camunda broker sheds load by rejecting commands (HTTP 429 / 503, `RESOURCE_EXHAUSTED`). Rather than surfacing those to your code as a wall of errors, the SDK gates outbound requests through an AIMD concurrency limiter — the same additive-increase/multiplicative-decrease shape TCP uses. Throughput rises while the cluster is healthy and backs off the moment it pushes back, so a burst queues client-side instead of being shed: ```go // BALANCED (the default) gates outbound requests through an AIMD concurrency // limiter that reacts to broker backpressure (HTTP 429/503). LEGACY observes // and reports, but never gates — use it to compare against older SDKs. client, err := camunda.New( camunda.WithBackpressureProfile(camunda.ProfileLegacy), ) ``` `BALANCED` is the default and is what you want in production. `LEGACY` keeps the controller's observability but never gates, which is useful when comparing behavior against an older SDK or when an external system already governs concurrency. --- ## Clocks :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Retry backoff, the backpressure gate, token refresh, job-worker polling and consistency polling all resolve through an injected clock rather than the `time` package, so a test can control cadence instead of waiting for it. Two places deliberately stay on real time, each marked with a `//nolint:forbidigo` naming the reason: `LiveClock` itself, which is the adapter onto the `time` package, and `internal/falcon`, whose timers are mostly I/O bounds — read-idle detection and create-ack budgets — that would misfire if bound to engine time. | Clock | Use | | ---------------- | ------------------------------------------------------------------------- | | `LiveClock` | real time; the default when nothing is injected | | your own `Clock` | tests; return whatever `Now` you like and make `Sleep` return immediately | | `EngineClock` | drives the Camunda engine's clock and the SDK's together | A local test clock makes the _SDK_ wait instantly, but the engine carries on in real time — so a process that only completes once a BPMN timer fires still takes as long as the timer says. `EngineClock` is for that case. ## Waiting inside a handler A `Job` carries its worker's clock, so a handler that needs to wait can do it on the same clock as everything else: ```go worker := client.NewJobWorker("payment", func(ctx context.Context, job *camunda.Job) (map[string]any, error) { // Short coordination only -- a business wait belongs in the process as a // BPMN timer event. if err := job.Clock().Sleep(ctx, 500*time.Millisecond); err != nil { return nil, err } return map[string]any{"paid": true}, nil }) ``` Keep those waits short — spacing a retry, letting a resource settle. **A long or business wait belongs in the process as a BPMN timer event, not in a handler.** A handler that sleeps for minutes holds a worker slot for the duration, risks the job timeout expiring underneath it, and hides the delay from the process model, where it would otherwise be visible and changeable without a redeploy. ## Driving the engine's clock `EngineClock` pins the engine's clock instead of passing time locally: ```go // The control client issues the pin requests and keeps real time itself. control, err := camunda.New(camunda.WithRestAddress(addr)) if err != nil { return err } clock := camunda.NewEngineClock(control) // Anything this client waits on now advances the engine instead of real time. client, err := camunda.New(camunda.WithRestAddress(addr), camunda.WithClock(clock)) if err != nil { return err } ``` A wait now moves the engine forward and reports the new instant, so the SDK and the engine agree on what time it is. Waits that overlap — those that read the clock before any of them lands — settle at a single instant rather than summing; a wait that begins after an earlier one has landed reads the new time and composes from it. `PinTo` and `Reset` are available directly for tests that need to move the engine without waiting. Clock pinning is an alpha engine endpoint, intended for tests rather than production clusters. Pass the control client the pin requests should travel on: it keeps real time, so the requests themselves are unaffected by the pinning. ## Writing your own `Clock` is a public interface (`Now`, `Sleep`, `After`); implement it and pass it to `camunda.WithClock`. `ClockController` is the engine-side half, if you want `EngineClock` to drive something other than a `CamundaClient`. Ambient time is banned in the runtime by `.golangci.yml` — `time.Now`, `time.Sleep`, `time.NewTimer` and friends — so cadence cannot quietly drift back onto real time. --- ## Configuration reference(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: `CAMUNDA_*` variables are canonical; the `ZEEBE_*` names are accepted as fallbacks for compatibility with older tooling. Functional options take precedence over both. ## Connection | Variable | Default | Description | | ------------------------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | `CAMUNDA_REST_ADDRESS` / `ZEEBE_REST_ADDRESS` | `http://localhost:8080` | Orchestration Cluster REST base address. | | `CAMUNDA_REST_ADDRESS_EXACT` | — | Use `CAMUNDA_REST_ADDRESS` exactly as provided, without appending the `/v2` suffix (for gateway/reverse-proxy fronted deployments). | | `CAMUNDA_GRPC_ADDRESS` / `ZEEBE_GRPC_ADDRESS` | `localhost:26500` | Zeebe gRPC gateway address (`host:port`) for the streaming job worker. | | `CAMUNDA_DEFAULT_TENANT_ID` / `CAMUNDA_TENANT_ID` | — | Default tenant id applied to operations that accept one. | ## Authentication | Variable | Default | Description | | ------------------------------------------------------ | -------- | ------------------------------------------------------------------------------- | | `CAMUNDA_AUTH_STRATEGY` | inferred | `OAUTH`, `BASIC`, or `NONE`. Inferred from the supplied credentials when unset. | | `CAMUNDA_CLIENT_ID` / `ZEEBE_CLIENT_ID` | — | OAuth 2.0 client id (client-credentials grant). | | `CAMUNDA_CLIENT_SECRET` / `ZEEBE_CLIENT_SECRET` | — | OAuth 2.0 client secret. | | `CAMUNDA_OAUTH_URL` / `ZEEBE_AUTHORIZATION_SERVER_URL` | — | OAuth 2.0 token endpoint URL. | | `CAMUNDA_TOKEN_AUDIENCE` | — | OAuth token audience. | | `CAMUNDA_TOKEN_SCOPE` | — | OAuth token scope. | | `CAMUNDA_OAUTH_CACHE_DIR` | — | Directory for the on-disk OAuth token cache. | | `CAMUNDA_BASIC_AUTH_USERNAME` | — | HTTP Basic authentication username. | | `CAMUNDA_BASIC_AUTH_PASSWORD` | — | HTTP Basic authentication password. | ## Reliability | Variable | Default | Description | | -------------------------------------- | ---------- | ----------------------------------------------------------- | | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | `BALANCED` | `BALANCED` (gates) or `LEGACY` (observe-only). | | `CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS` | — | Max transient-error retry attempts. | | `CAMUNDA_SDK_HTTP_RETRY_BASE_DELAY_MS` | — | Base backoff delay for retries, in milliseconds. | | `CAMUNDA_SDK_HTTP_RETRY_MAX_DELAY_MS` | — | Max backoff delay for retries, in milliseconds. | | `CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS` | — | Default eventual-consistency poll timeout, in milliseconds. | | `CAMUNDA_SDK_LOG_LEVEL` | `info` | `off`, `error`, `warn`, `info`, `debug`, or `trace`. | ## Job workers | Variable | Default | Description | | ----------------------------------------------------------------------- | ---------------- | ------------------------------------------------------- | | `CAMUNDA_WORKER_NAME` | hostname-derived | Default worker name. | | `CAMUNDA_WORKER_TIMEOUT` | — | Default job activation timeout, in milliseconds. | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` / `CAMUNDA_WORKER_MAX_JOBS_ACTIVE` | — | Default max concurrently-activated jobs per worker. | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | — | Default activate-jobs request timeout, in milliseconds. | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | — | Max random startup delay for workers, in seconds. | ## Transport | Variable | Default | Description | | -------------------- | ------- | ---------------------------------------------------------------------------------- | | `CAMUNDA_FALCON` | `true` | Enable the FALCON command-stream transport upgrade when the gateway advertises it. | | `CAMUNDA_FORCE_REST` | — | Force the pure-REST path even when the gateway advertises FALCON. | Invalid values are rejected at construction with a configuration error rather than being silently coerced, so a typo in a deployment manifest fails the process at startup instead of at first request. --- ## Configuration(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Every setting is resolved from the environment and overridable with functional options. Options take precedence over environment variables: ```go // Functional options override the environment. Here: OAuth 2.0 // client-credentials against a SaaS cluster. client, err := camunda.New( camunda.WithRestAddress("https://my-cluster.region.camunda.io"), camunda.WithOAuth( "my-client-id", "my-client-secret", "https://login.cloud.camunda.io/oauth/token", ), camunda.WithOAuthAudience("zeebe.camunda.io"), ) ``` --- ## Deploying and starting processes :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The facade exposes request bodies as first-class parameters; the `Raw()` escape hatch covers anything the facade doesn't (such as multipart resource upload): ```go // Deploy a BPMN process. Multipart resource upload goes through the Raw() // generated client (the escape hatch for anything the facade doesn't cover). f, err := os.Open("greet.bpmn") if err != nil { return err } defer func() { _ = f.Close() }() if _, _, err := client.Raw().ResourceAPI.CreateDeployment(ctx). Resources([]*os.File{f}). Execute(); err != nil { return err } // Start an instance by process id. The request body is a first-class facade // parameter — no Raw() needed. byID := camunda.NewProcessInstanceCreationInstructionById(camunda.ProcessDefinitionId("demo-process")) byID.SetVariables(map[string]any{"name": "Camunda"}) instruction := camunda.ProcessInstanceCreationInstructionByIdAsProcessInstanceCreationInstruction(byID) instance, err := client.CreateProcessInstance(ctx, instruction) if err != nil { return err } fmt.Printf("started process instance %v\n", instance.GetProcessInstanceKey()) ``` --- ## Error handling :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: A server-side 4xx/5xx surfaces as a typed `*APIError` carrying the HTTP status and response body; anything else is a transport-level error: ```go _, err := client.GetTopology(ctx) var apiErr *camunda.APIError if errors.As(err, &apiErr) { // The server returned a 4xx/5xx — inspect the status and response body. fmt.Printf("API error: HTTP %d — %s\n", apiErr.Status, apiErr.Body) } else if err != nil { // Transport-level failure (DNS, TLS, connection refused, ...). fmt.Println("request failed:", err) } ``` Two helpers cover the common classifications without unwrapping by hand: ```go key := camunda.MustProcessInstanceKey("2251799813685249") _, err := client.GetProcessInstance(ctx, key) // IsNotFound is the idiomatic 404 check — the common case when reading an // entity that has not yet propagated to secondary storage. if camunda.IsNotFound(err) { fmt.Println("not visible yet") return nil } // StatusCode reports the HTTP status for any server-side error, and // ok == false for transport-level failures. if status, ok := camunda.StatusCode(err); ok { fmt.Printf("server rejected the request: HTTP %d\n", status) } ``` Errors are values throughout: use `errors.Is` for sentinels and `errors.As` for typed errors. A function that cannot honour its contract returns an error rather than a zero value or a best-guess default. --- ## Eventual consistency :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Reads are served from the cluster's secondary storage and are eventually consistent. `Poll` retries a read (by default while it returns 404) until the entity is visible or a timeout elapses: ```go // Reads are eventually consistent: a just-created entity may briefly 404. // Poll retries 404s until the entity is visible or the timeout elapses. key := camunda.MustProcessInstanceKey("2251799813685249") instance, err := camunda.Poll(ctx, func(ctx context.Context) (*camunda.ProcessInstanceResult, error) { return client.GetProcessInstance(ctx, key) }, camunda.WithPollTimeout(10*time.Second)) if err != nil { return err } fmt.Printf("instance state: %v\n", instance.GetState()) ``` --- ## Installation(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ```sh go get github.com/camunda/orchestration-cluster-api-go/v11 ``` Requires Go 1.25+. The `/v11` suffix is the Camunda server line this SDK targets (8.11); see [versioning](versioning.md#versioning). --- ## Job workers(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Register a REST activate-jobs worker with `NewJobWorker`. The handler's return value decides the job outcome: ```go // One JobHandler contract for both workers: returning variables completes the // job; returning a *camunda.BpmnError throws a BPMN error; returning any other // error fails the job (decrementing its retries). worker := client.NewJobWorker("greet", func(ctx context.Context, job *camunda.Job) (map[string]any, error) { var in struct { Name string `json:"name"` } if err := job.Variables(&in); err != nil { return nil, err } return map[string]any{"greeting": "Hello, " + in.Name + "!"}, nil }, camunda.WithMaxConcurrentJobs(10), camunda.WithPollInterval(500*time.Millisecond), ) ctx, cancel := context.WithCancel(context.Background()) defer cancel() // Run blocks until ctx is canceled, draining in-flight jobs on shutdown. if err := worker.Run(ctx); err != nil { fmt.Println("worker stopped:", err) } ``` For high-throughput, low-latency work, use the gRPC streaming worker (`NewStreamJobWorker`) — a capability unique to this SDK among the Camunda Orchestration Cluster SDKs: ```go // The gRPC streaming worker activates jobs over a StreamActivatedJobs stream // and acknowledges them over gRPC. A low-frequency REST sidecar poll backs it // up (a safety net for jobs re-queued after a timeout or brief reconnect). worker := client.NewStreamJobWorker("greet", func(ctx context.Context, job *camunda.Job) (map[string]any, error) { return map[string]any{"greeting": "Hello!"}, nil }, camunda.WithStreamPollInterval(30*time.Second), // -1 disables the sidecar poll ) ctx, cancel := context.WithCancel(context.Background()) defer cancel() if err := worker.Run(ctx); err != nil { fmt.Println("stream worker stopped:", err) } ``` Pass `camunda.WithStreamJobLease(true)` to activate jobs with a lease. Each job then carries a lease token that the worker sends back when it completes, fails, or throws — so if the job timed out and another worker picked it up, the stale acknowledgement is rejected instead of racing the newer activation. It covers both the gRPC stream and the REST sidecar poll. The REST worker takes the same option as `camunda.WithJobLease(true)`. Leases are off by default (matching the engine) and need an engine that supports them: rather than degrade to unfenced commands, a worker that asked for a lease and is handed a job without a token rejects the activation with `camunda.ErrLeaseNotHonored`. --- ## License :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Apache-2.0. See [LICENSE](https://github.com/camunda/orchestration-cluster-api-go/blob/main/LICENSE). --- ## Logging(Go-sdk) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK logs through a level-gated internal logger, off by default at anything above `info`: ```go // Levels: LogOff, LogError, LogWarn, LogInfo (default), LogDebug, LogTrace. // LogDebug reports auth-token refreshes, retries, and backpressure decisions; // LogTrace adds per-request detail. Credentials are never logged. client, err := camunda.New(camunda.WithLogLevel(camunda.LogDebug)) ``` Set `CAMUNDA_SDK_LOG_LEVEL=debug` to get the same effect without a code change — useful when diagnosing an authentication or backpressure problem in a deployed service. Secrets (client secrets, passwords, bearer tokens, TLS key material) are never written to the log at any level. --- ## Quick start :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Construct a client (configuration comes from `CAMUNDA_*` environment variables) and call an ergonomic facade method: ```go // Configuration is resolved from CAMUNDA_* environment variables (with ZEEBE_* // fallbacks) and validated fail-fast at construction. client, err := camunda.New() if err != nil { return err } ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() topology, err := client.GetTopology(ctx) if err != nil { return err } fmt.Printf("Camunda 8 %s — %d broker(s), %d partition(s)\n", topology.GetGatewayVersion(), len(topology.GetBrokers()), topology.GetPartitionsCount()) ``` For production-shaped, runnable workflows, see the [advanced examples](https://github.com/camunda/orchestration-cluster-api-go/blob/main/examples/advanced/README.md): bounded load with adaptive backpressure, resilient job handling, and idempotent message correlation. --- ## Reproducible jitter :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Retry backoff, worker startup delay (`CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS`) and FALCON endpoint selection draw from an injected `Random` rather than `math/rand`. The default, `LiveRandom`, is the process-wide generator. A `SeededRandom` replays the same sequence for the same seed, so a test can assert the exact delays the SDK schedules instead of a range: ```go // Seeds from CAMUNDA_TEST_SEED when it is set, otherwise from a fresh seed. random, err := camunda.SeededRandomFromEnv() if err != nil { return err } // Log the source: it names the seed and how to replay this run. fmt.Println(random) // SeededRandom(seed=...; replay with CAMUNDA_TEST_SEED=...) client, err := camunda.New(camunda.WithRandom(random)) ``` The seeded generator is specified across the Camunda SDKs, so one seed produces the same draws in every language. A worker draws its startup delay when it is built, not when `Run` starts, so the delays follow construction order however the goroutines are scheduled. `math/rand` is banned in the runtime by `.golangci.yml`, alongside ambient time. --- ## Semantic keys :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Identifier types (`JobKey`, `ProcessInstanceKey`, …) are validated named string types rather than bare strings: ```go // Semantic key types validate their format at construction. key, err := camunda.NewJobKey("2251799813685424") // validates pattern & length if err != nil { return err } fmt.Println(key.String()) // Side-load a key you already trust, without validation: loose := camunda.MustJobKey("2251799813685424") _ = loose ``` --- ## The full API surface :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: `CamundaClient` exposes one ergonomic method per operation in the OpenAPI specification, generated from the same spec as the low-level client so the two can never diverge. Each facade method flattens the generated builder into first-class parameters and returns the deserialized result. Every request, response, key and enum type is available from the `camunda` package, so one import covers normal use. Only the raw HTTP-client machinery — the client `Raw()` returns, its configuration, and its error type — stays in the generated `github.com/camunda/orchestration-cluster-api-go/v11/client` package. When you need something the facade deliberately does not model — multipart uploads, unusual query-parameter combinations, or the raw `*http.Response` — `Raw()` hands you the generated client directly: ```go // Raw() exposes the generated client: every operation, with the full builder // surface. Use it for anything the facade does not cover, and for access to // the raw *http.Response. result, resp, err := client.Raw().ProcessDefinitionAPI. SearchProcessDefinitions(ctx). Execute() if err != nil { return err } fmt.Printf("HTTP %d — %d process definition(s)\n", resp.StatusCode, len(result.GetItems())) ``` Requests made through `Raw()` still traverse the full runtime — backpressure, retry, and authentication all apply, because those are `http.RoundTripper` layers on the transport rather than facade-level wrappers. Full API documentation is published on [pkg.go.dev](https://pkg.go.dev/github.com/camunda/orchestration-cluster-api-go/v11). --- ## TLS and mutual TLS :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: TLS is derived from the scheme of `CAMUNDA_REST_ADDRESS`. Mutual TLS and custom certificate authorities — for a Self-Managed cluster behind a private CA, or one requiring client certificates — are configured by environment variable. Inline PEM values take precedence over the corresponding `*_PATH` file locations. | Variable | Description | | ----------------------------- | -------------------------------------------------------------------------------------------------------------- | | `CAMUNDA_MTLS_CERT` | Inline client certificate PEM. | | `CAMUNDA_MTLS_KEY` | Inline client private key PEM. | | `CAMUNDA_MTLS_CA` | Inline CA certificate PEM for verifying the server. | | `CAMUNDA_MTLS_CERT_PATH` | Path to the client certificate PEM. | | `CAMUNDA_MTLS_KEY_PATH` | Path to the client private key PEM. | | `CAMUNDA_MTLS_CA_PATH` | Path to the CA certificate PEM. | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | Recognized but **not supported yet** — setting it fails client construction. Supply an unencrypted client key. | The same material is applied to both the REST transport and the gRPC streaming worker, so a single configuration covers every connection the SDK opens. --- ## Transient retry :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Retries are layered _below_ backpressure in the `http.RoundTripper` chain, so a retried request is still subject to the concurrency limiter and cannot amplify a load spike: ```go // Transient failures (429, 502, 503, 504 and network errors) are retried with // exponential backoff and full jitter. Non-transient 4xx are never retried. client, err := camunda.New( camunda.WithRetry(camunda.RetryConfig{ MaxAttempts: 5, BaseDelay: 100 * time.Millisecond, MaxDelay: 5 * time.Second, }), ) ``` Only transient failures are retried. A `400`, `403`, or `404` is returned to you immediately — retrying a request the server has definitively rejected wastes time and hides the real error. --- ## Versioning :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK major version tracks the Camunda server minor version: use the SDK line that matches your server. Go requires majors ≥ 2 to carry a `/vN` module-path suffix, so the import path names the server line: | Camunda server | Module path suffix | Branch | | --------------------- | ------------------ | ----------- | | 8.10 | `/v10` | `stable/10` | | 8.11 (in development) | `/v11` | `main` | Moving to a new server minor means changing the import path. Releases before v10 (`v0.x`) used the module path without a suffix. --- ## Go SDK (Technical Preview) :::caution Technical Preview The Go SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: An idiomatic Go client for the [Camunda 8](https://camunda.io) Orchestration Cluster REST API, with a gRPC job-streaming worker. It pairs a **generated low-level REST client** (produced from the upstream OpenAPI specification) with a hand-written **ergonomic runtime** that handles the concerns real integrations need: configuration, authentication, adaptive backpressure, transient retry, and eventual-consistency handling. This is a sibling of the [Rust](https://github.com/camunda/orchestration-cluster-api-rust), [TypeScript](https://github.com/camunda/orchestration-cluster-api-js), [Python](https://github.com/camunda/orchestration-cluster-api-python), and [C#](https://github.com/camunda/orchestration-cluster-api-csharp) SDKs and follows the same two-layer architecture. --- ## Authentication(Hub-api-saas) ## The process Generate a [JSON Web Token (JWT)](https://jwt.io/introduction/), and include it in every request. If you already have a client or token for Web Modeler API v1, you can reuse it for this API. ## Prerequisites Before you begin, make sure you have the **Admin** user role. ## Create new client credentials Create an API client with Hub API permissions. 1. In Camunda Hub, in the left navigation, click **Organization > Manage organization**. 2. In the **Administration API** tab, click **Create new credentials**. 3. Name the client, and grant it access to the **Hub API** with the necessary permissions. 4. Click **Create**, and capture the following values required to generate a token: | Name | Environment variable name | Default value | | ------------------------ | -------------------------------- | -------------------------------------------- | | Client ID | `CAMUNDA_CONSOLE_CLIENT_ID` | - | | Client Secret | `CAMUNDA_CONSOLE_CLIENT_SECRET` | - | | Authorization Server URL | `CAMUNDA_OAUTH_URL` | `https://login.cloud.camunda.io/oauth/token` | | Audience | `CAMUNDA_CONSOLE_OAUTH_AUDIENCE` | `api.cloud.camunda.io` | :::caution When you create client credentials, the client secret is only shown once. Save the client secret somewhere safe. ::: ## Generate a token After [creating new client credentials](#create-a-new-application), generate an access token: ```bash curl --request POST ${CAMUNDA_OAUTH_URL} \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode "audience=${CAMUNDA_CONSOLE_OAUTH_AUDIENCE}" \ --data-urlencode "client_id=${CAMUNDA_CONSOLE_CLIENT_ID}" \ --data-urlencode "client_secret=${CAMUNDA_CONSOLE_CLIENT_SECRET}" ``` A successful response looks like this: ```json { "access_token": "", "expires_in": 300, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0 } ``` With this `access_token`, you're ready to [authenticate with the Camunda Hub API](#authenticate-with-your-token). ## Authenticate with your token Once you have [generated a token](#generate-a-token), use it in the authorization header in every Camunda Hub API request: `Authorization: Bearer `. For example, send a request to the Camunda Hub API's `/info` endpoint: ```shell curl --header "Authorization: Bearer ${TOKEN}" \ https://hub.camunda.io/api/v2/info ``` ## Organization-level access API tokens are granted to organization-level _clients_ rather than individual _users_. With an API token, you can read, edit, and delete all workspaces and workspace resources in the organization, as long as the application has the required permissions for the Camunda Hub API. This is true even if you aren't a member of the workspace and you can't see it in the Camunda Hub user interface. ## Token expiration Access tokens expire according to the `expires_in` property of an authenticated response. After this duration, in seconds, you must request a new access token. --- ## Camunda Hub API (SaaS) ## Authentication See the [authentication guide](/apis-tools/hub-api-saas/authentication.md) for setup instructions. ## Try with Swagger Use the interactive Swagger API explorer with the Camunda Hub API. [Swagger API explorer](https://hub.camunda.io/swagger-ui/index.html) ## Migrating from API v1 API v1 is deprecated in Camunda 8.10 and will be removed in 8.12. It is available as part of Camunda Hub via the [Hub API v1 Swagger UI](https://hub.camunda.io/swagger-ui/index.html?urls.primaryName=api-v1). [Migrate](/apis-tools/hub-api-saas/overview.md) to Camunda Hub REST API v2 before upgrading to 8.12. --- ## Authentication(Hub-api-sm) ## The process Generate a [JSON Web Token (JWT)](https://jwt.io/introduction/), and include it in every request. If you already have a Web Modeler API v1 token, you can use the same token for this API. ## Create a new application Create an application with Hub API permissions. 1. [Add an M2M application in Management Identity](/self-managed/components/management-identity/application-user-group-role-management/applications.md#add-an-application). 2. [Grant this application access](/self-managed/components/management-identity/access-management/manage-permissions.md#assign-a-permission-to-an-application) to the **Hub API** with the necessary permissions. This authorization also adds the required `web-modeler-public-api` audience to tokens issued for this application, so no `audience` parameter is needed in the token request. 3. Capture the `Client ID` and `Client Secret` from the application in Management Identity. ## Generate a token After [creating a new application](#create-a-new-application), use its client ID and secret to [generate an access token](/self-managed/components/management-identity/authentication.md#generate-a-token): ```shell curl --location --request POST 'http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "client_id=${CLIENT_ID}" \ --data-urlencode "client_secret=${CLIENT_SECRET}" \ --data-urlencode 'grant_type=client_credentials' ``` A successful authentication response looks like this: ```json { "access_token": "", "expires_in": 300, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0 } ``` With this `access_token`, you're ready to [authenticate with the Camunda Hub API](#authenticate-with-your-token). ## Authenticate with your token Once you have [generated a token](#generate-a-token), use it in the authorization header in every Camunda Hub API request: `Authorization: Bearer `. For example, send a request to the Camunda Hub API `/info` endpoint: ```shell curl --header "Authorization: Bearer ${TOKEN}" \ ${CAMUNDA_HUB_REST_URL}/api/v2/info ``` In this example, `${CAMUNDA_HUB_REST_URL}` represents the URL of the Camunda Hub API. You can configure this value in your Self-Managed installation. The default value is `http://localhost:8088`. The Camunda Hub API validates both the token's audience and the application's permissions: - A `401 Unauthorized` response means the token is missing the `web-modeler-public-api` audience. This audience is added when the application is authorized for the **Camunda Hub API** (see step 2), so confirm that authorization is in place. - A `403 Forbidden` response means the application is missing the permissions required for the operation on the **Camunda Hub API** (for example, `create`, `update`, or `delete`). ## Organization-level access API tokens are granted to organization-level _applications_ rather than individual _users_. With an API token, you can read, edit, and delete all workspaces and workspace resources in the organization, as long as the application has the required permissions for the Camunda Hub API. This is true even if you aren't a member of the workspace and you can't see it in the Camunda Hub user interface. ## Token expiration Access tokens expire according to the `expires_in` property of an authenticated response. After this duration, in seconds, you must request a new access token. --- ## Camunda Hub API (Self-Managed) ## Authentication See the [authentication guide](/apis-tools/hub-api-sm/authentication.md) for setup instructions. ## Migrating from Web Modeler API v1 Web Modeler API v1 is deprecated in Camunda 8.10 and will be removed in 8.12. [Migrate](/apis-tools/hub-api-sm/overview.md) to Camunda Hub REST API v2 before upgrading to 8.12. --- ## Java client ## About The Camunda Java Client is the official Java library for building process applications that integrate with Camunda 8. This client provides everything needed to interact with the Orchestration Cluster programmatically, such as orchestrating microservices, managing human tasks, or visualizing process data, and so on. For example, you can use it to build a job worker that handles polling for available jobs, use SLF4J for logging useful notes. :::info Public API The Camunda Java Client is part of the Camunda 8 [public API](/reference/public-api.md) and follows [Semantic Versioning](https://semver.org/) (except for alpha features). Minor and patch releases will not introduce breaking changes. ::: ## What is the Camunda Java Client? The Camunda Java Client is a comprehensive library enabling Java developers to: - **Deploy processes and decisions** to Camunda 8 clusters - **Start and manage processes** programmatically - **Implement job workers** to handle automated tasks within your processes - **Query and manage process data** via the Orchestration Cluster API It supports both REST and gRPC protocols, authentication setup, and provides robust error handling with retry mechanisms. :::info Migration from Zeebe Java Client **The Camunda Java Client replaces the Zeebe Java Client as of version 8.8.** - Provides improved structure and full Orchestration Cluster API support - Uses **REST** as default communication protocol (gRPC configurable) - The Zeebe Java Client will be **removed in version 8.10** - **Migrate before upgrading to 8.10** to avoid breaking changes See our [migration guide](../migration-manuals/migrate-to-camunda-java-client.md) for details. ::: ## What can you build with it? Use the Camunda Java Client to build: - **Job workers** that perform automated tasks and call external systems (APIs, databases, file systems) - **Integration services** that connect Camunda processes with existing systems or third-party services - **Data processing applications** that leverage process data for visualization, analytics, or business intelligence ## Get started ### Step 1: Add the dependency Add the Camunda Java Client to your project: **Maven:** ```xml io.camunda camunda-client-java ${camunda.version} ``` **Gradle:** ```groovy implementation 'io.camunda:camunda-client-java:${camunda.version}' ``` Use the latest version from [Maven Central](https://search.maven.org/artifact/io.camunda/camunda-client-java). ### Step 2a: Connect to a Self-Managed Orchestration Cluster Create a client instance to connect to your Self-Managed Camunda 8 cluster. Select the appropriate [authentication method](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md) for your environment: **Use for:** Local development when security is not required. ```java private static final String CAMUNDA_GRPC_ADDRESS = "[Address of Zeebe API (gRPC) - default: http://localhost:26500]"; private static final String CAMUNDA_REST_ADDRESS = "[Address of the Orchestration Cluster API - default: http://localhost:8080]"; public static void main(String[] args) { try (CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create(CAMUNDA_GRPC_ADDRESS)) .restAddress(URI.create(CAMUNDA_REST_ADDRESS)) .build()) { // Test the connection client.newTopologyRequest().execute(); System.out.println("Connected to Camunda 8!"); } } ``` **What this code does** 1. **Creates a no-authentication provider** – Configures the client to skip authentication. 2. **Builds a client using the protocol-specified transport** – Uses plaintext or TLS depending on whether the addresses use `http` or `https`. 3. **Connects to both APIs** – Configures access to the Zeebe gRPC and Orchestration Cluster REST APIs. 4. **Tests the connection** – Verifies connectivity by requesting cluster topology information. **Environment variables option** You can also configure the client using environment variables: ```bash export CAMUNDA_GRPC_ADDRESS='[Address of Zeebe API (gRPC) - default: http://localhost:26500]' export CAMUNDA_REST_ADDRESS='[Address of the Orchestration Cluster API - default: http://localhost:8080]' ``` ```java CamundaClient client = CamundaClient.newClientBuilder().build(); ``` The client will automatically read these environment variables and configure the appropriate authentication method. Ensure addresses are in absolute URI format: `scheme://host(:port)`. The protocol (`http` or `https`) determines whether the connection is encrypted. **Use for:** Development or testing environments with username/password protection. ```java private static final String CAMUNDA_GRPC_ADDRESS = "[Address of Zeebe API (gRPC) - default: http://localhost:26500]"; private static final String CAMUNDA_REST_ADDRESS = "[Address of the Orchestration Cluster API - default: http://localhost:8080]"; private static final String CAMUNDA_BASIC_AUTH_USERNAME = "[Your username - default: demo]"; private static final String CAMUNDA_BASIC_AUTH_PASSWORD = "[Your password - default: demo]"; public static void main(String[] args) { CredentialsProvider credentialsProvider = new BasicAuthCredentialsProviderBuilder() .username(CAMUNDA_BASIC_AUTH_USERNAME) .password(CAMUNDA_BASIC_AUTH_PASSWORD) .build(); try (CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create(CAMUNDA_GRPC_ADDRESS)) .restAddress(URI.create(CAMUNDA_REST_ADDRESS)) .credentialsProvider(credentialsProvider) .build()) { // Test the connection client.newTopologyRequest().execute(); System.out.println("Connected to Camunda 8!"); } } ``` **What this code does** 1. **Sets up username/password authentication** – Configures the client to use basic credentials. 2. **Builds a client using the protocol-specified transport** – Establishes an unencrypted connection if the addresses use `http` or an encrypted connection if they use `https`. 3. **Connects to both APIs** – Configures access to the Zeebe gRPC and Orchestration Cluster REST APIs. 4. **Tests the connection** – Verifies authentication by requesting cluster topology information. **Environment variables option** You can also set connection details via environment variables to create the client more simply: ```bash export CAMUNDA_GRPC_ADDRESS='[Address of Zeebe API (gRPC) - default: http://localhost:26500]' export CAMUNDA_REST_ADDRESS='[Address of the Orchestration Cluster API - default: http://localhost:8080]' export CAMUNDA_BASIC_AUTH_USERNAME='[Your username - default: demo]' export CAMUNDA_BASIC_AUTH_PASSWORD='[Your password - default: demo]' ``` ```java CamundaClient client = CamundaClient.newClientBuilder().build(); ``` The client will automatically read the environment variables and configure the appropriate authentication method. :::note - Ensure addresses use absolute URI format: `scheme://host(:port)`. - By default, environment variables override any values provided in Java code. To give Java code values precedence, use the `.applyEnvironmentOverrides(false)` method on `BasicAuthCredentialsProviderBuilder`. - The client adds an `Authorization` header to each request with the value `Basic username:password` (where `username:password` is base64 encoded). ::: **Use for:** Self-Managed production environments with OIDC-based authentication. Standard `client_secret_basic` authentication method. ```java private static final String CAMUNDA_GRPC_ADDRESS = "[Address of Zeebe API (gRPC) - default: http://localhost:26500]"; private static final String CAMUNDA_REST_ADDRESS = "[Address of the Orchestration Cluster API - default: http://localhost:8080]"; // There are three ways to define the authorization server URL private static final String CAMUNDA_AUTHORIZATION_SERVER_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token]"; private static final String CAMUNDA_WELL_KNOWN_CONFIGURATION_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/.well-known/openid-configuration]"; private static final String CAMUNDA_ISSUER_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform]"; // Audience is the API that will receive the token, such as the Orchestration Cluster for example private static final String AUDIENCE = "[Orchestration Cluster audience]"; // Scope is the permission requested from the IdP (or leave empty) private static final String SCOPE = "[optional additional scopes]"; private static final String CLIENT_ID = "[Client ID registered in your IdP]"; private static final String CLIENT_SECRET = "[Client Secret]"; public static void main(String[] args) { CredentialsProvider credentialsProvider = new OAuthCredentialsProviderBuilder() // Select the authorization server configuration option according to your properties from above .authorizationServerUrl(CAMUNDA_AUTHORIZATION_SERVER_URL) .issuerUrl(CAMUNDA_ISSUER_URL) .wellKnownConfigurationUrl(CAMUNDA_WELL_KNOWN_CONFIGURATION_URL) // End authorization server .audience(AUDIENCE) .scope(SCOPE) .clientId(CLIENT_ID) .clientSecret(CLIENT_SECRET) .build(); try (CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create(CAMUNDA_GRPC_ADDRESS)) .restAddress(URI.create(CAMUNDA_REST_ADDRESS)) .credentialsProvider(credentialsProvider) .build()) { // Test the connection client.newTopologyRequest().execute(); System.out.println("Connected to Camunda 8!"); } } ``` **Notes for Microsoft Entra ID** - Use `scope=CLIENT_ID_OC + "/.default"` instead of `scope=CLIENT_ID_OC`. - The issuer URL is typically in the format: ``` https://login.microsoftonline.com//v2.0 ``` :::note Audience validation If you have [configured the audiences property for the Orchestration Cluster (`camunda.security.authentication.oidc.audiences`)](/self-managed/components/orchestration-cluster/core-settings/configuration/properties.md#camunda.security.authentication.oidc), the Orchestration Cluster will validate the audience claim in the token against the configured audiences. Make sure your token includes the correct audience from the Orchestration Cluster configuration, or add your audience to the configuration. Often this is the client ID you used when setting up the Orchestration Cluster. ::: **What this code does** 1. **Sets up OAuth2 authentication** – Configures the client to use OAuth tokens from your identity provider. 2. **Builds a secure client** – Establishes an encrypted connection to your self-managed cluster (default). 3. **Connects to both APIs** – Configures access to the Zeebe gRPC and Orchestration Cluster REST APIs. 4. **Tests the connection** – Verifies OAuth authentication by requesting cluster topology information. **Environment variables option** You can also set connection details via environment variables to create the client more simply: ```bash export CAMUNDA_GRPC_ADDRESS='[Address of Zeebe API (gRPC) - default: http://localhost:26500]' export CAMUNDA_REST_ADDRESS='[Address of the Orchestration Cluster API - default: http://localhost:8080]' # There are three ways to define the authorization server URL export CAMUNDA_AUTHORIZATION_SERVER_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token]' export CAMUNDA_WELL_KNOWN_CONFIGURATION_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/.well-known/openid-configuration]' export CAMUNDA_ISSUER_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform]' export CAMUNDA_TOKEN_AUDIENCE='[Audience]' export CAMUNDA_CLIENT_ID='[Client ID]' export CAMUNDA_CLIENT_SECRET='[Client Secret]' ``` ```java CamundaClient client = CamundaClient.newClientBuilder().build(); ``` The client will automatically read the environment variables and configure the appropriate authentication method. :::note - Ensure addresses use absolute URI format: `scheme://host(:port)`. - By default, environment variables override any values provided in Java code. To give Java code values precedence, use the `.applyEnvironmentOverrides(false)` method on `OAuthCredentialsProviderBuilder`. - The client adds an `Authorization` header to each request with the value `Bearer `. The token is obtained from the authorization server, cached to avoid unnecessary requests, and refreshed lazily upon expiration. - There are three ways to define the token URL. They're prioritized as follows: 1. Provide the `camunda.client.auth.token-url`. 2. Provide the issuer's well-known configuration URL `camunda.client.auth.well-known-configuration-url`. This extracts the token URL from the `token_url` field in the loaded configuration. 3. Provide the issuer's URL `camunda.client.auth.issuer-url`. This generates the well-known configuration URL and extracts the token URL from the `token_url` field in the loaded configuration. ::: **Use for:** Production environments with mTLS certificate-based client authentication. Several identity providers, such as Keycloak, support client mTLS authentication as an alternative to `client_secret_basic`. **Prerequisites** - Properly configured KeyStore and TrustStore - Both your application and identity provider share the same CA trust certificates - Certificates for the identity provider are signed by a trusted CA - The application DN is registered in the identity provider client authorization details ```java private static final String CAMUNDA_GRPC_ADDRESS = "[Address of Zeebe API (gRPC) - default: http://localhost:26500]"; private static final String CAMUNDA_REST_ADDRESS = "[Address of the Orchestration Cluster API - default: http://localhost:8080]"; // There are three ways to define the authorization server URL private static final String CAMUNDA_AUTHORIZATION_SERVER_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token]"; private static final String CAMUNDA_WELL_KNOWN_CONFIGURATION_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/.well-known/openid-configuration]", private static final String CAMUNDA_ISSUER_URL = "[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform]"; private static final String AUDIENCE = "[Audience - default: zeebe-api]"; private static final String CLIENT_ID = "[Client ID]"; private static final Path KEYSTORE_PATH = Paths.get("/path/to/keystore.p12"); private static final String KEYSTORE_PASSWORD = "password"; private static final String KEYSTORE_KEY_PASSWORD = "password"; private static final Path TRUSTSTORE_PATH = Paths.get("/path/to/truststore.jks"); private static final String TRUSTSTORE_PASSWORD = "password"; public static void main(String[] args) { CredentialsProvider credentialsProvider = new OAuthCredentialsProviderBuilder() // Select the authorization server configuration option according to your properties from above .authorizationServerUrl(CAMUNDA_AUTHORIZATION_SERVER_URL) .issuerUrl(CAMUNDA_ISSUER_URL) .wellKnownConfigurationUrl(CAMUNDA_WELL_KNOWN_CONFIGURATION_URL) // End authorization server .audience(AUDIENCE) .clientId(CLIENT_ID) .keystorePath(KEYSTORE_PATH) .keystorePassword(KEYSTORE_PASSWORD) .keystoreKeyPassword(KEYSTORE_KEY_PASSWORD) .truststorePath(TRUSTSTORE_PATH) .truststorePassword(TRUSTSTORE_PASSWORD) .build(); try (CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create(CAMUNDA_GRPC_ADDRESS)) .restAddress(URI.create(CAMUNDA_REST_ADDRESS)) .credentialsProvider(credentialsProvider) .build()) { // Test the connection client.newTopologyRequest().execute(); System.out.println("Connected to Camunda 8!"); } } ``` **What this code does** 1. **Sets up mTLS certificate authentication** – Configures the client to authenticate using client certificates with OAuth. 2. **Builds a secure client** – Establishes an encrypted connection using mutual TLS authentication. 3. **Connects to both APIs** – Configures access to the Zeebe gRPC and Orchestration Cluster REST APIs. 4. **Tests the connection** – Verifies certificate authentication by requesting cluster topology information. **Environment variables option** You can also set connection details via environment variables to create the client more simply: ```bash export CAMUNDA_GRPC_ADDRESS='[Address of Zeebe API (gRPC) - default: http://localhost:26500]' export CAMUNDA_REST_ADDRESS='[Address of the Orchestration Cluster API - default: http://localhost:8080]' # There are three ways to define the authorization server URL export CAMUNDA_AUTHORIZATION_SERVER_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token]' export CAMUNDA_WELL_KNOWN_CONFIGURATION_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform/.well-known/openid-configuration]' export CAMUNDA_ISSUER_URL='[OAuth URL e.g. http://localhost:18080/auth/realms/camunda-platform]' export CAMUNDA_TOKEN_AUDIENCE='[Audience - default: zeebe-api]' export CAMUNDA_CLIENT_ID='[Client ID]' export CAMUNDA_CLIENT_SECRET='[Client Secret]' export CAMUNDA_SSL_CLIENT_KEYSTORE_PATH='[Keystore path]' export CAMUNDA_SSL_CLIENT_KEYSTORE_SECRET='[Keystore password]' export CAMUNDA_SSL_CLIENT_KEYSTORE_KEY_SECRET='[Keystore material password]' export CAMUNDA_SSL_CLIENT_TRUSTSTORE_PATH='[Truststore path]' export CAMUNDA_SSL_CLIENT_TRUSTSTORE_SECRET='[Truststore password]' ``` ```java CamundaClient client = CamundaClient.newClientBuilder().build(); ``` The client automatically reads environment variables and configures the appropriate authentication method. Refer to your identity provider documentation for configuring mutual TLS authentication. For example, see [Keycloak](https://www.keycloak.org/server/mutual-tls). :::note - Ensure addresses use absolute URI format: `scheme://host(:port)`. - By default, environment variables override any values provided in Java code. To give Java code values precedence, use the `.applyEnvironmentOverrides(false)` method on `OAuthCredentialsProviderBuilder`. - The client adds an `Authorization` header to each request with the value `Bearer `. The token is obtained from the authorization server, cached to avoid unnecessary requests, and refreshed lazily upon expiration. - There are three ways to define the token URL. They're prioritized as follows: 1. Provide the `camunda.client.auth.token-url`. 2. Provide the issuer's well-known configuration URL `camunda.client.auth.well-known-configuration-url`. This extracts the token URL from the `token_url` field in the loaded configuration. 3. Provide the issuer's URL `camunda.client.auth.issuer-url`. This generates the well-known configuration URL and extracts the token URL from the `token_url` field in the loaded configuration. ::: ### Step 2b: Configure the Orchestration Cluster connection for SaaS **Use for:** Camunda 8 SaaS environments. Get the values below from your [Camunda Hub client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client). ```java private static final String CAMUNDA_CLUSTER_ID = "[Cluster ID from Hub]"; private static final String CAMUNDA_CLIENT_ID = "[Client ID from Hub]"; private static final String CAMUNDA_CLIENT_SECRET = "[Client Secret from Hub]"; private static final String CAMUNDA_CLUSTER_REGION = "[Cluster Region from Hub]"; public static void main(String[] args) { try (CamundaClient client = CamundaClient.newCloudClientBuilder() .withClusterId(CAMUNDA_CLUSTER_ID) .withClientId(CAMUNDA_CLIENT_ID) .withClientSecret(CAMUNDA_CLIENT_SECRET) .withRegion(CAMUNDA_CLUSTER_REGION) .build()) { // Test the connection client.newTopologyRequest().execute(); System.out.println("Connected to Camunda 8!"); } } ``` **What this code does** 1. **Sets up SaaS authentication** – Configures the client to connect to Camunda 8 SaaS using your cluster credentials. 2. **Builds a cloud client** – Creates a client optimized for SaaS with automatic endpoint discovery. 3. **Connects to your cluster** – Uses your cluster ID and region to locate and connect to the correct SaaS instance. 4. **Tests the connection** – Verifies SaaS authentication by requesting cluster topology information. **Environment variables option** You can also set connection details via environment variables to create the client more simply: ```bash export CAMUNDA_GRPC_ADDRESS='[Orchestration Cluster gRPC Address from Hub]' export CAMUNDA_REST_ADDRESS='[Orchestration Cluster REST Address from Hub]' export CAMUNDA_OAUTH_URL='[OAuth URL from Hub]' export CAMUNDA_TOKEN_AUDIENCE='[Audience from Hub - default: zeebe.camunda.io]' export CAMUNDA_CLIENT_ID='[Client ID from Hub]' export CAMUNDA_CLIENT_SECRET='[Client Secret from Hub]' ``` ```java CamundaClient client = CamundaClient.newClientBuilder().build(); ``` The client will automatically read the environment variables and configure the appropriate authentication method. :::note Ensure addresses are in absolute URI format: `scheme://host(:port)`. ::: ### Step 3: Start building your process application With a connected client, you are ready to build your process application. Below are the core operations you’ll typically perform, along with guidance on the next steps. #### Essential operations **Deploy a process:** ```java final DeploymentEvent deploymentEvent = client.newDeployResourceCommand() .addResourceFromClasspath("process.bpmn") .execute(); ``` This deploys your BPMN process definition to the cluster. Place your `.bpmn` files in `src/main/resources` and reference them by filename. **Start a process instance:** ```java final ProcessInstanceEvent processInstanceEvent = client.newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .variables(Map.of("orderId", "12345", "amount", 100.0)) .execute(); ``` This creates a new instance of your process. The `bpmnProcessId` should match the Process ID from your BPMN file, and you can pass initial variables as a Map. For a comprehensive example demonstrating these steps, see the [DeployAndComplete example](https://github.com/camunda-community-hub/camunda-8-examples/blob/main/camunda-client-plain-java/src/main/java/io/camunda/example/e2e/process/DeployAndComplete.java) in the Camunda 8 examples repository. This example illustrates a complete workflow from process deployment to job completion. ## Key features and capabilities - **Full Orchestration Cluster 8 API support:** Access all Orchestration Cluster API capabilities, including process deployment, management, job handling, and querying process data. - **Multiple authentication methods:** Supports no authentication (development), basic authentication, and OIDC access tokens for production environments. - **Automatic token management:** Handles authentication token acquisition and renewal automatically—no manual token management required. - **Protocol flexibility:** Choose between REST and gRPC protocols depending on your requirements and infrastructure. ## Next steps and resources **Learn the fundamentals** - [Job worker implementation](job-worker.md) – Build workers to handle automated tasks - [Process testing](../testing/getting-started.md) – Test your processes with Camunda Process Test - [Getting Started Tutorial](../../guides/getting-started-example.md) – Complete walkthrough with Desktop Modeler, Operate, and Spring SDK **Advanced topics** - [Logging configuration](logging.md) – Set up proper logging for your application - [Client documentation](https://javadoc.io/doc/io.camunda/camunda-client-java) – Complete Javadoc reference. Make sure you select the relevant Javadoc version as the latest version is shown by default at this URL. **Need help?** - [Camunda Community Forum](https://forum.camunda.io/) – Get help from the community - [GitHub repository](https://github.com/camunda/camunda) – Report issues and contribute --- ## Job worker **Job workers are the backbone of process automation in Camunda 8.** They handle automated tasks (service tasks) in your BPMN processes by continuously polling for available jobs and executing your business logic when jobs become available. This guide covers everything you need to know about implementing and configuring job workers with the Camunda Java Client, from basic concepts to advanced features such as streaming, metrics, and multi-tenancy. ## Quick start Before diving into the details, here is a simple example of creating a job worker: ```java try (final JobWorker workerRegistration = client.newWorker() .jobType(jobType) .handler(new EmailJobHandler()) .open()) { System.out.println("Job worker opened and receiving jobs of type: " + jobType); // Keep the worker running Thread.sleep(Duration.ofMinutes(10)); } catch (InterruptedException e) { throw new RuntimeException(e); } private static class EmailJobHandler implements JobHandler { @Override public void handle(final JobClient client, final ActivatedJob job) { // Perform your business logic here System.out.println("Processing job: " + job.getKey() + " for a process instance: " + job.getProcessInstanceKey()); // Complete the job (or use client.newFailCommand() if something goes wrong) client.newCompleteCommand(job.getKey()) .variables(Map.of("emailSent", true)) .send() .join(); } } ``` For a complete walkthrough, see the [getting started guide](getting-started.md). ## What are job workers? A job worker is a service that: - **Polls for jobs** of a specific type from the Camunda cluster - **Executes your business logic** when jobs are activated - **Reports job completion or failure** back to the cluster - **Handles retries and error scenarios** automatically When you model a service task in your BPMN process and assign it a job type (e.g., `send-email`, `process-payment`), job workers subscribe to these job types and process them as they become available. ## Key benefits - **Decoupled architecture**: Workers run independently from the process engine - **Scalable processing**: Add more workers to handle increased load - **Fault tolerance**: Built-in retry mechanisms and error handling - **Language flexibility**: Implement workers in any language with a Camunda client ## Related resources - [Job worker basics](/components/concepts/job-workers.md) ## How job workers work The Java client provides a job worker that handles polling for available jobs. This allows you to focus on writing code to handle the activated jobs. :::caution REST API limitation The Java client cannot keep the long-lived polling connections required for job polling via the Orchestration Cluster REST API in the following cases: - Performing long-polling job activation when activating jobs larger than the [maximum message size](../../self-managed/components/orchestration-cluster/zeebe/configuration/gateway.md#zeebegatewaynetwork). - Issuing any additional job activation requests while a long-polling connection is open - whether from the same client instance, another client in the same JVM, or a client in a different JVM. When the cases above occurs, the open long-polling request will be interrupted. You may observe workers intermittently stop receiving jobs and cause reduced throughput due to wasted I/O and connection churn. If you encounter this issue, consider using job activation via the Orchestration Cluster REST API with long polling disabled, or switching to the Zeebe gRPC protocol for job activation. Additionally, the long-polling connection might still receive jobs after the Java client is closed. As the Java client does not process these jobs they will time out. This means some jobs are not processed and will become available again after their timeout has elapsed. ::: On `open`, the job worker waits `pollInterval` milliseconds and then polls for `maxJobsActive` jobs. It then continues with the following schedule: 1. If a poll did not activate any jobs, it waits for `pollInterval` milliseconds and then polls for more jobs. 2. If a poll activated jobs, the worker submits each job to the job handler. 3. Every time a job is handled, the worker checks whether the number of unhandled jobs have dropped below 30% (rounded up) of `maxJobsActive`. The first time that happens, it will poll for more jobs. 4. If a poll fails with an error response, a backoff strategy is applied. This strategy waits for the delay provided by the `backoffSupplier` and polls for more jobs. For example, imagine you have 10 process instances and a single job worker configured with `maxJobsActive = 3`. The job worker will first pull three jobs and begin executing them. The threshold to poll for new jobs is 1 (30% of 3 rounded up). After two jobs have completed, the threshold is reached and the job worker will poll for up to 2 additional jobs. This process repeats until the jobs from all 10 process instances are completed. If streaming is enabled (via `streamEnabled`), it will also open a long-living stream over which jobs will be pushed without having to be polled. In such cases, a worker will only buffer up to `maxJobsActive` jobs at the same time. You can then estimate its memory usage as `maxJobsActive` times the max message size. ## Backoff configuration When a poll fails with an error response, the job worker applies a backoff strategy. It waits for some time, after which it polls again for more jobs. This gives a Zeebe cluster some time to recover from a failure. In some cases, you may want to configure this backoff strategy to better fit your situation. The retry delay (i.e. the time the job worker waits after an error before the next poll for new jobs) is provided by the [`BackoffSupplier`](https://github.com/camunda/camunda/blob/main/clients/java/src/main/java/io/camunda/client/api/worker/BackoffSupplier.java). You can replace it using the `.backoffSupplier()` method on the [`JobWorkerBuilder`](https://github.com/camunda/camunda/blob/main/clients/java/src/main/java/io/camunda/client/api/worker/JobWorkerBuilderStep1.java). By default, the job worker uses an exponential backoff implementation, which you can configure using `BackoffSupplier.newBackoffBuilder()`. The backoff strategy is especially useful for dealing with the `GRPC_STATUS_RESOURCE_EXHAUSTED` error response (refer to [gRPC Technical Error Handling](/apis-tools/zeebe-api/technical-error-handling.md)). This error code indicates the Zeebe cluster is currently under too large of a load and has decided to reject this request. By backing off, the job worker helps Zeebe by reducing the load. :::note Zeebe's [backpressure mechanism](../../../self-managed/components/orchestration-cluster/zeebe/operations/backpressure) can also be configured. ::: ## Metrics The job worker exposes metrics through a custom interface: [JobWorkerMetrics](https://github.com/camunda/camunda/blob/main/clients/java/src/main/java/io/camunda/client/api/worker/JobWorkerMetrics.java). These represent specific callbacks used by the job worker to keep track of various internals, e.g. count of jobs activated, count of jobs handled, etc. :::note By default, job workers will not track any metrics, and it's up to the caller to specify an implementation if they wish to make use of this feature. ::: ### Available metrics The API currently supports two metrics: the count of jobs activated, and the count of jobs handled. - **The count of jobs activated** is incremented every time a worker activates new jobs. This is done by calling `JobWorkerMetrics#jobActivated(int)`, with the first argument being the count of jobs newly activated. The method is called before the job is passed to the job handler. - **The count of jobs handled** is incremented every time a worker's `JobHandler` (passed to the builder via `JobWorkerBuilderStep2#handler(JobHandler)`) returns (regardless of whether it was successful). This is done by calling `JobWorkerMetrics#jobHandled(int)`, with the first argument being the count of jobs newly handled. For both counters, the expectation is that implementations will simply increment an underlying counter, and track the rate or increase of this counter to derive the speed at which jobs are activated/handled by a given worker. Additionally, by subtracting both counters, you can derive the count of queued or buffered jobs - jobs which have yet to be handled by the worker. This can help you tune your workers, e.g. scaling in or out, tuning the amount of jobs activated, etc. ### Usage To use job worker metrics, create a new instance of a `JobWorkerMetrics` implementation, and pass it along to the builder: ```java public final JobWorker openWorker(final CamundaClient client, final JobHandler handler) { final JobWorkerMetrics metrics = new MyCustomJobWorkerMetrics(); return client.newJobWorker() .jobType("foo") .handler(handler) .metrics(metrics) .open(); } ``` #### Micrometer implementation The Java client comes with an optional, built-in [Micrometer](https://micrometer.io/) implementation of `JobWorkerMetrics`. :::note [Micrometer](https://micrometer.io/) is a popular metrics facade in the Java ecosystem - what SLF4J is to logging. It can be configured to export metrics to many other systems, such as OpenTelemetry, Prometheus, StatsD, Datadog, etc. ::: If your project does not yet use Micrometer, you need to add it to your dependencies, and wire it up to your metrics backend, [as described in the Micrometer docs](https://micrometer.io/docs). Once Micrometer is set up in your project, you can start using the implementation. For example: ```java public final JobWorker openWorker(final CamundaClient client, final JobHandler handler) { final MeterRegistry meterRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT); final JobWorkerMetrics metrics = JobWorkerMetrics .micrometer() .withMeterRegistry(meterRegistry) .withTags(Tags.of("zeebe.client.worker.jobType", "foo", "zeebe.client.worker.name", "bee")) .build(); return client.newJobWorker() .jobType("foo") .handler(handler) .metrics(metrics) .name("bee") .open(); } ``` :::note There are currently no built-in tags, primarily because these are likely to be high cardinality, which can become an issue with some metric registries. If you want per-worker tags, create a different `JobWorkerMetrics` instance per worker. ::: This implementation creates four metrics: | Metric name | Description | Notes | | ----------------------------------- | ------------------------------------- | ------------------------------------------------------------------------- | | camunda.client.worker.job.activated | Counts the number of jobs activated | New | | camunda.client.worker.job.handled | Counts the number of jobs handled | New | | zeebe.client.worker.job.activated | Deprecated counter for jobs activated | Will be removed at 8.10. Use camunda.client.worker.job.activated instead. | | zeebe.client.worker.job.handled | Deprecated counter for jobs handled | Will be removed at 8.10. Use camunda.client.worker.job.handled instead. | :::warning Deprecated metrics The following metrics are deprecated and will be removed in version 8.10: - `zeebe.client.worker.job.activated`, replace with `camunda.client.worker.job.activated` - `zeebe.client.worker.job.handled`, replace with `camunda.client.worker.job.handled` Please update your monitoring integrations to use the new metrics before upgrading to version 8.10. ::: ### Workarounds for additional metrics The decision to track a small set of metrics directly in the client is a conscious one. The idea is we should only be tracking what is not possible for users to track themselves. If you believe a specific metric should be tracked by us, do open a feature request for it. In the meantime, here is a list of workarounds to help you track additional job worker-related metrics that you can already use: #### Job polling count You can use a gRPC [ClientInterceptor](https://grpc.github.io/grpc-java/javadoc/io/grpc/ClientInterceptor.html) or an Apache HttpClient [AsyncExecChainHandler](https://hc.apache.org/httpcomponents-client-5.3.x/current/httpclient5/apidocs/org/apache/hc/client5/http/async/AsyncExecChainHandler.html) to track any client calls, including the `ActivateJobsCommand` call that is sent every time a worker polls for more jobs. Here's an example using Micrometer APIs that integrate a gRPC [ClientInterceptor](https://javadoc.io/doc/io.micrometer/micrometer-core/1.7.2/io/micrometer/core/instrument/binder/grpc/MetricCollectingServerInterceptor.html) and Apache HttpClient [AsyncExecChainHandler](https://javadoc.io/doc/io.micrometer/micrometer-core/1.12.0/io/micrometer/core/instrument/binder/httpcomponents/hc5/ObservationExecChainHandler.html): ```java public CamundaClientBuilder configureClientMetrics(final CamundaClientBuilder builder, final MeterRegistry meterRegistry, final ObservationRegistry observationRegistry) { final ClientInterceptor monitoringInterceptor = new MetricCollectingClientInterceptor(meterRegistry); final AsyncExecChainHandler monitoringHandler = new ObservationExecChainHandler(observationRegistry); return builder.withInterceptors(monitoringInterceptor).withChainHandlers(monitoringHandler); } ``` #### Executor metrics If you wish to tune your job worker executor, you can pass a custom, instrumented executor to the client builder. For example, if we use Micrometer: ```java public CamundaClientBuilder configureClientMetrics( final CamundaClientBuilder builder, final ScheduledExecutorService executor, final MeterRegistry meterRegistry) { final ScheduledExecutorService instrumentedExecutor = ExecutorServiceMetrics.monitor(meterRegistry, executor, "job-worker-executor"); return builder.jobWorkerExecutor(instrumentedExecutor); } ``` ## Job streaming Job workers are designed to regularly poll and activate jobs. It's also possible to use them in a streaming fashion, such that jobs are automatically activated and pushed downstream to workers without requiring an extra round of polling. This greatly cuts down on overall activation latency by completely removing the poll request. ### Usage Enabling job streaming consists of toggling a single flag in the job worker builder: ```java public JobWorkerBuilderStep3 enableStreaming(final JobWorkerBuilderStep3 builder) { return builder.streamEnabled(true); } ``` This configures the job worker to open a long-living stream between itself and a gateway, through which activated jobs will be pushed. **If the stream is closed for any reason - e.g. the gateway crashed, there is a temporary network issue, etc. - it is automatically recreated.** :::note It's also possible to set an overall timeout - so called `streamTimeout` - which ensures the underlying long-living stream is refreshed once the timeout is reached. This is useful to trigger load balancing of your workers overtime, instead of having workers pinned to the same gateway. ::: #### Backfilling Even with streaming enabled, job workers still occasionally poll the cluster for jobs. Due to implementation constraints, when a job is made activate-able, it is pushed out only if there exists a stream for it; if not, it remains untouched. However, if a stream exists, then streaming is always prioritized over polling. This ensures polling will not activate any new jobs, and the worker will back off and poll less often as long as it receives empty responses overtime. #### Backpressure To avoid your workers being overloaded with too many jobs, e.g. running out of memory, the Java job worker relies on the [built-in gRPC flow control mechanism](https://grpc.io/docs/guides/flow-control/). If streaming is enabled, this means the worker will never work on more jobs than the configured `maxJobsActive` parameter. For example, if `maxJobsActive = 32`, then your worker will only work on at most 32 jobs concurrently. If this is already the case, and a 33rd job comes in, the gRPC thread will block, thus signaling the gateway to stop sending more jobs. **If streaming is enabled, back pressure applies to both pushing and polling**. You can then use `maxJobsActive` as a way to soft-bound the memory usage of your worker. For example, if your max message size is 4MB, and `maxJobsActive = 32`, then a single worker could use up to 128MB of memory in the worst case. :::note If the worker blocks longer than the job's deadline, the job will **not** be passed to the worker, but will be dropped. As it will time out on the broker side, it will be pushed again. ::: #### Proxying If you're using a reverse proxy or a load balancer between your worker and your gateway, you may need to configure additional parameters to ensure the job stream is not closed unexpectedly with an error. If you observe regular 504 timeouts, read our guide on [job streaming](../../../self-managed/components/orchestration-cluster/zeebe/zeebe-gateway/job-streaming). By default, the Java job workers have a stream timeout of one hour. You can overwrite this by calling the `streamTimeout` of the job worker builder: ```java final JobWorkerBuilderStep3 builder = ...; builder.streamTimeout(Duration.ofMinutes(30)); ``` ## Multi-tenancy You can configure a job worker to pick up jobs belonging to one or more tenants. The job worker builder provides two ways to control which tenants a worker retrieves jobs for: explicitly providing tenant IDs, or using the tenants assigned to the worker in the engine. ### Filtering by assigned tenants Use `.tenantFilter()` to control how the worker resolves tenants. It accepts a `TenantFilter` enum with two options: - `TenantFilter.PROVIDED` _(default)_: The worker retrieves jobs for the tenant IDs explicitly provided via `.tenantId()` or `.tenantIds()`. See [Filtering by provided tenant IDs](#filtering-by-provided-tenant-ids) below. - `TenantFilter.ASSIGNED`: The worker retrieves jobs for the tenants assigned to it in the engine. When this option is set, any tenant IDs configured via `.tenantId()` or `.tenantIds()` are ignored. Using `TenantFilter.ASSIGNED`: ```java client.newWorker() .jobType("myJobType") .handler(new MyJobTypeHandler()) .tenantFilter(TenantFilter.ASSIGNED) .open(); ``` ### Filtering by provided tenant IDs When using `TenantFilter.PROVIDED` (the default), you must also specify the tenant IDs the worker should retrieve jobs for. :::note The client must be authorized for **all** the provided tenants. If it is not, the job worker will not work on any jobs. ::: Opening a job worker for a single tenant: ```java client.newWorker() .jobType("myJobType") .handler(new MyJobTypeHandler()) .tenantId("myTenant") .open(); ``` Opening a job worker for multiple tenants: ```java client.newWorker() .jobType("myJobType") .handler(new MyJobTypeHandler()) .tenantIds("myTenant", "myOtherTenant") .open(); ``` ### Default tenant You can configure the default tenant(s) using environment variables or system properties. It's configured using `CAMUNDA_DEFAULT_JOB_WORKER_TENANT_IDS` or `camunda.client.worker.tenantIds` respectively. --- ## Logging(Java-client) The client uses SLF4J for logging useful notes, such as exception stack traces when a job handler fails execution. Using the SLF4J API, any SLF4J implementation can be plugged in. The following example uses Log4J 2: ## Maven dependencies ```xml org.apache.logging.log4j log4j-slf4j-impl 2.8.1 org.apache.logging.log4j log4j-core 2.8.1 ``` ## Configuration First, add a file called `log4j2.xml` to the classpath of your application. Then, add the following content: ```xml ``` This will log every log message to the console. ## MDC context Job workers include an MDC context that contains the following: - `processDefinitionKey` - `processInstanceKey` - `elementInstanceKey` - `jobKey` See [the example above](#configuration), which includes `%X` in the pattern to print the entire MDC context. --- ## Physical Tenants **Physical Tenants are strongly isolated execution units within a single Orchestration Cluster**, distinct from the [logical tenant](./job-worker.md#multi-tenancy) mechanism. This page covers how the Java client targets a Physical Tenant, and how to work with multiple Physical Tenants from a single application. For the server-side isolation model, see [Physical Tenant isolation model](/self-managed/concepts/physical-tenants/index.md). For API routing details, see [API routing for Physical Tenants](/self-managed/concepts/physical-tenants/api-routing.md). ## Physical Tenants vs. logical tenants These two mechanisms are independent and can be combined: | | Logical tenant | Physical Tenant | | ----------------------- | ----------------------------------------------- | -------------------------------------------------------------------- | | **Configured on** | Job worker or API call (`tenantId`/`tenantIds`) | The client itself (`physicalTenantId`) | | **Scope** | A subdivision within one Physical Tenant | A separate, isolated execution unit within the Orchestration Cluster | | **Isolation** | Logical only — shared engine, shared storage | Strong — separate primary/secondary storage, separate authorization | | **Targeting mechanism** | API parameter, per call or per worker | gRPC header and REST path prefix, per client instance | A Physical Tenant can have its own set of logical tenants. For example, Physical Tenant `teama` and Physical Tenant `teamb` can each have a logical tenant called `foo` — `teama`'s `foo` and `teamb`'s `foo` are completely isolated from each other. ## Target a Physical Tenant Set the Physical Tenant on the client builder: ```java CamundaClient client = CamundaClient.newClientBuilder() .physicalTenantId("teama") .build(); ``` A Physical Tenant ID must be lowercase alphanumeric and at most 64 characters — an invalid value fails application startup rather than failing at request time. The same setting is also reachable via plain client properties and environment variables, without going through the builder. The environment variable names differ depending on how you configure the client, which is an easy trap if you mix the two: - Bare Java client: `CAMUNDA_PHYSICAL_TENANT_ID` and `CAMUNDA_PREFIX_PHYSICAL_TENANT_PATH`. - [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md): `CAMUNDA_CLIENT_PHYSICALTENANTID` (see the [properties reference](/apis-tools/camunda-spring-boot-starter/properties-reference.md)). Setting `physicalTenantId` does three things: - Adds the `Camunda-Physical-Tenant` gRPC metadata header to every gRPC call. - Prefixes the REST base path with `/physical-tenants/teama` (for example, `https://your-cluster/physical-tenants/teama/v2/...`) for the per-tenant API. - Leaves the cluster-scoped REST API (`/cluster/v2/...`, for example `newStatusRequest()`) unprefixed — it's never physical-tenant-scoped, since it reports on the cluster as a whole. If your configured REST address already carries a `/physical-tenants/` segment, the client strips it again when building the cluster-scoped base. If `physicalTenantId` is not set, the client targets the **default** Physical Tenant on both protocols. ### Using a pre-prefixed REST address If your REST address already points at a tenant-specific path — for example, behind a reverse proxy that performs the routing — disable the automatic path prefix so the client does not insert the tenant segment a second time: ```java CamundaClient client = CamundaClient.newClientBuilder() .physicalTenantId("teama") .restAddress(URI.create("https://your-proxy/teama")) .prefixPhysicalTenantPath(false) .build(); ``` The client still appends the `/v2` API path to whatever address you configure, so leave it off your configured `restAddress`. `prefixPhysicalTenantPath(false)` only affects the REST base path. The gRPC header is always sent when `physicalTenantId` is set, regardless of this setting. With a blank (whitespace-only) `physicalTenantId`, the two protocols diverge in the bare client: the REST prefix is skipped, but the gRPC interceptor is still installed and sends an empty header value, since it's added whenever the configured value is non-null. The Spring Boot Starter normalizes blank to `null` before it reaches the client, so this only affects applications wiring the builder directly from their own configuration. Set the value to `null`, not an empty string, to target the default tenant. ## Targeting multiple Physical Tenants A single `CamundaClient` instance targets exactly one Physical Tenant. Multiplicity lives at the application layer, not inside the client — to interact with multiple Physical Tenants, create one client instance per tenant: ```mermaid graph LR app["Your application"] app --> clientA["CamundaClient\nphysicalTenantId: teama"] app --> clientB["CamundaClient\nphysicalTenantId: teamb"] subgraph cluster["Single orchestration cluster"] teama["Physical Tenant teama"] teamb["Physical Tenant teamb"] end clientA -->|"gRPC header +\nREST path prefix"| teama clientB -->|"gRPC header +\nREST path prefix"| teamb ``` ```java CamundaClient teamaClient = CamundaClient.newClientBuilder() .physicalTenantId("teama") .build(); CamundaClient teambClient = CamundaClient.newClientBuilder() .physicalTenantId("teamb") .build(); ``` If you're using the [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md), it manages multiple named client instances for you — see [multi-client configuration](/apis-tools/camunda-spring-boot-starter/configuration.md#multi-client-configuration-physical-tenants) — rather than constructing and managing `CamundaClient` instances directly. ## Code examples ### Create a process instance scoped to a Physical Tenant ```java teamaClient.newCreateInstanceCommand() .bpmnProcessId("order-process") .latestVersion() .send() .join(); ``` The process instance is created within Physical Tenant `teama`. No additional API parameter is needed — the client's `physicalTenantId` determines the target. ### Register a job worker ```java teamaClient.newWorker() .jobType("shipOrder") .handler(new ShipOrderHandler()) .open(); ``` This worker only polls Physical Tenant `teama` — the targeting comes from the client, on whichever protocol it uses. There's no single worker registration that spans Physical Tenants. Open the same job type on each client instance: ```java Stream.of(teamaClient, teambClient) .forEach(client -> client.newWorker() .jobType("shipOrder") .handler(new ShipOrderHandler()) .open()); ``` Each registration opens an independent polling loop against its own client's Physical Tenant. Inside the handler, call `activatedJob.getPhysicalTenantId()` to find out which Physical Tenant the job belongs to — this is populated on every `ActivatedJob`, whether the job arrived over gRPC or REST, and returns the ID of the Physical Tenant the activation request was routed to, which is the default Physical Tenant when the request did not target one: ```java public class ShipOrderHandler implements JobHandler { @Override public void handle(JobClient client, ActivatedJob job) { String physicalTenantId = job.getPhysicalTenantId(); // route or log based on physicalTenantId as needed } } ``` ### Update a variable scoped to a Physical Tenant ```java teamaClient.newSetVariablesCommand(processInstanceKey) .variables(Map.of("status", "shipped")) .send() .join(); ``` `processInstanceKey` values are only valid within the Physical Tenant that created them — using a key from `teamb` against `teamaClient` fails, since the instance doesn't exist from `teama`'s perspective. ## Best practices ### One client vs. multiple clients Use a single client (default Physical Tenant, no `physicalTenantId` set) unless your application genuinely needs to operate across more than one Physical Tenant. If it does, prefer the [Spring Boot Starter's multi-client support](/apis-tools/camunda-spring-boot-starter/configuration.md#multi-client-configuration-physical-tenants) over manually constructing and tracking `CamundaClient` instances — it centralizes lookup (`CamundaClientRegistry`) and lifecycle management for you. ### Connection pooling Each `CamundaClient` instance maintains its own gRPC channel and REST connection pool. Running multiple clients (one per Physical Tenant) means multiple independent connection pools — there's no pooling shared across clients. Size your application's resource expectations accordingly when targeting many Physical Tenants from one process. ### Error handling for unauthorized tenant access There is no dedicated exception type for Physical Tenant errors — the Java client surfaces them as its regular per-protocol exception, carrying the underlying status: - **REST:** `ProblemException` (extends `ClientHttpException`) — call `code()` for the HTTP status and `details()` for the `ProblemDetail` body. - **gRPC:** `ClientStatusException` — call `getStatus()` / `getStatusCode()`. The status code for an unrecognized Physical Tenant ID differs by protocol, which matters more than the exception type: - **REST** always returns `404 Not Found` for an unknown tenant. This comes from a pre-security filter that leaves unknown tenants to the catch-all routing chain, so it's returned regardless of whether the caller is authenticated. - **gRPC** returns `404 Not Found` only when the API is unprotected (no authentication configured). With authentication enabled, an unknown tenant instead returns `UNAUTHENTICATED`, deliberately without echoing the tenant ID — so tenant existence isn't revealed to an unauthenticated caller. If you're debugging a gRPC call that fails with `UNAUTHENTICATED`, don't assume it's a credentials problem — a typo'd or nonexistent Physical Tenant ID produces the same status on an authenticated cluster. For the full breakdown of authorization outcomes at the API level (missing/invalid credentials vs. insufficient permission), see [How to determine who can access a tenant](/self-managed/concepts/physical-tenants/authorization-model.md#how-to-determine-who-can-access-a-tenant). ### Monitoring and logging across tenants Built-in job worker metrics are tagged only by job type and action — not by client name or Physical Tenant. Running the same job type across several clients doesn't just lack a tenant dimension in these metrics: the series for each client collapse into one, since there's nothing to tell them apart by. The job worker actuator endpoint has the same gap — its response carries no client name, so a multi-client application sees indistinguishable duplicate entries for the same job type. This is usually the first place people look when a multi-tenant application's metrics don't add up. If you run multiple client instances and need to distinguish their metrics, tag your own application-level metrics using `ActivatedJob.getPhysicalTenantId()` inside job handlers, or the client/tenant identifier you already have at hand when issuing other commands. There is no built-in tracing for multi-tenant operations today — this is left entirely to the application layer. --- ## Secrets For what a `camunda.secrets.` reference is and how it's resolved, see [Secret resolution](/components/concepts/secret-resolution.md). For the request and response contract shared by these commands, see [Secrets](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-secrets.md). ## Resolve a batch of references ```java ResolveSecretsResponse response = client.newResolveSecretsCommand() .references("camunda.secrets.API_TOKEN", "camunda.secrets.db-password") .send() .join(); ``` A per-reference failure does not throw. `send()` only raises when the whole request is rejected. For example, more than 20 references in one call. Read the outcome from the response instead: ```java if (!response.isFullyResolved()) { response.getErrors().forEach(error -> log.warn("Could not resolve {}: {}", error.getReference(), error.getCode())); } Optional token = response.getValue("camunda.secrets.API_TOKEN"); ``` - `getResolved()` returns the references that resolved, each with its value. - `getErrors()` returns the references that didn't, each with a typed `SecretErrorCode` (`NOT_FOUND`, `ACCESS_DENIED`, `INVALID_REFERENCE`, `UNREADABLE`) and a server-provided message. - `isFullyResolved()` is `true` only when every requested reference resolved with no errors. - `getValue(reference)` looks up a single resolved value without scanning `getResolved()` yourself. `ResolveSecretsResponse`, `ResolvedSecret`, and `ResolutionError` all omit resolved values and error messages from their `toString()`. Logging the response itself or an object holding one never prints a secret value. Log `getReference()` and `getCode()` instead of the response object. ## List known references ```java ListSecretsResponse response = client.newListSecretsCommand().send().join(); List references = response.getReferences(); ``` `getReferences()` returns reference names only, never values, and only the references the caller holds `SECRET:READ` on. ## Physical-tenant scoping Both commands resolve and list against the secret stores of the client's own [Physical Tenant](./physical-tenants.md). Neither command takes a separate tenant parameter. ## Testing To supply cluster secrets in tests, see [cluster secrets in Camunda Process Test](/apis-tools/testing/connectors.md#cluster-secrets). --- ## Cluster management API The cluster management API lets you manage a Self-Managed Orchestration Cluster at runtime, including its topology, exporters, backups, and upgrade readiness. ## About this API The API is a set of custom endpoints available through [Spring Boot Actuator](https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints) on the management port (default `9600`). It's separate from the [Orchestration Cluster API](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). :::note The management port is typically not publicly exposed. If the machine where you run requests can't reach the gateway, create a private connection such as `kubectl port-forward svc/camunda-zeebe-gateway 9600:9600`, then use `localhost` as the gateway host. ::: ## Reference | API | Base path | | :--------------------------------------------------------------------------------------------- | :--------------------------------------------------- | | [Cluster topology management](specifications/cluster/cluster-topology-management-api.info.mdx) | `/actuator/cluster` | | [Exporters](specifications/exporters/exporters-management-api.info.mdx) | `/actuator/exporters` | | [Backups](specifications/backups/backup-management-api.info.mdx) | `/actuator/backupRuntime`, `/actuator/backupHistory` | | [Upgrade readiness](specifications/upgrade-readiness/upgrade-readiness-api.info.mdx) | `/actuator/upgradeReadiness` | For usage guidance and examples, see [management API operations](../../self-managed/components/orchestration-cluster/zeebe/operations/management-api.md). --- ## Migrate Component V1 APIs :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About This document outlines the changes required to migrate from the component REST APIs before upgrading to Camunda 8.10, where the V1 component APIs are removed. Use it if migration to the new [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) was not yet possible during your 8.8 or 8.9 upgrade. In this context, **components** refer to the standalone Camunda applications **Operate** and **Tasklist**, each exposing its own V1 REST API. :::note As of version 8.8, the V1 component APIs are deprecated. They are removed in 8.10, so complete this migration before upgrading. We strongly recommend [migrating to the Orchestration Cluster REST API](/apis-tools/migration-manuals/migrate-to-camunda-api.md) where possible. ::: ## Migrate V1 APIs With Camunda 8.8, permissions for resource access have been reworked. For the V1 APIs, this means that access to endpoints now depends on specific read and write permissions for related resources. To continue using the V1 APIs, users and clients must be assigned the appropriate permissions under [the new authorization model](/components/concepts/access-control/authorizations.md). Users now require wildcard (`*`) permissions for the resource type and permission type being accessed. :::info For guidance on assigning permissions in Admin, see the [Admin authorization guide](../../components/admin/authorization.md). ::: ### Mapping Operate permissions to new authorizations To maintain the same access level for the Operate V1 API, apply the following authorizations: **`operate-api:read`** is replaced by: - `PROCESS_DEFINITION:*:READ_PROCESS_DEFINITION,READ_PROCESSINSTANCE` - `DECISION_DEFINITION:*:READ_DECISION_DEFINITION` - `DECISION_REQUIREMENTS_DEFINITION:*:READ` **`operate-api:write`** is replaced by: - `PROCESS_DEFINITION:*:DELETE_PROCESS_INSTANCES` ### Operate V1 API permission matrix To enable more fine-grained access control, the matrix below details the required permissions for each Operate V1 API endpoint. Ensure the user has general access (resource ID `*`) for each listed resource and permission type. | Endpoint | Resource Type | Permission type | | ----------------------------------------------- | -------------------------------- | ------------------------ | | `POST /v1/process-definitions/search` | PROCESS_DEFINITION | READ_PROCESS_DEFINITION | | `GET /v1/process-definitions/:key` | PROCESS_DEFINITION | READ_PROCESS_DEFINITION | | `GET v1/process-definitions/:key/xml` | PROCESS_DEFINITION | READ_PROCESS_DEFINITION | | `POST /v1/decision-definitions/search` | DECISION_DEFINITION | READ_DECISION_DEFINITION | | `GET /v1/decision-definitions/:key` | DECISION_DEFINITION | READ_DECISION_DEFINITION | | `POST /v1/decision-instances/search` | DECISION_DEFINITION | READ_DECISION_INSTANCE | | `GET /v1/decision-instances/:id` | DECISION_DEFINITION | READ_DECISION_INSTANCE | | `POST /v1/flownode-instances/search` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/flownode-instances/:key` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `POST /v1/variables/search` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/variables/:key` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `POST /v1/process-instances/search` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/process-instances/:key` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/process-instances/:key/statistics` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/process-instances/:key/sequence-flows` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `DEL /v1/process-instances/:key` | PROCESS_DEFINITION | DELETE_PROCESS_INSTANCE | | `POST /v1/drd/search` | DECISION_REQUIREMENTS_DEFINITION | READ | | `GET /v1/drd/:key` | DECISION_REQUIREMENTS_DEFINITION | READ | | `GET /v1/drd/:key/xml` | DECISION_REQUIREMENTS_DEFINITION | READ | | `POST /v1/incidents/search` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | | `GET /v1/incidents/:key` | PROCESS_DEFINITION | READ_PROCESS_INSTANCE | ### Mapping Tasklist permissions to new authorizations To maintain the same access level for the Tasklist V1 API, apply the following authorizations: **`tasklist-api:read`** is replaced by: - `PROCESS_DEFINITION:*:READ_PROCESS_DEFINITION,READ_USER_TASK` **`taslist-api:write`** is replaced by: - `PROCESS_DEFINITION:*:UPDATE_USER_TASK` ### Tasklist V1 API permission matrix To enable more fine-grained access control, the matrix below details the required permissions for each Tasklist V1 API endpoint. Ensure the user has general access (resource ID `*`) for each listed resource and permission type. | Endpoint | Resource Type | Permission type | | ----------------------------------------- | ------------------ | ---------------- | | `GET /v1/forms/:formId` | PROCESS_DEFINITION | READ_USER_TASK | | `POST /v1/tasks/search` | PROCESS_DEFINITION | READ_USER_TASK | | `GET /v1/tasks/:taskId` | PROCESS_DEFINITION | READ_USER_TASK | | `PATCH /v1/tasks/:taskId/assign` | PROCESS_DEFINITION | UPDATE_USER_TASK | | `PATCH /v1/tasks/:taskId/unassign` | PROCESS_DEFINITION | UPDATE_USER_TASK | | `PATCH /v1/tasks/:taskId/complete` | PROCESS_DEFINITION | UPDATE_USER_TASK | | `POST /v1/tasks/:taskId/variables` | PROCESS_DEFINTION | UPDATE_USER_TASK | | `POST /v1/tasks/:taskId/variables/search` | PROCESS_DEFINITION | READ_USER_TASK | | `GET /v1/variables/:variableId` | PROCESS_DEFINITION | READ_USER_TASK | --- ## Migrate from gRPC to the Orchestration Cluster API :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About This guide provides an overview of the process for migrating to the Orchestration Cluster REST API. The [Orchestration Cluster API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) is the official REST API for connecting to Orchestration Cluster, automating processes, and implementing job workers. ## Camunda Java Client In version 8.8.0, the [Camunda Java Client](/apis-tools/java-client/getting-started.md) changes to use the Orchestration Cluster API as a default cluster communication method. :::info Refer to the [Camunda Java Client migration guide](migrate-to-camunda-java-client.md#protocol-and-connection-rest-vs-grpc-selection) for details on how you can continue using gRPC. ::: ## gRPC vs REST mapping reference The following table provides a mapping reference between gRPC methods and their equivalent REST API endpoints in the Orchestration Cluster API. :::info For detailed information on each REST endpoint, see [Orchestration Cluster API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). ::: | gRPC Method Name (Gateway.proto) | Orchestration Cluster REST API Endpoint | Notes | | --------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------ | | `ActivateJobs` | `POST /v2/jobs/activation` | Batch job activation via long polling (streaming not available in REST). | | `BroadcastSignal` | `POST /v2/signals/broadcast` | Triggers signal events. | | `CancelProcessInstance` | `POST /v2/process-instances/{processInstanceKey}/cancellation` | Cancels a process instance. | | `CompleteJob` | `POST /v2/jobs/{jobKey}/completion` | Completes a job. | | `CreateProcessInstance` | `POST /v2/process-instances` | Starts a new process instance. | | `CreateProcessInstanceWithResult` | `POST /v2/process-instances?awaitCompletion=true` | Starts a process instance, waits for completion. | | `DeleteResource` | `POST /v2/resources/{resourceKey}/deletion` | Deletes a resource. | | `DeployResource` | `POST /v2/deployments` | Deploys BPMN, DMN, or form resources (multipart upload). | | `EvaluateDecision` | `POST /v2/decisions/evaluation` | Evaluates a DMN decision by key or id. | | `FailJob` | `POST /v2/jobs/{jobKey}/failure` | Marks a job as failed. | | `MigrateProcessInstance` | `POST /v2/process-instances/{processInstanceKey}/migration` | Migrates a process instance (phase 1 only). | | `ModifyProcessInstance` | `POST /v2/process-instances/{processInstanceKey}/modification` | Modifies a running process instance. | | `PublishMessage` | `POST /v2/messages/publication` | Publishes a message asynchronously. | | `ResolveIncident` | `POST /v2/incidents/{incidentKey}/resolution` | Resolves an incident. | | `SetVariables` | `PUT /v2/element-instances/{elementInstanceKey}/variables` | Sets variables (local/global by param). | | `ThrowError` | `POST /v2/jobs/{jobKey}/error` | Throws BPMN error from worker to engine. | | `Topology` | `GET /v2/topology` | Returns cluster info. | | `UpdateJobRetries` | `PATCH /v2/jobs/{jobKey}` | Updates job retries, PATCH can update multiple job properties. | | `UpdateJobTimeout` | `PATCH /v2/jobs/{jobKey}` | Updates job timeout, PATCH can update multiple job properties. | --- ## Migrate from Web Modeler to the Camunda Hub API :::warning Deprecation notice Web Modeler API v1 is deprecated in Camunda 8.10 and will be removed in 8.12. Migrate to [Camunda Hub API v2](/apis-tools/hub-api-saas/overview.md) before upgrading to 8.12. ::: ## About this migration Web Modeler API v1 is the REST API for Web Modeler, a standalone product for modeling and managing process diagrams. It exposes resources like projects, folders, files, and collaborators as they exist within Web Modeler. [Camunda Hub API v2](/apis-tools/hub-api-saas/overview.md) is the successor API for the broader Camunda Hub platform. Camunda Hub unifies organizational management, workspace governance, and process modeling into a single platform. As a result, the conceptual model and architecture of the API have changed. :::tip Camunda Hub API v2 adopts the [Orchestration Cluster API v2](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) conventions. If you're already familiar with the Orchestration Cluster API v2, you will recognize patterns such as the offset-based pagination model, explicit filter operators, and flat response structures used throughout Camunda Hub API v2. ::: Before migrating, familiarize yourself with the structural and terminology changes introduced in Camunda 8.10. ## Structure and terminology Camunda 8.10 changes how resources are organized. Before Camunda 8.10, Web Modeler resources were organized like this: ``` Organization ├─ Project │ ├─ Process application │ │ ├─ File │ │ └─ Folder │ │ └─ File │ ├─ Folder │ │ └─ File │ └─ File └─ Project ``` Organizations had projects. Projects optionally contained process applications, folders, and files. Starting with Camunda 8.10, Camunda Hub resources are organized like this: ``` Organization └─ Workspace ├─ Project │ ├─ Folder │ │ ├─ File │ │ └─ Folder │ └─ File └─ Project ``` Organizations have workspaces. Workspaces contain projects. Projects optionally contain folders and files. The new structure introduces the following terminology changes: | Web Modeler (\<8.10) | Camunda Hub (8.10+) | Notes | | :------------------- | :------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Project | Workspace | Files and folders can no longer be created at the workspace level. | | Process application | Project | Process applications weren't explicitly exposed in Web Modeler API v1. In Camunda Hub API v2, there is a dedicated [project API](/apis-tools/hub-api-saas/specifications/create-project.api.mdx). | In Camunda Hub API v2, the endpoint paths, field names, and underlying data all reflect the structural and terminology changes. In Web Modeler API v1 running on Camunda 8.10+, only the underlying data reflects the new organization. The sections below identify all affected endpoints and fields. ## Deprecation timeline | Version | Action | | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **8.10** | Camunda Hub API v2 ships alongside Web Modeler API v1. Web Modeler API v1 is documented as **deprecated**, and its OpenAPI spec is marked `deprecated: true`. | | **8.11** | Web Modeler API v1 remains available but isn't extended. No new features are added to deprecated endpoints. | | **8.12** | Web Modeler API v1 endpoints are removed. Applications still using v1 receive `404`. | ## General changes The following sections cover changes that apply across the entire API, regardless of which resource you're working with. Review these before making any endpoint-specific changes. ### Base URLs The base URL has changed for both SaaS and Self-Managed deployments. Update any hardcoded URLs or environment variables in your integration. | Environment | Web Modeler API v1 | Camunda Hub API v2 | | ------------ | ----------------------------------------- | ------------------------------- | | SaaS | `https://modeler.cloud.camunda.io/api/v1` | `https://hub.camunda.io/api/v2` | | Self-Managed | `http://localhost:8070/api/v1` | `http://localhost:8088/api/v2` | In Camunda 8 Self-Managed, the URLs depend on your configuration. The URLs and ports provided in this table are examples based on a [no-domain Helm deployment to a local kind cluster](/self-managed/deployment/helm/cloud-providers/kind.md#no-domain-mode-deployment). ### Authentication See the Camunda Hub API authentication guide for [SaaS](/apis-tools/hub-api-saas/authentication.md) or [Self-Managed](/apis-tools/hub-api-sm/authentication.md) for setup instructions. ### Pagination Offset pagination in Camunda Hub API v2 is different from Web Modeler API v1. In Web Modeler API v1, you use two fields to paginate items: - `page` specifies the page to return, starting with page 0. - `size` specifies the number of items per page. For example: ```json title="Web Modeler API v1" { "page": 3, "size": 20 } ``` This request skips the first three _pages_ of 20 items (pages 0–2 and item indexes 0–59, inclusive) and returns the fourth page of 20 items (indexes 60–79). If there aren't enough items to fill the fourth page, you receive all remaining items. The response includes two fields, `items` and `total`: ```json title="Web Modeler API v1" { "items": [ ... ], "total": 141 } ``` In Camunda Hub API v2, you use a `page` object with two fields: - `page.from` specifies the offset, the item index to start from, starting with index 0. - `page.limit` limits the number of items returned. For example: ```json title="Camunda Hub API v2" { "page": { "from": 60, "limit": 20 } } ``` Instead of specifying the number of pages to skip, you specify the index to start _from_ (60) and the maximum number, or _limit_, of items to return (20). This request returns the items at indexes 60–79. As in v1, if there are fewer items than the limit, you receive all remaining items. The new response replaces `total` with a new `page` object that includes two fields, `totalItems` and `hasMoreTotalItems`: ```json title="Camunda Hub API v2" { "items": [ ... ], "page": { "totalItems": 360, "hasMoreTotalItems": false } } ``` In addition to the different pagination model, the default page size has changed. In v1, the default page size is 10. In v2, the default limit is 100. ### Date filters Web Modeler API v1 supports a custom date precision syntax that encodes a comparison operator, timestamp, and truncation unit into a single string. Camunda Hub API v2 uses explicit operators instead. You compute period boundaries yourself. The following examples show equivalent date filters in Web Modeler API v1 and Camunda Hub API v2: | Web Modeler API v1 | Camunda Hub API v2 | Explanation | | ------------------------------ | ------------------------------------------------------------------------ | ------------------------------------ | | `2023-09-20T00:00:00Z\|\|/y` | `{ "$gte": "2023-01-01T00:00:00Z", "$lte": "2023-12-31T23:59:59.999Z" }` | Within year 2023 | | `2023-09-20T00:00:00Z\|\|/M` | `{ "$gte": "2023-09-01T00:00:00Z", "$lte": "2023-09-30T23:59:59.999Z" }` | Within September 2023 | | `>=2023-09-20T00:00:00Z\|\|/y` | `{ "$gte": "2023-01-01T00:00:00Z" }` | On or after start of 2023 | | `<2023-09-20T00:00:00Z\|\|/M` | `{ "$lt": "2023-09-01T00:00:00Z" }` | Before September 2023 | | `2023-09-20T11:31:20Z` | `{ "$eq": "2023-09-20T11:31:20Z" }` | Exact match | | `>=2023-09-20T11:31:20Z` | `{ "$gte": "2023-09-20T11:31:20Z" }` | On or after a specific date and time | The following date filter operators are available in Camunda Hub API v2: | Operator | Description | | -------- | --------------------------- | | `$eq` | Equals (same as v1 default) | | `$gt` | Greater than | | `$gte` | Greater than or equal to | | `$lt` | Less than | | `$lte` | Less than or equal to | ### Search filters Web Modeler API v1 uses equality-only filters, except for dates: ```json title="Web Modeler API v1" { "filter": { "name": "my-process", "type": "bpmn" } } ``` You can still use simple equality filters in Camunda Hub API v2, and you can also use more advanced explicit filter operators: ```json title="Camunda Hub API v2" { "filter": { "name": { "$eq": "my-process" }, "type": { "$in": ["bpmn"] } } } ``` The following advanced filter operators are available in Camunda Hub API v2: | Operator | Description | Example | | ---------------- | --------------------------------------- | --------------------------------------------------------------------------- | | `$eq` | Equals (same as v1 default) | `{ "name": { "$eq": "my-process" } }` | | `$neq` | Not equals | `{ "type": { "$neq": "dmn" } }` | | `$gt` / `$gte` | Greater than / greater than or equal to | `{ "created": { "$gte": "2024-01-01T00:00:00Z" } }` | | `$lt` / `$lte` | Less than / less than or equal to | `{ "created": { "$lt": "2024-06-01T00:00:00Z" } }` | | `$like` | Pattern match (SQL LIKE) | `{ "name": { "$like": "%order%" } }` | | `$in` / `$notIn` | In / not in list | `{ "type": { "$in": ["bpmn", "form"] } }` | | `$exists` | Null check | `{ "folderKey": { "$exists": false } }` | | `$or` | Logical OR | `{ "$or": [{ "type": { "$eq": "bpmn" } }, { "type": { "$eq": "form" } }] }` | ## Dropped endpoints The following v1 endpoints have no v2 equivalent: | Web Modeler API v1 | Notes | | ------------------------------------------------------ | ---------------------------------------------------------------------------------------- | | `POST /v1/milestones` | Milestones were deprecated in Camunda 8.7. Use the [Versions API](#version-api) instead. | | `GET /v1/milestones/{milestoneId}` | Use the [Versions API](#version-api) instead. | | `PATCH /v1/milestones/{milestoneId}` | Use the [Versions API](#version-api) instead. | | `DELETE /v1/milestones/{milestoneId}` | Use the [Versions API](#version-api) instead. | | `GET /v1/versions/compare/{version1Id}...{version2Id}` | See [Compare two versions](#compare-two-versions). | ## File API The following sections cover changes that apply to file API endpoints. ### Endpoint mapping All file API endpoints have a Camunda Hub API v2 equivalent: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | ------------- | --------------------------- | ---------------------------- | | Create a file | `POST /v1/files` | `POST /v2/files` | | Get a file | `GET /v1/files/{fileId}` | `GET /v2/files/{fileKey}` | | Update a file | `PATCH /v1/files/{fileId}` | `PATCH /v2/files/{fileKey}` | | Delete a file | `DELETE /v1/files/{fileId}` | `DELETE /v2/files/{fileKey}` | | Search files | `POST /v1/files/search` | `POST /v2/files/search` | ### Field mapping {#file-api-field-mapping} The following fields have changed across all file endpoints: | Web Modeler API v1 | Camunda Hub API v2 | Application | Notes | | ------------------ | ------------------ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `fileType` | `type` | Request/response | Renamed. `element_template` is now `element-template`. File creation no longer supports `connector_template`. Existing connector template files are reported as `element-template`. | | `folderId` | `folderKey` | Request/response | Renamed. If the file isn't in a folder, v1 endpoints return the project ID (["process application" before Camunda 8.10](#structure-and-terminology)), and v2 endpoints return `null`. | | `projectId` | `projectKey` | Request/response | In v1, `projectId` refers to the ID of the "workspace" ([called the "project" before Camunda 8.10](#structure-and-terminology)). In v2, `projectKey` refers to the key of the "project". The concept of a "project" was [called a "process application" before Camunda 8.10](#structure-and-terminology), but process application data is not explicitly exposed in v1. | | - | `content` | Response | In v1, `content` is returned as a separate top-level field alongside `metadata`. In v2, it's included in the flat file object. | | `id` | `fileKey` | Response | Renamed | | `canonicalPath` | `canonicalPath` | Response | In v1, `canonicalPath` is a list of objects. In v2, it's a [string](#canonical-path). | ### Canonical path In Web Modeler API v1, `canonicalPath` is an array of objects containing an `id` and a `name` for each path element in the file's unique path: ```json title="Web Modeler API v1" { "canonicalPath": [ { "id": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "name": "Process application" }, { "id": "b06c97f5-7e39-4108-b947-2848fdc023f0", "name": "Parent folder" }, { "id": "62132025-57ff-4077-8c80-fc4ebe84aebe", "name": "Child folder" } ] } ``` In Camunda Hub API v2, `canonicalPath` expresses the file's unique path as a `/`-delimited string. Unlike Web Modeler API v1, which includes `projects` ([called `process applications` before Camunda 8.10](#structure-and-terminology)), Camunda Hub API v2 only includes folder keys. The project is given in a separate field, called `projectKey`: ```json title="Camunda Hub API v2" { "projectKey": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "canonicalPath": "b06c97f5-7e39-4108-b947-2848fdc023f0/62132025-57ff-4077-8c80-fc4ebe84aebe" } ``` ### Get a file The v1 response returns a nested structure, with `metadata` and `content` as separate top-level fields: ```json title="Web Modeler API v1" { "metadata": { "id": "57f4635b-5452-44a5-9020-bfce455484ab", "name": "process", "projectId": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "folderId": "62132025-57ff-4077-8c80-fc4ebe84aebe", "simplePath": "Process application/Parent folder/Child folder/process.bpmn", "canonicalPath": [ { "id": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "name": "Process application" }, { "id": "b06c97f5-7e39-4108-b947-2848fdc023f0", "name": "Parent folder" }, { "id": "62132025-57ff-4077-8c80-fc4ebe84aebe", "name": "Child folder" } ], "revision": 5, "type": "BPMN", "created": "2026-07-08T09:59:34.262858Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-07-08T10:05:09.045782Z", "updatedBy": { "name": "...", "email": "..." } }, "content": "..." } ``` The v2 response is a flat object: ```json title="Camunda Hub API v2" { "fileKey": "57f4635b-5452-44a5-9020-bfce455484ab", "name": "process", "projectKey": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "folderKey": "62132025-57ff-4077-8c80-fc4ebe84aebe", "simplePath": "Parent folder/Child folder/process.bpmn", "canonicalPath": "b06c97f5-7e39-4108-b947-2848fdc023f0/62132025-57ff-4077-8c80-fc4ebe84aebe", "revision": 5, "type": "bpmn", "content": "...", "created": "2026-07-08T09:59:34.262858Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-07-08T10:05:09.045782Z", "updatedBy": { "name": "...", "email": "..." } } ``` ### Update a file A `revision` is now required to prevent overwriting concurrent changes. Fetch the current revision from a get or create response, and include it in your update request: ```json title="Camunda Hub API v2" { "name": "process", "projectKey": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "folderKey": "62132025-57ff-4077-8c80-fc4ebe84aebe", // highlight-next-line "revision": 5, "content": "..." } ``` ### Search files In addition to the [general field changes](#file-api-field-mapping), the following request fields have changed: | Web Modeler API v1 | Camunda Hub API v2 | Notes | | ------------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------- | | `filter` | `filter` | Now uses [advanced operators](#search-filters), including `$eq`, `$in`, and `$like` | | `filter.folderId` | `filter.folderKey` | Renamed | | `filter.createdBy.email` | `filter.createdBy` | In v1, `createdBy` is an object. In v2, it's a string representing the creator's email address. | | `filter.updatedBy.email` | `filter.updatedBy` | In v1, `updatedBy` is an object. In v2, it's a string representing the updater's email address. | | `sort.direction` | `sort.order` | Renamed | | `filter.projectId` | - | Removed. You can no longer filter files by workspace (["project" before Camunda 8.10](#structure-and-terminology)). | `content` is `null` on all items in the search response. Fetch individual files to retrieve content. The following example shows a v1 request: ```json title="Web Modeler API v1" { "filter": { "folderId": "16b0beb0-e6c0-494b-9953-c3ff461975f7", "createdBy": { "email": "jane.doe@email.com" } }, "sort": { "field": "name", "direction": "DESC" } } ``` The equivalent v2 request: ```json title="Camunda Hub API v2" { "filter": { "folderKey": { "$eq": "16b0beb0-e6c0-494b-9953-c3ff461975f7" }, "createdBy": "jane.doe@email.com" }, "sort": { "field": "name", "order": "DESC" } } ``` ## Folder API The following sections cover changes that apply to folder API endpoints. ### Endpoint mapping All folder API endpoints have a Camunda Hub API v2 equivalent: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | --------------- | ------------------------------- | -------------------------------- | | Create a folder | `POST /v1/folders` | `POST /v2/folders` | | Get a folder | `GET /v1/folders/{folderId}` | `GET /v2/folders/{folderKey}` | | Update a folder | `PATCH /v1/folders/{folderId}` | `PATCH /v2/folders/{folderKey}` | | Delete a folder | `DELETE /v1/folders/{folderId}` | `DELETE /v2/folders/{folderKey}` | ### Field mapping {#folder-api-field-mapping} The following fields have changed across all folder endpoints: | Web Modeler API v1 | Camunda Hub API v2 | Application | Notes | | ------------------ | ------------------ | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `parentId` | `parentFolderKey` | Request/response | Renamed. If the folder is at the root of a project (["process application" before Camunda 8.10](#structure-and-terminology)), v1 endpoints return the project ID, and v2 endpoints return `null`. | | `projectId` | `projectKey` | Request/response | In v1, `projectId` refers to the ID of the workspace ([called "project" before Camunda 8.10](#structure-and-terminology)). In v2, the workspace key is no longer available. Instead, `projectKey` refers to the key of the project ([called "process application" before Camunda 8.10](#structure-and-terminology)). | | `id` | `folderKey` | Response | Renamed | ### Get a folder In Web Modeler API v1, folder data in the response is nested under a `metadata` key: ```json title="Web Modeler API v1" { "metadata": { "id": "b06c97f5-7e39-4108-b947-2848fdc023f0", "name": "Parent folder", "projectId": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "parentId": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "created": "2026-07-08T09:59:30.719344Z", "updated": "2026-07-08T10:04:56.47393Z", "createdBy": { "name": "...", "email": "..." }, "updatedBy": { "name": "...", "email": "..." } }, "content": { "folders": [], "files": [] } } ``` In Camunda Hub API v2, folder data is nested under a `folder` key: ```json title="Camunda Hub API v2" { "folder": { "folderKey": "b06c97f5-7e39-4108-b947-2848fdc023f0", "name": "Parent folder", "projectKey": "1abf0198-3462-4fd2-a0e9-362f213d81d0", "parentFolderKey": null, "created": "2026-07-08T09:59:30.719344Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-07-08T10:04:56.47393Z", "updatedBy": { "name": "...", "email": "..." } }, "content": { "folders": [], "files": [] } } ``` ## Workspace API In Web Modeler API v1, you manage workspaces ([called "projects" before Camunda 8.10](#structure-and-terminology)) with the `projects` resource. In Camunda Hub API v2, you manage them with the `workspaces` resource. The UUID values are the same. The concept, field names, and API paths have changed. ### Endpoint mapping All workspace API endpoints have a Camunda Hub API v2 equivalent: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | ------------------ | --------------------------------- | -------------------------------------- | | Create a workspace | `POST /v1/projects` | `POST /v2/workspaces` | | Get a workspace | `GET /v1/projects/{projectId}` | `GET /v2/workspaces/{workspaceKey}` | | Update a workspace | `PATCH /v1/projects/{projectId}` | `PATCH /v2/workspaces/{workspaceKey}` | | Delete a workspace | `DELETE /v1/projects/{projectId}` | `DELETE /v2/workspaces/{workspaceKey}` | | Search workspaces | `POST /v1/projects/search` | `POST /v2/workspaces/search` | ### Field mapping {#workspace-api-field-mapping} The following fields have changed across all workspace endpoints: | Web Modeler API v1 | Camunda Hub API v2 | Application | Notes | | ------------------ | ------------------ | ----------- | -------- | | `id` | `workspaceKey` | Response | Renamed. | ### Get a workspace In Web Modeler API v1, workspace data in the response is nested under a `metadata` key with `folders` and `files` in the `content`: ```json title="Web Modeler API v1" { "metadata": { "id": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "name": "Orders", "created": "2026-07-08T07:58:57.601559Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-07-08T07:59:13.386407Z", "updatedBy": { "name": "...", "email": "..." } }, "content": { "folders": [ ... ], "files": [ ... ] } } ``` In Camunda Hub API v2, workspace data is nested under a `workspace` key with `projects` in the `content`: ```json title="Camunda Hub API v2" { "workspace": { "workspaceKey": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "name": "Orders", "description": null, "created": "2026-07-08T07:58:57.601559Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-07-08T07:59:13.386407Z", "updatedBy": { "name": "...", "email": "..." } }, "content": { "projects": [ ... ] } } ``` ### Search workspaces In addition to the [general field changes](#workspace-api-field-mapping), the following request fields have changed: | Web Modeler API v1 | Camunda Hub API v2 | Notes | | ------------------------ | ------------------ | ----------------------------------------------------------------------------------------------- | | `filter` | `filter` | Now uses [advanced operators](#search-filters), including `$eq`, `$in`, and `$like` | | `filter.id` | - | Removed | | `filter.description` | - | Removed | | `filter.createdBy.email` | `filter.createdBy` | In v1, `createdBy` is an object. In v2, it's a string representing the creator's email address. | | `filter.updatedBy.email` | `filter.updatedBy` | In v1, `updatedBy` is an object. In v2, it's a string representing the updater's email address. | | `sort.direction` | `sort.order` | Renamed | The following example shows a v1 request: ```json title="Web Modeler API v1" { "filter": { "createdBy": { "email": "jane.doe@email.com" } }, "sort": { "field": "name", "direction": "DESC" } } ``` The equivalent v2 request: ```json title="Camunda Hub API v2" { "filter": { "createdBy": "jane.doe@email.com" }, "sort": { "field": "name", "order": "DESC" } } ``` ## Member API In Camunda Hub API v2, the collaborators API has been renamed to `members`. The following sections cover changes that apply to the member API endpoints. ### Endpoint mapping All member API endpoints have a Camunda Hub API v2 equivalent: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | --------------------- | ------------------------------------------------------- | ------------------------------------------------------ | | Add a collaborator | `PUT /v1/collaborators` | `POST /v2/workspaces/{workspaceKey}/members` | | Remove a collaborator | `DELETE /v1/projects/{projectId}/collaborators/{email}` | `DELETE /v2/workspaces/{workspaceKey}/members/{email}` | | Search collaborators | `POST /v1/collaborators/search` | `POST /v2/members/search` | ### Field mapping {#member-api-field-mapping} The following fields have changed across all member endpoints: | Web Modeler API v1 | Camunda Hub API v2 | Application | Notes | | ------------------ | ------------------ | ---------------- | -------- | | `projectId` | `workspaceKey` | Request/response | Renamed. | ### Add a member In Web Modeler API v1, the method is `PUT`, and the `projectId` is in the request body: ```bash title="Web Modeler API v1" PUT /api/v1/collaborators { "email": "jane.doe@email.com", "projectId": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "role": "viewer" } ``` In Camunda Hub API v2, the method is `POST`, and the workspace key is in the path: ```bash title="Camunda Hub API v2" POST /api/v2/workspaces/b9b57035-fbce-4412-a7d5-9f0df61ed74d/members { "email": "jane.doe@email.com", "role": "viewer" } ``` ### Search members In addition to the [general field changes](#member-api-field-mapping), the following request fields have changed: | Web Modeler API v1 | Camunda Hub API v2 | Notes | | ------------------ | --------------------- | ----------------------------------------------------------------------------------------------- | | `filter` | `filter` | Now uses [advanced operators](#search-filters), including `$eq`, `$in`, and `$like` | | `filter.projectId` | `filter.workspaceKey` | Renamed. In v2, `filter.workspaceKey` is required. Members can't be searched across workspaces. | | `sort.direction` | `sort.order` | Renamed | The following example shows a v1 request: ```json title="Web Modeler API v1" { "filter": { "projectId": "b9b57035-fbce-4412-a7d5-9f0df61ed74d", "role": "project_admin" }, "sort": { "field": "name", "direction": "DESC" } } ``` The equivalent v2 request: ```json title="Camunda Hub API v2" { "filter": { "workspaceKey": { "$eq": "b9b57035-fbce-4412-a7d5-9f0df61ed74d" }, "role": { "$eq": "workspace_admin" } }, "sort": { "field": "name", "order": "DESC" } } ``` ### Role enum | Web Modeler API v1 | Camunda Hub API v2 | Notes | | ------------------ | ------------------ | -------------------------------------- | | `project_admin` | `workspace_admin` | Renamed to match workspace terminology | | `editor` | `editor` | Unchanged | | `commenter` | `commenter` | Unchanged | | `viewer` | `viewer` | Unchanged | ## Version API The following sections cover changes that apply to version API endpoints. ### Endpoint mapping All version API endpoints have a Camunda Hub API v2 equivalent, except the compare versions endpoint: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | -------------------- | ------------------------------------------------------ | -------------------------------------------- | | Create a version | `POST /v1/versions` | `POST /v2/versions` | | Get a version | `GET /v1/versions/{versionId}` | `GET /v2/versions/{versionKey}` | | Update a version | `PATCH /v1/versions/{versionId}` | `PATCH /v2/versions/{versionKey}` | | Delete a version | `DELETE /v1/versions/{versionId}` | `DELETE /v2/versions/{versionKey}` | | Search versions | `POST /v1/versions/search` | `POST /v2/versions/search` | | Restore a version | `POST /v1/versions/{versionId}/restore` | `POST /v2/versions/{versionKey}/restoration` | | Compare two versions | `GET /v1/versions/compare/{version1Id}...{version2Id}` | [Does not exist](#compare-two-versions) | ### Field mapping {#version-api-field-mapping} The following fields have changed across all version endpoints: | Web Modeler API v1 | Camunda Hub API v2 | Application | Notes | | ------------------ | ------------------ | ---------------- | ------- | | `fileId` | `fileKey` | Request/response | Renamed | | `id`/`versionId` | `versionKey` | Response | Renamed | ### Get a version In Web Modeler API v1, version data in the response is nested under a `metadata` key: ```json title="Web Modeler API v1" { "metadata": { "id": "c3e3a091-513e-4911-94d0-32aca88c80b9", "name": "V2", "description": "...", "fileId": "0ade583b-4022-47b5-8982-93ddd849ee6b", "created": "2026-06-09T16:50:37.186742Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-06-09T16:50:58.356172Z", "updatedBy": { "name": "...", "email": "..." }, "organizationPublic": false }, "content": "..." } ``` In Camunda Hub API v2, version data is at the top level of the response body: ```json title="Camunda Hub API v2" { "versionKey": "c3e3a091-513e-4911-94d0-32aca88c80b9", "name": "V2", "description": "...", "fileKey": "0ade583b-4022-47b5-8982-93ddd849ee6b", "organizationPublic": false, "created": "2026-06-09T16:50:37.186742Z", "createdBy": { "name": "...", "email": "..." }, "updated": "2026-06-09T16:50:58.356172Z", "updatedBy": { "name": "...", "email": "..." }, "content": "..." } ``` ### Search versions In addition to the [general field changes](#version-api-field-mapping), the following request fields have changed: | Web Modeler API v1 | Camunda Hub API v2 | Notes | | ------------------ | ------------------ | -------------------------------------------------------------------------------------- | | `filter` | `filter` | Now uses [advanced operators](#search-filters), including `$eq`, `$in`, and `$like` | | `filter.fileId` | `filter.fileKey` | Renamed. In v2, `filter.fileKey` is required. Versions can't be searched across files. | | `sort.direction` | `sort.order` | Renamed | The following example shows a v1 request: ```json title="Web Modeler API v1" { "filter": { "fileId": "0ade583b-4022-47b5-8982-93ddd849ee6b" }, "sort": { "field": "name", "direction": "DESC" } } ``` The equivalent v2 request: ```json title="Camunda Hub API v2" { "filter": { "fileKey": { "$eq": "0ade583b-4022-47b5-8982-93ddd849ee6b" } }, "sort": { "field": "name", "order": "DESC" } } ``` ### Restore a version In Web Modeler API v1, the endpoint path uses `/restore`, and you pass the `versionId` in both the path and the request body: ```bash title="Web Modeler API v1" POST /api/v1/versions/{versionId}/restore { "versionId": {versionId} } ``` In Camunda Hub API v2, the endpoint path uses `/restoration`, and you identify the version using the path parameter: ```bash title="Camunda Hub API v2" POST /api/v2/versions/{versionKey}/restoration (no body) ``` For element template files, include a `version` integer in the request body to set the target version number in the restored content: ```bash title="Camunda Hub API v2" POST /api/v2/versions/{versionKey}/restoration { "version": 2 } ``` ### Compare two versions The compare versions endpoint `GET /versions/compare/{version1Id}...{version2Id}` no longer exists in Camunda Hub API v2. In Web Modeler API v1, the compare versions endpoint returns a link to a visual comparison between two versions, with `version1Id` as the baseline and `version2Id` as the version being compared. Instead of making an API request for this link, you can construct it yourself: 1. Get the file and version keys from the search or get version API. 2. Insert the keys into one of the following URL patterns, and open the URL in your browser: | Resource type | Template URL | | :--------------- | :------------------------------------------------------------------------------- | | BPMN | `{baseURL}/diagrams/{fileKey}/versions/{versionKey1}...{versionKey2}` | | Element template | `{baseURL}/connector-templates/{fileKey}/versions/{versionKey1}...{versionKey2}` | | Form | `{baseURL}/forms/{fileKey}/versions/{versionKey1}...{versionKey2}` | | RPA | `{baseURL}/rpa-scripts/{fileKey}/versions/{versionKey1}...{versionKey2}` | Replace `{baseURL}` with the Camunda Hub base URL. The version keys must be for the same file. For example: ```bash https://hub.camunda.io/diagrams/98634f96-52e9-4c00-8702-893a12803771/versions/2b6fd548-e107-4338-ae59-37a609f65202...78e0f8c5-0462-4521-bff9-5f432d689925 ``` ## Info API ### Endpoint mapping The info API endpoint has a Camunda Hub API v2 equivalent: | Operation | Web Modeler API v1 | Camunda Hub API v2 | | --------- | ------------------ | ------------------ | | Get info | `GET /v1/info` | `GET /v2/info` | ### Get info The following response fields have changed: | Web Modeler API v1 | Camunda Hub API v2 | Notes | | -------------------------- | -------------------------- | --------- | | `version` (returns `"v1"`) | `version` (returns `"v2"`) | New value | | `createPermission` | - | Removed | | `readPermission` | - | Removed | | `updatePermission` | - | Removed | | `deletePermission` | - | Removed | To determine your permissions, check the scopes you configured when creating your API token. If a request lacks the required permission, the API returns `403 Forbidden` with a `ProblemDetail` body explaining which permission is missing. --- ## Camunda 8.10 APIs & Tools migration guide ## About This guide details the API and SDK changes introduced in Camunda 8.10 that require customer action, including breaking changes, deprecations, and step-by-step migration actions. Details are provided for each integration type, including what changed, why, and what action you must take. | Integration type | Description | | :--------------------- | :-------------------------------------------------------- | | Official SDK users | Java client, TypeScript SDK, Python SDK, and C# SDK. | | Generated-client users | Clients generated from the Camunda OpenAPI specification. | | Custom integrations | Custom code that calls the Camunda REST API directly. | ## Upgrade steps Complete the following steps in this guide: 1. Upgrade to the latest official Camunda SDK versions. 1. If you generate clients from OpenAPI, regenerate them from the 8.10 specification. 1. Re-run compilation/type checks and address any errors. 1. Review and apply fixes for the breaking changes, deprecations, and supported environment changes below. ### API and SDK changes to migrate before Camunda 8.10 If you did not already migrate to the following APIs and SDKs during your 8.8 or 8.9 upgrade, Camunda recommends you perform these migrations before you upgrade to 8.10. If you already performed these migrations, proceed to [Camunda 8.10 breaking changes, deprecations, and supported environment changes](#camunda-810-breaking-changes-deprecations-and-supported-environment-changes). | 8.9 status | Component/Use | Migrate to | Migrate by | | :---------------------------------------------------------- | :---------------------------------------------------------------------------------- | :-------------------------- | :------------------ | | Deprecated | [V1 component APIs](../migration-manuals/migrate-to-camunda-api.md) | Orchestration Cluster API | Before Camunda 8.10 | | Deprecated | [ZeebeClient](../migration-manuals/migrate-to-camunda-java-client.md) | Camunda Java Client | Before Camunda 8.10 | | Deprecated | [Spring Zeebe SDK](../migration-manuals/migrate-to-camunda-spring-boot-starter.md) | Camunda Spring Boot Starter | Before Camunda 8.10 | | Deprecated | [Zeebe Process Test (ZPT)](../migration-manuals/migrate-to-camunda-process-test.md) | Camunda Process Test (CPT) | Before Camunda 8.10 | | Deprecated | [Job-based user tasks](../migration-manuals/migrate-to-camunda-user-tasks.md) | Camunda user tasks | Before Camunda 8.10 | :::tip Learn more about API changes in the blog post [Upcoming API Changes in Camunda 8: A Unified and Streamlined Experience](https://camunda.com/blog/2024/12/api-changes-in-camunda-8-a-unified-and-streamlined-experience/). ::: ### Camunda 8.10 breaking changes, deprecations, and supported environment changes Review the actions required for the following 8.10 changes: | Type | Change | | :-------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | | Breaking change | [Search filters: `UserTaskFilter` process filters converted into advanced search filters](#usertask-process-filter) | | Breaking change | [`POST /v2/message-subscriptions/search` returns start event subscriptions](#message-subscription-type) | | Breaking change | [Administration API (Self-Managed) migrated](#administration-api-self-managed-migrated) | | Behavioral change | [Element instance search: advanced filters on `elementId` / `elementName` and `$or` support](#element-instance-advanced-or) | | Behavioral change | [Resource API now uses eventual consistency](#resource-eventual-consistency) | | Behavioral change | [Deleting a process definition with running instances defers history deletion](#delete-draining) | | Deprecated | [Deprecated: GET resource content API](#deprecated-get-resource-content) | ## Breaking changes Review actions required for the following breaking changes: ### Search filters: `UserTaskFilter` process filters converted into advanced search filters {#usertask-process-filter} #### Change The search filter criteria for `processDefinitionKey`, `processInstanceKey`, and `bpmnProcessId` in `UserTaskFilter` have been converted into advanced search filters. #### Why As a result of the V1 API removal, advanced process filtering for user tasks was no longer supported. These changes let you use advanced process filters with the V2 User Tasks API again. #### Impact This affects the Java client because `io.camunda.client.api.search.filter.UserTaskFilter` now accepts advanced filters for `processDefinitionKey`, `processInstanceKey`, and `bpmnProcessId`. #### Action Update to the latest SDK version. The new SDK version includes advanced filters for `processDefinitionKey`, `processInstanceKey`, and `bpmnProcessId` in `UserTaskFilter`. Regenerate your client. No change is needed if your code already uses the exact-match filters for `processDefinitionKey`, `processInstanceKey`, and `bpmnProcessId` in `UserTaskFilter`. ### `POST /v2/message-subscriptions/search` returns start event subscriptions {#message-subscription-type} #### Change The `POST /v2/message-subscriptions/search` endpoint now returns both start event and intermediate event message subscriptions. Previously, only intermediate event subscriptions were returned. #### Why This change provides complete visibility into all active message subscriptions for a process, including start event subscriptions that were previously excluded. #### New field Each result includes a new `messageSubscriptionType` enum field: | Value | Description | | :-------------- | :------------------------------------------------ | | `START_EVENT` | A start event message subscription. | | `PROCESS_EVENT` | An intermediate catch event message subscription. | In existing legacy data, this field is `NULL`. #### Impact Integrations that consume results from `POST /v2/message-subscriptions/search` will now receive start event subscriptions in addition to intermediate event subscriptions. Code that assumes only intermediate events may produce unexpected behavior. #### Action Update to the latest SDK version. If your code relies on the endpoint returning only intermediate event subscriptions, add a filter to exclude start events when constructing your search query. Regenerate your client from the 8.10 OpenAPI specification to include the new `messageSubscriptionType` field. If your code expects only intermediate event subscriptions, add the filter shown in the **Custom integrations** tab to your request payload. If your code relies on the endpoint returning only intermediate event subscriptions, add the following filter to restore the previous behavior: ```json title="Before (no filter needed — endpoint returned only intermediate events)" { "filter": {} } ``` ```json title="After (filter required to exclude start events)" { "filter": { "messageSubscriptionType": { "$neq": "START_EVENT" } } } ``` This filter works correctly for both new data and legacy data (which has `NULL` in the `messageSubscriptionType` field). ### Administration API (Self-Managed) migrated The Administration API endpoints for Self-Managed have been migrated to the now-deprecated [Web Modeler API v1](../web-modeler-api/index.md): | Admin API (Self-Managed) | Web Modeler API v1 | | :----------------------------- | :----------------------------------- | | `GET /admin-api/usage-metrics` | `GET /api/v1/clusters/usage-metrics` | | `GET /admin-api/clusters` | `GET /api/v1/clusters` | For both endpoints, you need a [token with read permissions](../web-modeler-api/authentication.md#generate-a-token). These endpoints return the same data as the original Administration APIs, but the response format matches the other Web Modeler APIs. ## Behavioral changes ### Element instance search: advanced filters on `elementId` / `elementName` and `$or` support {#element-instance-advanced-or} #### Change The element instance search endpoint (`POST /v2/element-instances/search`) gained two filtering capabilities: - The `elementId` and `elementName` filter fields now accept [advanced search filter objects](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-data-fetching.md#advanced-search-filters) in addition to plain string equality. Supported operators: `$eq`, `$neq`, `$exists`, `$in`, `$notIn`, `$like` (wildcard pattern with `*` and `?`). - The request body's `filter` object now accepts a top-level `$or` property that takes an array of alternative filter groups combined with OR logic. Top-level filter fields and `$or` are combined with AND logic. #### Why These additions let you express the queries the user interface (UI) needs (for example, "match any element whose name or ID contains a substring") in a single request, avoiding multiple round trips and client-side merging. #### Impact The change is additive and backward compatible — existing exact-match requests continue to work unchanged. New requests can now use advanced operators and `$or` to express richer queries: ```json { "filter": { "processInstanceKey": "2251799813685323", "$or": [ { "elementName": { "$like": "*Order*" } }, { "elementId": { "$like": "*Order*" } } ] } } ``` The example matches element instances where `processInstanceKey` equals the given value AND either `elementName` or `elementId` contains the substring `Order`. :::note Complex `$or` conditions may impact performance in high-volume environments; use them with care. ::: The `elementName` filter only matches instances created in 8.8 or later, since earlier runtimes did not persist this field on element instances. #### Action Update to the latest SDK version. The new SDK exposes advanced filters for `elementId` and `elementName`, and the `$or` filter on `ElementInstanceFilter`. Regenerate your client from the 8.10 OpenAPI specification to pick up the advanced filter and `$or` types on `ElementInstanceFilter`. No change is needed for existing requests. To use the new operators, send advanced filter objects on `elementId` / `elementName`, or a top-level `$or` array, as shown above. ### Resource API now uses eventual consistency {#resource-eventual-consistency} The [Get resource] and [Get resource content] APIs now retrieve from secondary storage, resulting in eventual consistency. After a resource is deployed, there may be a brief delay before it becomes retrievable via these endpoints. If your application assumes immediate resource retrieval after deployment, add retry logic or a short delay before querying resources. ### Deleting a process definition with running instances defers history deletion {#delete-draining} The [delete resource](/apis-tools/orchestration-cluster-api-rest/specifications/delete-resource.api.mdx) endpoint now accepts process definition deletion when the definition still has running instances. Instead of rejecting the request or waiting for physical removal, the definition [drains](/components/concepts/resource-deletion.md#draining): new instances are blocked immediately, running instances continue to completion, and the definition is removed automatically afterwards. As a result, when `deleteHistory` is `true`, the `batchOperation` field in the response is `null` for such a definition. Its history is removed as part of the draining lifecycle rather than through an immediately-returned batch operation. The field is still populated for decision requirements definitions and for process definitions that are already fully deleted from the runtime state. If you read `batchOperation` from the delete response to track history deletion, handle a `null` value: the definition is draining. Track progress through the process definition `state` (`DRAINING`) or the `zeebe_process_definitions_draining_count` metric instead. ## Deprecations Review the actions required for the following deprecations: ### Deprecated: GET resource content API {#deprecated-get-resource-content} The [Get resource content] endpoint is deprecated. Use [Get resource content binary] instead, which provides the same functionality and also returns generic resources. ## Next steps Once you have completed the [upgrade steps](#upgrade-steps) in this guide, you should: 1. Re-compile and run your test suite against the 8.10 API. [Get resource]: ../orchestration-cluster-api-rest/specifications/get-resource.api.mdx [Get resource content]: ../orchestration-cluster-api-rest/specifications/get-resource-content.api.mdx [Get resource content binary]: ../orchestration-cluster-api-rest/specifications/get-resource-content-binary.api.mdx --- ## Migrate to the Orchestration Cluster API :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About This guide covers how to migrate to the V2 [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) before upgrading to Camunda 8.10, where the V1 component REST APIs are removed. It covers all public endpoints in the component REST APIs and their Orchestration Cluster API counterparts or required migration changes. - Camunda is streamlining the developer experience by creating a unified REST API for Zeebe, Operate, Tasklist, and the Identity components with endpoint parity. This is the single Orchestration Cluster REST API. - Individual component APIs (starting with the former Operate and Tasklist APIs) were deprecated before their removal in 8.10. Use this guide to complete the migration before upgrading. :::info To learn more about the unified REST API, see [the official blog announcement](https://camunda.com/blog/2024/12/api-changes-in-camunda-8-a-unified-and-streamlined-experience/). ::: :::note The Administration and Web Modeler APIs are not part of the Orchestration Cluster REST API, as these are platform APIs outside the cluster’s scope. ::: ## Migration steps To successfully migrate to the V2 Orchestration Cluster API, perform the following steps: 1. **Identify your current V1 endpoints**: Audit your application to catalog all V1 API calls currently in use. 1. **Map V1 endpoints to V2 equivalents**: Use the tables in this guide to find the corresponding V2 endpoints for each request. 1. **Update request and response structure**: Adapt your code to handle the new formats, renamed attributes, and data type changes as outlined in this guide. 1. **Update pagination logic**: Replace old pagination parameters with the new `page` object structure and cursor-based navigation. ## General endpoint changes - The new API can be found at `/v2/…>` instead of `/v1/…>`. - All endpoints are no longer separated by component concerns and all endpoints receive similar support. For example, process definitions, user tasks, and user authorizations were previously spread across separate Tasklist, Operate, and Identity APIs. - All endpoints support the [authorization-based access control model](../../components/concepts/access-control/authorizations.md). Component endpoints only support the configuration of full (wildcard) access or no access. - Naming, response codes, and type handling have been streamlined for all endpoints to provide a consistent UX. - Endpoints with similar concerns (variable search, for example) have been consolidated into single endpoints. - The request and response payload of every new endpoint might contain new attributes that are not necessarily needed for a migration from a V1 endpoint to V2 but might still be useful. Please consult the V2 API guides for access to all new attributes. - Unified search request structure. - Attributes `filter`, `page`, and `sort` on root level. - Endpoint-specific filter attributes in the filter object, not at the root level. - Pagination information in the `page` object. For example, the attributes `from`, `limit`, `before`, and `after`. - Sorting configuration in sort object array, each object containing the field name and order (descending or ascending). - Unified search response structure. - Attributes `items` and `page` on root level. - List of endpoint-specific response items in `items` attribute. - Page information in `page` attribute, for example the attributes `totalItems`, `startCursor`, and `endCursor` to use in `before` and `after` in follow-up requests. ## Name changes and mappings The following table shows key attribute name changes from V1 to V2: | **V1** | **V2** | **Notes** | | ---------------- | ----------------------- | ----------------------------------------------------------------------------------- | | `id` | `[entity]Id` | Keys now include entity prefix (for example, `userTaskKey`, `processDefinitionId`). | | `key` | `[entity]Key` | Converted from `int64` to `string` with entity prefix. | | `bpmnProcessId` | `processDefinitionId` | Unified naming convention. | | `processName` | `processDefinitionId` | Unified naming convention. | | `decisionKey` | `decisionDefinitionKey` | Unified naming convention. | | `dmnDecisionKey` | `decisionDefinitionKey` | Unified naming convention. | | `decisionId` | `decisionDefinitionId` | Unified naming convention. | | `dmnDecisionId` | `decisionDefinitionId` | Unified naming convention. | **General naming conventions:** - Keys and IDs contain the full entity name as prefix to avoid confusion (for example, `processDefinitionKey` instead of `processKey`). - Entity attributes have no prefix within their own entity, but use prefixes when referenced from other entities. - All key fields are now `string` type instead of `int64`. ## Tasklist REST API ### Form #### Get a form V1 V2 GET `/v1/forms/{formId}` GET [`/v2/user-tasks/{userTaskKey}/form`](../orchestration-cluster-api-rest/specifications/get-user-task-form.api.mdx) GET [`/v2/process-definitions/{processDefinitionKey}/form`](../orchestration-cluster-api-rest/specifications/get-start-process-form.api.mdx) - You cannot fetch forms directly anymore. Instead, fetch them by user task or process definition to get the respective form data. - The respective endpoint only takes the key of the resource the form is related to as input parameter. Embedded forms are no longer returned as Camunda user tasks don't support them. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ----------------------------------------------------------- | | `id` | Renamed | Now `formKey` (unique system identifier of the form). | | `title` | Renamed | Now `formId` (aligns with form schema attribute). | | `isDeleted` | Removed | No longer provided by endpoint. | | `processDefinitionKey` | Removed | Can be identified from endpoint resource and key parameter. | ### Task #### Save task draft variables V1 V2 POST `/v1/tasks/{taskId}/variables` This feature is not supported in V2 anymore. Use [setting variables][] as `local` to the user task's `elementInstanceKey` as a replacement. #### Search task variables V1 V2 POST `/v1/tasks/{taskId}/variables/search` POST [`/v2/user-tasks/{userTaskKey}/variables/search`](../orchestration-cluster-api-rest/specifications/search-user-task-variables.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------------ | --------------- | ---------------------------------------------------------------------------- | | `variableNames` | Renamed | Now `name` in `filter` object (plain string or `{ "$in": [ "xyz", ... ] }`). | | `includeVariables` | Removed | Endpoint returns all variables associated with the user task. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------------ | --------------- | ------------------------------------------------------------------------ | | `id` | Renamed | Now `variableKey` (unique system identifier of the variable). | | `previewValue` | Renamed | Now `value` (always represents variable value, may be truncated). | | `isValueTruncated` | Renamed | Now `isTruncated` (see get variable endpoint for full value if needed). | | `draft` | Removed | Draft variables not supported in V2 (see save draft variables endpoint). | For completed tasks, the V1 API returned snapshot variable values as they existed at completion time. The V2 API always returns the current runtime value of variables. #### Search tasks V1 V2 POST `/v1/tasks/search` POST [`/v2/user-tasks/search`](../orchestration-cluster-api-rest/specifications/search-user-tasks.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------------------- | --------------- | --------------------------------------------------------------- | | `pageSize` | Renamed | Now `limit` in the `page` object. | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `searchBefore` | Renamed | Now `before` in the `page` object. | | `taskDefinitionId` | Renamed | Now `elementId` (user-provided identifier of the BPMN element). | | `assigned` | Renamed | Now `assignee` with `{ "$exists": false }`. | | `assignees` | Renamed | Now `assignee` with `{ "$in": [ "xyz", ... ] }`. | | `candidateGroups` | Renamed | Now `candidateGroup` with `{ "$in": [ "xyz", ... ] }`. | | `candidateUsers` | Renamed | Now `candidateUser` with `{ "$in": [ "xyz", ... ] }`. | | `tenantIds` | Renamed | Now `tenantId` with `{ "$in": [ "xyz", ... ] }`. | | `followUpDate`, `dueDate` | Changed | Use `$gte` and `$lte` instead of `from` and `to`. | | `priority` | Changed | Filter keys need `$` prefix, supports new comparison options. | | `taskVariables` | Split | Now `localVariables` and `processInstanceVariables`. | | `searchAfterOrEqual` | Removed | No longer supported. | | `searchBeforeOrEqual` | Removed | No longer supported. | | `includeVariables` | Removed | Use separate search task variables endpoint. | | `implementation` | Removed | V2 API supports only Camunda user tasks. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------------ | --------------- | ------------------------------------------------------------------------------------- | | `sortValues` | Removed | No longer exist per result item - use `startCursor` and `endCursor` in `page` object. | | `id` | Renamed | Now `userTaskKey` (unique system identifier of the user task). | | `taskDefinitionId` | Renamed | Now `elementId` (user-provided identifier of the BPMN element). | | `taskState` | Renamed | Now `state` (user task's current state). | | `processName` | Renamed | Now `processDefinitionId` (user-provided identifier of the process). | | `formKey` | Changed | Now unique system identifier referencing linked Camunda form in specific version. | | `isFirst` | Removed | No longer identifies if task was first in process. | | `variables` | Removed | Use search user task variables endpoint. | | `implementation` | Removed | V2 API supports only Camunda user tasks. | | `isFormEmbedded` | Removed | V2 API does not support embedded forms. | | `formVersion` | Removed | Use get user task form endpoint. | | `formId` | Removed | Use get user task form endpoint. | #### Unassign a task V1 V2 PATCH `/v1/tasks/{taskId}/unassign` DELETE [`/v2/user-tasks/{userTaskKey}/assignee`](../orchestration-cluster-api-rest/specifications/unassign-user-task.api.mdx) - No input adjustments. - Response object removed - The V2 API returns a 204 status, indicating that the task was unassigned. Fetching the updated data of the user task should be done through the respective API since the data can change concurrently at any time. #### Complete a task V1 V2 PATCH `/v1/tasks/{taskId}/complete` POST [`/v2/user-tasks/{userTaskKey}/completion`](../orchestration-cluster-api-rest/specifications/complete-user-task.api.mdx) - Adjusted attributes - `variables` - Provide the variables as a proper JSON object instead of an array of objects with a `name` and a serialized JSON string `value`. - Response object removed - The V2 API returns a 204 status, indicating that the task was completed. Fetching the updated data of the user task should be done through the respective API since the data can change concurrently at any time. #### Assign a task V1 V2 PATCH `/v1/tasks/{taskId}/assign` POST [`/v2/user-tasks/{userTaskKey}/assignment`](../orchestration-cluster-api-rest/specifications/assign-user-task.api.mdx) - Renamed attributes - `allowOverrideAssignment` - Use `allowOverride`, this still refers to allowing to override any existing assignee. - Response object removed - The V2 API returns a 204 status, indicating that the task was assigned. Fetching the updated data of the user task should be done through the respective API since the data can change concurrently at any time. #### Get a task V1 V2 GET `/v1/tasks/{taskId}` GET [`/v2/user-tasks/{userTaskKey}`](../orchestration-cluster-api-rest/specifications/get-user-task.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search tasks](#search-tasks) apply. ### Variables #### Get a variable V1 V2 GET `/v1/variables/{variableId}` GET [`/v2/variables/{variableKey}`](../orchestration-cluster-api-rest/specifications/get-variable.api.mdx) - `variableId` - Use `variableKey` as this refers to the unique system identifier of the variable. - Renamed attributes - `id` - Use `variableKey` as this refers to the unique system identifier of the variable. - Removed attributes - `draft` - Draft variables are not supported in V2 anymore, see also the [save draft variables](#save-task-draft-variables) endpoint for further details. ## Operate REST API ### Decision definition #### Search decision definitions V1 V2 POST `/v1/decision-definitions/search` POST [`/v2/decision-definitions/search`](../orchestration-cluster-api-rest/specifications/search-decision-definitions.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ----------------------------- | --------------- | --------------------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `id` | Renamed | Now `decisionDefinitionKey` in filter object. | | `key` | Renamed | Now `decisionDefinitionKey` (changed from `int64` to `string`). | | `decisionId` | Renamed | Now `decisionDefinitionId` in filter object. | | `decisionRequirementsKey` | Changed | Now `string` type instead of `int64`. | | `decisionRequirementsName` | Removed | Can no longer be used for filtering. | | `decisionRequirementsVersion` | Removed | Can no longer be used for filtering. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ----------------------------- | --------------- | --------------------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `id` | Renamed | Now `decisionDefinitionKey`. | | `key` | Renamed | Now `decisionDefinitionKey` (changed from `int64` to `string`). | | `decisionId` | Renamed | Now `decisionDefinitionId`. | | `decisionRequirementsKey` | Changed | Now `string` type instead of `int64`. | | `decisionRequirementsName` | Removed | Fetch using get decision requirements endpoint. | | `decisionRequirementsVersion` | Removed | Fetch using get decision requirements endpoint. | #### Get decision definition by key V1 V2 GET `/v1/decision-definitions/{key}` GET [`/v2/decision-definitions/{decisionDefinitionKey}`](../orchestration-cluster-api-rest/specifications/get-decision-definition.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search decision definitions](#search-decision-definitions) apply. #### Search decision instances V1 V2 POST `/v1/decision-instances/search` POST [`/v2/decision-instances/search`](../orchestration-cluster-api-rest/specifications/search-decision-instances.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ------------------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `id` | Renamed | Now `decisionInstanceId` in filter object. | | `key` | Renamed | Now `decisionInstanceKey` (changed from `int64` to `string`). | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `decisionId` | Renamed | Now `decisionDefinitionId`. | | `decisionName` | Renamed | Now `decisionDefinitionName`. | | `decisionVersion` | Renamed | Now `decisionDefinitionVersion`. | | `decisionType` | Renamed | Now `decisionDefinitionType`. | | `result` | Removed | Can no longer be used for filtering. | | `evaluatedInputs` | Removed | Can no longer be used for filtering. | | `evaluatedOutputs` | Removed | Can no longer be used for filtering. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ------------------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `id` | Renamed | Now `decisionInstanceId`. | | `key` | Renamed | Now `decisionInstanceKey` (changed from `int64` to `string`). | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `decisionId` | Renamed | Now `decisionDefinitionId`. | | `decisionName` | Renamed | Now `decisionDefinitionName`. | | `decisionVersion` | Renamed | Now `decisionDefinitionVersion`. | | `decisionType` | Renamed | Now `decisionDefinitionType`. | | `evaluatedInputs` | Removed | No longer provided by endpoint. | | `evaluatedOutputs` | Removed | No longer provided by endpoint. | #### Get decision instance by id V1 V2 GET `/v1/decision-instances/{id}` GET [`/v2/decision-instances/{decisionInstanceId}`](../orchestration-cluster-api-rest/specifications/search-decision-instances.api.mdx) - No input adjustments. The adjustments from [search decision instances](#search-decision-instances) apply, with the following exceptions: `evaluatedInputs` and `evaluatedOutputs` are present in the response payload (with `evaluatedOutputs` moved under `matchedRules`). | **Field** | **Change Type** | **Notes** | | --------------------------- | --------------- | --------------------------------------- | | **evaluatedInputs object** | | | | `id` | Renamed | Now `inputId`. | | `name` | Renamed | Now `inputName`. | | `value` | Renamed | Now `inputValue`. | | **evaluatedOutputs object** | | | | `id` | Renamed | Now `outputId`. | | `name` | Renamed | Now `outputName`. | | `value` | Renamed | Now `outputValue`. | | `ruleId` | Moved | Now under `matchedRules` array objects. | | `ruleIndex` | Moved | Now under `matchedRules` array objects. | #### Search decision requirements V1 V2 POST `/v1/drd/search` POST [`/v2/decision-requirements/search`](../orchestration-cluster-api-rest/specifications/search-decision-requirements.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------- | --------------- | ----------------------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `id` | Renamed | Now `decisionRequirementsKey` in filter object. | | `key` | Renamed | Now `decisionRequirementsKey` (changed from `int64` to `string`). | | `name` | Renamed | Now `decisionRequirementsName`. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ------------ | --------------- | ----------------------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `id` | Renamed | Now `decisionRequirementsKey`. | | `key` | Renamed | Now `decisionRequirementsKey` (changed from `int64` to `string`). | | `name` | Renamed | Now `decisionRequirementsName`. | #### Get decision requirements by key V1 V2 GET `/v1/drd/{key}` GET [`/v2/decision-requirements/{decisionRequirementsKey}`](../orchestration-cluster-api-rest/specifications/get-decision-requirements.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search decision requirements](#search-decision-requirements) apply. #### Get decision requirements as XML by key V1 V2 GET `/v1/drd/{key}/xml` GET [`/v2/decision-requirements/{decisionRequirementsKey}/xml`](../orchestration-cluster-api-rest/specifications/get-decision-requirements-xml.api.mdx) - No input adjustments. - No output adjustments. ### Variable #### Search variables for process instances V1 V2 POST `/v1/variables/search` POST [`/v2/variables/search`](../orchestration-cluster-api-rest/specifications/search-variables.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | -------------------- | --------------- | ----------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `key` | Renamed | Now `variableKey` (changed from `int64` to `string`). | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `scopeKey` | Changed | Now `string` type instead of `int64`. | | `truncated` | Renamed | Now `isTruncated`. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | -------------------- | --------------- | ----------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `key` | Renamed | Now `variableKey` (changed from `int64` to `string`). | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `scopeKey` | Changed | Now `string` type instead of `int64`. | | `truncated` | Renamed | Now `isTruncated`. | #### Get variable by key V1 V2 GET `/v1/variables/{key}` GET [`/v2/variables/{variableKey}`](../orchestration-cluster-api-rest/specifications/get-variable.api.mdx) - No input adjustments. - All adjustments from [search variables for process instances](#search-variables-for-process-instances) apply, with the following exceptions: - Response structure changes. - `truncated` is removed because this endpoint always returns the full variable value. [setting variables]: /apis-tools/orchestration-cluster-api-rest/specifications/create-element-instance-variables.api.mdx [general changes]: #general-endpoint-changes [multi-tenancy]: /components/concepts/multi-tenancy.md ### Process definition #### Search process definitions V1 V2 POST `/v1/process-definitions/search` POST [`/v2/process-definitions/search`](../orchestration-cluster-api-rest/specifications/search-process-definitions.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | --------------- | --------------- | -------------------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `key` | Renamed | Now `processDefinitionKey` (changed from `int64` to `string`). | | `bpmnProcessId` | Renamed | Now `processDefinitionId`. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | --------------- | --------------- | -------------------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `key` | Renamed | Now `processDefinitionKey` (changed from `int64` to `string`). | | `bpmnProcessId` | Renamed | Now `processDefinitionId`. | #### Get process definition by key V1 V2 GET `/v1/process-definitions/{key}` GET [`/v2/process-definitions/{processDefinitionKey}`](../orchestration-cluster-api-rest/specifications/get-process-definition.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search process definitions](#search-process-definitions) apply. #### Get process definition as XML by key V1 V2 GET `/v1/process-definitions/{key}/xml` GET [`/v2/process-definitions/{processDefinitionKey}/xml`](../orchestration-cluster-api-rest/specifications/get-process-definition-xml.api.mdx) - No input adjustments. - No output adjustments. ### Process instance #### Search process instances V1 V2 POST `/v1/process-instances/search` POST [`/v2/process-instances/search`](../orchestration-cluster-api-rest/specifications/search-process-instances.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | --------------------------- | --------------- | ------------------------------------------------------------ | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `key` | Renamed | Now `processInstanceKey` (changed from `int64` to `string`). | | `processVersion` | Renamed | Now `processDefinitionVersion`. | | `processVersionTag` | Renamed | Now `processDefinitionVersionTag`. | | `bpmnProcessId` | Renamed | Now `processDefinitionId`. | | `parentFlowNodeInstanceKey` | Renamed | Now `parentElementInstanceKey` (changed to `string`). | | `parentKey` | Renamed | Now `parentProcessInstanceKey` (changed to `string`). | | `state` | Changed | Use `TERMINATED` instead of `CANCELED`. | | `incident` | Renamed | Now `hasIncident`. | | `parentProcessInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | --------------------------- | --------------- | ------------------------------------------------------------ | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `key` | Renamed | Now `processInstanceKey` (changed from `int64` to `string`). | | `processVersion` | Renamed | Now `processDefinitionVersion`. | | `processVersionTag` | Renamed | Now `processDefinitionVersionTag`. | | `bpmnProcessId` | Renamed | Now `processDefinitionId`. | | `parentFlowNodeInstanceKey` | Renamed | Now `parentElementInstanceKey` (changed to `string`). | | `parentKey` | Renamed | Now `parentProcessInstanceKey` (changed to `string`). | | `state` | Changed | Use `TERMINATED` instead of `CANCELED`. | | `incident` | Renamed | Now `hasIncident`. | | `parentProcessInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | #### Get process instance by key V1 V2 GET `/v1/process-instances/{key}` GET [`/v2/process-instances/{processInstanceKey}`](../orchestration-cluster-api-rest/specifications/get-process-instance.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search process instances](#search-process-instances) apply. #### Delete process instance and all dependant data by key V1 V2 DELETE `/v1/process-instances/{key}` This feature is not yet available in V2. It will be added in a future version. #### Get flow node statistic by process instance key V1 V2 GET `/v1/process-instances/{key}/statistics` GET [`/v2/process-instances/{processInstanceKey}/statistics/element-instances`](../orchestration-cluster-api-rest/specifications/get-process-instance-statistics.api.mdx) - No input adjustments. Response structure changes. | **Field** | **Change Type** | **Notes** | | -------------- | --------------- | ----------------------- | | Response items | Moved | Now under `items` array | | `activityId` | Renamed | Now `elementId` | #### Get sequence flows of process instance by key V1 V2 GET `/v1/process-instances/{key}/sequence-flows` GET [`/v2/process-instances/{processInstanceKey}/sequence-flows`](../orchestration-cluster-api-rest/specifications/get-process-instance-sequence-flows.api.mdx) - No input adjustments. Response structure changes. | **Field** | **Change Type** | **Notes** | | -------------- | --------------- | --------------------------------------------------------------------------------- | | Response items | Changed | Now type `object` instead of `string`. | | Response items | Moved | Now under `items` array. | | V1 recreation | Info | Collect `sequenceFlowId` of type `string` from all objects to recreate V1 result. | ### Flownode instances #### Search flownode instances V1 V2 POST `/v1/flownode-instances/search` POST [`/v2/element-instances/search`](../orchestration-cluster-api-rest/specifications/search-element-instances.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ------------------------------------------------------------ | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `key` | Renamed | Now `elementInstanceKey` (changed from `int64` to `string`). | | `flowNodeId` | Renamed | Now `elementId`. | | `flowNodeName` | Renamed | Now `elementName`. | | `incident` | Renamed | Now `hasIncident`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `incidentKey` | Changed | Now `string` type instead of `int64`. | | `startDate` | Removed | Can no longer be used for filtering. | | `endDate` | Removed | Can no longer be used for filtering. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ------------------------------------------------------------ | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `key` | Renamed | Now `elementInstanceKey` (changed from `int64` to `string`). | | `flowNodeId` | Renamed | Now `elementId`. | | `flowNodeName` | Renamed | Now `elementName`. | | `incident` | Renamed | Now `hasIncident`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `incidentKey` | Changed | Now `string` type instead of `int64`. | #### Get flownode instance by key V1 V2 GET `/v1/flownode-instances/{key}` GET [`/v2/element-instances/{elementInstanceKey}`](../orchestration-cluster-api-rest/specifications/get-element-instance.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search flownode instances](#search-flownode-instances) apply. ### Incidents #### Search incidents V1 V2 POST `/v1/incidents/search` POST [`/v2/incidents/search`](../orchestration-cluster-api-rest/specifications/search-incidents.api.mdx) Request structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ----------------------------------------------------- | | `searchAfter` | Renamed | Now `after` in the `page` object. | | `size` | Renamed | Now `limit` in the `page` object. | | `key` | Renamed | Now `incidentKey` (changed from `int64` to `string`). | | `type` | Renamed | Now `errorType`. | | `message` | Renamed | Now `errorMessage`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `jobKey` | Changed | Now `string` type instead of `int64`. | Response structure changes as outlined in [general changes][]. | **Field** | **Change Type** | **Notes** | | ---------------------- | --------------- | ----------------------------------------------------- | | `total` | Moved | Now `totalItems` in `page` object. | | `sortValues` | Replaced | Now use `endCursor` in `page` object. | | `key` | Renamed | Now `incidentKey` (changed from `int64` to `string`). | | `type` | Renamed | Now `errorType`. | | `message` | Renamed | Now `errorMessage`. | | `processInstanceKey` | Changed | Now `string` type instead of `int64`. | | `processDefinitionKey` | Changed | Now `string` type instead of `int64`. | | `jobKey` | Changed | Now `string` type instead of `int64`. | #### Get incident by key V1 V2 GET `/v1/incidents/{key}` GET [`/v2/incidents/{incidentKey}`](../orchestration-cluster-api-rest/specifications/get-incident.api.mdx) - No input adjustments. - Except for the response structure changes, all adjustments from [search incidents](#search-incidents) apply. --- ## Migrate to the Camunda Java Client :::note Using Spring Boot? If you are migrating from the Spring Zeebe SDK, use [migrate to Camunda Spring Boot Starter](migrate-to-camunda-spring-boot-starter.md) instead. This guide covers migrations from the Zeebe Java Client to the Camunda Java Client. ::: :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About This guide provides an overview of the process for migrating to the Camunda Java Client. - The [Camunda Java Client](../java-client/getting-started.md) is the official Java library for connecting to Orchestration Cluster, automating processes, and implementing job workers. - The Zeebe Java Client remains available until Camunda 8.10. :::tip Plan and start your migration early to ensure compatibility, access to latest features, and future support. ::: ## Before you begin - Review project dependencies and identify where `io.camunda.zeebe:zeebe-client-java` is used. - Catalog code referencing Zeebe classes, interfaces, and APIs (for example, ZeebeClient, Zeebe workers). ## Update Maven/Gradle dependencies Replace the Zeebe Java Client dependency with the Camunda Java Client dependency in your `pom.xml` or `build.gradle` file. Maven: ```xml io.camunda camunda-client-java ${camunda.version} ``` Gradle: ```groovy implementation 'io.camunda:camunda-client-java:${camunda.version}' ``` ## Update imports Update all imports statement in your Java files to use the new Camunda Java Client package structure. Change from: ```java ``` to: ```java ``` ## Configuration and environment variable changes - All old Java client property names are refactored to more general ones. For example, `zeebe.client.tenantId` to `camunda.client.tenantId`. - Environment variables are also updated accordingly. For example, `ZEEBE_CLIENT_TENANT_ID` to `CAMUNDA_CLIENT_TENANT_ID`. - The former deprecated `gatewayAddress` property and `usePlainText` have been **removed and superseded by `restAddress` and `grpcAddress` which require explicit URI schemes** (for example, `http://` or `https://`). ## Update client initialization Update the client initialization code to use the new `CamundaClient` class. For example, change: ```java ZeebeClient client = ZeebeClient.newClientBuilder() .gatewayAddress("localhost:26500") .usePlaintext() .build(); ``` to: ```java CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create("http://localhost:26500")) .restAddress(URI.create("http://localhost:8080")) .build(); ``` :::info - Refer to the [CamundaClientBuilder documentation](https://javadoc.io/doc/io.camunda/camunda-client-java/latest/io/camunda/client/CamundaClientBuilder.html) for more details on available configuration options. - The construction for OAuth, Basic Auth, or custom providers remains conceptually the same, but you must ensure you use the classes from the new package. Refer to the [Camunda Java Client bootstrapping](../java-client/getting-started.md#bootstrapping) for more details. ::: ## Renamed API classes and commands The following API classes have been changed in the Camunda Java Client: | Old | New | | :------------------------------ | :-------------------------------- | | `ZeebeClientBuilder` | `CamundaClientBuilder` | | `ZeebeClientClouldBuilderStep1` | `CamundaClientClouldBuilderStep1` | | `ZeebeClientConfiguration` | `CamundaClientConfiguration` | | `ZeebeFuture` | `CamundaFuture` | The following commands have been renamed in the Camunda Java Client: | Old | New | | :----------------------------- | :----------------------------- | | `newClockPinCommand()` | `newPinClockCommand()` | | `newClockResetCommand()` | `newResetClockCommand()` | | `newUserCreateCommand()` | `newCreateUserCommand()` | | `newUserTaskAssignCommand()` | `newAssignUserTaskCommand()` | | `newUserTaskCompleteCommand()` | `newCompleteUserTaskCommand()` | | `newUserTaskUnassignCommand()` | `newUnassignUserTaskCommand()` | | `newUserTaskUpdateCommand()` | `newUpdateUserTaskCommand()` | ## Protocol and connection: REST vs gRPC selection Zeebe Java Client used **gRPC by default**. The Camunda Java Client uses **REST by default**. If you want to use gRPC, you need to explicitly set the `grpcAddress` in the client builder and configure `preferRestOverGrpc=false` to make gRPC the default. To use gRPC, add the following to your client builder: ```java CamundaClient client = CamundaClient.newClientBuilder() .grpcAddress(URI.create("http://localhost:26500")) .restAddress(URI.create("http://localhost:8080")) .preferRestOverGrpc(false) .build(); ``` --- ## Migrate to Camunda Process Test :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About [Camunda Process Test](/apis-tools/testing/getting-started.md) (CPT) is a library to test your BPMN processes and your projects. - It is the successor to Zeebe Process Test (ZPT). - Starting with version **8.8**, ZPT is deprecated and was removed in version **8.10**. See [release announcement](https://camunda.com/blog/2025/04/camunda-process-test-the-next-generation-testing-library/). This guide walks you through migrating your existing test cases from ZPT to CPT step-by-step. ### Key differences There are key differences between ZPT and CPT in both API and behavior, which may increase migration effort depending on your existing test cases. | Aspect | Zeebe Process Test (ZPT) | Camunda Process Test (CPT) | | :--------------------------- | :------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------- | | **Underlying engine** | Uses only Camunda's workflow engine (Zeebe) with access to internal components. | Runs the full Camunda distribution and interacts with the Orchestration Cluster API. | | **Assertions and utilities** | Uses specific naming conventions. | Uses different names to align with the API; not all ZPT assertions/utilities have equivalents in CPT. | | **Startup time** | Faster startup. | Takes longer to start as it runs the full Orchestration Cluster distribution. | ### Key advantages of CPT - Access to Camunda’s Orchestration Cluster API and Connectors - Support for Camunda user tasks - Blocking assertions for asynchronous processing - Enhanced mocking utilities ## Update your dependency First, update your Maven dependency. - **If you use ZPT with Camunda Spring Boot Starter integration** (`artifactId: spring-boot-starter-camunda-test` or `spring-boot-starter-camunda-test-testcontainer`), replace it with **CPT’s Spring integration module**. - **If you use ZPT without Spring** (`artifactId: zeebe-process-test-extension` or `zeebe-process-test-extension-testcontainer`), replace it with **CPT’s Java module**. In your Maven `pom.xml`, add the dependency: ```xml io.camunda camunda-process-test-spring test ``` In your Maven `pom.xml`, add the dependency: ```xml io.camunda camunda-process-test-java test ``` ## Choose your runtime Next, choose how you want to run CPT, considering your environment. CPT can be used in two modes: - CPT with Testcontainers (as equivalent to ZPT with Testcontainers) - CPT with remote engine (as equivalent to ZPT's embedded runtime) ### ZPT with Testcontainers If you use ZPT with Testcontainers ( `artifactId: zeebe-process-test-extension-testcontainer` or `spring-boot-starter-camunda-test-testcontainer`), then you can use CPT's default [Testcontainers runtime](/apis-tools/testing/configuration.md#testcontainers-runtime) without additional changes. ### ZPT's embedded runtime If you use ZPT’s embedded runtime (`artifactId: zeebe-process-test-extension` or `spring-boot-starter-camunda-test`), switch to CPT’s [remote runtime](/apis-tools/testing/configuration.md#remote-runtime). Choose this option only if you cannot install a Docker-API compatible container runtime (e.g., Docker on Linux or Docker Desktop). In this mode, CPT connects to a remote runtime, such as a local Camunda 8 Run running on your machine. Prepare your remote runtime: 1. **Install Camunda 8 Run** Follow the [installation guide](/self-managed/quickstart/developer-quickstart/c8run/install-start.md#install-and-start-camunda-8-run) on your machine. Use the same version as CPT or later. See the [remote runtime prerequisites](/apis-tools/testing/configuration.md#prerequisites-1) for the required port and permissions. 2. **Start Camunda 8 Run**. 3. **Switch CPT’s runtime mode** to `remote` in your project configuration. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: runtime-mode: remote ``` In your `/camunda-container-runtime.properties` file: ``` runtimeMode=remote ``` ## Migrate your process tests Now, it's time to migrate your process tests. First, migrate the general test class structure: 1. **Replace annotations and types** - Replace `@ZeebeSpringTest` with `@CamundaSpringProcessTest` - Replace the type `ZeebeTestEngine` with `CamundaProcessTestContext` 2. **Remove record stream fields** CPT does not provide direct access to records. Instead, use the SDK to request data from the [API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). Below is an example of a ZPT test class: ```java @SpringBootTest @ZeebeSpringTest class MyProcessTest { @Autowired private CamundaClient client; @Autowired private ZeebeTestEngine engine; @Autowired private RecordStream recordStream; @Test void shouldCompleteProcess() { // given final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // when: drive the process forward // then BpmnAssert.assertThat(processInstance) .hasPassedElementsInOrder("start", "task1", "task2", "task3", "end") .isCompleted(); } } ``` This is the equivalent CPT test class: ```java @SpringBootTest @CamundaSpringProcessTest class MyProcessTest { @Autowired private CamundaClient client; @Autowired private CamundaProcessTestContext processTestContext; @Test void shouldCompleteProcess() { // given final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // when: drive the process forward // then CamundaAssert.assertThat(processInstance) .hasCompletedElementsInOrder("start", "task1", "task2", "task3", "end") .isCompleted(); } } ``` First, migrate the general test class structure: 1. **Replace annotations and types** - Replace `@ZeebeProcessTest` with `@CamundaProcessTest` - Replace the type `ZeebeTestEngine` with `CamundaProcessTestContext` 2. **Remove record stream fields** CPT does not provide direct access to records. Instead, use the SDK to request data from the [API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). Below is an example of a ZPT test class: ```java @ZeebeProcessTest class MyProcessTest { private CamundaClient client; private ZeebeTestEngine engine; private RecordStream recordStream; @Test void shouldCompleteProcess() { // given: the processes are deployed final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // when: drive the process forward // then BpmnAssert.assertThat(processInstance) .hasPassedElementsInOrder("start", "task1", "task2", "task3", "end") .isCompleted(); } } ``` This is the equivalent CPT test class: ```java @CamundaProcessTest class MyProcessTest { private CamundaClient client; private CamundaProcessTestContext processTestContext; @Test void shouldCompleteProcess() { // given: the processes are deployed final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // when: drive the process forward // then CamundaAssert.assertThat(processInstance) .hasCompletedElementsInOrder("start", "task1", "task2", "task3", "end") .isCompleted(); } } ``` Then, review all test methods and migrate the assertions and utilities. See the following sections for detailed instructions. ### Process instance assertions ZPT has assertions for a process instance using `BpmnAssert.assertThat()` with the `ProcessInstanceEvent` or the `ProcessInstanceResult`. CPT has equivalent assertions using `CamundaAssert.assertThat()`. ```java // given ProcessInstanceEvent processInstance = // // ZPT: BpmnAssert.assertThat(processInstance).isCompleted(); // CPT: CamundaAssert.assertThat(processInstance).isCompleted(); ``` Some of CPT's assertions have different method names or signatures. Check the following list for the equivalent CPT assertion: ZPT: BpmnAssert.assertThat(processInstance) CPT: CamundaAssert.assertThat(processInstance) isStarted() [isCreated()](/apis-tools/testing/assertions.md#iscreated) isActive() [isActive()](/apis-tools/testing/assertions.md#isactive) isCompleted() [isCompleted()](/apis-tools/testing/assertions.md#iscompleted) isNotCompleted() Not supported Instead, use [isActive()](/apis-tools/testing/assertions.md#isactive) or [isTerminated()](/apis-tools/testing/assertions.md#isterminated). isTerminated() [isTerminated()](/apis-tools/testing/assertions.md#isterminated) isNotTerminated() Not supported Instead, use [isActive()](/apis-tools/testing/assertions.md#isactive) or [isCompleted()](/apis-tools/testing/assertions.md#iscompleted). isWaitingAtElements() [hasActiveElements()](/apis-tools/testing/assertions.md#hasactiveelements) isWaitingExactlyAtElements() [hasActiveElementsExactly()](/apis-tools/testing/assertions.md#hasactiveelementsexactly) isNotWaitingAtElements() [hasNoActiveElements()](/apis-tools/testing/assertions.md#hasnoactiveelements) hasPassedElement() [hasCompletedElement()](/apis-tools/testing/assertions.md#hascompletedelement) hasPassedElementsInOrder() [hasCompletedElementsInOrder()](/apis-tools/testing/assertions.md#hascompletedelementsinorder) hasNotPassedElement() [hasNotActivatedElements()](/apis-tools/testing/assertions.md#hasnotactivatedelements) hasVariable() [hasVariableNames()](/apis-tools/testing/assertions.md#hasvariablenames) hasVariableWithValue() [hasVariable()](/apis-tools/testing/assertions.md#hasvariable) hasAnyIncidents() [hasActiveIncidents()](/apis-tools/testing/assertions.md#hasactiveincidents) hasNoIncidents() [hasNoActiveIncidents()](/apis-tools/testing/assertions.md#hasnoactiveincidents) isWaitingForMessages() [isWaitingForMessage()](/apis-tools/testing/assertions.md#iswaitingformessage) isNotWaitingForMessages() [isNotWaitingForMessage()](/apis-tools/testing/assertions.md#isnotwaitingformessage) hasCorrelatedMessageByName() [hasCorrelatedMessage()](/apis-tools/testing/assertions.md#hascorrelatedmessage) hasCorrelatedMessageByCorrelationKey() [hasCorrelatedMessage()](/apis-tools/testing/assertions.md#hascorrelatedmessage) hasCalledProcess() Not supported Instead, use a [ProcessInstanceSelector](/apis-tools/testing/assertions.md#with-process-instance-selector) to assert the child process instance. hasNotCalledProcess() Not supported Instead, assert the call activity or the child process instance. ### Deployment assertions ZPT has assertions for a deployment using `BpmnAssert.assertThat()` with the `DeploymentEvent`. CPT has no equivalent assertions. Instead, you could write a [custom assertion](/apis-tools/testing/assertions.md#custom-assertions) with AssertJ to verify the properties of the deployment event. ```java // given DeploymentEvent deploymentEvent = // // ZPT: BpmnAssert.assertThat(deploymentEvent).containsProcessesByResourceName("my-process.bpmn"); // CPT: Assertions.assertThat(deploymentEvent.getProcesses()) .extracting(Process::getResourceName) .contains("my-process.bpmn"); ``` ### Job assertions ZPT has assertions for an activated job using `BpmnAssert.assertThat()` with the `ActivatedJob`. CPT has no equivalent assertions. Instead, you could write a [custom assertion](/apis-tools/testing/assertions.md#custom-assertions) with AssertJ to verify the properties of the activated job. ```java // given ActivatedJob activatedJob = // // ZPT: BpmnAssert.assertThat(activatedJob).hasElementId("elementId"); // CPT: Assertions.assertThat(activatedJob.getElementId()).isEqualTo("elementId"); ``` ### Message assertions ZPT has assertions for a published message using `BpmnAssert.assertThat()` with the `PublishMessageResponse`. CPT has no equivalent assertions. Instead, you could use a [ProcessInstanceSelector](/apis-tools/testing/assertions.md#with-process-instance-selector) to find the correlated process instance and verify the correlation using a [message subscription assertion](/apis-tools/testing/assertions.md#hascorrelatedmessage). Alternatively, you could use the [correlate message API](/apis-tools/orchestration-cluster-api-rest/specifications/correlate-message.api.mdx) that returns the process instance key in the response. ```java // ZPT: final PublishMessageResponse publishMessageResponse = // BpmnAssert.assertThat(publishMessageResponse) .hasCreatedProcessInstance() .extractingProcessInstance() .isCompleted(); // CPT: final CorrelateMessageResponse correlateMessageResponse = // // The correlate command would fail if the message could not be correlated CamundaAssert.assertThatProcessInstance(byKey(correlateMessageResponse.getProcessInstanceKey())) .isCompleted(); ``` ### Inspection utilities ZPT provides the `InspectionUtility` to locate process instances and pass them to assertions. Some assertions also include methods to extract related entities, such as `extractingProcessInstance()` or `extractingLatestIncident()`. CPT offers a similar utility via the [ProcessInstanceSelector](/apis-tools/testing/assertions.md#with-process-instance-selector), which can be used with `CamundaAssert.assertThatProcessInstance()`. For other entities, you can use the Camunda client to search for the entity and implement a [custom assertion](/apis-tools/testing/assertions.md#custom-assertions). ```java // ZPT: InspectedProcessInstance childProcessInstance = InspectionUtility.findProcessInstances() .withBpmnProcessId("child-process") .findFirstProcessInstance() .get(); BpmnAssert.assertThat(childProcessInstance).isCompleted(); // CPT: CamundaAssert.assertThatProcessInstance(byProcessId("child-process")) .isCompleted(); ``` ### ZeebeTestEngine utilities ZPT provides the `ZeebeTestEngine` utilities to interact with the runtime, for example, to advance time. CPT offers a similar utility via the [CamundaProcessTestContext](/apis-tools/testing/utilities.md), but the following utilities are **not supported**: - `waitForIdleState(duration)` - `waitForBusyState(duration)` CPT does not require these utilities because it provides [blocking assertions](/apis-tools/testing/assertions.md) that wait until the expected condition is fulfilled. ```java // ZPT engine.waitForIdleState(duration); engine.increaseTime(Duration.ofDays(1)); // CPT: assertThat(processInstance).hasActiveElements("timer_event"); processTestContext.increaseTime(Duration.ofDays(1)); ``` ## Next steps Congratulations! Your process tests should now be fully migrated to CPT and running successfully. When you’re ready, take the next steps to continue your journey: - Explore new [assertions](/apis-tools/testing/assertions.md). - Simplify your tests with new [utilities](/apis-tools/testing/utilities.md). - Generate [process test coverage reports](/apis-tools/testing/getting-started.md#process-test-coverage). - Refer to the [API documentation](https://javadoc.io/doc/io.camunda/camunda-process-test-java/latest/io/camunda/process/test/api/package-summary.html) for details. ## Troubleshooting If you encounter issues with the migration or notice missing features, report them in the [Camunda GitHub repository](https://github.com/camunda/camunda/issues). --- ## Migrate to Camunda Spring Boot Starter :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About This guide provides an overview of the process for migrating to the Camunda Spring Boot Starter. - The [Camunda Spring Boot Starter](../camunda-spring-boot-starter/getting-started.md) is the official Spring library for connecting to Orchestration Cluster, automating processes, and implementing job workers. :::tip Plan and start your migration early to ensure compatibility, access to latest features, and future support. ::: ## Maven/Gradle dependencies Replace the Zeebe Spring SDK dependency with the Camunda Spring Boot Starter dependency in your `pom.xml` or `build.gradle` file. Maven: ```xml io.camunda camunda-spring-boot-starter 8.8.x ``` Gradle: ```groovy implementation 'io.camunda:camunda-spring-boot-starter:${8.8.x}' ``` ## Deprecated classes and methods Please refer to the [Camunda Java Client migration guide](migrate-to-camunda-java-client.md) for details on deprecated classes and methods. --- ## Migrate to Camunda user tasks :::note Have you already migrated? You do not need to perform this migration again if you already did this when upgrading to version 8.8. This guide is retained to help customers migrate before upgrading from 8.9 to 8.10. See [API and SDK changes to migrate before Camunda 8.10](../migration-manuals/migrate-to-810.md#api-and-sdk-changes-to-migrate-before-camunda-810). ::: ## About Camunda 8.7 introduced a new [user task](/components/modeler/bpmn/user-tasks/user-tasks.md) implementation type: Camunda user task (formerly named Zeebe user task). Camunda user tasks have several benefits compared to Job worked-based user tasks, including: - Running directly on the automation engine for high performance. - Removing dependencies and round trips to Tasklist. - A powerful API that supports the full task lifecycle. In this guide, you will learn: - Under which circumstances and when you should migrate. - How to estimate the impact on a project. - Steps you need to take for a successful migration without interrupting your operations. ## Decide on your migration path Camunda user tasks require migration of the user tasks in both your diagrams and the task API. With this in mind, you can migrate at your own pace. If you should migrate now or later, and what is required to migrate depends on your current setup and future plans. ### Task type differences To make an informed decision, you should understand the differences between both task types and the new capabilities of Camunda user tasks. Refer to this table for important high-level differences between the two task types: Camunda user tasks Recommended for new and existing projects Job worker-based user tasks Existing implementation Implementation location Zeebe Does not require Tasklist to run Tasklist Compatible versions 8.5 + 8.0 + Supports Tasklist UI API Supports Orchestration Cluster REST API Full support Supports Tasklist API (deprecated) Partially Queries, GET tasks, forms, variables ℹ You must use Zeebe and Tasklist APIs to manage Camunda user tasks Full support Supports job workers Supports task lifecycle events Full lifecycle events including custom actions Basic only: created/completed/canceled Supports task listeners Extras Custom actions/outcomes Custom actions can be defined on any operation excluding unassign (DELETE assignment, send update beforehand) Supports task reports in Optimize Recommendations Recommended for existing and new projects when you run Tasklist. Migrate existing projects and task applications/clients to this task type when you require one of the features above, or the following use cases: Implement a full task lifecycle React on any change/events in tasks, such as assignments, escalations, due date updates, or any custom actions Send notifications Track task or team performance Build an audit log on task events Enrich tasks with business data You can continue to use this task type on existing projects when you have a custom task application running on it and do not require any of the above features. ## Change the implementation type of user tasks We recommend you migrate process-by-process, allowing you to thoroughly test the processes in your test environments or via your [CI/CD](/components/hub/workspace/modeler/integrate-modeler-in-ci-cd.md). To do this, take the following steps: 1. Open a diagram you want to migrate. 2. Click on a user task. 3. Check if the task has an embedded form. - If a form is embedded, [transform it into a linked form](/components/modeler/bpmn/user-tasks/user-tasks.md#camunda-form-linked) before you change the task type implementation. Press `Ctrl+Z` or `⌘+Z` to undo if you accidentally removed your embedded form. 4. Open the **Implementation** section in the properties panel. 5. Click the **Type** dropdown and select **Camunda user task**. The linked form or external form reference will be preserved. Repeat these steps for all user tasks in the process. Then, deploy the process to your development cluster and test it by running the process and ensuring your custom task applications work. ## How Tasklist API (V1) compares to Orchestration Cluster REST API (V2) :::note The Tasklist REST API is [deprecated with the 8.8 release and will be deleted with the 8.10 release](/reference/announcements-release-notes/880/880-announcements.md#deprecated-operate-and-tasklist-v1-rest-apis). ::: The following table provides a breakdown of which operations are supported in which API, and for which user tasks. Operation Tasklist API Orchestration Cluster REST API Query tasks ✔ All types ✔ Camunda user tasks Get task ✔ All types ✔ Camunda user tasks Retrieve task variables ✔ All types ✔ Camunda user tasks Get task form ✔ All types ✔ Camunda user tasks Change task assignment ✔ Job worker-based tasks ✔ Camunda user tasks Complete task ✔ Job worker-based tasks ✔ Camunda user tasks Update task Not supported ✔ Camunda user tasks Safe and retrieve draft variables ✔ Job worker-based tasks Not supported The following table outlines the respective endpoints. Click the endpoints to follow to the API documentation and inspect the differences in the request and response objects. Operation Tasklist API Orchestration Cluster REST API Query user tasks POST /tasks/search POST /user-tasks/search Get user task GET /tasks/:taskId GET /user-tasks/:userTaskKey Retrieve task variables GET /variables/:variableId POST /tasks/:taskId/variables/search Get task form GET /forms/:formId GET /user-tasks/:userTaskKey/form Assign a task PATCH /tasks/:taskId/assign POST /user-tasks/:userTaskKey/assignment Unassign a task PATCH /tasks/:taskId/unassign DELETE /user-tasks/:userTaskKey/assignee Complete task PATCH /tasks/:taskId/complete POST /user-tasks/:userTaskKey/completion Update task Not supported PATCH /user-tasks/:userTaskKey Save and retrieve draft variables POST /tasks/:taskId/variables - ### Zeebe Java client Use the Zeebe Java client when you are building your task application in Java. The client assists with managing authentication and request/response objects. ### API differences Refer to the dedicated sections and API explorers to learn details about the APIs. ## Troubleshooting and common issues If your task application does not work properly after migration, check the following: - **The endpoints return specific error messages when you run them on the wrong task type**: Ensure to call the right endpoint for the right task type, c.f. above [table](#use-the-new-camunda-8-api). - **Forms do not appear**: Ensure you have extracted embedded forms, if any, and [transformed them into linked forms](/components/modeler/bpmn/user-tasks/user-tasks.md#camunda-form-linked), before you change the task type implementation. - **Task update operation does not work**: The update operation is only available to Camunda user tasks. --- ## SaaS orchestration architecture ## About Camunda 8.9 introduces a streamlined SaaS orchestration architecture. The runtime for Operate, Tasklist, Identity (Admin), and the Zeebe REST API is unified into a single orchestration service. Zeebe brokers continue to run separately and execute workflows as before. This is a topology change in SaaS only and does not affect Self-Managed deployments. What's new: - [Unified API domain for Orchestration Clusters](#unified-api-domain-for-orchestration-clusters). Legacy hostnames are deprecated but will remain available throughout 8.9 and are scheduled for removal in 8.10. - [Web app URLs require an explicit application path.](#web-app-urls-require-an-explicit-application-path) The cluster base URL no longer redirects to Operate, Tasklist, or Admin automatically. - [Client credentials for new clusters use unified API URLs.](#client-credentials-and-legacy-hostnames) - [Cluster Metrics endpoint: `service` labels have changed on Orchestration Cluster metrics.](#service-label-changes) What didn't change: - The same UIs for Operate, Tasklist, and Admin/Identity and the REST API remain available, although web app URLs now [require an explicit application path](#web-app-urls-require-an-explicit-application-path). - The Zeebe gRPC endpoint is unchanged. ## Unified API domain for Orchestration Clusters Camunda 8.9 introduces a unified API domain for Orchestration Clusters. All services are now accessible under a single base URL: | Service | Unified URL (8.9) | | :------------------ | :------------------------------------------------------------ | | Base / REST API | `https://.api./` | | Operate UI | `https://.api.//operate` | | Tasklist UI | `https://.api.//tasklist` | | Admin (Identity) UI | `https://.api.//admin` | Legacy hostnames (`*.zeebe.`, `*.operate.`, `*.tasklist.`, and `*.identity.`) continue to work in 8.9 and are internally routed to the unified service, but are deprecated and scheduled for removal in 8.10. After the 8.10 release, only the Zeebe gRPC endpoint and the unified `*.api.*` endpoints will remain. ### Web app URLs require an explicit application path From 8.9, you must include the application path (`/operate`, `/tasklist`, or `/admin`) when opening a web app. Requesting the cluster base URL on its own no longer opens a web app. Before 8.9, Operate, Tasklist, and Admin ran as standalone applications, so the runtime could determine which frontend to serve and redirected the cluster base URL to the matching web app automatically. For example, `https://.operate.camunda.io/` redirected to `https://.operate.camunda.io//operate`. From 8.9, Operate, Tasklist, Admin, and the REST API are served by the same unified application, so the runtime cannot infer which frontend a request is for. The automatic redirect no longer happens, and the cluster base URL does not resolve to a web app. Update any stored links that rely on the previous redirect, including browser bookmarks, links saved in external systems, and links embedded in processes or documentation created before 8.9. Each must point at the full path: - `https://.api.//operate` - `https://.api.//tasklist` - `https://.api.//admin` To confirm the correct URL for a cluster, open the cluster in Camunda Console and use the launch links for Operate, Tasklist, or Admin. If your organization uses [IP allowlisting](/components/saas/clusters/manage-ip-allowlists.md), a request to the cluster base URL without an application path can return `403 Forbidden` rather than an obvious routing error, because the base path is subject to allowlist restrictions. A `403` on the base URL is therefore an expected symptom of a stored link that is missing its application path, not necessarily an allowlist misconfiguration. :::note URLs extracted from the HTML of Camunda web UIs are not a stable interface and can change between releases. Use the documented URL formats above or the Console launch links instead of scraping links from the UI. ::: ### Deprecation Legacy hostnames are deprecated as of 8.9 and will be removed in 8.10. Migrate any hard-coded URLs for Operate, Tasklist, or Identity to the new unified `*.api.*` URLs during the 8.9 lifecycle to ensure readiness before the 8.10 release. ## Client credentials and legacy hostnames Existing client credentials downloaded from Console for pre-8.9 clusters may reference legacy hostnames. Because those hostnames remain available in 8.9, existing credentials continue to work after a cluster is upgraded to 8.9. No immediate action is required. ### Recommended action For long-lived automation and CI/CD systems, Camunda recommends updating credentials to use the new unified `*.api.*` URLs and corresponding token audience values before 8.10. You have two options: - **Update existing credentials manually:** Edit the hostnames and token audience values in your existing credential configuration to reference the new unified URLs. For example: - **Legacy (pre-8.9):** - **Base URL:** `https://bru-2.operate.camunda.io/abc123-def456-ghi789` - **Audience:** `operate.camunda.io` - **New (from 8.9):** - **Base URL:** `https://bru-2.api.camunda.io/abc123-def456-ghi789/operate` - **Audience:** `api.camunda.io` - **Create new credentials:** Create a fresh set of client credentials in Camunda Console, which will be generated with the unified API URLs and correct audience values by default. ## Service label changes Breaking change Due to the streamlined orchestration architecture introduced in 8.9, metrics previously emitted by the individual Operate, Tasklist, and Identity services are now emitted by the unified orchestration service. As a result, the `service` label on affected metrics will change to reflect the new source service. This applies to Camunda 8 SaaS clusters using the [Cluster Metrics endpoint](/components/saas/monitoring/cluster-metrics-endpoint/set-up-cluster-metrics-endpoint.md). ### Impact Monitoring dashboards, alerting rules, or queries that filter or group by the `service` label on Orchestration Cluster metrics may stop matching expected values after upgrading to 8.9, as some metrics will now be emitted by a different source service. ### Action required After your cluster is upgraded to 8.9, review your dashboards and alerting rules and verify which `service` label values your metrics return. Update any Prometheus queries or alert definitions that no longer match. ## Upgrade behavior and expected downtime When a Camunda 8 SaaS Orchestration Cluster is upgraded from 8.8 to 8.9: 1. The existing Operate and Tasklist components are shut down. 2. The unified orchestration service starts in their place. 3. Endpoint routing is updated so legacy hostnames continue to resolve while the new `*.api.*` endpoints become active. ### Impact during upgrade - **Web UIs and REST API:** You should expect a short interruption while the old services are removed and the unified service becomes ready. This affects all services, but not the Zeebe brokers. - **Workflow execution (Zeebe brokers):** Designed to remain running throughout the upgrade. The primary impact is limited to UI and API availability, not to engine execution state. To upgrade, initiate the cluster upgrade to 8.9 from Camunda Console. No additional steps are required beyond the URL and credential recommendations above. --- ## Process application management in Web Modeler API v1 ## About these changes In Camunda 8.9, process applications were not explicitly exposed in Web Modeler API v1. There were no process application endpoints. However, process applications were implicitly accessible as folders. For example: - You could pass a process application ID to `DELETE /api/v1/folders/{folderId}` to delete the process application. - The response for `GET /api/v1/folders/{folderId}` returns a `parentId`, representing the folder's parent folder. If the parent is in a process application, rather than another folder, the process application ID is returned. Camunda 8.10 changes how resources are organized. Review [structure and terminology](./migrate-from-web-modeler-to-hub-api.md#structure-and-terminology) for an explanation of these changes. To support the new file hierarchy, two major changes have been introduced to Web Modeler API v1: - Process applications are no longer implicitly accessible via v1 folders, files, and project APIs. - New process application APIs and changes to existing APIs are introduced to make access explicit. :::note DEPRECATED Web Modeler API v1 is deprecated in Camunda 8.10 and will be removed in 8.12. [Migrate to Camunda Hub REST API v2](../migration-manuals/migrate-from-web-modeler-to-hub-api.md). ::: ## Folders API You can no longer access process applications as folders in any folders API context. Instead, process applications are now explicitly represented. ### Folder IDs reference folders In folders API requests, you'll receive a `404 NOT FOUND` if you pass a process application ID as the `folderId`. Previously, you could pass a process application's ID when deleting, reading, and updating folders. Example: ```shell GET /api/v1/folders/1ef492f5-7ddc-43a7-b5e2-f5ad5c14b676 # must be a folder, not a process application ``` Affected endpoints: - `DELETE /api/v1/folders/{folderId}` - `GET /api/v1/folders/{folderId}` - `PATCH /api/v1/folders/{folderId}` Instead of passing the process application ID to the folders endpoints, use the new process application endpoints: - [`DELETE /api/v1/process-applications/{processApplicationId}`](https://modeler.camunda.io/swagger-ui/index.html#/Process%20Applications/deleteProcessApplication) - [`GET /api/v1/process-applications/{processApplicationId}`](https://modeler.camunda.io/swagger-ui/index.html#/Process%20Applications/getProcessApplication) - [`PATCH /api/v1/process-applications/{processApplicationId}`](https://modeler.camunda.io/swagger-ui/index.html#/Process%20Applications/updateProcessApplication) Example: ```shell GET /api/v1/process-applications/e005e49a-dce8-42ee-b0db-30b1d5555ebd # must be a process application, not a folder ``` ### Parent IDs reference folders In folders API requests, you'll receive a `404 NOT FOUND` if you pass a process application ID as the `parentId`. Previously, you could pass a process application's ID when writing data. Use the new `processApplicationId` field to specify the target process application and, optionally, the `parentId` field to specify a target folder. Example: ```shell POST /api/v1/folders { "name": "Nested folder", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "parentId": "1ef492f5-7ddc-43a7-b5e2-f5ad5c14b676", # must be a folder, not a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd" # new process application field } ``` Affected endpoints: - `PATCH /api/v1/folders/{folderId}` - `POST /api/v1/folders` ### Process applications are never returned as parent folders In folders API responses, the `parentId` is null for any folder stored at the root of a process application. Previously, `parentId` would return the process application ID. The process application ID is, instead, returned in a new `processApplicationId` field. Example: ```json { "id": "f169a3d4-056b-463c-b4c9-6c3600c2213a", "name": "Root folder", "projectId": "58a93bf7-4ea0-4e56-85fa-5c8fccc3877d", "parentId": null, // null if the parent container is a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ``` Affected endpoints: - `GET /api/v1/folders/{folderId}` - `PATCH /api/v1/folders/{folderId}` - `POST /api/v1/folders` ## Files API You can no longer access process applications as folders in any files API context. Instead, process applications are now explicitly represented. ### Folder ID must reference a folder In files API requests, you'll receive a `404 NOT FOUND` if you pass a process application ID as the `folderId`. Previously, you could pass a process application's ID to place the file in the process application. Use the new `processApplicationId` field to specify the target process application and, optionally, the `folderId` field to specify a target folder. ```shell POST /api/v1/files { "name": "New BPMN diagram", "folderId": "cdcf3895-1061-4084-b97e-c0abaab59b6f", # must be a folder, not a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", # new process application field "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "content": "...", "fileType": "BPMN" } ``` Affected endpoints: - `PATCH /api/v1/files/{fileId}` - `POST /api/v1/files` ### Process applications are never returned as folders In files API responses, the `folderId` is null for any file stored at the root of a process application. Previously, `folderId` would return the process application ID. The process application ID is, instead, returned in a new `processApplicationId` field. Example: ```json { "id": "5cafbf6a-d5d8-4ed2-8dae-b950ce3597c3", "name": "New BPMN diagram", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": null, // null if the parent container is a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "simplePath": "New BPMN diagram.bpmn", "canonicalPath": [], "revision": 2, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ``` Affected endpoints: - `GET /api/v1/files/{fileId}` - `PATCH /api/v1/files/{fileId}` - `POST /api/v1/files/search` - `POST /api/v1/files` ### File paths exclude process applications In files API endpoints, the `simplePath` and `canonicalPath` omit the container process application. Previously, the process application was included if it was on the path. Example: ```json { "metadata": { "id": "ed043868-556f-4a93-97dc-3cba1652363c", "name": "New BPMN diagram", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "simplePath": "Root folder/New BPMN diagram.bpmn", // excludes process applications "canonicalPath": [ // excludes process applications { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder" } ], "revision": 2, "type": "BPMN", "created": "2026-08-24T17:35:46.329162Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T17:35:46.330218Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, "content": "..." } ``` Affected endpoints: - `GET /api/v1/files/{fileId}` - `PATCH /api/v1/files/{fileId}` - `POST /api/v1/files/search` (the process application is excluded from these paths in both the response and the request `filter`) - `POST /api/v1/files` ### Search for files in a process application With `POST /api/v1/files/search`, you can now use a new `processApplicationId` filter. Example: ```shell POST /api/v1/files/search { "filter": { "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd" } } ``` ## Projects API You can no longer access process applications as folders in any projects API context. Instead, process applications are now explicitly represented. ### Process applications are never returned as parent folders In the `GET /api/v1/projects/{projectId}` response, the `content.folders[i].parentId` and `content.files[i].folderId` are null for any folder or file stored at the root of a process application. Previously, `parentId` and `folderId` would return the process application ID. The process application ID is, instead, returned in a new `processApplicationId` field. Example: ```json { "metadata": { "id": "fb928277-6268-44bb-b3e6-1925fa730ecf", "name": "Project", "created": "2026-08-24T17:35:46.329162Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T17:35:46.330218Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, "content": { "folders": [ { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "parentId": null, // null if the parent container is a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "created": "2026-08-24T14:37:04.36503Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:37:07.470563Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "files": [ { "id": "5a6aa24f-844b-4da2-9118-007f5c1a2df7", "name": "Root file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": null, // null if the parent container is a process application "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "simplePath": "Root file.bpmn", "canonicalPath": [], "revision": 2, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, { "id": "ed043868-556f-4a93-97dc-3cba1652363c", "name": "Nested file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", // new process application field "simplePath": "Root folder/Nested file.bpmn", "canonicalPath": [ { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder" } ], "revision": 3, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "processApplications": [ { "id": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "name": "Process application", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ] } } ``` ### File paths exclude process applications In the `GET /api/v1/projects/{projectId}` response, under `content.files`, the `simplePath` and `canonicalPath` omit the container process application. Previously, the process application was included if it was on the path. Example: ```json { "metadata": { "id": "fb928277-6268-44bb-b3e6-1925fa730ecf", "name": "Project", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, "content": { "folders": [ { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "parentId": null, "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "created": "2026-08-24T14:37:04.36503Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:37:07.470563Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "files": [ { "id": "5a6aa24f-844b-4da2-9118-007f5c1a2df7", "name": "Root file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": null, "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "simplePath": "Root file.bpmn", // excludes process applications "canonicalPath": [], // excludes process applications "revision": 2, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, { "id": "ed043868-556f-4a93-97dc-3cba1652363c", "name": "Nested file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "simplePath": "Root folder/Nested file.bpmn", // excludes process applications "canonicalPath": [ // excludes process applications { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder" } ], "revision": 3, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "processApplications": [ { "id": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "name": "Process application", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ] } } ``` ### Project folders exclude process applications In the `GET /api/v1/projects/{projectId}` response, `content.folders` excludes process applications. Previously, process applications were included in this list. The process applications are, instead, returned in a new `content.processApplications` field. ```json { "metadata": { "id": "fb928277-6268-44bb-b3e6-1925fa730ecf", "name": "Project", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, "content": { "folders": [ // excludes process applications { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "parentId": null, "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "created": "2026-08-24T14:37:04.36503Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:37:07.470563Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "files": [ { "id": "5a6aa24f-844b-4da2-9118-007f5c1a2df7", "name": "Root file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": null, "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "simplePath": "Root file.bpmn", "canonicalPath": [], "revision": 2, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } }, { "id": "ed043868-556f-4a93-97dc-3cba1652363c", "name": "Nested file", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "folderId": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "processApplicationId": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "simplePath": "Root folder/Nested file.bpmn", "canonicalPath": [ { "id": "cdcf3895-1061-4084-b97e-c0abaab59b6f", "name": "Root folder" } ], "revision": 3, "type": "BPMN", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ], "processApplications": [ // new process applications list { "id": "e005e49a-dce8-42ee-b0db-30b1d5555ebd", "name": "Process application", "projectId": "fb928277-6268-44bb-b3e6-1925fa730ecf", "created": "2026-08-24T14:17:33.889317Z", "createdBy": { "name": "Jane Doe", "email": "jane.doe@email.com" }, "updated": "2026-08-24T14:23:48.371161659Z", "updatedBy": { "name": "Jane Doe", "email": "jane.doe@email.com" } } ] } } ``` ## Versions API ### Version individual process application files With `POST /api/v1/versions`, you can now publish a new version for process application files. Previously, this endpoint returned a `400 BAD REQUEST` because files were intended to be versioned as part of the process application. See [process application versioning model](/reference/announcements-release-notes/8100/whats-new-in-810.md#process-application-versioning-model) for a deeper explanation of this change. A project snapshot references each element template's last published version, not any unpublished draft changes, so creating a snapshot never creates a new element template version. ## Create a process application Create process applications with the new [`POST /api/v1/process-applications` endpoint](https://modeler.camunda.io/swagger-ui/index.html#/Process%20Applications/createProcessApplication). Previously, you could create files and folders at the project root without a process application. Now, files and folders must be stored in a process application. With this endpoint, you can create an entire file structure with the API, including the container process application. --- ## Migrate from the removed Operate API :::warning The Operate API was removed in Camunda 8.10 and is no longer part of the current documentation set. ::: For the release-level summary of this removal, see the [8.10 release announcement](/reference/announcements-release-notes/8100/8100-announcements.md#removal-of-legacy-apis-tasklist-v1-dependent-features-and-zeebe-process-test). Use the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) for current integrations, and review [migrating to the Orchestration Cluster REST API](/apis-tools/migration-manuals/migrate-to-camunda-api.md) if you still have clients that call the removed Operate API. If you need legacy Operate API behavior as migration context, use the migration manuals in the current docs rather than building new integrations against the removed endpoints. --- ## Disable sharing This API allows users to disable the sharing functionality for all reports and dashboards in Optimize. Note that this setting will be permanently persisted in memory and will take precedence over any other previous configurations (e.g. configuration files). When sharing is disabled, previously shared URLs will no longer be accessible. Upon re-enabling sharing, the previously shared URLs will work once again under the same address as before. Calling this endpoint when sharing is already disabled will have no effect. ## Method & HTTP target resource POST `api/public/share/disable` ## Request headers The following request headers must be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------- | | Authorization | REQUIRED | See [authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters necessary. ## Request body An empty request body should be sent. ## Response codes Possible HTTP Response Status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Disable sharing POST `api/public/share/disable` #### Request header `Authorization: Bearer ` #### Response Status 204 (Successful) #### Response content ``` no content ``` --- ## Enable sharing This API allows users to enable the sharing functionality for all reports and dashboards in Optimize. Note that this setting will be permanently persisted in memory and will take precedence over any other previous configurations (e.g. configuration files). If sharing had been previously enabled and then disabled, re-enabling sharing will allow users to access previously shared URLs under the same address as before. Calling this endpoint when sharing is already enabled will have no effect. ## Method & HTTP target resource POST `api/public/share/enable` ## Request headers The following request headers must be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------- | | Authorization | REQUIRED | See [authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters necessary. ## Request body An empty request body should be sent. ## Response codes Possible HTTP Response Status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Enable sharing POST `api/public/share/enable` #### Request header `Authorization: Bearer ` #### Response Status 204 (Successful) #### Response content ``` no content ``` --- ## Delete dashboards The dashboards deletion API allows you to delete dashboards by ID from Optimize. :::note Heads up! The deletion of a dashboard does not affect the referenced reports. ::: ## Method & HTTP target resource DELETE `/api/public/dashboard/{dashboard-ID}` Where `dashboard-ID` is the ID of the dashboard you wish to delete. ## Request headers The following request headers have to be provided with every delete request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------- | | Authorization | REQUIRED | See [authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters available. ## Request body No request body is required. ## Result No response body. ## Response codes Possible HTTP Response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 404 | The requested dashboard was not found, please check the provided dashboard-ID. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Delete a dashboard To delete the dashboard with the ID `e6c5abb1-6a18-44e7-8480-d562d511ba62`, send the following request: DELETE `/api/public/dashboard/e6c5aaa1-6a18-44e7-8480-d562d511ba62` #### Request header `Authorization: Bearer ` #### Response Status 204. --- ## Export dashboard definitions This API allows users to export dashboard definitions which can later be imported into another Optimize system. Note that exporting a dashboard also exports all reports contained within the dashboard. The dashboards to be exported may be within a Collection or private entities, the API has access to both. The obtained list of entity exports can be imported into other Optimize systems either using the dedicated [import API](../import-entities.md) or [via UI](components/optimize/userguide/additional-features/export-import.md#importing-entities). ## Method & HTTP target resource POST `/api/public/export/dashboard/definition/json` ## Request headers The following request headers have to be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | --------------------------------------------------- | | Authorization | REQUIRED | [Authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters available. ## Request body The request body should contain a JSON array of dashboard IDs to be exported. ## Result The response contains a list of exported dashboard definitions as well as all report definitions contained within the dashboards. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 404 | At least one of the given dashboard IDs does not exist. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Export two dashboards To export the two dashboards with IDs `123` and `456`, send the following request: POST `/api/public/export/dashboard/definition/json` #### Request header `Authorization: Bearer ` #### Request body ``` [ "123", "456" ] ``` #### Response Status 200. #### Response content The response contains the two exported dashboard definitions as well as all three process reports contained within the two dashboards. ``` [ { "id": "61ae2232-51e1-4c35-b72c-c7152ba264f9", "exportEntityType": "single_process_report", "name": "Number: Process instance duration", "description": "This report shows the average instance duration", "sourceIndexVersion": 11, "collectionId": null, "data": {...} }, { "id": "625c2411-b95f-4442-936b-1976b9511d4a", "exportEntityType": "single_process_report", "name": "Heatmap: Flownode count", "description": "This report shows a heatmap of the number of instances", "sourceIndexVersion": 11, "collectionId": null, "data": {...} }, { "id": "94a7252e-d5c3-45ea-9906-75271cc0cac2", "exportEntityType": "single_process_report", "name": "Data Table: User task count", "description": "This report shows number of user tasks", "sourceIndexVersion": 11, "collectionId": null, "data": {...} }, { "id": "123", "exportEntityType": "dashboard", "name": "Dashboard 1", "description": "A dashboard showing possible automation candidates", "sourceIndexVersion": 8, "reports": [ { "id": "61ae2232-51e1-4c35-b72c-c7152ba264f9", ... }, { "id": "625c2411-b95f-4442-936b-1976b9511d4a", ... } ], "availableFilters": [...], "collectionId": null }, { "id": "456", "exportEntityType": "dashboard", "name": "Dashboard 2", "description": "A dashboard showing user task data", "sourceIndexVersion": 8, "reports": [ { "id": "94a7252e-d5c3-45ea-9906-75271cc0cac2", ... } ], "availableFilters": [...], "collectionId": null } ] ``` --- ## Get dashboard IDs This API allows users to retrieve all dashboard IDs from a given collection. ## Method & HTTP target resource GET `/api/public/dashboard` ## Request headers The following request headers have to be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | --------------------------------------------------- | | Authorization | REQUIRED | [Authentication](../optimize-api-authentication.md) | ## Query parameters The following query parameters have to be provided with every request: | Parameter | Constraints | Value | | ------------ | ----------- | ----------------------------------------------------------------- | | collectionId | REQUIRED | The ID of the collection for which to retrieve the dashboard IDs. | ## Request body No request body is required. ## Result The response contains a list of IDs of the dashboards existing in the collection with the given collection ID. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 200 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Retrieve all dashboard IDs from a collection To get all dashboard IDs in the collection with the ID `1234`, send the following request: GET `/api/public/dashboard?collectionId=1234` #### Request header `Authorization: Bearer ` #### Response Status 200. #### Response content ``` [ { "id": "9b0eb845-e8ed-4824-bd85-8cd69038f2f5" }, { "id": "1a866c7c-563e-4f6b-adf1-c4648531f7d4" } ] ``` --- ## Delete process definition data With the process definition data deletion API, you can delete all Optimize analytics data associated with a specific process definition, identified by its numeric process definition key. ## Functionality This endpoint deletes Optimize's own data (process instances and the process definition) for the given process definition key. If this is the last remaining version of the process for its tenant, it also clears any cached process definition BPMN XML from reports that reference it. It does not delete the process definition from the cluster. To remove a process definition from the cluster, use the [Delete resource](/apis-tools/orchestration-cluster-api-rest/specifications/delete-resource.api.mdx) endpoint. It also does not delete the underlying Elasticsearch or OpenSearch indices. The request is processed asynchronously. The deletion is queued until a background job performs the actual data deletion. ## Configuration In Self-Managed, enable the job registry dispatcher so queued deletion requests get processed. See [Process definition data deletion](/self-managed/components/optimize/configuration/process-definition-deletion.md) for the required configuration. ## Usage notes Deleting a process definition's data does not automatically update reports, dashboards, or alerts that reference it. Aside from clearing any cached process definition BPMN XML on a report, these entities are left as-is. Manually update or remove any reports, dashboards, or alerts that reference a deleted process definition. ## Method & HTTP target resource DELETE `/api/public/process-definition/{processDefinitionKey}` Where `processDefinitionKey` is the numeric key of the process definition whose Optimize data you want to delete. ## Request headers The following request headers have to be provided with every delete request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------ | | Authorization | REQUIRED | See [authentication](./optimize-api-authentication.md) | ## Path parameters | Parameter | Constraints | Value | | ---------------------- | ----------- | ------------------------------------------------------------- | | `processDefinitionKey` | REQUIRED | The numeric key of the process definition to delete data for. | ## Query parameters No query parameters available. ## Request body No request body is required. ## Result No response body. A `202` response confirms the deletion request was accepted and queued. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | ------------------------------------------------------------------------------------------------------------------------ | | 202 | Request accepted. The deletion has been queued for asynchronous processing. | | 400 | The provided `processDefinitionKey` is not numeric. | | 401 | Authentication credentials are incorrect or missing. See [authentication](./optimize-api-authentication.md) for details. | | 404 | No process definition was found for the provided `processDefinitionKey`. | | 409 | A deletion request for this `processDefinitionKey` is already queued. | ## Example ### Delete a process definition's data Deleting the Optimize data for the process definition with the key `2251799813685247`: DELETE `/api/public/process-definition/2251799813685247` #### Request header `Authorization: Bearer ` #### Response Status 202. --- ## External variable ingestion With the external variable ingestion API, variable data held in external systems can be ingested into Optimize directly, without the need for these variables to be present in your Camunda platform data. This can be useful when external business data, which is relevant for process analysis in Optimize, is to be associated with specific process instances. Especially if this data changes over time, it is advisable to use this REST API to persist external variable updates to Optimize, as otherwise Optimize may not be aware of data changes in the external system. ## Functionality The external variable ingestion API allows users to ingest batches of variable data which Optimize stores in a dedicated index. All variable data includes a reference to the process instance each variable belongs to, this reference then enables Optimize to import external variable data from the dedicated index to their respective process instances at regular intervals. Once Optimize has updated the process instance data, the external variables are available for report evaluations in Optimize. ## Limitations Note that external variables should be treated as separate from engine variables. If you ingest variables that are already present in the engine, engine imports may override the ingested data and vice versa, leading to unreliable report results. Similarly, if the same ingested batch contains variables with duplicate IDs, you may experience unexpected report results because Optimize will assume only one of the updates per ID and batch to be the most up to date one. Additionally, ensure the reference information (process instance ID and process definition key) is accurate, as otherwise Optimize will not be able to correctly associate variables with instance data and may create new instance indices, resulting in data which will not be usable in reports. External variables can only be ingested for process instances and will not be affected by any configured variable plugin. ## Configuration Refer to the [configuration section](../../self-managed/components/optimize/configuration/system-configuration.md) to learn more about how to set up external variable ingestion. ## Method & HTTP target resource POST `/api/ingestion/variable` ## Request headers The following request headers have to be provided with every variable ingestion request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------- | | Authorization | REQUIRED | See [authentication](./optimize-api-authentication.md). | | Content-Type | REQUIRED | `application/json` | ## Request body The request body contains an array of variable JSON Objects: | Name | Type | Constraints | Description | | -------------------- | ------ | ----------- | ------------------------------------------------------------------------------------------------- | | id | String | REQUIRED | The unique identifier of this variable. | | name | String | REQUIRED | The name of the variable. | | type | String | REQUIRED | The type of the variable. Must be one of: String, Short, Long, Double, Integer, Boolean, or Date. | | value | String | REQUIRED | The current value of the variable. | | processInstanceId | String | REQUIRED | The ID of the process instance this variable is to be associated with. | | processDefinitionKey | String | REQUIRED | The definition key of the process instance this variable is to be associated with. | ## Result This method returns no content. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | ------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 400 | Returned if some properties in the request body are invalid or missing. | | 401 | Token incorrect or missing. See [authentication](./optimize-api-authentication.md) on how to authorize. | ## Example ### Request POST `/api/ingestion/variable` Request Body: ``` [ { "id": "7689fced-2639-4408-9de1-cf8f72769f43", "name": "address", "type": "string", "value": "Main Street 1", "processInstanceId": "c6393461-02bb-4f62-a4b7-f2f8d9bbbac1", "processDefinitionKey": "shippingProcess" }, { "id": "993f4e73-7f6a-46a6-bd45-f4f8e3470ba1", "name": "amount", "type": "integer", "value": "500", "processInstanceId": "8282ed49-2243-44df-be5e-1bf893755d8f", "processDefinitionKey": "orderProcess" } ] ``` ### Response Status 204. --- ## Health readiness The purpose of Health-Readiness REST API is to return information indicating whether Optimize is ready to be used. :::note The Health-Readiness REST API does not require an [`Authorization` header](./optimize-api-authentication.md). If a request includes one, the header is ignored. ::: ## Method & HTTP target resource GET `/api/readyz` ## Response The response is an empty body with the status code indicating the readiness of Optimize. The following responses are available: - `200`: This indicates that Optimize is ready to use. It is connected to both Elasticsearch and at least one of its configured engines. - `503`: This indicates that Optimize is not ready to use. It cannot connect to either Elasticsearch or any of its configured engines. --- ## Import entities This API allows users to import entity definitions such as reports and dashboards into existing collections. These entity definitions may be obtained either using the [report](../report/export-report-definitions/) or [dashboard](../dashboard/export-dashboard-definitions) export API or [via the UI](components/optimize/userguide/additional-features/export-import.md#exporting-entities). ## Prerequisites For importing via API, the following prerequisites must be met: - All definitions the entities require exist in the target Optimize. - The target collection, identified using the `collectionId` query parameter, must exist in the target system. - The collection data sources must include all relevant definitions for the entities. - The entity data structures match. To ensure matching data structures, confirm that the Optimize version of the source is the same as the version of the target Optimize. If any of the above conditions are not met, the import will fail with an error response; refer to the error message in the response for more information. ## Method & HTTP target resource POST `/api/public/import` ## Request headers The following request headers have to be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | -------------------------------------------------- | | Authorization | REQUIRED | [Authentication](./optimize-api-authentication.md) | ## Query parameters The following query parameters have to be provided with every request: | Parameter | Constraints | Value | | ------------ | ----------- | -------------------------------------------------------------- | | collectionId | REQUIRED | The ID of the collection for which to retrieve the report IDs. | ## Request body The request body should contain a JSON array of entity definitions to be imported. These entity definitions may be obtained by using the [report](../report/export-report-definitions) or [dashboard](../dashboard/export-dashboard-definitions) export APIs or by [manually exporting entities](components/optimize/userguide/additional-features/export-import.md#exporting-entities) via the Optimize UI. ## Result The response contains a list of DTOs that specify the ID and entity type (`report` or `dashboard`) of each newly created entity in the target system. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 200 | Request successful. | | 400 | The provided list of entities is invalid. This can occur if any of the above listed [prerequisites](#prerequisites) are not met. Check the `detailedMessage` of the error response for more information. | | 401 | Token incorrect or missing in HTTP header. See [authentication](./optimize-api-authentication.md) on how to authenticate. | | 404 | The given target collection ID does not exist. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Import two entities To import a report and a dashboard into the collection with the ID `123`, send the following request: POST `/api/public/import?collectionId=123` #### Request header `Authorization: Bearer ` #### Request body ``` [ { "id": "61ae2232-51e1-4c35-b72c-c7152ba264f9", "exportEntityType": "single_process_report", "name": "Number: Process instance duration", "description": "This report shows the average instance duration", "sourceIndexVersion": 11, "collectionId": null, "data": {...} }, { "id": "b0eb845-e8ed-4824-bd85-8cd69038f2f5", "exportEntityType": "dashboard", "name": "Dashboard 1", "description": "This dashboard displays reports relating to process durations", "sourceIndexVersion": 8, "reports": [ { "id": "61ae2232-51e1-4c35-b72c-c7152ba264f9", ... } ], "availableFilters": [...], "collectionId": null } ] ``` #### Response Status 200. #### Response Content ``` [ { "id": "e8ca18b9-e637-45c8-87da-0a2b08b34d6e", "entityType": "dashboard" }, { "id": "290b3425-ba33-4fbb-b20b-a4f236036847", "entityType": "report" } ] ``` --- ## Authentication(Optimize-api) All Optimize API requests except [the health readiness](./health-readiness.md) endpoint require authentication. To authenticate, generate a [JSON Web Token (JWT)](https://jwt.io/introduction/) and include it in each request. ## Generate a token 1. [Create client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub. 2. Add permissions to this client for **Optimize**. 3. Once you have created the client, capture the following values required to generate a token: | Name | Environment variable name | Default value | | ------------------------ | -------------------------------- | -------------------------------------------- | | Client ID | `ZEEBE_CLIENT_ID` | - | | Client Secret | `ZEEBE_CLIENT_SECRET` | - | | Authorization Server URL | `ZEEBE_AUTHORIZATION_SERVER_URL` | `https://login.cloud.camunda.io/oauth/token` | | Optimize REST Address | `CAMUNDA_OPTIMIZE_BASE_URL` | - | :::caution When client credentials are created, the `Client Secret` is only shown once. Save this `Client Secret` somewhere safe. ::: 4. Execute an authentication request to the token issuer: ```bash curl --request POST ${ZEEBE_AUTHORIZATION_SERVER_URL} \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode 'audience=optimize.camunda.io' \ --data-urlencode "client_id=${ZEEBE_CLIENT_ID}" \ --data-urlencode "client_secret=${ZEEBE_CLIENT_SECRET}" ``` A successful authentication response looks like the following: ```json { "access_token": "", "expires_in": 300, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0 } ``` 5. Capture the value of the `access_token` property and store it as your token. 1. [Configure the `camunda.security.authentication.oidc.audiences` setting](/self-managed/concepts/authentication/authentication-to-optimize.md#configure-oidc-for-optimize) in your Optimize installation to match the audience property of the **Optimize API** in [Management Identity](/self-managed/components/management-identity/access-management/access-management-overview.md). 2. [Add an M2M application in Management Identity](/self-managed/components/management-identity/application-user-group-role-management/applications.md). 3. [Add permissions to this application](/self-managed/components/management-identity/application-user-group-role-management/applications.md) for **Optimize API**. 4. Capture the `Client ID` and `Client Secret` from the application in Management Identity. 5. [Generate a token](/self-managed/components/management-identity/authentication.md) to access the Optimize REST API. Provide the `client_id` and `client_secret` from the values you previously captured in Management Identity. ```shell curl --location --request POST 'http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "client_id=${CLIENT_ID}" \ --data-urlencode "client_secret=${CLIENT_SECRET}" \ --data-urlencode 'grant_type=client_credentials' ``` A successful authentication response looks like the following: ```json { "access_token": "", "expires_in": 300, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0 } ``` 6. Capture the value of the `access_token` property and store it as your token. Through Camunda 8.9, Self-Managed also accepted a single shared access token on this API. Camunda 8.10 no longer accepts it. The token works only if you opt into the 8.9 component-specific configuration fallback, which Camunda plans to remove in a future release. See [Optimize static API access token is no longer supported](/reference/announcements-release-notes/8100/8100-announcements.md#optimize-static-api-access-token-is-no-longer-supported). ## Use a token Include the previously captured token as an authorization header in each request: `Authorization: Bearer `. For example, to send a request to the Optimize API's ["Get dashboard IDs"](./dashboard/get-dashboard-ids.md) endpoint: :::tip The `${CAMUNDA_OPTIMIZE_BASE_URL}` variable below represents the URL of the Optimize API. You can capture this URL when creating an API client. You can also construct it as `https://${REGION}.optimize.camunda.io/${CLUSTER_ID}`. ::: :::tip The `${CAMUNDA_OPTIMIZE_BASE_URL}` variable below represents the URL of the Optimize API. You can configure this value in your Self-Managed installation. The default value is `http://localhost:8083`. ::: ```shell curl --header "Authorization: Bearer ${TOKEN}" \ -G --data-urlencode "collectionId=${COLLECTION_ID}" \ ${CAMUNDA_OPTIMIZE_BASE_URL}/api/public/dashboard ``` A successful response includes [dashboard IDs](./dashboard/get-dashboard-ids.md). For example: ```json [ { "id": "11111111-1111-1111-1111-111111111111" }, { "id": "22222222-2222-2222-2222-222222222222" } ] ``` ## Token expiration Access tokens expire according to the `expires_in` property of a successful authentication response. After this duration, in seconds, you must request a new access token. --- ## Optimize API ## About You can use the Optimize API to: - Retrieve, create, update, and delete reports and dashboards - Export dashboards and reports for sharing or backup - Enable or disable sharing links ## Authentication All Optimize API requests, except [the health readiness](./health-readiness.md) endpoint, require authentication. To authenticate, generate a [JSON Web Token (JWT)](https://jwt.io/introduction/) and include it in each request. For more details, see the [Authentication](./optimize-api-authentication.md) section. ## API Postman collection To get started quickly, consider using the [Postman collection](https://www.postman.com/camundateam/workspace/camunda-8-postman/collection/24684262-a1103c05-7ed8-4fd4-8716-9005583ce23a?action=share&creator=11465105). ## Usage notes Deleting a file, folder, or project via the API is immediate and cannot be undone. Use caution. ## Further resources - [Authentication](./optimize-api-authentication.md) - [Camunda Optimize documentation](/components/optimize/what-is-optimize.md) - [Postman collection](https://www.postman.com/camundateam/workspace/camunda-8-postman/collection/24684262-a1103c05-7ed8-4fd4-8716-9005583ce23a?action=share&creator=11465105) --- ## Delete reports The report deletion API allows you to delete reports by ID from Optimize. :::note Heads up! During deletion a report will get removed from any dashboard or combined process report it is referenced by. In case a report is referenced by an alert, the corresponding alert will get deleted too. ::: ## Method & HTTP target resource DELETE `/api/public/report/{report-ID}` Where `report-ID` is the ID of the report you wish to delete. ## Request headers The following request headers have to be provided with every delete request: | Header | Constraints | Value | | ------------- | ----------- | ------------------------------------------------------- | | Authorization | REQUIRED | See [authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters available. ## Request body No request body is required. ## Result No response body. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 404 | The requested report was not found, please check the provided report-ID. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Delete a report To delete the report with the ID `e6c5abb1-6a18-44e7-8480-d562d511ba62`, send the following request: DELETE `/api/public/report/e6c5aaa1-6a18-44e7-8480-d562d511ba62` #### Request header `Authorization: Bearer ` #### Response Status 204. --- ## Export report definitions This API allows users to export report definitions which can later be imported into another Optimize system. The reports to be exported may be within a collection or private entities, the API has access to both. The obtained list of entity exports can be imported into other Optimize systems either using the dedicated [import API](../import-entities.md) or [via UI](components/optimize/userguide/additional-features/export-import.md#importing-entities). ## Method & HTTP target resource POST `/api/public/export/report/definition/json` ## Request headers The following request headers have to be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | --------------------------------------------------- | | Authorization | REQUIRED | [Authentication](../optimize-api-authentication.md) | ## Query parameters No query parameters available. ## Request body The request body should contain a JSON array of report IDs to be exported. ## Result The response contains a list of exported report definitions. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 204 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 404 | At least one of the given report IDs does not exist. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Export two reports To export the two reports with IDs `123` and `456`, send the following request: POST `/api/public/export/report/definition/json` #### Request header `Authorization: Bearer ` #### Request body ``` [ "123", "456" ] ``` #### Response Status 200. #### Response content ``` [ { "id": "123", "exportEntityType": "single_process_report", "name": "Number: Process instance duration", "sourceIndexVersion": 8, "collectionId": "40cb3657-bdcb-459d-93ce-06877ac7244a", "data": {...} }, { "id": "456", "exportEntityType": "single_process_report", "name": "Heatmap: Flownode count", "sourceIndexVersion": 8, "collectionId": "40cb3657-bdcb-459d-93ce-06877ac7244a", "data": {...} } ] ``` --- ## Export report result data The data export API allows users to export large amounts of data in a machine-readable format (JSON) from Optimize. ## Functionality Users can export all report types (except combined process reports) from `Optimize` using the Data Export API. Moreover, raw data reports will include additional data relating to the executed flow nodes and can be exported in a paginated fashion, so that large amounts of data can be consumed in chunks by the client. ### Pagination The simplest way to paginate through the results is to perform a search request with all the `REQUIRED` header/query parameters as described in the sections below (but without `searchRequestId`), then pass the `searchRequestId` returned in each response to the next request, until no more documents are returned. Note that it's often the case, but not guaranteed, that the `searchRequestId` remains stable through the entire pagination, so always use the `searchRequestId` from the most current response to make your next request. ## Method & HTTP target resource GET `/api/public/export/report/{report-ID}/result/json` Where `report-ID` is the ID of the report you wish to export. ## Request headers The following request headers have to be provided with every data export request: | Header | Constraints | Value | | ------------- | ----------- | --------------------------------------------------- | | Authorization | REQUIRED | [Authentication](../optimize-api-authentication.md) | ## Query parameters The following query parameters have to be provided with every data export request: | Parameter | Constraints | Value | | ----------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | limit | REQUIRED | Maximum number of records per page. Please note that the limit will only be considered when performing the request for the first page of a raw data report. The following requests for a given searchRequestId will have the same page size as the first request. | | paginationTimeout | REQUIRED | The amount of time (in seconds) for which a search context will be held in memory, so that the remaining pages of the result can be retrieved. For more information on how to paginate through the results, please refer to the section [Pagination](#pagination). | | searchRequestId | Optional | The ID of a previous search for which you wish to retrieve the next page of results. For more information on how to get and use a searchRequestId please refer to the section [Pagination](#pagination). | ## Request body No request body is required. ## Result | Content | Value | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | searchRequestId | The ID of the performed search. The following pages from this search can be retrieved by using this ID. For more information please refer to the section [Pagination](#pagination). | | numberOfRecordsInResponse | Number of records in the JSON Response. This is a number between [0, limit] | | totalNumberOfRecords | The total number of records (from all pages) for this report export | | reportId | The ID of the exported report | | message | In case there is additional information relevant to this request, this field will contain a message describing it. The response will only contain this field if there is a message to be shown | | data [Array] | An array containing numberOfRecordsInResponse report data records in JSON Format | ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 200 | Request successful. | | 400 | Returned if some of the properties from the request are invalid or missing. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 404 | The requested report was not found, please check the provided report-ID. | | 500 | Some error occurred while processing the export request, best check the Optimize log. | ## Example ### Export a raw data report To export the report with the ID `e6c5abb1-6a18-44e7-8480-d562d511ba62`, send the following request. It uses a maximum of two records per page and a pagination timeout of 60s. #### Initial API call GET `/api/public/export/report/e6c5aaa1-6a18-44e7-8480-d562d511ba62/result/json? paginationTimeout=60&limit=2` ##### Request header `Authorization: Bearer ` ##### Response content ``` { "searchRequestId": "FGluY2x1ZGVfY29udGV4dF91dWlkDXF1ZXJ", "numberOfRecordsInResponse": 2, "totalNumberOfRecords": 11, "reportId": "e6c5abb1-6a18-44e7-8480-d562d511ba62", "data": [ { "processDefinitionKey": "aProcess", "processDefinitionId": "aProcess:1:1801", "processInstanceId": "1809", "businessKey": "aBusinessKey", "startDate": "2021-12-02T17:21:49.330+0200", "endDate": "2021-12-02T17:21:49.330+0200", "duration": 0, "engineName": "camunda-bpm", "tenantId": null, "variables": {} }, { "processDefinitionKey": "aProcess", "processDefinitionId": "aProcess:1:1801", "processInstanceId": "1804", "businessKey": "aBusinessKey", "startDate": "2021-12-02T17:21:49.297+0200", "endDate": "2021-12-02T17:21:49.298+0200", "duration": 1, "engineName": "camunda-bpm", "tenantId": null, "variables": {} } ] } ``` ##### Response Status 200. #### Subsequent API calls Note here the use of the query parameter `searchRequestId` to retrieve further pages from the initial search. `GET /api/public/export/report/e6c5aaa1-6a18-44e7-8480-d562d511ba62/result/json?paginationTimeout=60&searchRequestId=FGluY2x1ZGVfY29udGV4dF91dWlkDXF1ZXJ&limit=2` ##### Request header `Authorization: Bearer ` ##### Response content ``` { "searchRequestId": "FGluY2x1ZGVfY29udGV4dF91dWlkDXF1ZXJ", "numberOfRecordsInResponse": 2, "totalNumberOfRecords": 11, "reportId": "e6c5abb1-6a18-44e7-8480-d562d511ba62", "data": [ { "processDefinitionKey": "aProcess", "processDefinitionId": "aProcess:1:1bc9474d-5762-11ec-8b2c-0242ac120003", "processInstanceId": "1bdafab8-5762-11ec-8b2c-0242ac120003", "businessKey": "aBusinessKey", "startDate": "2021-12-07T15:32:22.739+0200", "endDate": "2021-12-07T15:32:22.740+0200", "duration": 1, "engineName": "camunda-bpm", "tenantId": null, "variables": {} }, { "processDefinitionKey": "aProcess", "processDefinitionId": "aProcess:1:1bc9474d-5762-11ec-8b2c-0242ac120003", "processInstanceId": "1bda3763-5762-11ec-8b2c-0242ac120003", "businessKey": "aBusinessKey", "startDate": "2021-12-07T15:32:22.735+0200", "endDate": "2021-12-07T15:32:22.735+0200", "duration": 0, "engineName": "camunda-bpm", "tenantId": null, "variables": {} } ] } ``` ##### Response Status 200. --- ## Get report IDs This API allows users to retrieve all report IDs from a given collection. ## Method & HTTP target resource GET `/api/public/report` ## Request headers The following request headers have to be provided with every request: | Header | Constraints | Value | | ------------- | ----------- | --------------------------------------------------- | | Authorization | REQUIRED | [Authentication](../optimize-api-authentication.md) | ## Query parameters The following query parameters have to be provided with every request: | Parameter | Constraints | Value | | ------------ | ----------- | -------------------------------------------------------------- | | collectionId | REQUIRED | The ID of the Collection for which to retrieve the report IDs. | ## Request body No request body is required. ## Result The response contains a list of IDs of the reports existing in the collection with the given collection ID. ## Response codes Possible HTTP response status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------------------------------------------- | | 200 | Request successful. | | 401 | Token incorrect or missing in HTTP header. See [authentication](../optimize-api-authentication.md) on how to authenticate. | | 500 | Some error occurred while processing the request, best check the Optimize log. | ## Example ### Retrieve all report IDs from a collection To get all report IDs in the collection with the ID `1234`, send the following request: GET `/api/public/report?collectionId=1234` #### Request header `Authorization: Bearer ` ##### Response Status 200. ##### Response content ``` [ { "id": "9b0eb845-e8ed-4824-bd85-8cd69038f2f5" }, { "id": "1a866c7c-563e-4f6b-adf1-c4648531f7d4" } ] ``` --- ## Tutorial(Optimize-api) In this tutorial, we'll step through examples to highlight the capabilities of the Optimize API, such as listing your existing dashboard IDs, or deleting a dashboard. ## Prerequisites - If you haven't done so already, [create a cluster](/components/saas/clusters/create-cluster.md). - Upon cluster creation, [create your first client](/components/saas/clusters/manage-api-clients.md#create-a-client). Ensure you check the `Optimize` client scope box. :::note Make sure you keep the generated client credentials in a safe place. The **Client secret** will not be shown again. For your convenience, you can also download the client information to your computer. ::: - In this tutorial, we utilize a JavaScript-written [GitHub repository](https://github.com/camunda/camunda-api-tutorials) to write and run requests. Clone this repo before getting started. - Ensure you have [Node.js](https://nodejs.org/en/download) installed as this will be used for methods that can be called by the CLI (outlined later in this guide). Run `npm install` to ensure you have updated dependencies. ## Getting started - You need authentication to access the API endpoints. Find more information [here](./optimize-api-authentication.md). - To properly execute the commands to list existing dashboard IDs and delete a dashboard, ensure you have [created a collection](/components/optimize/userguide/collections-dashboards-reports.md) containing a [dashboard](/components/optimize/userguide/creating-dashboards.md). ## Set up authentication If you're interested in how we use a library to handle auth for our code, or to get started, examine the `auth.js` file in the GitHub repository. This file contains a function named `getAccessToken` which executes an OAuth 2.0 protocol to retrieve authentication credentials based on your client ID and client secret. Then, we return the actual token that can be passed as an authorization header in each request. To set up your credentials, create an `.env` file which will be protected by the `.gitignore` file. You will need to add your `OPTIMIZE_CLIENT_ID`, `OPTIMIZE_CLIENT_SECRET`, `OPTIMIZE_BASE_URL`, and `OPTIMIZE_AUDIENCE`, which is `optimize.camunda.io` in a Camunda 8 SaaS environment. For example, your audience may be defined as `OPTIMIZE_AUDIENCE=optimize.camunda.io`. These keys will be consumed by the `auth.js` file to execute the OAuth protocol, and should be saved when you generate your client credentials in [prerequisites](#prerequisites). :::tip Can't find your environment variables? When you create new client credentials as a [prerequisite](#prerequisites), your environment variables appear in a pop-up window. Your environment variables may appear as `CAMUNDA_CLIENT_ID`, `CAMUNDA_CLIENT_SECRET`, and `CAMUNDA_OPTIMIZE_BASE_URL`. ::: Examine the existing `.env.example` file for an example of how your `.env` file should look upon completion. Do not place your credentials in the `.env.example` file, as this example file is not protected by the `.gitignore`. :::note In this tutorial, we will execute arguments to list existing dashboard IDs and delete a dashboard. You can examine the framework for processing these arguments in the `cli.js` file before getting started. ::: ## GET a list of existing dashboard IDs First, let's script an API call to list our existing dashboard IDs. To do this, take the following steps: 1. In the file named `optimize.js`, outline the authentication and authorization configuration in the first few lines. This will pull in your `.env` variables to obtain an access token before making any API calls: ```javascript const authorizationConfiguration = { clientId: process.env.OPTIMIZE_CLIENT_ID, clientSecret: process.env.OPTIMIZE_CLIENT_SECRET, audience: process.env.OPTIMIZE_AUDIENCE, }; ``` 2. Examine the function `async function listDashboards([collectionId])` below this configuration. This is where you will script out your API call. 3. Within the function, you must first apply an access token for this request, so your function should now look like the following: ```javascript async function listDashboards([collectionId]) { const accessToken = await getAccessToken(authorizationConfiguration); } ``` 4. Using your generated client credentials from [prerequisites](#prerequisites), capture your Optimize API URL beneath your call for an access token by defining `optimizeApiUrl`: `const optimizeApiUrl = process.env.OPTIMIZE_BASE_URL;` 5. On the next line, script the API endpoint to list your existing dashboard IDs for a particular collection: ```javascript const url = `${optimizeApiUrl}/api/public/dashboard?collectionId=${collectionId}`; ``` 6. Configure your GET request to the appropriate endpoint, including an authorization header based on the previously acquired `accessToken`: ```javascript const options = { method: "GET", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 7. Call the collection's endpoint, process the results from the API call, emit the dashboard IDs to output, and emit an error message from the server if necessary: ```javascript try { const response = await axios(options); const results = response.data; results.forEach((x) => console.log(`ID: ${x.id}`)); } catch (error) { // Emit an error from the server. console.error(error.message); } ``` 8. In your terminal, run `node cli.js optimize list `, where `` is where you can paste the ID of your collection for a list of your existing dashboard IDs within this particular collection. If you have any existing dashboards within a collection, you will see an output similar to the following: `ID: 12345` :::note This `list` command is connected to the `listDashboards` function at the bottom of the `optimize.js` file, and executed by the `cli.js` file. While we will view dashboard IDs and delete a dashboard in this tutorial, you may add additional arguments depending on the API calls you would like to make. ::: If you have any existing dashboards, the `ID: ${x.id}` will now output. If you have an invalid API name or action name, or no arguments provided, or improper/insufficient credentials configured, an error message will output as outlined in the `cli.js` file. ## DELETE a dashboard To delete a dashboard, capture its ID from the previous exercise and take the following steps: 1. Outline your function, similar to the steps above. Note that the URL endpoint will look different, as you are accessing a different endpoint in this request (using a dashboard ID) than in the prior request (using a collection ID): ```javascript async function deleteDashboard([dashboardId]) { console.log(`deleting dashboard ${dashboardId}`); const accessToken = await getAccessToken(authorizationConfiguration); const optimizeApiUrl = process.env.OPTIMIZE_BASE_URL; const url = `${optimizeApiUrl}/api/public/dashboard/${dashboardId}`; } ``` 2. Configure the API call using the DELETE method: ```javascript const options = { method: "DELETE", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 3. Process the results from the API call. For example: ```javascript try { // Call the delete endpoint. const response = await axios(options); // Process the results from the API call. if (response.status === 204) { console.log(`Dashboard ${clientId} was deleted!`); } else { // Emit an unexpected error message. console.error("Unable to delete dashboard!"); } } catch (error) { // Emit an error from the server. console.error(error.message); } ``` 4. In your terminal, run `node cli.js optimize delete `, where `` is where you can paste the ID of the dashboard you would like to delete. You will see a response similar to the following: `Dashboard 12345 was deleted!` ## If you get stuck Having trouble configuring your API calls or want to examine an example of the completed tutorial? Navigate to the `completed` folder in the [GitHub repository](https://github.com/camunda/camunda-api-tutorials/tree/main/completed), where you can view an example `optimize.js` file. ## Next steps You can script several additional API calls as outlined in the [Optimize API reference material](./overview.md). --- ## Variable labeling With the variable labeling endpoint, variable labels can be added, updated, and deleted from Optimize. ## Functionality The variable labeling API allows users to add, update, and delete batches of variable label data, which Optimize stores in a dedicated index. All variable label data includes a reference to the process definition each variable belongs to, which allows Optimize to display a variable's label instead of its original name anywhere the given process definition is being used. Some examples of that would be in reports, configuring filters, report grouping, dashboard filters, and event-based processes. ## Limitations Note that this feature is currently not supported in task analysis. This means that during task analysis, the original name of a variable will be displayed. ## Authentication Every request requires [authentication](./optimize-api-authentication.md). ## Method & HTTP target resource POST `/api/public/variables/labels` ## Request headers The following request headers must be provided with every variable labeling request: | Header | Constraints | Value | | ------------- | ----------- | -------------------------------------------------- | | Authorization | REQUIRED | [Authentication](./optimize-api-authentication.md) | ## Request body The request body should contain a reference to the process definition using its key, as well as an array of variable labels. Each variable label object in the array must specify the name and type of the variable for which a label is being added, as well as the value of the label itself. ## Result This method returns no content. ## Response codes Possible HTTP Response Status codes: | Code | Description | | ---- | -------------------------------------------------------------------------------------- | | 204 | Request successful. | | 400 | Returned if some of the properties in the request body are invalid or missing. | | 401 | Token incorrect or missing. See [authentication](#authentication) on how to authorize. | | 404 | The process definition with the given definition key doesn't exist. | ## Example 1 Insert three labels for three variable for a given process definition :::note If the label exists already in the index, its value will be overridden. ::: ### Request POST `/api/public/variables/labels` Request Body: ``` { "definitionKey": "bookrequest-1-tenant", "labels" : [ { "variableName": "bookAvailable", "variableType": "Boolean", "variableLabel": "book availability" }, { "variableName": "person.name", "variableType": "String", "variableLabel": "first and last name" }, { "variableName": "person.hobbies._listSize", "variableType": "Long", "variableLabel": "amount of hobbies" } ] } ``` ### Response Status 204. ## Example 2 Delete a label for a variable belonging to a given process definition by inputting an empty string for its value. If there is no label for the given variable in Elasticsearch, no operation is being conducted. ### Request POST `/api/public/variables/labels` Request Body: ``` { "definitionKey": "bookrequest-1-tenant", "labels" : [ { "variableName": "bookAvailable", "variableType": "Boolean", "variableLabel": "" } ] } ``` ### Response Status 204. ## Example 3 Insert and delete labels for two variables belonging to a given process definition. The following example adds a label for the variable with name **bookAvailable** and deletes a label for the variable with name **person.name**. ### Request POST `/api/public/variables/labels` Request Body: ``` { "definitionKey": "bookrequest-1-tenant", "labels" : [ { "variableName": "bookAvailable", "variableType": "Boolean", "variableLabel": "book availability" }, { "variableName": "person.name", "variableType": "String", "variableLabel": "" }, ] } ``` ### Response Status 204. ## Example 4 Attempting to insert multiple labels for the same variable will result to a 400 response code. ### Request POST `/api/public/variables/labels` Request Body: ``` { "definitionKey": "someProcessDefinitionKey", "labels" : [ { "variableName": "bookAvailable", "variableType": "Boolean", "variableLabel": "book availability" }, { "variableName": "bookAvailable", "variableType": "Boolean", "variableLabel": "is book available" }, ] } ``` ### Response Status 400. --- ## Orchestration Cluster MCP Server ## About The Orchestration Cluster MCP Server is an API surface of the Orchestration Cluster that exposes Camunda's operational capabilities through the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP). - It enables [AI agents](/reference/glossary.md#ai-agent) and LLM-powered applications to discover and invoke Camunda tools using a standardized interface, without custom API integration code. - Similar to the [Orchestration Cluster API](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md), the MCP server is built into the Orchestration Cluster and shares the same [authentication](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md) and [authorization](/components/concepts/access-control/authorizations.md) model. It can be enabled independently. :::important Camunda 8 public API The Orchestration Cluster MCP Server is not part of the [Camunda 8 public API](/reference/public-api.md). ::: :::note This is the Orchestration Cluster MCP Server documentation. If you are looking to: - Expose your own BPMN processes as callable MCP tools for AI agents, see the [Processes MCP Server](../processes-mcp/processes-mcp-overview.md). - Connect an AI agent running in a BPMN process to an external MCP server, see the [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client.md). ::: ### Key features Building AI-powered applications that interact with Camunda traditionally requires writing custom client code to call REST APIs, handle authentication, parse responses, and format data for AI consumption. The MCP server removes this by providing: | Benefit | Description | | :------------------ | :------------------------------------------------------------------------------------------------------------------------ | | Standardized access | AI agents discover and invoke Camunda capabilities through the MCP protocol, without bespoke integration code. | | Tool discovery | MCP clients automatically discover available tools and their schemas at runtime. | | Broad compatibility | Works with any MCP-compliant client, including VS Code (GitHub Copilot), Claude Code, Cursor, and custom AI applications. | | Consistent security | Inherits the same authentication and authorization model as the REST API. | ### Authentication The MCP server uses the same authentication model as the [Orchestration Cluster REST API](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md). OAuth tokens obtained for the REST API work without changes. For SaaS environments: 1. [Create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub. Ensure the **Orchestration Cluster API** scope is enabled. 2. Use the generated **Client ID**, **Client secret**, **OAuth token endpoint**, and **audience** to obtain an access token via the [OAuth 2.0 client credentials flow](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md#using-a-token-oidcjwt). 3. Pass the token in the `Authorization: Bearer ` header, or use [`c8ctl mcp-proxy`](./orchestration-cluster-api-mcp-setup.md#using-c8ctl-mcp-proxy) to handle this automatically. For the full authentication reference, including Self-Managed OIDC and basic authentication setup, see [Authentication](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md). ### Transport The MCP server uses the [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http) transport and is served at the `/mcp/cluster` endpoint. It is stateless and no session management is required. ## Get started :::important Camunda 8.9 The MCP server is only available from Camunda 8.9 onwards. ::: If you have a local Orchestration Cluster running with [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) or [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md), the MCP server is enabled by default. Connect any MCP client using this configuration: ```json { "servers": { "camunda": { "type": "http", "url": "http://localhost:8080/mcp/cluster" } } } ``` For production environments and other deployment types, the MCP server must be explicitly enabled on your cluster before use. See [Enable and connect](./orchestration-cluster-api-mcp-setup.md) for more details. ## Available tools The MCP server exposes tools across the following domains: | Domain | Capabilities | | :------------------ | :------------------------------------------------------------------------ | | Cluster | Check cluster health and retrieve topology information. | | Incidents | Search, retrieve, and resolve incidents. | | Process definitions | Search process definitions and retrieve BPMN XML. | | Process instances | Search, retrieve, and create process instances. | | User tasks | Search, retrieve, assign, and complete user tasks. Search task variables. | | Variables | Search and retrieve variables. | For the full list of available tools, see [Available tools](./orchestration-cluster-api-mcp-tools.md). --- ## Enable and connect Enable the Orchestration Cluster MCP Server and configure MCP clients to connect. ## Enable the Orchestration Cluster MCP Server The MCP server is enabled by default in [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) and [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md). For other deployment types, it must be explicitly enabled before MCP clients can connect. Depending on your deployment, enable it as follows: The MCP server is **enabled by default** in Camunda 8 Run. No additional configuration is needed. The MCP server is **enabled by default** in the Docker Compose distribution. No additional configuration is needed. Set the following [`extraConfiguration`](/self-managed/deployment/helm/configure/application-configs.md#configuration-options) value in your Helm chart values: ```yaml orchestration: extraConfiguration: - file: mcp-gateway.yaml content: | camunda: mcp: enabled: true ``` In Camunda Hub: 1. In the left navigation, under **Clusters**, select a cluster. 1. Open the **Settings** tab 1. Enable MCP support. :::info MCP server support is available on SaaS clusters running Camunda 8.9.0 or later. ::: For a full reference of MCP configuration properties, see the [property reference](/self-managed/components/orchestration-cluster/core-settings/configuration/properties.md#api---mcp). ## Connect an MCP client Once the MCP server is enabled, you can connect any MCP-compliant client. The approach depends on your client's capabilities and authentication requirements. :::important When you [create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub, all required connection details, including the base URL, OAuth endpoint, client ID, and audience, are displayed on the credentials page. ::: ### MCP endpoint URL The MCP server is served at `/mcp/cluster` on the Orchestration Cluster. The full endpoint URL depends on your deployment type: | Deployment | MCP endpoint URL | | :------------------------- | :------------------------------------------------------------------------------ | | Camunda 8 Run | `http://localhost:8080/mcp/cluster` | | Docker Compose | `http://localhost:8080/mcp/cluster` | | SaaS – public connectivity | `https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/mcp/cluster` | | SaaS – secure connectivity | `https://${CLUSTER_ID}.${REGION_ID}.privateconnectivity.camunda.io/mcp/cluster` | | Self-Managed (custom) | `https:///mcp/cluster` | For SaaS, find your **Region Id** and **Cluster Id** in [Camunda Hub](/components/saas/clusters/manage-api-clients.md#view-connection-information). ### Direct HTTP connection If your Orchestration Cluster does not require authentication, for example, when running locally with [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) or [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md), you can connect directly to the MCP server endpoint without any additional tooling. Any MCP client that supports [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http) can be used. For authenticated environments, [use c8ctl `mcp-proxy`](#use-c8ctl-mcp-proxy) instead. ```json { "servers": { "camunda": { "type": "http", "url": "http://localhost:8080/mcp/cluster" } } } ``` ### Use c8ctl `mcp-proxy` Many MCP clients, such as VS Code (GitHub Copilot) and Claude Code, do not natively support the OAuth 2.0 client credentials flow required for authenticated environments. The [c8ctl](https://github.com/camunda/c8ctl) `mcp-proxy` command bridges this gap by providing a local STDIO-to-Remote HTTP proxy that handles authentication transparently. The proxy authenticates to the MCP server using OAuth 2.0 client credentials, and exposes a local STDIO MCP interface that your client connects to. #### Prerequisites - [Node.js](https://nodejs.org/) 18 or later. - [Client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) for your Camunda cluster with the **Orchestration Cluster API** scope enabled. #### Configuration Add the following to your MCP client configuration. For example, use the following in `claude_desktop_config.json` for Claude Code: ```json { "mcpServers": { "camunda-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "@camunda8/cli", "mcp-proxy"], "env": { "CAMUNDA_BASE_URL": "https://", "CAMUNDA_CLIENT_ID": "", "CAMUNDA_CLIENT_SECRET": "", "CAMUNDA_OAUTH_URL": "https:///oauth/token", "CAMUNDA_TOKEN_AUDIENCE": "" } } } } ``` | Variable | Description | | :----------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `CAMUNDA_BASE_URL` | Base URL of your Orchestration Cluster, **without** the `/mcp/cluster` path (for example, the public `api.camunda.io` URL or the private `privateconnectivity.camunda.io` URL when using Secure connectivity). | | `CAMUNDA_CLIENT_ID` | OAuth client ID from your API client credentials. | | `CAMUNDA_CLIENT_SECRET` | OAuth client secret from your API client credentials. | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint URL. | | `CAMUNDA_TOKEN_AUDIENCE` | Token audience for the Orchestration Cluster API. | :::tip Where to find these values When you [create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub, all required connection details are displayed on the credentials page. You can also copy a ready-to-use c8ctl configuration snippet directly from the **MCP** tab on the credentials screen. ::: For the full list of supported environment variables, see the [c8ctl documentation](https://github.com/camunda/c8ctl). ### Use with the MCP Client connectors You can also connect to the MCP server from within a BPMN process using Camunda's [MCP Client connectors](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client.md). This allows an AI agent running in an agentic orchestration workflow to interact with Camunda's own operational data. For example, you can query incidents or start processes as part of an automated workflow. The [MCP Remote Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-remote-client-connector.md) connects to remote MCP servers over HTTP. Configure it in the properties panel with the following settings: - **Transport type**: Streamable HTTP. - **URL**: Your MCP endpoint URL (see [above](#mcp-endpoint-url)). - **Authentication**: OAuth 2.0. | Field | Value | | :----------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | | OAuth 2.0 token endpoint | Your OAuth token endpoint (`https://login.cloud.camunda.io/oauth/token` for SaaS). | | Client ID | Your OAuth client ID. | | Client secret | Your OAuth client secret. Use [secrets](/components/saas/clusters/manage-secrets.md) (for example, `{{secrets.MCP_CLIENT_SECRET}}`). | | Audience | The audience for your cluster API (`zeebe.camunda.io` for SaaS). | | Client authentication | Send client credentials in body. | For more details, see [MCP Remote Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-remote-client-connector.md). The [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client-connector.md) manages persistent MCP connections through the connector runtime. Configure the Camunda MCP server as a remote HTTP client in your connector runtime configuration (for example, `application.yml`): ```yaml camunda: connector: agenticai: mcp: client: enabled: true clients: camunda-mcp: type: http http: url: https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/mcp/cluster authentication: type: oauth oauth: oauth-token-endpoint: https://login.cloud.camunda.io/oauth/token client-id: client-secret: audience: zeebe.camunda.io client-authentication: credentials-body ``` The example above shows a SaaS configuration using the public endpoint. For clusters with Secure connectivity (AWS PrivateLink), set `url` to the private MCP endpoint URL shown in Camunda Hub instead of the public `zeebe.camunda.io` host (the path still ends with `/mcp/cluster`). For local unauthenticated setups, you can omit the `authentication` block and use `http://localhost:8080/mcp/cluster` as the URL. Reference the client ID `camunda-mcp` in the MCP Client connector element template in your BPMN process. For more details, see [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client-connector.md). --- ## Available tools The following tools are available through the Orchestration Cluster MCP server, grouped by domain. :::info Tool names, parameters, and response schemas are fully discoverable by MCP clients at runtime. The exact tool signatures may evolve across versions. ::: ## Cluster | Tool | Description | | :----------------- | :------------------------------------------------------------------------------------ | | `getClusterStatus` | Returns whether the cluster is healthy (at least one partition has a healthy leader). | | `getTopology` | Returns cluster topology including brokers, partitions, roles, health, and versions. | ## Incidents | Tool | Description | | :---------------- | :------------------------------------------------------------------------------------------------------------------------------------------ | | `searchIncidents` | Search incidents with filters such as state, error type, element ID, creation time range, process definition key, and process instance key. | | `getIncident` | Retrieve an incident by key. | | `resolveIncident` | Resolve an incident. For job-related incidents, job retries are automatically updated. | ## Process definitions | Tool | Description | | :------------------------- | :------------------------------------------------------------ | | `searchProcessDefinitions` | Search process definitions with filters such as name and key. | | `getProcessDefinition` | Retrieve a process definition by key. | | `getProcessDefinitionXml` | Retrieve the BPMN XML of a process definition. | ## Process instances | Tool | Description | | :----------------------- | :------------------------------------------------------------------------------- | | `searchProcessInstances` | Search process instances with filters. | | `getProcessInstance` | Retrieve a process instance by key. | | `createProcessInstance` | Create a new process instance, optionally with variables or awaiting completion. | ## User tasks | Tool | Description | | :------------------------ | :---------------------------------------------------------------------------------- | | `searchUserTasks` | Search user tasks with filters such as assignee, state, and process definition key. | | `getUserTask` | Retrieve a user task by key. | | `completeUserTask` | Complete a user task, optionally providing variables or a custom action. | | `assignUserTask` | Update the assignment of a user task. | | `searchUserTaskVariables` | Search variables scoped to a specific user task. | ## Variables | Tool | Description | | :---------------- | :----------------------------- | | `searchVariables` | Search variables with filters. | | `getVariable` | Retrieve a variable by key. | --- ## Intermediate tutorial Intermediate In this tutorial, we'll step through examples to highlight the capabilities of the Orchestration Cluster REST API, such as deploying resources, creating and starting a process instance, and viewing a process instance by its key. This tutorial is intended for intermediate users of the Orchestration Cluster REST API, using more sophisticated API calls and multipart requests. If you are new to the Orchestration Cluster REST API, we recommend starting with the [beginner tutorial](/apis-tools/orchestration-cluster-api-rest/tutorial.md). ## Prerequisites | Requirement | Description | | :------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Create a cluster](/components/saas/clusters/create-cluster.md) | If you haven't done so already, create a cluster. | | [Create your first client](/components/saas/clusters/manage-api-clients.md#create-a-client) | Upon cluster creation, create your first client. Ensure you check the `Orchestration Cluster API` client scope box. Make sure you keep the generated client credentials in a safe place. The **Client secret** will not be shown again. For your convenience, you can also download the client information to your computer. | | Clone the [GitHub repository](https://github.com/camunda/camunda-api-tutorials) | In this tutorial, we use a JavaScript-written [GitHub repository](https://github.com/camunda/camunda-api-tutorials) to write and run requests. Clone this repo before getting started. | | Prepare resources | The first request we will run is a request to deploy one or more resources (such as processes, decision models, or forms). For the purposes of this tutorial, we have preconfigured a BPMN diagram and converted this into XML. This diagram, `calculate-sales-tax.bpmn`, can be found in the GitHub repository above within the `resources` folder. The BPMN diagram itself represents a process to calculate the total sales tax for a given purchase. You can take a closer look at this diagram by opening it in [Camunda Hub](/components/hub/workspace/modeler/index.md) or [Desktop Modeler](/components/modeler/desktop-modeler/index.md). | | [Node.js](https://nodejs.org/en/download) | Ensure you have [Node.js](https://nodejs.org/en/download) installed as this will be used for methods that can be called by the CLI (outlined later in this guide). Run `npm install` to ensure you have updated dependencies. | | Authenticate | You need authentication to access the API endpoints. Find more information in [Camunda 8 authentication](./orchestration-cluster-api-rest-authentication.md), and the section below. | ### Set up authentication If you're interested in how we use a library to handle auth for our code, or to get started, examine the `auth.js` file in the GitHub repository. This file contains a function named `getAccessToken` which executes an OAuth 2.0 protocol to retrieve authentication credentials based on your client ID and client secret. Then, we return the actual token that can be passed as an authorization header in each request. To set up your credentials, create an `.env` file which will be protected by the `.gitignore` file. Add the following environment variables: - `CAMUNDA_CLIENT_ID` - `CAMUNDA_CLIENT_SECRET` - `CAMUNDA_REST_ADDRESS` (after creating a client and downloading the .env variables, this is reflected in the [Hub UI](/components/saas/clusters/manage-api-clients.md#create-a-client) as `ZEEBE_REST_ADDRESS`) - `CAMUNDA_TOKEN_AUDIENCE` (represented as `ZEEBE_TOKEN_AUDIENCE` in the [Hub UI](/components/saas/clusters/manage-api-clients.md#create-a-client)), which is `zeebe.camunda.io` in a Camunda 8 SaaS environment. For example, your audience may be defined as `CAMUNDA_TOKEN_AUDIENCE=zeebe.camunda.io`. These keys will be consumed by the `auth.js` file to execute the OAuth protocol, and should be saved when you generate your client credentials in [prerequisites](#prerequisites). See the existing `.env.example` file for an example of how your `.env` file should look upon completion. Do not place your credentials in the `.env.example` file, as this example file is not protected by the `.gitignore`. :::note In this tutorial, we will execute arguments to deploy a resource, create and start a process instance, and view a process instance by its key. You can examine the framework for processing these arguments in the `cli.js` file before getting started. ::: ## Deploy resources (POST) First, let's script an API call to deploy a resource. To do this, take the following steps: 1. In the file named `camunda-process-instances.js`, outline the authentication and authorization configuration in the first few lines. This will pull in your `.env` variables to obtain an access token before making any API calls: ```javascript const authorizationConfiguration = { clientId: process.env.CAMUNDA_CLIENT_ID, clientSecret: process.env.CAMUNDA_CLIENT_SECRET, // These settings come from your .env file. Note that CAMUNDA_TOKEN_AUDIENCE is represented by ZEEBE_TOKEN_AUDIENCE in the Hub UI. audience: process.env.CAMUNDA_TOKEN_AUDIENCE, }; ``` 2. Examine the function `async function deployResources()` below this configuration. This is where you will script out your API call. 3. Within the function, you must first generate an access token for this request, so your function should now look like the following: ```javascript async function deployResources() { const accessToken = await getAccessToken(authorizationConfiguration); } ``` 4. Using your generated client credentials from [prerequisites](#prerequisites), capture your Orchestration Cluster REST API URL beneath your call for an access token by defining `camundaApiUrl`: ```javascript const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; ``` 5. On the next line, script the API endpoint to deploy the resources: ```javascript const url = `${camundaApiUrl}/deployments`; ``` 6. We will now configure the variables representing the BPMN file and its form data. This may look different depending on which resources you choose to deploy, but reflects the block-scoped local variables and append method to insert a set of objects for the BPMN resource of this tutorial: ```javascript const formData = new FormData(); // Read the BPMN file and add it to the form data const bpmnFilePath = path.resolve("resources/calculate-sales-tax.bpmn"); const fileContent = fs.readFileSync(bpmnFilePath); formData.append("resources", fileContent, { filename: "calculate-sales-tax.bpmn", contentType: "application/xml", }); ``` :::note The `resources` name must be exact according to the API requirements, the path to the file (`const bpmnFilePath = path.resolve("resources/calculate-sales-tax.bpmn");`) must be correct, and `contentType` must be `application/xml` to ensure the upload will not fail. ::: 7. Call the endpoint, process the results from the API call, and emit an error message from the server if necessary: ```javascript try { const response = await axios.post(url, formData, { headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, ...formData.getHeaders(), }, }); const deployedResources = response.data.deployments || []; // Emit deployed resources deployedResources.forEach((x) => console.log( `Process Definition Key: ${x.processDefinition.processDefinitionKey}; Process Definition Id: ${x.processDefinition.processDefinitionId}` ) ); } catch (error) { // Emit an error from the server. console.error(`Error deploying resources: ${error.message}`); } ``` 8. In your terminal, run `node cli.js processInstances deploy`. :::note This `deploy` command is connected to the `deployResources` function at the bottom of the `camunda-process-instances.js` file, and executed by the `cli.js` file. While we will work with process instances in this tutorial, you may add additional arguments depending on the API requests you want to make. ::: The existing process definition key and ID will now output. If you have an invalid API name or action name, or no arguments provided, or improper/insufficient credentials configured, an error message will output as outlined in the `cli.js` file. ## Create and start a process instance (POST) To create and start a process instance based on the process instance key obtained in the request above, take the following steps: 1. Outline your function, similar to the steps above: ```javascript async function createInstance([processDefinitionKey]) { const accessToken = await getAccessToken(authorizationConfiguration); const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; const url = `${camundaApiUrl}/process-instances`; } ``` 2. Build the payload you will send to the endpoint: ```javascript const payload = { processDefinitionKey, variables: { total: 90.0, }, }; ``` :::note The request will succeed if the variable names are different, but the process instance itself will not function as expected. ::: 3. Call the endpoint, process the results from the API call, and emit an error message from the server if necessary: ```javascript try { const response = await axios.post(url, payload, { headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }); const processInstance = response.data; console.log(`Process Instance Key: ${processInstance.processInstanceKey}`); } catch (error) { console.error(`Error creating process instance: ${error.message}`); } ``` 4. In your terminal, run `node cli.js processInstances create `, where `` is the process definition key. The `processInstanceKey` will now display in the output. Capture this key for a future method. ## Retrieve a process instance (GET) To retrieve a process instance by the process instance key, take the following steps: 1. Outline your function, similar to the steps above: ```javascript async function viewInstance([processInstanceKey]) { const accessToken = await getAccessToken(authorizationConfiguration); const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; const url = `${camundaApiUrl}/process-instances/${processInstanceKey}`; } ``` 2. Call the endpoint, process the results from the API call, and emit an error message from the server if necessary: ```javascript try { const response = await axios.get(url, { headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }); const results = response.data; console.log( `Process instance name: ${results.processDefinitionName}; State: ${results.state};` ); } catch (error) { console.error(`Error retrieving process instance: ${error.message}`); } ``` 3. In your terminal, run `node cli.js processInstances view `, where `` is the process instance key. The `processDefinitionName` and `state` will then display in the output. ## Troubleshooting Having trouble configuring your API calls or want to examine an example of the completed tutorial? Navigate to the `completed` folder in the [GitHub repository](https://github.com/camunda/camunda-api-tutorials/tree/main/completed), where you can view an example `camunda-process-instances.js` file. ## Next steps You can script several additional API calls as outlined in the [Orchestration Cluster REST API reference material](./orchestration-cluster-api-rest-overview.md). --- ## Authentication(Orchestration-cluster-api-rest) This page explains how to authenticate requests to the Orchestration Cluster REST API across different deployment environments. ## Authentication support matrix | Distribution | Default Authentication | No auth support | Basic auth support | OIDC-based auth support | | --------------------------------------------------------------------------------- | ---------------------- | ----------------------- | ------------------ | ----------------------- | | [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) | None | ✅ (default) | ✅ (when enabled) | ✅ (when configured) | | [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md) | None | ✅ (default) | ✅ (when enabled) | ✅ (when configured) | | [Helm](/self-managed/deployment/helm/install/quick-install.md) | Basic Auth | ✅ (when auth disabled) | ✅ (default) | ✅ (when configured) | | SaaS | OIDC-based Auth | ❌ | ❌ | ✅ (required) | :::info Authentication vs. authorization Authentication establishes who is calling the Orchestration Cluster REST API (for example, using basic authentication or an OIDC access token). Authorization determines what that caller can do, based on authorizations configured in Admin. To learn more about authorization resources, permissions, and precedence (including user task permissions), see [Orchestration Cluster authorization](../../components/concepts/access-control/authorizations.md). ::: ## Authenticate API calls ### No authentication (local development) By default, Camunda 8 Run and Docker Compose expose the Orchestration Cluster REST API without authentication for local development. You can make API requests directly: ```shell curl http://localhost:8080/v2/topology ``` ### Basic Authentication Basic Authentication uses username and password credentials. **For Camunda 8 Run:** Enable Basic Auth by configuring authentication in your `application.yaml`. See [Camunda 8 Run documentation](/self-managed/quickstart/developer-quickstart/c8run/configuration.md#enable-authentication-and-authorization) for details. **For Helm:** Basic Auth is enabled by default for the Orchestration Cluster API. Include your username and password in each API request: ```shell curl --user username:password \ http://localhost:8080/v2/topology ``` :::note Basic Authentication checks the password with every request, limiting the number of requests per second. It may not be suitable for production. See [Camunda components troubleshooting](/self-managed/operational-guides/troubleshooting.md) ::: ## Using a token (OIDC/JWT) OIDC-based authentication is recommended for production and required for SaaS. Obtain an access token and pass it as an OAuth 2.0 Bearer Token in the `Authorization` header of each request. The token's subject (user or client) must also have the required authorizations. Otherwise, requests fail with `403 Forbidden` even if authentication succeeds. 1. [Create client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub. 2. Request an access token using the credentials: ```shell curl --request POST ${CAMUNDA_OAUTH_URL} \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode "audience=${CAMUNDA_TOKEN_AUDIENCE}" \ --data-urlencode "client_id=${CAMUNDA_CLIENT_ID}" \ --data-urlencode "client_secret=${CAMUNDA_CLIENT_SECRET}" ``` 3. Use the access token from the response in your API requests: ```shell curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \ ${BASE_URL}/topology ``` **Prerequisites for OIDC-based authentication** - Your Orchestration Cluster must already be configured with your Identity Provider. See [Set up OIDC-based Authentication](/self-managed/components/orchestration-cluster/admin/connect-external-identity-provider.md). - You must have a registered client in your IdP with a **client ID**, **client secret**, and authorization endpoint. - Note the configured **audience** and **scope** for token requests (variables `OC_AUDIENCE` and `SCOPE`). Depends on IdP configuration. **Request an access token using client credentials** Example for Keycloak; adjust the authorization URI and parameters for your IdP: ```shell curl --location --request POST 'http:///auth/realms//protocol/openid-connect/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "client_id=${CLIENT_ID}" \ --data-urlencode "client_secret=${CLIENT_SECRET}" \ --data-urlencode "audience=${OC_AUDIENCE}" \ --data-urlencode "scope=${SCOPE}" \ --data-urlencode 'grant_type=client_credentials' ``` > **Microsoft Entra ID**: Use `scope=${SCOPE}/.default` instead of `scope=${SCOPE}`. The Authorization URI is typically `https://login.microsoftonline.com//oauth2/v2.0/token`. **Use the access token in API requests** ```shell curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \ ${BASE_URL}/topology ``` ### OIDC-based authentication using X.509 client certificates For advanced security scenarios, you can obtain OIDC access tokens using X.509 client certificates. This is typically required in Self-Managed environments where your IdP enforces mutual TLS (mTLS). **For Java applications** The Java client supports automatic OIDC access token retrieval using X.509 client certificates. Configure the necessary keystore and truststore via code or environment variables. See [Java client authentication](../java-client/getting-started.md#oidc-access-token-authentication-with-x509-client-certificate) for details. **For other clients** Refer to your IdP documentation for obtaining tokens using X.509 certificates. ### Automatic token management in official clients Official Camunda clients (Java client or Spring Boot Starter) handle token acquisition and renewal automatically. You do not need to manually obtain or refresh tokens. ### Troubleshooting - Check logs for authentication errors. - Verify your access token includes the correct audience if audience validation is enabled. ### Learn more - [Camunda Java client authentication and token management](../java-client/getting-started.md) - [Camunda Spring Boot Starter: Configuring the Camunda 8 connection](../camunda-spring-boot-starter/getting-started.md#configuring-the-camunda-8-connection) - [Orchestration Cluster authorization: Resources, permissions, and configuration](../../components/concepts/access-control/authorizations.md) --- ## Data fetching The Orchestration Cluster REST API allows you to retrieve data from key resources like process definitions, user tasks, users, and tenants. Each search-enabled endpoint supports rich filtering, sorting, and pagination so you can quickly find the data that matters most. The sections below explain how to structure a search request and interpret the response format. ## Searchable resources The following examples support search via POST endpoints, each with its own set of filterable fields: - Process instances (`POST /v2/process-instances/search`) - User tasks (`POST /v2/user-tasks/search`) - Users (`POST /v2/users/search`) - Batch operations (`POST /v2/batch-operations/search`) Refer to the [interactive Orchestration Cluster REST API Explorer](./specifications/orchestration-cluster-api.info.mdx) for the full attribute lists. ## Supported operations Most searchable resources allow: - Filtering based on properties or variables - Sorting results - Paginating with either offset or cursor methods - Accessing nested resources (e.g., group users) > Example: You can search for groups using `POST /v2/groups/search`, and for the users in a group using `POST /v2/groups/:groupId/users/search`. You can also fetch single resources using `GET` endpoints with unique identifiers, such as: ```shell GET /v2/user-tasks/:userTaskKey ``` ## Data consistency Endpoints in the Orchestration Cluster API are classified as either **strongly consistent** or **eventually consistent**. This distinction applies to the _data behind the endpoint_, not the endpoint's functionality itself. - **Strongly consistent endpoints** return data that reflects the real-time state of the system. - **Eventually consistent endpoints** return data exported by the [Camunda Exporter](../../self-managed/components/orchestration-cluster/zeebe/exporters/camunda-exporter.md). This data may lag behind the real-time state until the exporter processes it, so it becomes consistent only after a delay. Each endpoint is clearly labeled with its consistency type so you can account for this behavior in your applications. ### Why consistency matters If eventual consistency is not handled properly, it can lead to unexpected results. For example: 1. A resource is created using a strongly consistent endpoint. 2. An _immediate_ request to an eventually consistent endpoint for the same resource might return: - `404 Not Found` for a `GET` request, or - an empty result set for a search request. This happens because the eventually consistent endpoint has not yet synced the new data. A later request will return the correct result once the data export completes. If your application does not account for eventual consistency, you may encounter **non-deterministic runtime behavior**. Code paths that work reliably during development or testing may fail intermittently in production, especially under load, if this characteristic is ignored. ## User task support The Orchestration Cluster REST API only supports Camunda user tasks (previously referred to as [Zeebe user tasks](../migration-manuals/migrate-to-camunda-user-tasks.md), which may still appear as `zeebe:userTask` in your XML content). ## Search requests Search requests consist of the components for **filter**, **sort**, and **page**. ### Filter The filter object defines which fields should match. Only items that match the given fields will be returned. The available fields vary by object and are described in the respective search endpoint. Filtering by a unique identifier is usually available in filtering options. Beyond that, the filter options don’t have to comprise all the returned items’ attributes.
Example ``` POST /v2/user-tasks/search { "filter": { "assignee": "demo", "processInstanceKey": "22456786958" } } ``` This filters by the attributes `assignee` and `processInstanceKey`, looking for exact matches with the provided values.
### Sort The sort array specifies by which `field`s to sort the result items and whether this happens in ascending (ASC) or descending (DESC) `order`.
Example ``` POST /v2/user-tasks/search { "sort": [ { "field": "state", "order": "ASC" } ] } ``` This sorts the overall result set by the `state` attribute in ascending order.
### Page The page object details how to slice the result set. An initial search request can omit the page object or define the `limit`. This specifies the maximum number of results to retrieve per request. Subsequent requests can either use **cursor** or **offset pagination** to iterate through the result set. Cursor pagination bases on the value of the [search response's](#search-responses) `startCursor` and `endCursor`. Copy `startCursor` into `before` or `endCursor` into `after` to page through results respectively. The [search example](#search-example) showcases how to use these attributes for cursor pagination. Offset pagination uses the `from` attribute to define the starting point of the next set of items in the overall result set. :::note Choosing the right pagination type depends on the specific use case. The expected result set size and intended usage of the results have the biggest influence. The expected reliability and performance of the search request affect this decision as well. Consider using cursor pagination for larger result sets and displaying result list that scroll infinitely. Paged result sets can be realized with offset pagination in a straightforward way but come with performance penalties for larger result sets. :::
Example ``` POST /v2/user-tasks/search { "page": { "limit": 3 } } ``` This limits the result set returned in the response to 3 items, no matter how many overall results exist.
### Advanced search filters To provide an easy yet expressive way for users to search for and filter resources, search requests can contain more advanced filter criteria than fields being _equal_ to a target value. For example, this allows searching using logical (and, in) and comparison operators (greater than, less than). The list of generally supported advanced filter operators is described below. The supported operators depend on the endpoint and the type of the filter attribute. All endpoints document available operators for each attribute in the Orchestration Cluster REST API specification. #### Conditional Operators | Operator | Syntax | Description | | --------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `$eq` | `field: { "$eq": value }` | Filter where `field` is equal to `value`. Abbreviated form `field: value` is also allowed. | | `$neq` | `field: { "$neq": value }` | Filter where `field` is not equal to `value`. | | `$exists` | `field: { "$exists": value }` | Filter where `field` does or does not exist. The `value` is a boolean and can be either `true` or `false`. | | `$gt` | `field: { "$gt": value }` | Filter where `field` is greater than `value`. | | `$gte` | `field: { "$gte": value }` | Filter where `field` is greater than or equal to `value`. | | `$lt` | `field: { "$lt": value }` | Filter where `field` is less than `value`. | | `$lte` | `field: { "$lte": value }` | Filter where `field` is less than or equal to `value`. | | `$like` | `field: { "$like": value }` | Filter where `field` contains a string like `value`. The wildcard characters `*` (zero, one, or multiple characters) and `?` (a single character) are allowed in `value`. They can be escaped with a backslash, like in `my \*`. | | `$in` | `field: { "$in": [ value1, value2, ... ] }` | Filter where `field` is equal to at least one of the `value`s in the provided array. | | `$notIn` | `field: { "$notIn": [ value1, value2, ... ] }` | Filter where `field` is not equal to any one of the `value`s in the provided array. |
Example ``` POST /v2/user-tasks/search { "filter": { "candidateGroups": { "$like": "external-*", "$neq": "external-supervisor" } } } ``` This filters by `candidateGroups` that start with `"external-"` but do not match `"external-supervisor"`.
#### Logical Operators | Operator | Syntax | Description | | -------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | `$or` | `"$or": [ { condition1 }, { condition2 }, ... ]` | Filter where at least one of the conditions is true. | | and | `{ field: { "$lt": value1 }, field: { "$gt": value2 }, ... }` | All conditions outside of `$or` operators will be considered as combined by an `AND` operator. There is no explicit operator. |
Example ``` POST /v2/user-tasks/search { "filter": { "assignee": "demo", "processInstanceKey": "22456786958", "candidateGroups": { "$neq": "external-supervisor", "$like": "external-*" } } } ``` The top-level filters `assignee`, `processInstanceKey`, and `candidateGroups` are connected by an AND operator. Likewise, the `$neq` and `$like` advanced filter operators inside the top-level `candidateGroups` filter are combined by an AND operator.
#### Variables Search endpoints can support filtering by variable values. This allows querying for process-related resources based on the values of specific variables that exist in their respective scope. For example, user task search supports filtering using the `localVariables` array and defining filter criteria for specific variables. For variable values, the advanced filter criteria outlined above for fields apply.
Example ``` POST /v2/user-tasks/search { "filter": { "localVariables" : [ { "name": "orderVolume", "value": "10000" }, { "name": "price", "value": { "$lt": "500" } }, { "name": "skipped", "value": { "$exists": false } } ] } } ``` This filters for user tasks containing at least the variables `orderVolume` with a value of `10000` and `price` with a value lower than `500`, not containing variable `skipped`.
## Search responses Search responses consist of two components: **`items`** and **`page`**. - The **`items`** array contains instances of the respective endpoint’s resource. The structure and attributes of these instances vary by endpoint and are detailed in the corresponding endpoint documentation. - The **`page`** object includes pagination details for navigating through results in subsequent search requests: - **`totalItems`**: Indicates the total number of results for the query. > **Note:** In Elasticsearch/OpenSearch, this value is capped at **10,000**, even if more results are available. - **`startCursor`**: A reference to the **first** entry on the current page. Use this value in the `before` parameter to page **backward** in a subsequent [search request](#search-requests). - **`endCursor`**: A reference to the **last** entry on the current page. Use this value in the `after` parameter to page **forward** in a subsequent [search request](#search-requests).
Example ``` { "items": [ { "state": "CREATED", "processInstanceKey": "22456786958", "userTaskKey": "22456786345", ... }, { "state": "CREATED", "processInstanceKey": "22456786958", "userTaskKey": "22456786456", ... }, { "state": "COMPLETED", "processInstanceKey": "22456786958", "userTaskKey": "22456786678", ... } ], "page": { "totalItems": 345, "startCursor": "jfenj8vhekgj98uzfafhu7", "endCursor": "negbkjeh84tzh4gk0kwegj" } } ```
## Search example Querying for the first three user tasks with certain criteria and sorted by state could look as follows: ``` POST /v2/user-tasks/search { "filter": { "assignee": "demo", "processInstanceKey": "22456786958", "candidateGroups": { "$like": "external-*", "$neq": "external-supervisor" }, "localVariables" : [ { "name": "orderVolume", "value": "10000" }, { "name": "price", "value": { "$lt": "500" } }, { "name": "skipped", "value": { "$exists": false } } ], }, "sort": [ { "field": "state", "order": "ASC" } ], "page": { "limit": 3 } } ``` This could yield the following example result: ``` 200 OK { "items": [ { "state": "CREATED", "processInstanceKey": "22456786958", "userTaskKey": "22456786345", ... }, { "state": "CREATED", "processInstanceKey": "22456786958", "userTaskKey": "22456786456", ... }, { "state": "COMPLETED", "processInstanceKey": "22456786958", "userTaskKey": "22456786678", ... } ], "page": { "totalItems": 345, "startCursor": "jfenj8vhekgj98uzfafhu7", "endCursor": "negbkjeh84tzh4gk0kwegj" } } ``` A follow-up request to receive the next three items could then look as follows: ``` POST /v2/user-tasks/search { "filter": { "assignee": "demo", "processInstanceKey": "22456786958", "candidateGroups": { "$like": "external-*", "$neq": "external-supervisor" }, "localVariables" : [ { "name": "orderVolume", "value": "10000" }, { "name": "price", "value": { "$lt": "500" } }, { "name": "skipped", "value": { "$exists": false } } ], }, "sort": [ { "field": "state", "order": "ASC" } ], "page": { "limit": 3, "after": "negbkjeh84tzh4gk0kwegj" } } ``` This yields the next three user task instances after the last one from the first search request’s result. --- ## Orchestration Cluster REST API ## About You can use the Orchestration Cluster REST API to interact programmatically with process orchestration capabilities in Camunda 8. For example, you can start, manage, and query process instances, complete user tasks, resolve incidents, and manage variables. Use this API to: | Use case | Description | | :------------------------------------------ | :-------------------------------------------------------------------------------- | | Build process-driven applications | Create applications to orchestrate processes and integrate with existing systems. | | Integrate user tasks into custom UIs | Build task management interfaces that connect to Camunda's user task engine. | | Start and monitor external system processes | Trigger process instances and track progress from any application or service. | ## Key features This API is designed to make it easy to [find resources](./orchestration-cluster-api-rest-data-fetching.md#advanced-search-filters) with a consistent experience, while ensuring all endpoints are secure with [authentication](./orchestration-cluster-api-rest-authentication.md) and fine-grained [resource authorization](/components/concepts/access-control/authorizations.md). Key features include: | Feature | Description | | :-------------------------------- | :---------------------------------------------------- | | Full process lifecycle management | Deploy, start, and monitor BPMN processes. | | User task operations | Claim, complete, and manage human tasks. | | Variable management | Read and update process variables. | | Incident resolution | Handle and resolve process incidents. | | Advanced search and filtering | Query process data with powerful search capabilities. | :::info - This API is part of the Camunda 8 [public API](/reference/public-api.md) and is covered by our SemVer stability guarantees (except for clearly marked alpha endpoints). You can rely on backward compatibility for production use. - To learn more about the Orchestration Cluster, see [Orchestration Cluster](/components/orchestration-cluster.md). - In Self-Managed clusters running [Physical Tenants](/self-managed/concepts/multi-tenancy/physical-tenants.md), most endpoints below are addressed per tenant by prefixing the path with `/physical-tenants/{physicalTenantId}`, while cluster-wide operations use the `/cluster/v2/...` prefix instead. See [API routing for Physical Tenants](/self-managed/concepts/physical-tenants/api-routing.md). ::: ## Getting started This section helps you get up and running in minutes. ### Prerequisites - **A Camunda 8 Orchestration Cluster** - For local development, use [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) or [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md), which expose the API without requiring credentials or tokens by default. - For production or advanced development, use [Helm/Kubernetes](/self-managed/deployment/helm/install/quick-install.md) or [manual installation](/self-managed/deployment/manual/install.md). - Alternatively, sign up for a free [Camunda 8 SaaS trial](https://accounts.camunda.io/signup) to get a managed cluster with the API enabled. - **A client to send API requests** - Quick testing: Use the [Swagger](../orchestration-cluster-api-rest-swagger) interface - Programmatic access: Use the [Java client](/apis-tools/java-client/getting-started.md) or [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md) - Custom client: [Download the OpenAPI spec](https://github.com/camunda/camunda/blob/main/zeebe/gateway-protocol/src/main/proto/rest-api.yaml) to generate your own client - Universal client: [Postman collection](https://www.postman.com/camundateam/camunda-8-postman/collection/apl78x9/camunda-8-api-rest) ### Authentication Authentication for the Orchestration Cluster REST API depends on your environment and how you deploy Camunda 8. Authenticate your Client requests based on your setup. **Supported authentication methods** - No authentication – For local development only - Basic authentication – Username/password for simple setups - OIDC-based authentication – Use OAuth2/OIDC tokens for production environments **Quick reference** - See the [authentication support matrix](./orchestration-cluster-api-rest-authentication.md#authentication-support-matrix) for details on supported methods by deployment type - If you're using the Java or Spring clients, token management is handled automatically. See [client authentication configuration](../camunda-spring-boot-starter/getting-started.md#configuring-the-camunda-8-connection) For detailed authentication setup, follow the step-by-step guide in [Authentication](./orchestration-cluster-api-rest-authentication.md) based on your deployment type. ### Test your connection Once you're set up, verify your connection works by making your first API call: #### Using curl Local (Camunda 8 Run / Docker Compose): ```bash curl http://localhost:8080/v2/topology ``` SaaS, public connectivity: ```bash curl https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/v2/topology ``` SaaS, secure connectivity (AWS PrivateLink): ```bash curl https://${CLUSTER_ID}.${REGION_ID}.privateconnectivity.camunda.io/api/v2/topology ``` Replace the placeholders with the values for your environment. See [base URLs](#base-urls) for details on SaaS (public and secure connectivity) and self-managed setups. #### Using Postman Try the [get cluster topology](https://www.postman.com/camundateam/camunda-8-postman/request/en495q6/get-cluster-typology) request or browse the full collection. This request returns information about your cluster topology, confirming that your setup is working correctly. ### Try your first workflow If you're just getting started with process automation, try this simple workflow: 1. **Model a process** – Create a simple BPMN process with a user task using [Camunda Hub](/components/hub/workspace/modeler/index.md) or [Desktop Modeler](/components/modeler/desktop-modeler/index.md) 2. **Deploy the process** – Use [`POST /deployments`](./specifications/create-deployment.api.mdx) to deploy your BPMN file 3. **Start a process instance** – Use [`POST /process-instances`](./specifications/create-process-instance.api.mdx) to create a new process instance 4. **Complete a user task** – Use [`POST /user-tasks/{userTaskKey}/completion`](./specifications/complete-user-task.api.mdx) to complete the task For a complete walkthrough with code examples, see our [getting started tutorial](/guides/getting-started-example.md). ### Explore the API ## API reference This section covers the technical details and conventions you need to understand when working with the Orchestration Cluster REST API. ### Base URLs #### SaaS In Camunda Hub: 1. In the left navigation, under **Clusters**, select a cluster. 1. Under **Cluster Details**, find your **Region Id** and **Cluster Id**. For public connectivity (default), use this pattern as your `${BASE_URL}`: `https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/v2/` For secure connectivity (AWS PrivateLink), use the private base URL shown in Hub. For the Orchestration Cluster REST API, the pattern is: `${BASE_URL} = https://${CLUSTER_ID}.${REGION_ID}.privateconnectivity.camunda.io/api/v2/` For example: `https://b4102386-6818-43c6-a880-d21c968a883f.ork-1.privateconnectivity.camunda.io/api/v2/topology` #### Self-Managed Use the host and path defined for your [Zeebe Gateway](/reference/glossary.md#zeebe-gateway). For Ingress and routing details, see the [configuration guide](/self-managed/deployment/helm/configure/ingress/ingress-setup.md). If you're using the default setup, the `${BASE_URL}` is `http://localhost:8080/v2/`. ### Versioning Camunda uses semantic versioning (SemVer) to ensure API changes are predictable and compatible. This helps you upgrade safely without unexpected breaking changes. The API version is determined by the API version number (`v2`) and the product version—for example, `POST /v2/user-tasks/search` in Camunda 8.8.0. Camunda versions the entire API rather than individual endpoints. If a breaking change occurs in any endpoint, the entire API is versioned. During migration periods, multiple API versions may coexist—for example, both `v2` and `v3` versions of `/user-tasks/search` may be available in the same release. :::note Adding new endpoints or attributes to existing responses is **not** considered a breaking change. ::: ### Request size limits The default maximum request size for all requests (for example, to `POST /v2/deployments`) is 4MB. It can be configured in the Zeebe Gateway configuration using the `maxMessageSize` property. For more information, see the [Zeebe Gateway configuration reference](/self-managed/components/orchestration-cluster/zeebe/configuration/configuration.md#gateway-configuration). ### Naming conventions Naming across the Orchestration Cluster REST API is simple, intuitive, and consistent to reduce friction when working with multiple endpoints. The conventions include: - **Nouns over verbs** – e.g., `assignment` instead of `assign` - **Plural terms** for top-level resources – e.g., `user-tasks` - **Kebab-case** for multiple words in path parameters – e.g., `user-tasks` - **camelCase** for multiple words in query parameters – e.g., `userTaskKey` These conventions are illustrated in the following endpoint example: `POST /user-tasks/{userTaskKey}/assignment` For IDs or similar short 2- or 3-letter words or acronyms, Camunda only capitalizes the first letter. If standalone, all letters are lowercase. | Term | Usage | | ---- | ------------------------------------------ | | ID | `id` (standalone) or `processDefinitionId` | | URL | `url` (standalone) or `externalUrl` | | UUID | `uuid` (standalone) or `clusterUuid` | Identifiers follow a naming convention for parameters and data attributes alike: - Unique technical identifiers are suffixed with **key**, for example, `userTaskKey`, `processInstanceKey`, or `userKey`. These are usually numeric values. - Other identifiers, such as those copied from the BPMN XML, are typically suffixed with **id**, for example, `processDefinitionId`. - Key and id fields contain the entity as a prefix, for example, `userTaskKey` or `processDefinitionId`. This applies when referencing other resources like `formKey` in the user task entity and the respective entities themselves like `userTaskKey` in the user task entity. - The full entity name is used as the prefix to avoid confusion, for example, `processDefinitionKey` instead of `processKey`, which could be interpreted as a process instance or process definition. - Other entity attributes do not have a prefix to avoid clutter, such as `version` in the process definition entity. However, references to other resources require a prefix, like `processDefinitionVersion` in the process instance entity. ### HTTP status codes & error handling The Orchestration Cluster REST API uses standard HTTP status codes and returns error responses following the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format. Each error response includes the following fields: - `type`: A URI identifier for the error type - `status`: The HTTP status code (e.g., 400, 404) - `title`: A short, human-readable summary of the error - `detail`: A detailed explanation of the issue - `instance`: A URI reference identifying the specific occurrence of the problem #### Common error codes | Error code | Meaning | | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 200 | OK | | 204 | No content | | 400 | Bad request. Generic error with further description in the problem detail. | | 401 | Unauthorized. The client is not authenticated. Retry with a modified authorization header. | | 403 | Forbidden. The client has insufficient permissions for the request. | | 404 | Not found | | 409 | Conflict. The request attempts to modify a resource that is not in the correct state. | | 412 | Precondition failed. The client should check the cluster status. | | 500 | Internal server error. Generic error with further description in the problem detail. | | 503 | The service is currently unavailable. This may happen when the system signals backpressure to prevent the server's compute resources from being exhausted, avoiding more severe failures. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism [here](../../components/zeebe/technical-concepts/internal-processing.md) | ### Date formats Date values in the Orchestration Cluster REST API follow the [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) notation. This applies to all requests and responses. The endpoints validate requests and transform responses accordingly. ### Variables Variables in the Orchestration Cluster REST API are JSON objects, where `key` defines the variable name and `value` specifies the variable value. For full details on variable filtering and structure, see [search requests](orchestration-cluster-api-rest-data-fetching.md#variables). ## What's next? Now that you're familiar with the Orchestration Cluster REST API, here are some useful next steps: - [Build a job worker using the Spring SDK](../camunda-spring-boot-starter/getting-started.md) - [Test your process definitions using Camunda Process Test](../testing/getting-started.md) - [Migrate from v1 component REST APIs to the v2 Orchestration Cluster REST API](../migration-manuals/migrate-to-camunda-api.md) - [Download the OpenAPI spec](https://github.com/camunda/camunda/blob/main/zeebe/gateway-protocol/src/main/proto/rest-api.yaml) to generate a client or explore the raw schema --- ## Secrets(Orchestration-cluster-api-rest) `POST /v2/secrets/resolve` and `POST /v2/secrets/list` use a shared request and response contract that differs from most of the Orchestration Cluster REST API. For the complete request and response schema for each endpoint, see [Resolve secrets](./specifications/resolve-secrets.api.mdx) and [List secrets](./specifications/list-secrets.api.mdx). To understand what a `camunda.secrets.` reference is and how Camunda resolves it elsewhere in the cluster, see [Secret resolution](../../components/concepts/secret-resolution.md). For Java client usage, see [Secrets](../java-client/secrets.md). ## Understand resolve responses `POST /v2/secrets/resolve` accepts a batch of references and resolves each reference independently. A structurally valid request always returns HTTP 200, even if every reference in the batch fails. Successfully resolved references are returned in `resolved`. References that cannot be resolved are returned in `errors`. A failure for one reference does not affect the others in the same batch. ### Review per-reference errors Each entry in `errors` uses one of the following codes: | Code | Meaning | | ------------------- | ----------------------------------------------------------------------------- | | `NOT_FOUND` | No secret exists for this reference. | | `ACCESS_DENIED` | The caller lacks `SECRET:REVEAL` for this reference. | | `INVALID_REFERENCE` | The reference is malformed or exceeds the length limit. | | `UNREADABLE` | The store contains a secret for this reference, but its value cannot be read. | `UNREADABLE` does not mean that the secret is absent. Handle it differently from `NOT_FOUND` when responding to a failure. ### Check batch limits A request can contain up to 20 references, with a maximum length of 256 characters per reference. The server deduplicates duplicate references within the same request and resolves each unique reference once. ### Understand HTTP 400 responses `POST /v2/secrets/resolve` returns HTTP 400 only when the request itself is malformed. Examples include: - A missing or non-array `references` field. - More than 20 references. - A `null` entry. A well-formed request that fails to resolve every reference still returns HTTP 200 with `errors` populated. ## List secrets `POST /v2/secrets/list` returns the names of references the caller is authorized to view. It never returns secret values. Unauthorized references are omitted from the response rather than causing the request to fail. The request body is optional and can be empty. The endpoint does not currently support filtering or pagination. Pagination is marked in the OpenAPI specification as a pre-GA follow-up. ## Grant required permissions Resolving a reference requires `SECRET:REVEAL`. Listing requires `SECRET:READ`. Neither permission grants the other. See [Authorizations](../../components/concepts/access-control/authorizations.md) for details about permissions on the `SECRET` resource and who receives them by default. --- ## Try with Swagger The Orchestration Cluster REST API is documented using the [OpenAPI specification](https://github.com/camunda/camunda/blob/main/zeebe/gateway-protocol/src/main/proto/rest-api.yaml). You can explore, test, and interact with all API endpoints directly using [Swagger UI](https://swagger.io/tools/swagger-ui/) - an interactive documentation interface. **Use Swagger UI to:** - Explore available endpoints - Browse all REST API operations with detailed parameter descriptions - Test API calls interactively - Execute real API requests directly from your browser - Understand request/response formats - See example payloads and response schemas - Authenticate and authorise - Test with your actual credentials in a secure environment Swagger UI is particularly useful for API discovery, development, and testing workflows before integrating the API into your applications. ## Prerequisites Before using Swagger UI, ensure you have: - **A running Camunda 8 Orchestration Cluster:** SaaS or Self-Managed - **Appropriate [access permissions](../../components/concepts/access-control/authorizations.md)** to the resources you want to manage via the API (if authorizations are enabled). ## Accessing Swagger UI ### SaaS For SaaS clusters, Swagger UI is accessible through your cluster's dedicated endpoint. 1. Open Camunda Hub. 1. In the left navigation under **Clusters**, select a cluster. 1. If the cluster is paused, you must [resume](/components/saas/clusters/manage-cluster.md#resume-a-cluster) it before accessing the Swagger UI. 1. Under **Cluster Details**, click **Open Swagger UI**. :::note Swagger UI is protected with CSRF. If you are logged into Camunda Hub, you can access Swagger UI directly. If not, you may need to log in first. ::: ### Self-Managed For Self-Managed deployments, Swagger UI is available at your configured [Zeebe Gateway](/reference/glossary.md#zeebe-gateway) endpoint. **Default setup:** `http://localhost:8080/swagger` **Custom configuration:** Use the host and path defined for your Zeebe Gateway in the [configuration guide](/self-managed/deployment/helm/configure/ingress/ingress-setup.md), then append `/swagger`. **Example with custom domain:** `https://your-zeebe-gateway.company.com/swagger` ## Authentication in Swagger UI Swagger UI supports the same authentication methods as the REST API. Choose the method that matches your deployment: ### Automatic authentication - **Session-based authentication**: If you're already logged into Camunda (for example, through Operate), Swagger UI automatically authenticates you using your session cookie ### Manual authentication Click the **Authorize** button in Swagger UI to manually configure authentication: #### Bearer Token (Recommended for production) 1. Click **Authorize** in Swagger UI 2. In the **Bearer** section, enter your JWT access token 3. Click **Authorize** to apply **To obtain a Bearer token:** - **SaaS**: Follow the [OIDC-based Authentication guide](./orchestration-cluster-api-rest-authentication.md#using-a-token-oidcjwt) for SaaS - **Self-Managed**: Follow the [OIDC-based Authentication guide](./orchestration-cluster-api-rest-authentication.md#using-a-token-oidcjwt) for Self-Managed #### Basic Authentication 1. Click **Authorize** in Swagger UI 2. In the **Basic** section, enter your username and password 3. Click **Authorize** to apply **Note:** Basic Authentication is only available for Self-Managed deployments. For detailed authentication setup instructions, see the [Authentication guide](./orchestration-cluster-api-rest-authentication.md). ## Using Swagger UI effectively ### Making your first API call 1. **Test connectivity**: Try the `GET /topology` endpoint to verify your connection and authentication 2. **Explore endpoints**: Browse the available operations organized by category (processes, user tasks, variables, etc.) 3. **Try sample requests**: Click "Try it out" on any endpoint to see the request form 4. **Execute requests**: Fill in parameters and click "Execute" to see real responses ### Understanding the interface - **Endpoints are grouped by resource type** - Find process-related operations under "Process Instances", task operations under "User Tasks", etc. - **Required parameters are marked** - Look for the red asterisk (\*) next to required fields - **Example values are provided** - Use the "Example Value" links to populate request bodies quickly - **Response schemas are documented** - Expand the response sections to understand the data structure ### Testing workflows Use Swagger UI to test complete workflows: 1. **Deploy a process** - Use `POST /deployments` to upload a BPMN file 2. **Start a process instance** - Use `POST /process-instances` with your process definition 3. **Query and manage** - Use search endpoints to find and interact with your data 4. **Complete tasks** - Use `POST /user-tasks/{userTaskKey}/completion` to progress workflows ## Managing Swagger UI availability ### SaaS Control Swagger UI access in [Camunda Hub](/components/saas/clusters/settings.md): 1. Open Camunda Hub. 1. In the left navigation under **Clusters**, select a cluster. 1. Click the **Settings** tab. 1. Toggle **Enable Swagger** on or off. 1. Changes apply automatically to your orchestration cluster. ### Self-Managed Configure Swagger UI availability using environment variables: **Enable Swagger UI (default):** ```bash CAMUNDA_REST_SWAGGER_ENABLED=true ``` **Disable Swagger UI:** ```bash CAMUNDA_REST_SWAGGER_ENABLED=false ``` **Alternative property format:** ```yaml camunda: rest: swagger: enabled: true ``` **Security consideration:** In production environments, consider disabling Swagger UI and using it only in development environments. ## Next steps After exploring the API with Swagger UI: - **Build production integrations** using the [Java client](/apis-tools/java-client/getting-started.md) or [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md) - **Review the complete API reference** in the [Overview](./orchestration-cluster-api-rest-overview.md) - **Set up proper authentication** following the [Authentication guide](./orchestration-cluster-api-rest-authentication.md) - **Learn advanced querying** with [Data Fetching and Search](./orchestration-cluster-api-rest-data-fetching.md) - **Download the OpenAPI specification** for [custom client generation](https://github.com/camunda/camunda/blob/main/zeebe/gateway-protocol/src/main/proto/rest-api.yaml) **Need help?** Try the [Getting Started Tutorial](/guides/getting-started-example.md) for a complete workflow walkthrough, or browse the [Postman collection](https://www.postman.com/camundateam/camunda-8-postman/collection/apl78x9/camunda-8-api-rest) for additional examples. --- ## Beginner tutorial Beginner In this tutorial, we'll step through examples to highlight the capabilities of the Orchestration Cluster REST API, such as listing all roles, creating a role, retrieving a role, and deleting a role. ## Prerequisites - If you haven't done so already, [create a cluster](/components/saas/clusters/create-cluster.md). - Upon cluster creation, [create your first client](/components/saas/clusters/manage-api-clients.md#create-a-client). Ensure you check the `Orchestration Cluster API` client scope box. :::note Make sure you keep the generated client credentials in a safe place. The **Client secret** will not be shown again. For your convenience, you can download the client information to your computer. ::: - In this tutorial, we utilize a JavaScript-written [GitHub repository](https://github.com/camunda/camunda-api-tutorials) to write and run requests. Clone this repo before getting started. - Ensure you have [Node.js](https://nodejs.org/en/download) installed as this will be used for methods that can be called by the CLI (outlined later in this guide). Run `npm install` to ensure you have updated dependencies. ## Getting started - You need authentication to access the API endpoints. Find more information [here](./orchestration-cluster-api-rest-authentication.md). ## Set up authentication If you're interested in how we use a library to handle auth for our code, or to get started, examine the `auth.js` file in the GitHub repository. This file contains a function named `getAccessToken` which executes an OAuth 2.0 protocol to retrieve authentication credentials based on your client ID and client secret. Then, we return the actual token that can be passed as an authorization header in each request. To set up your credentials, create an `.env` file which will be protected by the `.gitignore` file. You will need to add the following: - `CAMUNDA_CLIENT_ID` - `CAMUNDA_CLIENT_SECRET` - `CAMUNDA_REST_ADDRESS` (after creating a client and downloading the .env variables, this is reflected in the [Hub UI](/components/saas/clusters/manage-api-clients.md#create-a-client) as `ZEEBE_REST_ADDRESS`) - `CAMUNDA_TOKEN_AUDIENCE` (represented as `ZEEBE_TOKEN_AUDIENCE` in the [Hub UI](/components/saas/clusters/manage-api-clients.md#create-a-client)), which is `zeebe.camunda.io` in a Camunda 8 SaaS environment. For example, your audience may be defined as `CAMUNDA_TOKEN_AUDIENCE=zeebe.camunda.io`. These keys will be consumed by the `auth.js` file to execute the OAuth protocol, and should be saved when you generate your client credentials in [prerequisites](#prerequisites). Examine the existing `.env.example` file for an example of how your `.env` file should look upon completion. Do not place your credentials in the `.env.example` file, as this example file is not protected by the `.gitignore`. :::note In this tutorial, we will execute arguments to list all roles, create a role, retrieve a role, and delete a role. You can examine the framework for processing these arguments in the `cli.js` file before getting started. ::: ## List all roles (POST) First, let's script an API call to list all existing roles. To do this, take the following steps: 1. In the file named `camunda-8.js`, outline the authentication configuration in the first few lines. This will pull in your `.env` variables to obtain an access token before making any API calls: ```javascript const authorizationConfiguration = { clientId: process.env.CAMUNDA_CLIENT_ID, clientSecret: process.env.CAMUNDA_CLIENT_SECRET, audience: process.env.CAMUNDA_TOKEN_AUDIENCE, }; ``` 2. Examine the function `async function listRoles()` below this configuration. This is where you will script out your API call. 3. Within the function, you must first generate an access token for this request, so your function should now look like the following: ```javascript async function listRoles() { const accessToken = await getAccessToken(authorizationConfiguration); } ``` 4. Using your generated client credentials from [prerequisites](#prerequisites), capture your Orchestration Cluster REST API URL beneath your call for an access token by defining `camundaApiUrl`: ```javascript const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; ``` On the next line, script the API endpoint to list the existing roles: ```javascript const url = `${camundaApiUrl}/roles/search`; ``` 5. Configure your POST request to the appropriate endpoint, including an authorization header based on the previously acquired `accessToken`: ```javascript const options = { method: "POST", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, data: {}, }; ``` 6. Call the endpoint, process the results from the API call, and emit an error message from the server if necessary: ```javascript try { const response = await axios(options); const results = response.data; results.items.forEach((x) => console.log(`Role Name: ${x.name}; key: ${x.key}`) ); } catch (error) { console.error(error.message); } ``` 7. In your terminal, run `node cli.js camunda8 list`. :::note This `list` command is connected to the `listRoles` function at the bottom of the `camunda-8.js` file, and executed by the `cli.js` file. While we will work with roles in this tutorial, you may add additional arguments depending on the API calls you would like to make. ::: The existing roles (if any) will now output. If you have an invalid API name or action name, or no arguments provided, or improper/insufficient credentials configured, an error message will output as outlined in the `cli.js` file. If no action is provided, it will default to "assign" everywhere, except when unassigning a user. ## Create a role (POST) 1. Outline your function: ```javascript async function createRole([roleName]) { const accessToken = await getAccessToken(authorizationConfiguration); const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; const url = `${camundaApiUrl}/roles`; } ``` 2. Configure the API call: ```javascript const options = { method: "POST", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, data: { name: roleName, }, }; ``` 3. Process the results: ```javascript try { const response = await axios(options); const newRole = response.data; console.log(`Role added! Name: ${roleName}. Key: ${newRole.roleKey}.`); } catch (error) { console.error(error.message); } ``` 4. Run in your terminal `node cli.js camunda8 create `. ## Retrieve a role (GET) 1. Outline your function: ```javascript async function getRole([roleKey]) { const accessToken = await getAccessToken(authorizationConfiguration); const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; const url = `${camundaApiUrl}/roles/${roleKey}`; } ``` 2. Configure the API call. ```javascript const options = { method: "GET", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 3. Process the results: ```javascript try { const response = await axios(options); const results = response.data; console.log(`Role Name: ${results.name}; Key: ${results.key};`); } catch (error) { console.error(error.message); } ``` 4. Run in your terminal `node cli.js camunda8 view `. ## Delete a role (DELETE) 1. Outline your function: ```javascript async function deleteRole([roleKey]) { const accessToken = await getAccessToken(authorizationConfiguration); const camundaApiUrl = process.env.CAMUNDA_REST_ADDRESS; const url = `${camundaApiUrl}/roles/${roleKey}`; } ``` 2. Configure the API call: ```javascript const options = { method: "DELETE", url, headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}`, }, }; ``` 3. Process the results: ```javascript try { const response = await axios(options); if (response.status === 204) { console.log("Role deleted!"); } else { console.error("Unable to delete this role!"); } } catch (error) { console.error(error.message); } ``` 4. Run in your terminal `node cli.js camunda8 delete `. ## If you get stuck Having trouble configuring your API calls or want to examine an example of the completed tutorial? Navigate to the `completed` folder in the [GitHub repository](https://github.com/camunda/camunda-api-tutorials/tree/main/completed), where you can view an example `camunda-8.js` file. ## Next steps You can script several additional API calls as outlined in the [Orchestration Cluster REST API reference material](./orchestration-cluster-api-rest-overview.md). --- ## Accessing every operation :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Every one of the 244 API operations is exposed as a method directly on the client — the flat facade — so you rarely need to reach for an API group: ```php function readme_flat_facade(): void { $client = CamundaClient::fromEnvironment(); $instruction = new ProcessInstanceCreationInstructionById([ 'processDefinitionId' => 'order-process', ]); $topology = $client->getTopology(); $result = $client->createProcessInstance($instruction); $async = CamundaAsyncClient::fromEnvironment(); $async->getTopology() ->then(static function ($asyncTopology): void { // handle the asynchronous topology response }) ->wait(); } ``` Beyond the ergonomic helpers and the flat facade, every API group is also reachable through the typed `api()` accessor: ```php function readme_api_accessor(): void { $client = CamundaClient::fromEnvironment(); $instruction = new ProcessInstanceCreationInstructionById([ 'processDefinitionId' => 'order-process', ]); $processInstances = $client->api(ProcessInstanceApi::class); $result = $processInstances->createProcessInstance($instruction); } ``` See the [`examples/`](https://github.com/camunda/orchestration-cluster-api-php/tree/main/examples/) directory for compilable, static-analysed usage of every REST API operation. --- ## Advanced runnable examples :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The [`examples/advanced/`](https://github.com/camunda/orchestration-cluster-api-php/tree/main/examples/advanced/) directory contains self-verifying local-cluster scenarios for a test drive, resilient worker behavior, idempotent message correlation, and PHP process-forking. --- ## Ad Hoc Sub Process Api `AdHocSubProcessApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AdHocSubProcessApi::class)`. - `activateAdHocSubProcessActivities()` --- ## Agent Definition Api `AgentDefinitionApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AgentDefinitionApi::class)`. - `getAgentDefinition()` - `searchAgentDefinitions()` --- ## Agent Instance Api `AgentInstanceApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AgentInstanceApi::class)`. - `createAgentInstance()` - `getAgentInstance()` - `searchAgentInstanceHistory()` - `searchAgentInstances()` - `updateAgentInstance()` --- ## Audit Log Api `AuditLogApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AuditLogApi::class)`. - `getAuditLog()` - `searchAuditLogs()` --- ## Authentication Api `AuthenticationApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AuthenticationApi::class)`. - `getAuthentication()` - `searchOwnAuthorizations()` --- ## Authorization Api `AuthorizationApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\AuthorizationApi::class)`. - `createAuthorization()` - `deleteAuthorization()` - `getAuthorization()` - `searchAuthorizations()` - `updateAuthorization()` --- ## Backup Api `BackupApi` — 22 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\BackupApi::class)`. - `deleteHistoryBackup()` - `deleteHistoryBackupAsClusterAdmin()` - `deleteRuntimeBackup()` - `deleteRuntimeBackupAsClusterAdmin()` - `deleteRuntimeBackupState()` - `deleteRuntimeBackupStateAsClusterAdmin()` - `getHistoryBackup()` - `getHistoryBackupAsClusterAdmin()` - `getRuntimeBackup()` - `getRuntimeBackupAsClusterAdmin()` - `getRuntimeBackupState()` - `getRuntimeBackupStateAsClusterAdmin()` - `listHistoryBackups()` - `listHistoryBackupsAsClusterAdmin()` - `listRuntimeBackups()` - `listRuntimeBackupsAsClusterAdmin()` - `syncRuntimeBackupState()` - `syncRuntimeBackupStateAsClusterAdmin()` - `takeHistoryBackup()` - `takeHistoryBackupAsClusterAdmin()` - `takeRuntimeBackup()` - `takeRuntimeBackupAsClusterAdmin()` --- ## Batch Operation Api `BatchOperationApi` — 6 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\BatchOperationApi::class)`. - `cancelBatchOperation()` - `getBatchOperation()` - `resumeBatchOperation()` - `searchBatchOperationItems()` - `searchBatchOperations()` - `suspendBatchOperation()` --- ## Clock Api `ClockApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ClockApi::class)`. - `pinClock()` - `resetClock()` --- ## Cluster Api `ClusterApi` — 8 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ClusterApi::class)`. - `cancelClusterRebalance()` - `getClusterRebalance()` - `getClusterStatus()` - `getClusterTopology()` - `getClusterUpgradeStatus()` - `getStatus()` - `getTopology()` - `triggerClusterRebalance()` --- ## Cluster Variable Api `ClusterVariableApi` — 9 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ClusterVariableApi::class)`. - `createGlobalClusterVariable()` - `createTenantClusterVariable()` - `deleteGlobalClusterVariable()` - `deleteTenantClusterVariable()` - `getGlobalClusterVariable()` - `getTenantClusterVariable()` - `searchClusterVariables()` - `updateGlobalClusterVariable()` - `updateTenantClusterVariable()` --- ## Conditional Api `ConditionalApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ConditionalApi::class)`. - `evaluateConditionals()` --- ## Decision Definition Api `DecisionDefinitionApi` — 4 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\DecisionDefinitionApi::class)`. - `evaluateDecision()` - `getDecisionDefinition()` - `getDecisionDefinitionXML()` - `searchDecisionDefinitions()` --- ## Decision Instance Api `DecisionInstanceApi` — 4 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\DecisionInstanceApi::class)`. - `deleteDecisionInstance()` - `deleteDecisionInstancesBatchOperation()` - `getDecisionInstance()` - `searchDecisionInstances()` --- ## Decision Requirements Api `DecisionRequirementsApi` — 3 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\DecisionRequirementsApi::class)`. - `getDecisionRequirements()` - `getDecisionRequirementsXML()` - `searchDecisionRequirements()` --- ## Document Api `DocumentApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\DocumentApi::class)`. - `createDocument()` - `createDocumentLink()` - `createDocuments()` - `deleteDocument()` - `getDocument()` --- ## Domain type system Each identifier is a distinct, self-validating value object in the `Camunda\Orchestration\Semantic` namespace. Concrete identifier types implement `Stringable` and `JsonSerializable` and expose `::of()`, `->value()`, and `->equals()`. `ResourceKey` and `ScopeKey` are factories that lift a raw string into the matching concrete type via `::of()`. | Type | Pattern | Length | Description | | ------------------------------- | --------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AgentDefinitionKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an agent definition. | | `AgentHistoryItemKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an agent history item. | | `AgentInstanceKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an agent instance. | | `AuditLogEntityKey` | — | — | System-generated entity key for an audit log entry. | | `AuditLogKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an audit log entry. | | `AuthorizationKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an authorization. | | `BatchOperationKey` | — | — | System-generated key for an batch operation. | | `BusinessId` | — | 1–256 | An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. | | `ClientId` | /^[a-zA-Z0-9_~@.+-]+$/u | 1–256 | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. | | `ClusterVariableName` | /^[a-zA-Z0-9_~@.+-]+$/u | 1–256 | The name of a cluster variable. Unique within its scope (global or tenant-specific). | | `ConditionalEvaluationKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a conditional evaluation. | | `DecisionDefinitionId` | /^[\p{L}_][\p{L}\p{N}_\-\.]*$/u | ≥ 1 | Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful. | | `DecisionDefinitionKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a decision definition. | | `DecisionEvaluationInstanceKey` | /^[0-9]+-[0-9]+$/u | 3–30 | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: `-`). | | `DecisionEvaluationKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a decision evaluation. | | `DecisionInstanceKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a deployed decision instance. | | `DecisionRequirementsKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a deployed decision requirements definition. | | `DeploymentKey` | /^-?[0-9]+$/u | 1–25 | Key for a deployment. | | `DocumentId` | — | — | Document Id that uniquely identifies a document. | | `ElementId` | — | — | The model-defined id of an element. | | `ElementInstanceKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a element instance. | | `EndCursor` | /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}(?:==)?|[A-Za-z0-9+\/]{3}=)?$/u | — | The end cursor in a search query result set. | | `FormId` | — | — | The user-defined id for the form | | `FormKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a deployed form. | | `GlobalListenerId` | /^[a-zA-Z0-9_~@.+\-]+$/u | 1–256 | The user-defined id for the global listener | | `GroupId` | — | 1–256 | The unique identifier of a group. | | `HistoryItemId` | — | 1–256 | The client-supplied identifier this item was created with. | | `IncidentKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a incident. | | `JobKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a job. | | `JobLeaseToken` | — | ≥ 1 | An opaque, engine-minted fencing token identifying a single activation of a job. Returned by Activate Jobs as `ActivatedJobResult.jobLeaseToken` when the job is activated with a lease, and passed back under the same name on fenced job commands and on agent-instance creation/updates, to prove the caller holds the current lease. The token is opaque: clients may rely on its presence and equality only, and must never construct, parse, or otherwise interpret it beyond equality checks. It cannot be minted client-side; only the engine produces it, exactly once per leased activation, and clients must not depend on any particular internal format. | | `MappingRuleId` | /^[a-zA-Z0-9_~@.+-]+$/u | 1–256 | The unique identifier of a mapping rule. | | `MessageKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an message. | | `MessageSubscriptionKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a message subscription. | | `ProcessDefinitionId` | /^[\p{L}_][\p{L}\p{N}_\-\.]*$/u | ≥ 1 | Id of a process definition, from the model. Only ids of process definitions that are deployed are useful. | | `ProcessDefinitionKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a deployed process definition. | | `ProcessInstanceKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a process instance. | | `ResourceKey` | — | — | Semantic identifier that accepts any of: ProcessDefinitionKey, DecisionRequirementsKey, FormKey, DecisionDefinitionKey. | | `RoleId` | /^[a-zA-Z0-9_~@.+-]+$/u | 1–256 | The unique identifier of a role. | | `ScopeKey` | — | — | Semantic identifier that accepts any of: ProcessInstanceKey, ElementInstanceKey. | | `SignalKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for an signal. | | `StartCursor` | /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}(?:==)?|[A-Za-z0-9+\/]{3}=)?$/u | — | The start cursor in a search query result set. | | `Tag` | /^[A-Za-z][A-Za-z0-9_\-:.]{0,99}$/u | 1–100 | A tag. Needs to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100. | | `TenantId` | /^(<default>|[\w\.\-]{1,31})$/u | 1–31 | The unique identifier of the tenant. | | `UserTaskKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a user task. | | `Username` | /^[a-zA-Z0-9_~@.+-]+$/u | 1–256 | The unique name of a user. | | `VariableKey` | /^-?[0-9]+$/u | 1–25 | System-generated key for a variable. | --- ## Element Instance Api `ElementInstanceApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ElementInstanceApi::class)`. - `createElementInstanceVariables()` - `getElementInstance()` - `searchElementInstanceIncidents()` - `searchElementInstanceWaitStates()` - `searchElementInstances()` --- ## Exporting Api `ExportingApi` — 6 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ExportingApi::class)`. - `getClusterExportingStatus()` - `getExportingStatus()` - `pauseClusterExporting()` - `pauseExporting()` - `resumeClusterExporting()` - `resumeExporting()` --- ## Expression Api `ExpressionApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ExpressionApi::class)`. - `evaluateExpression()` --- ## Form Api `FormApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\FormApi::class)`. - `getFormByKey()` --- ## Global Listener Api `GlobalListenerApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\GlobalListenerApi::class)`. - `createGlobalTaskListener()` - `deleteGlobalTaskListener()` - `getGlobalTaskListener()` - `searchGlobalTaskListeners()` - `updateGlobalTaskListener()` --- ## Group Api `GroupApi` — 15 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\GroupApi::class)`. - `assignClientToGroup()` - `assignMappingRuleToGroup()` - `assignUserToGroup()` - `createGroup()` - `deleteGroup()` - `getGroup()` - `searchClientsForGroup()` - `searchGroups()` - `searchMappingRulesForGroup()` - `searchRolesForGroup()` - `searchUsersForGroup()` - `unassignClientFromGroup()` - `unassignMappingRuleFromGroup()` - `unassignUserFromGroup()` - `updateGroup()` --- ## Incident Api `IncidentApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\IncidentApi::class)`. - `getIncident()` - `getProcessInstanceStatisticsByDefinition()` - `getProcessInstanceStatisticsByError()` - `resolveIncident()` - `searchIncidents()` --- ## Overview # API reference :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK exposes **244 operations** across **41 API groups**. Every operation is available directly on the client (the flat facade) and through the typed `api()` accessor: ```php $client = CamundaClient::fromEnvironment(); // Flat facade — every operation is a method on the client: $topology = $client->getTopology(); // Or via the typed API-group accessor: $jobs = $client->api(\Camunda\Orchestration\Api\Api\JobApi::class); ``` | API group | Operations | | --------------------------------------------------------- | ---------- | | [Ad Hoc Sub Process Api](ad-hoc-sub-process-api.md) | 1 | | [Agent Definition Api](agent-definition-api.md) | 2 | | [Agent Instance Api](agent-instance-api.md) | 5 | | [Audit Log Api](audit-log-api.md) | 2 | | [Authentication Api](authentication-api.md) | 2 | | [Authorization Api](authorization-api.md) | 5 | | [Backup Api](backup-api.md) | 22 | | [Batch Operation Api](batch-operation-api.md) | 6 | | [Clock Api](clock-api.md) | 2 | | [Cluster Api](cluster-api.md) | 8 | | [Cluster Variable Api](cluster-variable-api.md) | 9 | | [Conditional Api](conditional-api.md) | 1 | | [Decision Definition Api](decision-definition-api.md) | 4 | | [Decision Instance Api](decision-instance-api.md) | 4 | | [Decision Requirements Api](decision-requirements-api.md) | 3 | | [Document Api](document-api.md) | 5 | | [Element Instance Api](element-instance-api.md) | 5 | | [Exporting Api](exporting-api.md) | 6 | | [Expression Api](expression-api.md) | 1 | | [Form Api](form-api.md) | 1 | | [Global Listener Api](global-listener-api.md) | 5 | | [Group Api](group-api.md) | 15 | | [Incident Api](incident-api.md) | 5 | | [Job Api](job-api.md) | 12 | | [License Api](license-api.md) | 1 | | [Mapping Rule Api](mapping-rule-api.md) | 5 | | [Message Api](message-api.md) | 2 | | [Message Subscription Api](message-subscription-api.md) | 2 | | [Process Definition Api](process-definition-api.md) | 9 | | [Process Instance Api](process-instance-api.md) | 23 | | [Recovery Api](recovery-api.md) | 5 | | [Resource Api](resource-api.md) | 6 | | [Role Api](role-api.md) | 17 | | [Secret Api](secret-api.md) | 2 | | [Setup Api](setup-api.md) | 1 | | [Signal Api](signal-api.md) | 1 | | [System Api](system-api.md) | 2 | | [Tenant Api](tenant-api.md) | 20 | | [User Api](user-api.md) | 5 | | [User Task Api](user-task-api.md) | 10 | | [Variable Api](variable-api.md) | 2 | | [Domain type system](domain-type-system.md) | — | --- ## Job Api `JobApi` — 12 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\JobApi::class)`. - `activateJobs()` - `completeJob()` - `failJob()` - `getGlobalJobStatistics()` - `getJobErrorStatistics()` - `getJobTimeSeriesStatistics()` - `getJobTypeStatistics()` - `getJobWorkerStatistics()` - `searchJobs()` - `throwJobError()` - `updateJob()` - `updateJobsBatchOperation()` --- ## License Api `LicenseApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\LicenseApi::class)`. - `getLicense()` --- ## Mapping Rule Api `MappingRuleApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\MappingRuleApi::class)`. - `createMappingRule()` - `deleteMappingRule()` - `getMappingRule()` - `searchMappingRule()` - `updateMappingRule()` --- ## Message Api `MessageApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\MessageApi::class)`. - `correlateMessage()` - `publishMessage()` --- ## Message Subscription Api `MessageSubscriptionApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\MessageSubscriptionApi::class)`. - `searchCorrelatedMessageSubscriptions()` - `searchMessageSubscriptions()` --- ## Process Definition Api `ProcessDefinitionApi` — 9 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ProcessDefinitionApi::class)`. - `getProcessDefinition()` - `getProcessDefinitionInstanceStatistics()` - `getProcessDefinitionInstanceVersionStatistics()` - `getProcessDefinitionMessageSubscriptionStatistics()` - `getProcessDefinitionStatistics()` - `getProcessDefinitionXML()` - `getStartProcessForm()` - `searchProcessDefinitionVariableNames()` - `searchProcessDefinitions()` --- ## Process Instance Api `ProcessInstanceApi` — 23 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ProcessInstanceApi::class)`. - `assignProcessInstanceBusinessId()` - `cancelProcessInstance()` - `cancelProcessInstancesBatchOperation()` - `createProcessInstance()` - `deleteProcessInstance()` - `deleteProcessInstancesBatchOperation()` - `getProcessInstance()` - `getProcessInstanceCallHierarchy()` - `getProcessInstanceSequenceFlows()` - `getProcessInstanceStatistics()` - `getProcessInstanceWaitStateStatistics()` - `migrateProcessInstance()` - `migrateProcessInstancesBatchOperation()` - `modifyProcessInstance()` - `modifyProcessInstancesBatchOperation()` - `resolveIncidentsBatchOperation()` - `resolveProcessInstanceIncidents()` - `resumeProcessInstance()` - `resumeProcessInstancesBatchOperation()` - `searchProcessInstanceIncidents()` - `searchProcessInstances()` - `suspendProcessInstance()` - `suspendProcessInstancesBatchOperation()` --- ## Recovery Api `RecoveryApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\RecoveryApi::class)`. - `changeClusterMode()` - `changeClusterModeAsClusterAdmin()` - `getRestoreStatus()` - `restore()` - `restoreAsClusterAdmin()` --- ## Resource Api `ResourceApi` — 6 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\ResourceApi::class)`. - `createDeployment()` - `deleteResource()` - `getResource()` - `getResourceContent()` - `getResourceContentBinary()` - `searchResources()` --- ## Role Api `RoleApi` — 17 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\RoleApi::class)`. - `assignRoleToClient()` - `assignRoleToGroup()` - `assignRoleToMappingRule()` - `assignRoleToUser()` - `createRole()` - `deleteRole()` - `getRole()` - `searchClientsForRole()` - `searchGroupsForRole()` - `searchMappingRulesForRole()` - `searchRoles()` - `searchUsersForRole()` - `unassignRoleFromClient()` - `unassignRoleFromGroup()` - `unassignRoleFromMappingRule()` - `unassignRoleFromUser()` - `updateRole()` --- ## Secret Api `SecretApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\SecretApi::class)`. - `listSecrets()` - `resolveSecrets()` --- ## Setup Api `SetupApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\SetupApi::class)`. - `createAdminUser()` --- ## Signal Api `SignalApi` — 1 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\SignalApi::class)`. - `broadcastSignal()` --- ## System Api `SystemApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\SystemApi::class)`. - `getSystemConfiguration()` - `getUsageMetrics()` --- ## Tenant Api `TenantApi` — 20 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\TenantApi::class)`. - `assignClientToTenant()` - `assignGroupToTenant()` - `assignMappingRuleToTenant()` - `assignRoleToTenant()` - `assignUserToTenant()` - `createTenant()` - `deleteTenant()` - `getTenant()` - `searchClientsForTenant()` - `searchGroupIdsForTenant()` - `searchMappingRulesForTenant()` - `searchRolesForTenant()` - `searchTenants()` - `searchUsersForTenant()` - `unassignClientFromTenant()` - `unassignGroupFromTenant()` - `unassignMappingRuleFromTenant()` - `unassignRoleFromTenant()` - `unassignUserFromTenant()` - `updateTenant()` --- ## User Api `UserApi` — 5 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\UserApi::class)`. - `createUser()` - `deleteUser()` - `getUser()` - `searchUsers()` - `updateUser()` --- ## User Task Api `UserTaskApi` — 10 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\UserTaskApi::class)`. - `assignUserTask()` - `completeUserTask()` - `getUserTask()` - `getUserTaskForm()` - `searchUserTaskAuditLogs()` - `searchUserTaskEffectiveVariables()` - `searchUserTaskVariables()` - `searchUserTasks()` - `unassignUserTask()` - `updateUserTask()` --- ## Variable Api `VariableApi` — 2 operations. Call any of these directly on the client, or via `$client->api(\Camunda\Orchestration\Api\Api\VariableApi::class)`. - `getVariable()` - `searchVariables()` --- ## Configuration(Php-sdk) :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ## Zero-config from the environment The client reads the standard `CAMUNDA_*` environment variables and auto-detects the authentication strategy (`NONE`, `BASIC`, or `OAUTH`). ```php function readme_zero_config(): void { // Reads CAMUNDA_REST_ADDRESS and auto-detects the auth strategy from the // ambient environment (NONE / BASIC / OAUTH). $client = CamundaClient::fromEnvironment(); } ``` ## Programmatic configuration ```php function readme_programmatic_config(): void { $config = new CamundaConfiguration( restAddress: 'https://my-cluster.example.com/v2', authStrategy: 'OAUTH', clientId: 'my-client-id', clientSecret: 'my-client-secret', ); $client = CamundaClient::fromConfiguration($config); } ``` ## Basic auth ```php function readme_basic_auth(): void { $client = CamundaClient::fromEnvironment([ 'CAMUNDA_AUTH_STRATEGY' => 'BASIC', 'CAMUNDA_BASIC_AUTH_USERNAME' => 'demo', 'CAMUNDA_BASIC_AUTH_PASSWORD' => 'demo', ]); } ``` ## Loading a `.env` file Set `CAMUNDA_LOAD_ENVFILE=true` to read `.env` in the working directory, or set it to an explicit path. This optional capability requires [`vlucas/phpdotenv`](https://packagist.org/packages/vlucas/phpdotenv). ```php function env_file_client(): CamundaClient { // Set CAMUNDA_LOAD_ENVFILE=true (or a path) before starting PHP. Real // environment variables and explicit overrides still take precedence. return CamundaClient::fromEnvironment(); } ``` ## Mutual TLS ```php function mtls_client(): CamundaClient { return CamundaClient::fromConfiguration(new CamundaConfiguration( restAddress: 'https://my-cluster.example.com/v2', authStrategy: 'OAUTH', clientId: 'my-client-id', clientSecret: 'my-client-secret', mtlsCertPath: '/run/secrets/client.crt', mtlsKeyPath: '/run/secrets/client.key', mtlsCaPath: '/run/secrets/cluster-ca.pem', )); } ``` ## Custom Guzzle middleware ```php function custom_http_client(CamundaConfiguration $configuration): CamundaClient { // Supplying a Guzzle client replaces the SDK-built stack. Add the SDK auth // middleware and any proxy, tracing, or mTLS options your application needs. $stack = HandlerStack::create(); $stack->push(new AuthMiddleware(AuthProviderFactory::fromConfiguration($configuration)), 'camunda_auth'); return CamundaClient::fromConfiguration( $configuration, new GuzzleClient(['handler' => $stack, 'http_errors' => false]), ); } ``` ## Supported environment variables | Variable | Default | Description | | ------------------------------------ | -------------------------------------------- | ------------------------------------------------------------------------------------ | | `CAMUNDA_REST_ADDRESS` | `http://localhost:8080/v2` | Cluster REST endpoint. `/v2` is appended automatically when absent. | | `ZEEBE_REST_ADDRESS` | — | Legacy alias for `CAMUNDA_REST_ADDRESS` (used only when the latter is unset). | | `CAMUNDA_AUTH_STRATEGY` | — | `NONE`, `BASIC`, or `OAUTH`. Auto-detected from the supplied credentials when unset. | | `CAMUNDA_CLIENT_ID` | — | OAuth client id. | | `CAMUNDA_CLIENT_SECRET` | — | OAuth client secret. | | `CAMUNDA_CLIENT_AUTH_CLIENTID` | — | Legacy alias for `CAMUNDA_CLIENT_ID`. | | `CAMUNDA_CLIENT_AUTH_CLIENTSECRET` | — | Legacy alias for `CAMUNDA_CLIENT_SECRET`. | | `CAMUNDA_OAUTH_URL` | `https://login.cloud.camunda.io/oauth/token` | OAuth token endpoint. | | `CAMUNDA_TOKEN_AUDIENCE` | `zeebe.camunda.io` | OAuth token audience. | | `CAMUNDA_BASIC_AUTH_USERNAME` | — | Basic-auth username. | | `CAMUNDA_BASIC_AUTH_PASSWORD` | — | Basic-auth password. | | `CAMUNDA_TENANT_ID` | — | Default tenant id applied to tenant-aware operations. | | `CAMUNDA_TENANT_IDS` | — | Comma-separated default tenant ids (e.g. for job activation). | | `CAMUNDA_SDK_LOG_LEVEL` | `warn` | SDK log level (`error`, `warn`, `info`, `debug`). | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | `32` | Default maximum number of jobs a worker activates at once. | | `CAMUNDA_WORKER_TIMEOUT` | `60000` | Default job activation timeout, in milliseconds. | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | `10000` | Default long-poll request timeout, in milliseconds. | | `CAMUNDA_WORKER_NAME` | — | Default worker name reported when activating jobs. | | `CAMUNDA_MTLS_CERT_PATH` | — | Path to the client certificate for mutual TLS. | | `CAMUNDA_MTLS_KEY_PATH` | — | Path to the client private key for mutual TLS. | | `CAMUNDA_MTLS_CA_PATH` | — | Path to the CA bundle used to verify the server certificate. | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | — | Passphrase protecting the mTLS client key, if any. | | `CAMUNDA_LOAD_ENVFILE` | — | Load configuration from a `.env` file. Set to `true` or a file path. | --- ## Deploying resources(Php-sdk) :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Pass a readable filesystem path for every BPMN, DMN, or Form resource. Anchor paths with `__DIR__` so deployment is independent of the shell's current working directory. The repository includes [runnable deployment resources](https://github.com/camunda/orchestration-cluster-api-php/tree/main/examples/resources/); replace those paths with your application's models. ```php function readme_deploy_resources(): void { $client = CamundaClient::fromEnvironment(); $result = $client->deployResourcesFromFiles( __DIR__ . '/resources/order-process.bpmn', __DIR__ . '/resources/pricing.dmn', ); // $result is a DeploymentResult (or ProblemDetail on a handled error). } ``` `deployResourcesFromFiles()` returns a `DeploymentResult` on success and a `ProblemDetail` for a handled API error. It throws a `ConfigurationException` when a local resource path cannot be read. --- ## Installing the SDK to your project :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ## Requirements - PHP 8.2 or later - [Composer](https://getcomposer.org/) - `ext-json`; `ext-pcntl` is optional (enables forked job workers) ## Stable release (recommended for production) The stable version tracks the latest supported Camunda server release. ```bash composer require camunda8/orchestration-cluster-api ``` ## Versioning This SDK has a different release cadence from the Camunda server. The major version of the SDK signals a 1:1 type coherence with the server API for a Camunda minor release. SDK version `n.y.z` → server version `8.n`, so the type surface of SDK version `10.y.z` matches the API surface of Camunda `8.10`. Using the matching SDK major version for the server minor version provides the strongest guarantees about runtime reliability. --- ## Job workers(Php-sdk) :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: A job worker long-polls for jobs of a given type and dispatches each to your handler. Returning an array auto-completes the job with those variables; you can also complete, fail, or raise a BPMN error explicitly via the handler's `JobActionClient`. ```php function readme_job_worker(): void { $client = CamundaClient::fromEnvironment(); $worker = $client->createJobWorker(new JobWorkerOptions( type: 'payment-processing', maxJobs: 5, timeoutMs: 30_000, )); $worker->run(function (ActivatedJobResult $job, JobActionClient $action): array { // ... perform the work ... return ['status' => 'paid']; }); } ``` When `ext-pcntl` is available and `forked: true` is set, each job is processed in its own child process, bounded to `maxJobs` concurrent children. ## Object-oriented handlers ```php final class PaymentJobHandler implements JobHandler { public function handle(ActivatedJobResult $job, JobActionClient $action): ?array { $variables = $job->getVariables(); if (!isset($variables['paymentId'])) { $action->error('MISSING_PAYMENT_ID', 'The payment job has no payment id.'); return null; } return ['paymentStatus' => 'approved']; } } function object_job_handler(CamundaClient $client): void { $worker = $client->createJobWorker(new JobWorkerOptions(type: 'process-payment')); $worker->run(new PaymentJobHandler()); } ``` --- ## Live example showcase :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: With a disposable Camunda cluster already running, execute the six scenario showcase and create its HTML proof report: ```sh CAMUNDA_REST_ADDRESS=http://localhost:8080 \ CAMUNDA_AUTH_STRATEGY=NONE \ make example-showcase ``` The showcase runs focused workflow scenarios for deployment, process lifecycle, job workers, user tasks, incidents, message correlation, and management operations. The report indexes every source-backed snippet alongside the live scenario that demonstrates its API area. It intentionally performs mutations and cluster-management requests; never run it against a shared, staging, or production cluster. Run one scenario with `make example-showcase SCENARIO=`. Open [`docs/example-validation.html`](https://github.com/camunda/orchestration-cluster-api-php/blob/main/docs/example-validation.html) after a run for the six outcomes and a searchable gallery of all source-backed snippets. --- ## Semantic Types :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK uses distinct value objects for identifiers like `ProcessDefinitionId`, `ProcessInstanceKey`, `JobKey`, `TenantId`, and so on, defined in the `Camunda\Orchestration\Semantic` namespace. ## Why they exist Camunda's API has many operations that accept string keys. Without semantic types it is easy to accidentally pass a process-instance key where a process-definition id is expected. When everything is a `string`, static analysis cannot help you. Semantic types make these identifiers **distinct at the type level**. PHPStan flags an error if you pass the wrong identifier type, catching bugs before runtime. Each value object validates its format on construction and implements `Stringable` and `JsonSerializable`, so it serializes transparently to and from JSON. ## How to use them ```php function readme_semantic_types(): void { // Identifiers are distinct value objects — you cannot accidentally pass a // process-definition id where a tenant id is expected. $instruction = (new ProcessInstanceCreationInstructionById()) ->setProcessDefinitionId(ProcessDefinitionId::of('order-process')) ->setVariables(['orderId' => 'ORD-42']); // Value objects validate their format on construction and stringify cleanly. $definitionId = new ProcessDefinitionId('order-process'); echo (string) $definitionId, "\n"; } ``` When you construct a model from an array, raw strings are automatically lifted into their semantic value objects, so you can stay ergonomic where you want to. --- ## Support status(Php-sdk) :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: This is a **Technical Preview** of the PHP client for the Camunda 8 Orchestration Cluster API, provided for evaluation and feedback. It gives you a stable foundation to build on now, with a clear path to full support: we do not intend to make breaking changes to the application integration surface, but we do not guarantee that we will not. The SDK will become fully supported with an SLA in a future release. We don't anticipate major changes — and [your feedback](https://github.com/camunda/orchestration-cluster-api-php/issues) is what helps close that gap. > As a Technical Preview, the API surface may still evolve before it is declared fully > supported. Pin a specific version if you need stability. --- ## Using the SDK :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK provides two clients with matching surfaces: - **`CamundaClient`** — synchronous. Every method blocks until the response arrives. Use it in scripts, CLI tools, and traditional request/response applications. - **`CamundaAsyncClient`** — asynchronous. Every operation returns a Guzzle `PromiseInterface`. Use it when you want to issue concurrent requests. ```php function readme_sync_client(): void { $client = CamundaClient::fromEnvironment(); $result = $client->deployResourcesFromFiles(__DIR__ . '/resources/order-process.bpmn'); // ... } ``` ```php function readme_async_client(): void { $client = CamundaAsyncClient::fromEnvironment(); $client->deployResourcesFromFilesAsync(__DIR__ . '/resources/order-process.bpmn') ->then(static function ($result): void { // handle the DeploymentResult once the request resolves }) ->wait(); } ``` ## Parallel async reads ```php function parallel_async_reads(CamundaAsyncClient $client): void { // Requests are issued before either promise is awaited. $topologyPromise = $client->getTopology(); $definitionsPromise = $client->searchProcessDefinitions(); $topology = $topologyPromise->wait(); $definitions = $definitionsPromise->wait(); if ($topology instanceof TopologyResponse) { printf("Connected to %d broker(s).\n", count($topology->getBrokers())); } if ($definitions instanceof ProcessDefinitionSearchQueryResult) { printf("Found %d process definitions.\n", count($definitions->getItems())); } } ``` --- ## PHP SDK (Technical Preview) :::caution Technical Preview The PHP SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: A fully typed PHP client for the [Camunda 8 Orchestration Cluster REST API](../apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). Fully compliant with the Camunda OpenAPI spec, with a hand-written runtime for authentication, configuration, and job workers. - **Sync and async** — `CamundaClient` (synchronous) and `CamundaAsyncClient` (promise-based) - **Semantic value objects** — distinct types for every identifier, checked at `PHPStan` level `max` - **Zero-config** — reads `CAMUNDA_*` environment variables (12-factor style) - **Job workers** — long-poll workers with optional `pcntl` process forking - **OAuth & Basic auth** — pluggable authentication with automatic token management - **PSR standards** — PSR-4 autoloading, PSR-18/PSR-7 HTTP via Guzzle --- ## Processes MCP Server ## About The Processes MCP Server is a capability of the Orchestration Cluster that exposes your deployed BPMN processes as callable tools through the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP). - Any process equipped with an [MCP start event](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-start-event.md) element template is automatically registered as an MCP tool when deployed. - MCP clients discover these tools at runtime and invoke them by name. Each invocation starts a new process instance and returns the started process instance key immediately. - The server shares the same [authentication](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md) and [authorization](/components/concepts/access-control/authorizations.md) model as the Orchestration Cluster REST API. :::important Camunda 8 public API The Processes MCP Server is not part of the [Camunda 8 public API](/reference/public-api.md). ::: :::note This is the Processes MCP Server documentation. If you are looking to: - Give [AI agents](/reference/glossary.md#ai-agent) access to Camunda's operational capabilities, such as incidents, user tasks, and process instances, see the [Orchestration Cluster MCP Server](../orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-overview.md). - Connect an AI agent running inside a BPMN process to an external MCP server, see the [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client.md). ::: ### Key features | Feature | Description | | :------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | | Process tool registration | Processes with an MCP start event are automatically registered as MCP tools on deployment. | | Tool discovery | MCP clients discover available process tools and their schemas at runtime. | | Static tools | The server also exposes a set of [static tools](#static-tools) for inspecting running process instances. | | Version binding | Only the latest deployed version of a process is exposed. See [Version binding](./processes-mcp-version-binding.md). | | Standard transport | Uses [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http), compatible with any MCP-compliant client. | ### Authentication The Processes MCP Server uses the same authentication model as the [Orchestration Cluster REST API](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md). OAuth tokens obtained for the REST API work without changes. For the full authentication reference, including SaaS and Self-Managed setup, see [Authentication](../orchestration-cluster-api-rest/orchestration-cluster-api-rest-authentication.md). ### Transport The Processes MCP Server uses [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http) and is served at the `/mcp/processes` endpoint on the Orchestration Cluster. It is stateless; no session management is required. ### Audit logging for MCP operations Operations triggered through the Processes MCP Server are recorded in the [audit log](/components/audit-log/overview.md), like any other operation. Because the tool call enters through MCP, each resulting record has an inbound channel of `MCP` and captures the name of the MCP tool that triggered it, so you can distinguish operations initiated by AI agents through MCP from those performed directly by users or clients. See [inbound channel](/components/audit-log/overview/operation-structure.md#inbound-channel) for details on how this is presented in the applications and the REST API. :::note The Processes MCP Server uses the same authentication as the REST API, so a tool call is attributed to the authenticated user or client. By default, [only user operations are recorded](/components/audit-log/overview/recorded-operations.md#limitations-and-constraints), not client operations. To capture MCP tool calls made by a client, configure the audit log to also track client operations. ::: ## Get started :::important Camunda 8.10 The Processes MCP Server is only available from Camunda 8.10 onwards. ::: To expose a BPMN process as an MCP tool, see [Expose a process as an MCP tool](/components/agentic-orchestration/expose-process-as-mcp-tool.md). If you have a local Orchestration Cluster running with [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) or [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md), the Processes MCP Server is enabled by default. Connect any MCP client using this configuration: ```json { "servers": { "camunda-processes": { "type": "http", "url": "http://localhost:8080/mcp/processes" } } } ``` For production environments and other deployment types, the Processes MCP Server must be explicitly enabled before use. See [Enable and connect](./processes-mcp-setup.md) for more details. ## Static tools In addition to dynamically registered process tools, the Processes MCP Server exposes a set of static tools for inspecting the process instances it starts. See [static tools](./processes-mcp-static-tools.md) for more details. --- ## Enable and connect(Processes-mcp) Enable the Processes MCP Server and configure MCP clients to connect. ## Enable the Processes MCP Server The Processes MCP Server is enabled by default in [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) and [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md). For other deployment types, it must be explicitly enabled before MCP clients can connect. Depending on your deployment, enable it as follows: The Processes MCP Server is **enabled by default** in Camunda 8 Run. No additional configuration is needed. The Processes MCP Server is **enabled by default** in the Docker Compose distribution. No additional configuration is needed. Set the following [`extraConfiguration`](/self-managed/deployment/helm/configure/application-configs.md#configuration-options) value in your Helm chart values: ```yaml orchestration: extraConfiguration: - file: mcp-gateway.yaml content: | camunda: mcp: enabled: true ``` In Camunda Hub: 1. In the left navigation, under **Clusters**, select a cluster. 1. Open the **Settings** tab 1. Enable MCP support. :::info MCP server support is available on SaaS clusters running Camunda 8.10.0 or later. ::: For a full reference of MCP configuration properties, see [Property reference](/self-managed/components/orchestration-cluster/core-settings/configuration/properties.md#api---mcp). ## Connect an MCP client Once the Processes MCP Server is enabled, you can connect any MCP-compliant client. The approach depends on your client's capabilities and authentication requirements. :::important When you [create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub, all required connection details, including the base URL, OAuth endpoint, client ID, and audience, are displayed on the credentials page. ::: ### MCP endpoint URL The Processes MCP Server is served at `/mcp/processes` on the Orchestration Cluster. The full endpoint URL depends on your deployment type: | Deployment | MCP endpoint URL | | :------------------------- | :-------------------------------------------------------------------------------- | | Camunda 8 Run | `http://localhost:8080/mcp/processes` | | Docker Compose | `http://localhost:8080/mcp/processes` | | SaaS – public connectivity | `https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/mcp/processes` | | SaaS – secure connectivity | `https://${CLUSTER_ID}.${REGION_ID}.privateconnectivity.camunda.io/mcp/processes` | | Self-Managed (custom) | `https:///mcp/processes` | For SaaS, find your **Region Id** and **Cluster Id** in [Camunda Hub](/components/saas/clusters/manage-api-clients.md#view-connection-information). ### Direct HTTP connection If your Orchestration Cluster does not require authentication, for example, when running locally with [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) or [Docker Compose](/self-managed/quickstart/developer-quickstart/docker-compose.md), you can connect directly to the MCP server endpoint without any additional tooling. Any MCP client that supports [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http) can be used. For authenticated environments, [use c8ctl `mcp-proxy`](#use-c8ctl-mcp-proxy) instead. ```json { "servers": { "camunda-processes": { "type": "http", "url": "http://localhost:8080/mcp/processes" } } } ``` ### Use c8ctl `mcp-proxy` Many MCP clients, such as VS Code (GitHub Copilot) and Claude Code, do not natively support the OAuth 2.0 client credentials flow required for authenticated environments. The [c8ctl](https://github.com/camunda/c8ctl) `mcp-proxy` command bridges this gap by providing a local STDIO-to-Remote HTTP proxy that handles authentication transparently. The proxy authenticates to the MCP server using OAuth 2.0 client credentials, and exposes a local STDIO MCP interface that your client connects to. #### Prerequisites - [Node.js](https://nodejs.org/) 18 or later. - [Client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) for your Camunda cluster with the **Orchestration Cluster API** scope enabled. #### Configuration Add the following to your MCP client configuration. For example, use the following in `claude_desktop_config.json` for Claude Code: ```json { "mcpServers": { "camunda-processes": { "type": "stdio", "command": "npx", "args": ["-y", "@camunda8/cli", "mcp-proxy", "/mcp/processes"], "env": { "CAMUNDA_BASE_URL": "https://", "CAMUNDA_CLIENT_ID": "", "CAMUNDA_CLIENT_SECRET": "", "CAMUNDA_OAUTH_URL": "https:///oauth/token", "CAMUNDA_TOKEN_AUDIENCE": "" } } } } ``` | Variable | Description | | :----------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `CAMUNDA_BASE_URL` | Base URL of your Orchestration Cluster, **without** the `/mcp/processes` path (for example, the public `api.camunda.io` URL or the private `privateconnectivity.camunda.io` URL when using Secure connectivity). | | `CAMUNDA_CLIENT_ID` | OAuth client ID from your API client credentials. | | `CAMUNDA_CLIENT_SECRET` | OAuth client secret from your API client credentials. | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint URL. | | `CAMUNDA_TOKEN_AUDIENCE` | Token audience for the Orchestration Cluster API. | :::tip Where to find these values When you [create API client credentials](/components/saas/clusters/manage-api-clients.md#create-a-client) in Camunda Hub, all required connection details are displayed on the credentials page. You can also copy a ready-to-use c8ctl configuration snippet directly from the **MCP** tab on the credentials screen. ::: For the full list of supported environment variables, see the [c8ctl documentation](https://github.com/camunda/c8ctl). ### Use with the MCP Client connectors You can also connect to the Processes MCP Server from within a BPMN process using Camunda's [MCP Client connectors](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client.md). This allows an AI agent running in an agentic orchestration workflow to invoke your deployed processes as MCP tools. The [MCP Remote Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-remote-client-connector.md) connects to remote MCP servers over HTTP. Configure it in the properties panel with the following settings: - **Transport type**: Streamable HTTP. - **URL**: Your MCP endpoint URL (see [above](#mcp-endpoint-url)). - **Authentication**: OAuth 2.0. | Field | Value | | :----------------------- | :----------------------------------------------------------------------------------------------------------------------------------- | | OAuth 2.0 token endpoint | Your OAuth token endpoint (`https://login.cloud.camunda.io/oauth/token` for SaaS). | | Client ID | Your OAuth client ID. | | Client secret | Your OAuth client secret. Use [secrets](/components/saas/clusters/manage-secrets.md) (for example, `{{secrets.MCP_CLIENT_SECRET}}`). | | Audience | The audience for your cluster API (`zeebe.camunda.io` for SaaS). | | Client authentication | Send client credentials in body. | For more details, see [MCP Remote Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-remote-client-connector.md). The [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client-connector.md) manages persistent MCP connections through the connector runtime. Configure the Processes MCP Server as a remote HTTP client in your connector runtime configuration (for example, `application.yml`): ```yaml camunda: connector: agenticai: mcp: client: enabled: true clients: camunda-processes: type: http http: url: https://${REGION_ID}.api.camunda.io/${CLUSTER_ID}/mcp/processes authentication: type: oauth oauth: oauth-token-endpoint: https://login.cloud.camunda.io/oauth/token client-id: client-secret: audience: zeebe.camunda.io client-authentication: credentials-body ``` The example above shows a SaaS configuration using the public endpoint. For clusters with Secure connectivity (AWS PrivateLink), set `url` to the private MCP endpoint URL shown in Camunda Hub instead of the public `zeebe.camunda.io` host (the path still ends with `/mcp/processes`). For local unauthenticated setups, you can omit the `authentication` block and use `http://localhost:8080/mcp/processes` as the URL. Reference the client ID `camunda-processes` in the MCP Client connector element template in your BPMN process. For more details, see [MCP Client connector](/components/connectors/out-of-the-box-connectors/agentic-ai-mcp-client-connector.md). --- ## Static tools The Processes MCP Server exposes the following static tools alongside dynamically registered process tools. These tools let an MCP agent inspect the process instance it just started, including its variables, state, and incidents, without switching to a different MCP server. | Tool | Description | | :------------------- | :---------------------------------------------------------- | | `searchVariables` | Search and inspect variables of a running process instance. | | `getProcessInstance` | Retrieve the state and details of a process instance. | | `searchIncidents` | Inspect incidents raised on a running process instance. | :::note These tools are a subset of the [Orchestration Cluster MCP Server tools](../orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-tools.md). Refer to that page for full parameter and response schema details. ::: --- ## Version binding Understand how the Processes MCP Server handles process version binding, stale tool references after redeployment, and best practices for managing breaking changes. ## Which version is exposed The Processes MCP Server always exposes only the **latest deployed version** of a process. When you deploy a new version of a process, it replaces the previous version's tool registration. There is no mechanism to pin an MCP client to a specific process version. ## Stale tool references MCP clients typically cache the tool list after connecting. If a client cached the tool list before a redeployment and then attempts to call the now-replaced tool, it receives an error instructing it to refresh its tool list by running tool discovery again. MCP clients must therefore: 1. Handle the stale-tool error gracefully. 2. Re-fetch the tool list by running tool discovery again before retrying. ## Implications for process owners Redeploying a process with a changed interface, such as a different tool name, input parameters, or output variables, is a breaking change for any MCP client currently holding a reference to that tool. To reduce disruption: - Communicate planned redeployments to teams operating MCP clients that use your process tool. - When making a significant interface change, consider deploying a new process with a different tool name rather than redeploying over the existing one. This lets existing clients continue using the old version while new clients adopt the updated tool. --- ## CamundaAsyncClient ## CamundaAsyncClient ```python class CamundaAsyncClient(configuration=None, auth_provider=None, logger=None, clock=None, random=None, **kwargs) ``` Bases: `object` **Parameters:** | Parameter | Type | Description | | --------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------- | | `configuration` | [CamundaSdkConfiguration](runtime.md#camunda_orchestration_sdk.runtime.configuration_resolver.CamundaSdkConfiguration) | | | `auth_provider` | [AuthProvider](runtime.md#camunda_orchestration_sdk.runtime.auth.AuthProvider) | | | `logger` | [CamundaLogger](runtime.md#camunda_orchestration_sdk.runtime.logging.CamundaLogger) \| `None` | | | `clock` | `Clock` \| `None` | | | `random` | `RandomSource` \| `None` | | | `kwargs` | `Any` | | ### aclose() ```python async def aclose() ``` Close underlying HTTP clients. This closes both the API client’s async httpx client and, when available, the auth provider’s token client. - **Return type:** None ### activate_ad_hoc_sub_process_activities() ```python async def activate_ad_hoc_sub_process_activities(ad_hoc_sub_process_instance_key, *, data, **kwargs) ``` Activate activities within an ad-hoc sub-process > Activates selected activities within an ad-hoc sub-process identified by element ID. > > The provided element IDs must exist within the ad-hoc sub-process instance identified by the > provided adHocSubProcessInstanceKey. **Parameters:** | Parameter | Type | Description | | --------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------- | | `ad_hoc_sub_process_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `AdHocSubProcessActivateActivitiesInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The ad-hoc sub-process instance is not found or the provided key does not identify an ad-hoc sub-process. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Activate ad-hoc sub-process activities:** ```python def activate_ad_hoc_sub_process_activities_example(element_id: ElementId) -> None: client = CamundaClient() client.activate_ad_hoc_sub_process_activities( ad_hoc_sub_process_instance_key="123456", data=AdHocSubProcessActivateActivitiesInstruction( elements=[ AdHocSubProcessActivateActivityReference(element_id=element_id), AdHocSubProcessActivateActivityReference(element_id=element_id), ], ), ) ``` ### activate_jobs() ```python async def activate_jobs(*, data, **kwargs) ``` Activate jobs > Iterate through all known partitions and activate jobs up to the requested maximum. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `JobActivationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobActivationResult - **Return type:** JobActivationResult #### Examples **Activate and process jobs:** ```python async def activate_jobs_example() -> None: async with CamundaAsyncClient() as client: result = await client.activate_jobs( data=JobActivationRequest( type_="payment-processing", timeout=30000, max_jobs_to_activate=5, ) ) for job in result.jobs: print(f"Job {job.job_key}: {job.type_}") ``` ### assign_client_to_group() ```python async def assign_client_to_group(group_id, client_id, **kwargs) ``` Assign a client to a group > Assigns a client to a group, making it a member of the group. > > Members of the group inherit the group authorizations, roles, and tenant assignments. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The client with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a client to a group:** ```python def assign_client_to_group_example(group_id: GroupId, client_id: ClientId) -> None: client = CamundaClient() client.assign_client_to_group( group_id=group_id, client_id=client_id, ) ``` ### assign_client_to_tenant() ```python async def assign_client_to_tenant(tenant_id, client_id, **kwargs) ``` Assign a client to a tenant > Assign the client to the specified tenant. > > The client can then access tenant data and perform authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a client to a tenant:** ```python def assign_client_to_tenant_example(tenant_id: TenantId, client_id: ClientId) -> None: client = CamundaClient() client.assign_client_to_tenant( tenant_id=tenant_id, client_id=client_id, ) ``` ### assign_group_to_tenant() ```python async def assign_group_to_tenant(tenant_id, group_id, **kwargs) ``` Assign a group to a tenant > Assigns a group to a specified tenant. > > Group members (users, clients) can then access tenant data and perform authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or group was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a group to a tenant:** ```python def assign_group_to_tenant_example(tenant_id: TenantId, group_id: GroupId) -> None: client = CamundaClient() client.assign_group_to_tenant( tenant_id=tenant_id, group_id=group_id, ) ``` ### assign_mapping_rule_to_group() ```python async def assign_mapping_rule_to_group(group_id, mapping_rule_id, **kwargs) ``` Assign a mapping rule to a group > Assigns a mapping rule to a group. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or mapping rule with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The mapping rule with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a mapping rule to a group:** ```python def assign_mapping_rule_to_group_example(group_id: GroupId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_mapping_rule_to_group( group_id=group_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_mapping_rule_to_tenant() ```python async def assign_mapping_rule_to_tenant(tenant_id, mapping_rule_id, **kwargs) ``` Assign a mapping rule to a tenant > Assign a single mapping rule to a specified tenant. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or mapping rule was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a mapping rule to a tenant:** ```python def assign_mapping_rule_to_tenant_example(tenant_id: TenantId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_mapping_rule_to_tenant( tenant_id=tenant_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_process_instance_business_id() ```python async def assign_process_instance_business_id(process_instance_key, *, data, **kwargs) ``` Assign business id to process instance > Assigns a business id to an already-running process instance that currently has none. > > The assignment is single and irreversible: only artifacts created after the assignment > (for example future jobs, user tasks, decision instances, and message subscriptions) carry > the business id, while existing artifacts are not retroactively enriched. Re-sending the > same business id succeeds as a no-op. This endpoint is only useful while business id > uniqueness enforcement is disabled; when it is enabled, the request is rejected with a 409 > response. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceBusinessIdAssignmentInstruction` | The instruction describing the business id to assign to a running process instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The business id assignment failed because the process instance is not eligible, for example it already has a different business id, it is a call-activity child, or business id uniqueness enforcement is enabled. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a business id to a process instance:** ```python def assign_process_instance_business_id_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.assign_process_instance_business_id( process_instance_key=process_instance_key, data=ProcessInstanceBusinessIdAssignmentInstruction( business_id="order-12345", ), ) ``` ### assign_role_to_client() ```python async def assign_role_to_client(role_id, client_id, **kwargs) ``` Assign a role to a client > Assigns the specified role to the client. The client will inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role was already assigned to the client with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a client:** ```python def assign_role_to_client_example(role_id: RoleId, client_id: ClientId) -> None: client = CamundaClient() client.assign_role_to_client( role_id=role_id, client_id=client_id, ) ``` ### assign_role_to_group() ```python async def assign_role_to_group(role_id, group_id, **kwargs) ``` Assign a role to a group > Assigns the specified role to the group. Every member of the group (user or client) will inherit the > authorizations associated with this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or group with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the group with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a group:** ```python def assign_role_to_group_example(role_id: RoleId, group_id: GroupId) -> None: client = CamundaClient() client.assign_role_to_group( role_id=role_id, group_id=group_id, ) ``` ### assign_role_to_mapping_rule() ```python async def assign_role_to_mapping_rule(role_id, mapping_rule_id, **kwargs) ``` Assign a role to a mapping rule > Assigns a role to a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or mapping rule with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the mapping rule with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a mapping rule:** ```python def assign_role_to_mapping_rule_example(role_id: RoleId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_role_to_mapping_rule( role_id=role_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_role_to_tenant() ```python async def assign_role_to_tenant(tenant_id, role_id, **kwargs) ``` Assign a role to a tenant > Assigns a role to a specified tenant. > > Users, Clients or Groups, that have the role assigned, will get access to the tenant’s data and can > perform actions according to their authorizations. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or role was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a tenant:** ```python def assign_role_to_tenant_example(tenant_id: TenantId, role_id: RoleId) -> None: client = CamundaClient() client.assign_role_to_tenant( tenant_id=tenant_id, role_id=role_id, ) ``` ### assign_role_to_user() ```python async def assign_role_to_user(role_id, username, **kwargs) ``` Assign a role to a user > Assigns the specified role to the user. The user will inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or user with the given ID or username was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the user with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a user:** ```python def assign_role_to_user_example(role_id: RoleId, username: Username) -> None: client = CamundaClient() client.assign_role_to_user( role_id=role_id, username=username, ) ``` ### assign_user_task() ```python async def assign_user_task(user_task_key, *, data, **kwargs) ``` Assign user task > Assigns a user task with the given key to the given assignee. Assignment waits for blocking task > listeners on this lifecycle transition. If listener processing is delayed beyond the request > timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with > backoff and inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | --------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskAssignmentRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user task:** ```python def assign_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.assign_user_task( user_task_key=user_task_key, data=UserTaskAssignmentRequest( assignee="user@example.com", ), ) ``` ### assign_user_to_group() ```python async def assign_user_to_group(group_id, username, **kwargs) ``` Assign a user to a group > Assigns a user to a group, making the user a member of the group. > > Group members inherit the group authorizations, roles, and tenant assignments. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or user with the given ID or username was not found. - **errors.ConflictError** – If the response status code is 409. The user with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user to a group:** ```python def assign_user_to_group_example(group_id: GroupId, username: Username) -> None: client = CamundaClient() client.assign_user_to_group( group_id=group_id, username=username, ) ``` ### assign_user_to_tenant() ```python async def assign_user_to_tenant(tenant_id, username, **kwargs) ``` Assign a user to a tenant > Assign a single user to a specified tenant. The user can then access tenant data and perform > authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user to a tenant:** ```python def assign_user_to_tenant_example(tenant_id: TenantId, username: Username) -> None: client = CamundaClient() client.assign_user_to_tenant( tenant_id=tenant_id, username=username, ) ``` ### auth_provider ```python auth_provider: [AuthProvider](runtime.md#camunda_orchestration_sdk.runtime.auth.AuthProvider) ``` ### broadcast_signal() ```python async def broadcast_signal(*, data, **kwargs) ``` Broadcast signal > Broadcasts a signal. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------ | ----------- | | `data` | `SignalBroadcastRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The signal is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SignalBroadcastResult - **Return type:** SignalBroadcastResult #### Examples **Broadcast a signal:** ```python def broadcast_signal_example() -> None: client = CamundaClient() result = client.broadcast_signal( data=SignalBroadcastRequest( signal_name="order-cancelled", ) ) print(f"Signal key: {result.signal_key}") ``` ### cancel_batch_operation() ```python async def cancel_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Cancel Batch operation > Cancels a running batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Cancel a batch operation:** ```python def cancel_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.cancel_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### cancel_cluster_rebalance() ```python async def cancel_cluster_rebalance(**kwargs) ``` Stop the running rebalance > Asks the running rebalance to stop once the transfer in flight has finished. Partitions already > transferred keep their new leaders, and those the rebalance had not yet reached keep their current > ones. > > Cancellation requests are idempotent and always accepted. The wasRunning response field can be > used to distinguish a cancellation that found a running rebalance from one that did not. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RebalanceCancellationResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** RebalanceCancellationResponse #### Examples **Cancel the running cluster rebalance:** ```python def cancel_cluster_rebalance_example() -> None: client = CamundaClient() # Asks the running rebalance to stop after the in-flight transfer finishes. # Partitions already rebalanced keep their new leaders. result = client.cancel_cluster_rebalance() if result.was_running: print("Rebalance was running and has been asked to stop.") else: print("No rebalance was running.") ``` ### cancel_process_instance() ```python async def cancel_process_instance(process_instance_key, *, data=, **kwargs) ``` Cancel process instance > Cancels a running process instance. As a cancellation includes more than just the removal of the > process instance resource, the cancellation resource must be posted. Cancellation can wait on > listener-related processing; when that processing does not complete in time, this endpoint can > return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener > worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `CancelProcessInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance cannot be canceled, for example because it is already being terminated or because it is a child process instance. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Cancel a process instance:** ```python def cancel_process_instance_example(process_definition_id: ProcessDefinitionId) -> None: client = CamundaClient() # Create a process instance and get its key from the response created = client.create_process_instance( data=ProcessCreationById(process_definition_id=process_definition_id) ) # Cancel it using the key from the creation response client.cancel_process_instance( process_instance_key=created.process_instance_key, ) ``` ### cancel_process_instances_batch_operation() ```python async def cancel_process_instances_batch_operation(*, data, **kwargs) ``` Cancel process instances (batch) > Cancels multiple active or suspended process instances. > > Only ACTIVE and SUSPENDED root instances can be cancelled. A state filter narrows the batch > to the given states. Requesting any state other than ACTIVE or SUSPENDED through the $eq or > $in operators is rejected. Other state operators ($neq, $exists, $like) are applied as > given, and the batch remains limited to ACTIVE and SUSPENDED instances. Without a state filter, > both ACTIVE and SUSPENDED instances are selected. Any given filter for parentProcessInstanceKey > is ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------- | ------------------------------------------------------------------------------------ | | `data` | `ProcessInstanceCancellationBatchOperationRequest` | The process instance filter that defines which process instances should be canceled. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Cancel process instances in batch:** ```python def cancel_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.cancel_process_instances_batch_operation( data=ProcessInstanceCancellationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### change_cluster_mode() ```python async def change_cluster_mode(*, mode, dry_run=, **kwargs) ``` Change cluster mode > Transitions the cluster between processing and recovery mode. This is a non-blocking operation: the > request is acknowledged once the change has been accepted, before the transition itself has > completed. Entering recovery mode deactivates all partitions so that only a restricted set of read- > only operations remains available; exiting recovery mode returns the cluster to normal processing. > Returns the planned cluster change so its progress can be monitored via the topology. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | --------------------------------------------- | | `mode` | `Mode` | The operating mode of a cluster’s partitions. | | `dry_run` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterModeChangeResponse - **Return type:** ClusterModeChangeResponse #### Examples **Change cluster mode:** ```python def change_cluster_mode_example() -> None: client = CamundaClient() # Pass dry_run=True to validate the request and inspect the resulting plan # without applying it. Omit it (or set it to False) to trigger the transition. result = client.change_cluster_mode( mode=Mode.RECOVERING, dry_run=True, ) # Operations are grouped by physical tenant; a null tenant means the operation # is not scoped to one, such as a broker lifecycle operation. print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### change_cluster_mode_as_cluster_admin() ```python async def change_cluster_mode_as_cluster_admin(*, mode, physical_tenant_id=, dry_run=, **kwargs) ``` Change the cluster mode of one or every physical tenant > Transitions physical tenants between processing and recovery mode. > > If the physicalTenantId parameter is not provided, all available physical tenants are transitioned > individually. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | --------------------------------------------- | | `mode` | `Mode` | The operating mode of a cluster’s partitions. | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `dry_run` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. The mode change conflicts with the cluster state, for example because another configuration change is in progress. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterModeChangeResponse - **Return type:** ClusterModeChangeResponse #### Examples **Change cluster mode as cluster admin:** ```python def change_cluster_mode_as_cluster_admin_example() -> None: client = CamundaClient() # The cluster-admin variant can target a single physical tenant. Omit # physical_tenant_id to apply the change to every physical tenant. result = client.change_cluster_mode_as_cluster_admin( mode=Mode.RECOVERING, physical_tenant_id="default", dry_run=True, ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### client ```python client: [Client](configuration.md#camunda_orchestration_sdk.Client) | [AuthenticatedClient](configuration.md#camunda_orchestration_sdk.AuthenticatedClient) ``` ### _property_ clock _: Clock_ the injected one when supplied, else the live clock. - **Type:** Clock backing SDK cadence ### complete_job() ```python async def complete_job(job_key, *, data=, **kwargs) ``` Complete job > Complete a job with the given payload, which allows completing the associated service task. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobCompletionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Complete a job:** ```python def complete_job_example(job_key: JobKey) -> None: client = CamundaClient() client.complete_job( job_key=job_key, data=JobCompletionRequest( variables=JobCompletionRequestVariables.from_dict( {"paymentId": "PAY-123", "status": "completed"} ) ), ) ``` ### complete_user_task() ```python async def complete_user_task(user_task_key, *, data=, **kwargs) ``` Complete user task > Completes a user task with the given key. Completion waits for blocking task listeners on this > lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint > can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect > listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | -------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskCompletionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Complete a user task:** ```python def complete_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() variables = UserTaskCompletionRequestVariables() variables["approved"] = True client.complete_user_task( user_task_key=user_task_key, data=UserTaskCompletionRequest( variables=variables, ), ) ``` ### configuration ```python configuration: [CamundaSdkConfiguration](runtime.md#camunda_orchestration_sdk.runtime.configuration_resolver.CamundaSdkConfiguration) ``` ### correlate_message() ```python async def correlate_message(*, data, **kwargs) ``` Correlate message > Publishes a message and correlates it to a subscription. > > If correlation is successful it will return the first process instance key the message correlated > with. > The message is not buffered. > Use the publish message endpoint to send messages that can be buffered. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `data` | `MessageCorrelationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessageCorrelationResult - **Return type:** MessageCorrelationResult #### Examples **Correlate a message:** ```python def correlate_message_example() -> None: client = CamundaClient() result = client.correlate_message( data=MessageCorrelationRequest( name="payment-received", correlation_key="order-12345", ) ) print(f"Message key: {result.message_key}") ``` ### create_admin_user() ```python async def create_admin_user(*, data, **kwargs) ``` Create admin user > Creates a new user and assigns the admin role to it. This endpoint is only usable when users are > managed in the Orchestration Cluster and while no user is assigned to the admin role. **Parameters:** | Parameter | Type | Description | | --------- | ------------- | ----------- | | `data` | `UserRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A user with this username already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserCreateResult - **Return type:** UserCreateResult #### Examples **Create an admin user:** ```python def create_admin_user_example(username: Username) -> None: client = CamundaClient() result = client.create_admin_user( data=UserRequest( username=username, name="Admin User", email="admin@example.com", password="admin-password", ), ) print(f"Admin user: {result.username}") ``` ### create_agent_instance() ```python async def create_agent_instance(*, data, **kwargs) ``` Create agent instance > Creates a new agent instance. The returned key identifies the instance and must > be used in subsequent update and query calls. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | --------------------------------------- | | `data` | `AgentInstanceCreationRequest` | Request to create a new agent instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The elementInstanceKey does not correspond to an active element instance. More details are provided in the response body. - **errors.ConflictError** – If the response status code is 409. An agent instance already exists for the given element instance. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceCreationResult - **Return type:** AgentInstanceCreationResult #### Examples **Create an agent instance:** ```python def create_agent_instance_example( element_instance_key: ElementInstanceKey, job_key: JobKey, # Engine-minted: take the token from the job activation response, never build one. job_lease_token: JobLeaseToken, ) -> None: client = CamundaClient() result = client.create_agent_instance( data=AgentInstanceCreationRequest( element_instance_key=element_instance_key, job_key=job_key, job_lease_token=job_lease_token, history=[ # A CONFIGURATION item is mandatory on creation; it carries the model, # provider and system prompt in role-specific fields, not in content. AgentInstanceHistoryItem( history_item_id=HistoryItemId("configuration-1"), loop_iteration=1, role=AgentInstanceHistoryItemRole.CONFIGURATION, content=[], produced_at=datetime.datetime.now(datetime.timezone.utc), model="gpt-4o", provider="openai", system_prompt=[ TextContent(content_type="TEXT", text="You are a helpful assistant."), ], limits=AgentInstanceHistoryItemLimits( max_model_calls=10, max_tool_calls=20, max_tokens=100_000, ), ), ], ), ) print(f"Created agent instance: {result.agent_instance_key}") ``` ### create_authorization() ```python async def create_authorization(*, data, **kwargs) ``` Create authorization > Create the authorization. **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------------------------- | ----------- | | `data` | `AuthorizationIdBasedRequest` \| `AuthorizationPropertyBasedRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The owner was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationCreateResult - **Return type:** AuthorizationCreateResult #### Examples **Create an authorization:** ```python def create_authorization_example() -> None: client = CamundaClient() result = client.create_authorization( data=AuthorizationIdBasedRequest( resource_type=AuthorizationIdBasedRequestResourceType.PROCESS_DEFINITION, permission_types=[ AuthorizationIdBasedRequestPermissionTypesItem.READ, AuthorizationIdBasedRequestPermissionTypesItem.UPDATE, ], resource_id="my-process", owner_type=OwnerTypeEnum.USER, owner_id="user@example.com", ), ) print(f"Authorization key: {result.authorization_key}") ``` ### create_deployment() ```python async def create_deployment(*, data, **kwargs) ``` Deploy resources > Deploys one or more resources, including BPMN processes, DMN decision models, forms, RPA resources, > and generic files. > A deployment can contain any file type. Files that are not interpreted as BPMN, DMN, form, or RPA > resources are stored as deployable generic resources in the engine. > This is an atomic call, i.e. either all resources are deployed or none of them are. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `CreateDeploymentData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DeploymentResult - **Return type:** DeploymentResult #### Examples **From files:** ```python def deploy_resources_example() -> None: client = CamundaClient() result = client.deploy_resources_from_files( ["order-process.bpmn", "decision.dmn"] ) print(f"Deployment key: {result.deployment_key}") for process in result.processes: print( f" Process: {process.process_definition_id} v{process.process_definition_version}" ) for decision in result.decisions: print(f" Decision: {decision.decision_definition_id}") ``` **With tenant ID:** ```python def deploy_resources_with_tenant_example() -> None: client = CamundaClient() result = client.deploy_resources_from_files( ["order-process.bpmn"], tenant_id="my-tenant", ) print(f"Deployment key: {result.deployment_key}") print(f"Tenant: {result.tenant_id}") ``` ### create_document() ```python async def create_document(*, data, store_id=, document_id=, **kwargs) ``` Upload document > Upload a document to the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ------------- | -------------------- | ------------------------------------------------ | | `store_id` | `str` \| `Unset` | | | `document_id` | `str` \| `Unset` | Document Id that uniquely identifies a document. | | `data` | `CreateDocumentData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnsupportedMediaTypeError** – If the response status code is 415. The server cannot process the request because the media type (Content-Type) of the request payload is not supported by the server for the requested resource and method. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentReference - **Return type:** DocumentReference #### Examples **Create a document:** ```python def create_document_example() -> None: client = CamundaClient() result = client.create_document( data=CreateDocumentData( file=File(payload=io.BytesIO(b"hello world"), file_name="example.txt"), ), ) print(f"Document ID: {result.document_id}") ``` ### create_document_link() ```python async def create_document_link(document_id, *, data, store_id=, content_hash=, **kwargs) ``` Create document link > Create a link to a document in the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP **Parameters:** | Parameter | Type | Description | | -------------- | --------------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `content_hash` | `str` \| `Unset` | | | `data` | `DocumentLinkRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentLink - **Return type:** DocumentLink #### Examples **Create a document link:** ```python def create_document_link_example(document_id: DocumentId) -> None: client = CamundaClient() result = client.create_document_link( document_id=document_id, data=DocumentLinkRequest(), ) print(f"Document link: {result.url}") ``` ### create_documents() ```python async def create_documents(*, data, store_id=, **kwargs) ``` Upload multiple documents > Upload multiple documents to the Camunda 8 cluster. > > The caller must provide a file name for each document, which will be used in case of a multi-status > response > to identify which documents failed to upload. The file name can be provided in the Content- > Disposition header > of the file part or in the fileName field of the metadata. You can add a parallel array of > metadata objects. These > are matched with the files based on index, and must have the same length as the files array. > To pass homogenous metadata for all files, spread the metadata over the metadata array. > A filename value provided explicitly via the metadata array in the request overrides the Content- > Disposition header > of the file part. > > In case of a multi-status response, the response body will contain a list of > DocumentBatchProblemDetail objects, > each of which contains the file name of the document that failed to upload and the reason for the > failure. > The client can choose to retry the whole batch or individual documents based on the response. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ---------- | --------------------- | ----------- | | `store_id` | `str` \| `Unset` | | | `data` | `CreateDocumentsData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnsupportedMediaTypeError** – If the response status code is 415. The server cannot process the request because the media type (Content-Type) of the request payload is not supported by the server for the requested resource and method. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentCreationBatchResponse - **Return type:** DocumentCreationBatchResponse #### Examples **Create documents:** ```python def create_documents_example() -> None: client = CamundaClient() result = client.create_documents( data=CreateDocumentsData( files=[ File(payload=io.BytesIO(b"file one"), file_name="one.txt"), File(payload=io.BytesIO(b"file two"), file_name="two.txt"), ], ), ) if not isinstance(result.created_documents, Unset): for doc in result.created_documents: print(f"Created document: {doc.document_id}") ``` ### create_element_instance_variables() ```python async def create_element_instance_variables(element_instance_key, *, data, **kwargs) ``` Update element instance variables > Updates all the variables of a particular scope (for example, process instance, element instance) > with the given variable data. > Specify the element instance in the elementInstanceKey parameter. > Variable updates can be delayed by listener-related processing; if processing exceeds the > request timeout, this endpoint can return 504. Other gateway timeout causes are also > possible. Retry with backoff and inspect listener worker availability and logs when this > repeats. **Parameters:** | Parameter | Type | Description | | ---------------------- | -------------------- | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `SetVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Create element instance variables:** ```python def create_element_instance_variables_example( element_instance_key: ElementInstanceKey, ) -> None: client = CamundaClient() variables = SetVariableRequestVariables.from_dict({"myVar": "myValue"}) client.create_element_instance_variables( element_instance_key=element_instance_key, data=SetVariableRequest( variables=variables, ), ) ``` ### create_global_cluster_variable() ```python async def create_global_cluster_variable(*, data, **kwargs) ``` Create a global-scoped cluster variable > Create a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `data` | `CreateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A cluster variable with this name already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Create a global cluster variable:** ```python def create_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.create_global_cluster_variable( data=CreateClusterVariableRequest( name=name, value={"key": "my-value"}, ), ) print(f"Created variable: {result.name}") ``` ### create_global_task_listener() ```python async def create_global_task_listener(*, data, **kwargs) ``` Create global user task listener > Create a new global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `data` | `CreateGlobalTaskListenerRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A global listener with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Create a global task listener:** ```python def create_global_task_listener_example() -> None: client = CamundaClient() result = client.create_global_task_listener( data=CreateGlobalTaskListenerRequest( id="audit-log-listener", event_types=[GlobalTaskListenerEventTypeEnum.COMPLETING], type_="my-task-listener", ), ) print(f"Task listener: {result.id}") ``` ### create_group() ```python async def create_group(*, data=, **kwargs) ``` Create group > Create a new group. > > The supplied groupId is validated against \`\` ^[a-zA-Z0-9_~@.+-]+$ \`\` > (max 256 characters) by IdentifierValidator.validateId in the > runtime. This strict validation applies wherever the Groups API > is available: in OIDC deployments that set > camunda.security.authentication.oidc.groupsClaim the Groups > API (including this endpoint) is disabled entirely, so group > CRUD never sees externally-minted IdP IDs. The BYOG relaxation > only loosens validation when a group is referenced _as a member_ > of a role or tenant (assignRoleToGroup, > assignGroupToTenant); group CRUD itself always uses the strict > default-id regex. The constraint is not advertised on the > GroupId schema so that the same schema can be reused at > member-reference sites without falsely rejecting > externally-minted IdP group IDs there. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------- | ----------- | | `data` | `GroupCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. Group with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupCreateResult - **Return type:** GroupCreateResult #### Examples **Create a group:** ```python def create_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.create_group( data=GroupCreateRequest(group_id=group_id, name="Engineering"), ) print(f"Group: {result.group_id}") ``` ### create_job_worker(config: [WorkerConfig](runtime.md#camunda_orchestration_sdk.runtime.job_worker.WorkerConfig), callback: Callable[[[ConnectedJobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.ConnectedJobContext)], Coroutine[Any, Any, dict[str, Any] | JobCompletionRequest | None]] | Callable[[[SyncJobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.SyncJobContext)], dict[str, Any] | JobCompletionRequest | None], auto_start: bool = True, , execution_strategy: Literal['auto', 'async', 'thread'] = 'auto', startup_jitter_max_seconds: float | None = None) → [JobWorker](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobWorker) ### create_job_worker(config: [WorkerConfig](runtime.md#camunda_orchestration_sdk.runtime.job_worker.WorkerConfig), callback: Callable[[[JobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobContext)], Coroutine[Any, Any, dict[str, Any] | JobCompletionRequest | None]] | Callable[[[JobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobContext)], dict[str, Any] | JobCompletionRequest | None], auto_start: bool = True, , execution_strategy: Literal['process'], startup_jitter_max_seconds: float | None = None) → [JobWorker](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobWorker) **Parameters:** | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | `config` | [WorkerConfig](runtime.md#camunda_orchestration_sdk.runtime.job_worker.WorkerConfig) | | | `callback` | Callable [ [[ConnectedJobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.ConnectedJobContext) ] , Coroutine [Any , Any , dict [str , Any ] \| `JobCompletionRequest` \| None ] ] \| Callable [ [[SyncJobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.SyncJobContext) ] , dict [str , Any ] \| `JobCompletionRequest` \| None ] \| Callable [ [[JobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobContext) ] , Coroutine [Any , Any , dict [str , Any ] \| `JobCompletionRequest` \| None ] ] \| Callable [ [[JobContext](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobContext) ] , dict [str , Any ] \| `JobCompletionRequest` \| None ] | | | `auto_start` | `bool` | | | `execution_strategy` | Literal [ 'auto' , 'async' , 'thread' , 'process' ] | | | `startup_jitter_max_seconds` | `float` \| `None` | | - **Return type:** [_JobWorker_](runtime.md#camunda_orchestration_sdk.runtime.job_worker.JobWorker) ### create_mapping_rule() ```python async def create_mapping_rule(*, data=, **kwargs) ``` Create mapping rule > Create a new mapping rule **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------- | ----------- | | `data` | `MappingRuleCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The request to create a mapping rule was denied. More details are provided in the response body. - **errors.NotFoundError** – If the response status code is 404. The request to create a mapping rule was denied. - **errors.ConflictError** – If the response status code is 409. Mapping rule with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleCreateResult - **Return type:** MappingRuleCreateResult #### Examples **Create a mapping rule:** ```python def create_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() result = client.create_mapping_rule( data=MappingRuleCreateRequest( mapping_rule_id=mapping_rule_id, claim_name="groups", claim_value="engineering", name="Engineering Group Mapping", ), ) print(f"Mapping rule: {result.mapping_rule_id}") ``` ### create_process_instance() ```python async def create_process_instance(*, data, **kwargs) ``` Create process instance > Creates and starts an instance of the specified process. > > The process definition to use to create the instance can be specified either using its unique key > (as returned by Deploy resources), or using the BPMN process id and a version. > If only the process definition id is given, the latest ACTIVE version is used. > If no ACTIVE version exists, the request is rejected as not found. > > Waits for the completion of the process instance before returning a result > when awaitCompletion is enabled. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `data` | `ProcessCreationById` \| `ProcessCreationByKey` | Instructions for creating a process instance. The process definition can be specified either by id or by key. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ConflictError** – If the response status code is 409. The process instance creation was rejected due to a business ID uniqueness conflict. This can happen only when Business ID Uniqueness Control is enabled and an active root process instance with the provided business ID already exists for the same process definition and tenant. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The process instance creation request timed out in the gateway. This can happen if the awaitCompletion request parameter is set to true and the created process instance did not complete within the defined request timeout. This often happens when the created instance is not fully automated or contains wait states. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CreateProcessInstanceResult - **Return type:** CreateProcessInstanceResult #### Examples **By key:** ```python def create_process_instance_by_key_example() -> None: client = CamundaClient() # Deploy a process and obtain the typed key from the response deployment = client.deploy_resources_from_files(["order-process.bpmn"]) process_key = deployment.processes[0].process_definition_key # Use the typed key directly — no manual string lifting needed result = client.create_process_instance( data=ProcessCreationByKey( process_definition_key=process_key, ) ) print(f"Process instance key: {result.process_instance_key}") ``` **By stored key:** ```python def create_process_instance_by_key_from_storage_example() -> None: client = CamundaClient() # When restoring a key from a database or message queue, # wrap the raw string with the semantic type constructor: stored_key = "2251799813685249" # e.g. from a DB row result = client.create_process_instance( data=ProcessCreationByKey( process_definition_key=ProcessDefinitionKey(stored_key), ) ) print(f"Process instance key: {result.process_instance_key}") ``` **By ID:** ```python def create_process_instance_by_id_example(process_definition_id: ProcessDefinitionId) -> None: client = CamundaClient() result = client.create_process_instance( data=ProcessCreationById( process_definition_id=process_definition_id, ) ) print(f"Process instance key: {result.process_instance_key}") ``` ### create_role() ```python async def create_role(*, data=, **kwargs) ``` Create role > Create a new role. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `data` | `RoleCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. Role with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleCreateResult - **Return type:** RoleCreateResult #### Examples **Create a role:** ```python def create_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.create_role( data=RoleCreateRequest(role_id=role_id, name="Developer"), ) print(f"Role: {result.role_id}") ``` ### create_tenant() ```python async def create_tenant(*, data, **kwargs) ``` Create tenant > Creates a new tenant. **Parameters:** | Parameter | Type | Description | | --------- | --------------------- | ----------- | | `data` | `TenantCreateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The resource was not found. - **errors.ConflictError** – If the response status code is 409. Tenant with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantCreateResult - **Return type:** TenantCreateResult #### Examples **Create a tenant:** ```python def create_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.create_tenant( data=TenantCreateRequest( tenant_id=tenant_id, name="Acme Corporation", ), ) print(f"Tenant: {result.tenant_id}") ``` ### create_tenant_cluster_variable() ```python async def create_tenant_cluster_variable(tenant_id, *, data, **kwargs) ``` Create a tenant-scoped cluster variable > Create a new cluster variable for the given tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `CreateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. A cluster variable with this name already exists for the given tenant. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Create a tenant cluster variable:** ```python def create_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.create_tenant_cluster_variable( tenant_id=tenant_id, data=CreateClusterVariableRequest( name=name, value={"key": "tenant-value"}, ), ) print(f"Created variable: {result.name}") ``` ### create_user() ```python async def create_user(*, data, **kwargs) ``` Create user > Create a new user. **Parameters:** | Parameter | Type | Description | | --------- | ------------- | ----------- | | `data` | `UserRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A user with this username already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserCreateResult - **Return type:** UserCreateResult #### Examples **Create a user:** ```python def create_user_example(username: Username) -> None: client = CamundaClient() result = client.create_user( data=UserRequest( username=username, name="Jane Doe", email="jdoe@example.com", password="secure-password", ), ) print(f"Created user: {result.username}") ``` ### delete_authorization() ```python async def delete_authorization(authorization_key, **kwargs) ``` Delete authorization > Deletes the authorization with the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | ----- | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The authorization with the authorizationKey was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete an authorization:** ```python def delete_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() client.delete_authorization( authorization_key=authorization_key, ) ``` ### delete_decision_instance() ```python async def delete_decision_instance(decision_evaluation_key, *, data=, **kwargs) ``` Delete decision instance > Delete all associated decision evaluations based on provided key. **Parameters:** | Parameter | Type | Description | | ------------------------- | ---------------------------------------------------- | -------------------------------------------------------------------------- | | `decision_evaluation_key` | `str` | System-generated key for a decision evaluation. Example: 2251792362345323. | | `data` | `DeleteDecisionInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a decision instance:** ```python def delete_decision_instance_example(decision_evaluation_key: DecisionEvaluationKey) -> None: client = CamundaClient() client.delete_decision_instance( decision_evaluation_key=decision_evaluation_key, ) ``` ### delete_decision_instances_batch_operation() ```python async def delete_decision_instances_batch_operation(*, data, **kwargs) ``` Delete decision instances (batch) > Delete multiple decision instances. This will delete the historic data from secondary storage. > > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ------------------------------------------------------------------------------------- | | `data` | `DecisionInstanceDeletionBatchOperationRequest` | The decision instance filter that defines which decision instances should be deleted. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The decision instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Delete decision instances in batch:** ```python def delete_decision_instances_batch_operation_example() -> None: client = CamundaClient() result = client.delete_decision_instances_batch_operation( data=DecisionInstanceDeletionBatchOperationRequest( filter_=DecisionInstanceDeletionBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### delete_document() ```python async def delete_document(document_id, *, store_id=, **kwargs) ``` Delete document > Delete a document from the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ------------- | ---------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.NotFoundError** – If the response status code is 404. The document with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a document:** ```python def delete_document_example(document_id: DocumentId) -> None: client = CamundaClient() client.delete_document(document_id=document_id) ``` ### delete_global_cluster_variable() ```python async def delete_global_cluster_variable(name, **kwargs) ``` Delete a global-scoped cluster variable > Delete a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | --------- | ----- | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a global cluster variable:** ```python def delete_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() client.delete_global_cluster_variable(name=name) ``` ### delete_global_task_listener() ```python async def delete_global_task_listener(id, **kwargs) ``` Delete global user task listener > Deletes a global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | ----- | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a global task listener:** ```python def delete_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() client.delete_global_task_listener(id=listener_id) ``` ### delete_group() ```python async def delete_group(group_id, **kwargs) ``` Delete group > Deletes the group with the given ID. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a group:** ```python def delete_group_example(group_id: GroupId) -> None: client = CamundaClient() client.delete_group(group_id=group_id) ``` ### delete_history_backup() ```python async def delete_history_backup(backup_id, **kwargs) ``` Delete history backup > Deletes the history backup with the given id, by deleting every snapshot that makes it > up. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a history backup:** ```python def delete_history_backup_example(backup_id: int) -> None: client = CamundaClient() client.delete_history_backup(backup_id=backup_id) ``` ### delete_history_backup_as_cluster_admin() ```python async def delete_history_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Delete a history backup across physical tenants > Deletes the history backup with the given id from every physical tenant of the cluster, or from the > one named by physicalTenantId. A tenant that does not hold the backup has already reached the > requested end state, so it counts as deleted rather than as a failure. > > The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole > request, and the deletions that already succeeded on other tenants are not undone. Narrow the > request with physicalTenantId to delete from the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use DELETE /v2/backups/history/{backupId} > to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. Deletion fans out with no preceding check, so an absent repository is found only once that tenant is reached, by which time the backup may already be deleted from the others; those deletions are not undone. Narrow the request with physicalTenantId to work with the tenants whose repository is usable. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was reached and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be deleted from every targeted physical tenant, because one of them hit an internal error, so it may still exist on some of them. The deletions that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a history backup across physical tenants:** ```python def delete_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Deletes the backup from every physical tenant. A tenant that does not hold # it already counts as deleted, so this is idempotent when all tenants are # reachable. Use `physical_tenant_id` to narrow to a single tenant. client.delete_history_backup_as_cluster_admin(backup_id=backup_id) ``` ### delete_mapping_rule() ```python async def delete_mapping_rule(mapping_rule_id, **kwargs) ``` Delete a mapping rule > Deletes the mapping rule with the given ID. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The mapping rule with the mappingRuleId was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a mapping rule:** ```python def delete_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.delete_mapping_rule(mapping_rule_id=mapping_rule_id) ``` ### delete_process_instance() ```python async def delete_process_instance(process_instance_key, *, data=, **kwargs) ``` Delete process instance > Deletes a process instance. Only instances that are completed or terminated can be deleted. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `DeleteProcessInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in a completed or terminated state and cannot be deleted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a process instance:** ```python def delete_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.delete_process_instance( process_instance_key=process_instance_key, ) ``` ### delete_process_instances_batch_operation() ```python async def delete_process_instances_batch_operation(*, data, **kwargs) ``` Delete process instances (batch) > Delete multiple process instances. This will delete the historic data from secondary storage. > > Only process instances in a final state (COMPLETED or TERMINATED) can be deleted. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ---------------------------------------------- | ----------------------------------------------------------------------------------- | | `data` | `ProcessInstanceDeletionBatchOperationRequest` | The process instance filter that defines which process instances should be deleted. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Delete process instances in batch:** ```python def delete_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.delete_process_instances_batch_operation( data=ProcessInstanceDeletionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### delete_resource() ```python async def delete_resource(resource_key, *, data=, **kwargs) ``` Delete resource > Deletes a deployed resource. This can be a process definition, decision requirements > definition, or form definition deployed using the deploy resources endpoint. Specify the > resource you want to delete in the resourceKey parameter. > > Once a resource has been deleted it cannot be recovered. If the resource needs to be > available again, a new deployment of the resource is required. > > By default, only the resource itself is deleted from the runtime state. To also delete the > historic data associated with a resource, set the deleteHistory flag in the request body > to true. History deletion is supported for process definitions and decision requirements > definitions; for other resource types (forms, generic resources) the flag is ignored and no > history is deleted. > > The two supported types differ in how the history is removed. For a decision requirements > definition the history is deleted asynchronously via a batch operation whose details are > returned in the batchOperation field of the response. For a process definition that still > exists in the runtime state, the definition first drains its running instances and its > history is deleted asynchronously once the definition is fully removed cluster-wide; no batch > operation is returned in the response. If the process definition has already been removed > from the runtime state and the deletion is later re-triggered with deleteHistory set to > true, a batch operation is created immediately and returned in the batchOperation field. **Parameters:** | Parameter | Type | Description | | -------------- | -------------------------------------------- | ------------------------------------------ | | `resource_key` | `str` | The system-assigned key for this resource. | | `data` | `DeleteResourceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The resource is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DeleteResourceResponse - **Return type:** DeleteResourceResponse #### Examples **Delete a resource:** ```python def delete_resource_example() -> None: client = CamundaClient() # Use a resource key from a previous deployment response client.delete_resource(resource_key="2251799813685249") ``` ### delete_role() ```python async def delete_role(role_id, **kwargs) ``` Delete role > Deletes the role with the given ID. **Parameters:** | Parameter | Type | Description | | --------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The role with the ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a role:** ```python def delete_role_example(role_id: RoleId) -> None: client = CamundaClient() client.delete_role(role_id=role_id) ``` ### delete_runtime_backup() ```python async def delete_runtime_backup(backup_id, **kwargs) ``` Delete runtime backup > Deletes the runtime backup with the given id. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a runtime backup:** ```python def delete_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() client.delete_runtime_backup(backup_id=backup_id) ``` ### delete_runtime_backup_as_cluster_admin() ```python async def delete_runtime_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Delete a runtime backup across physical tenants > Deletes the runtime backup with the given id from every physical tenant of the cluster, or from the > one named by physicalTenantId. A tenant that does not hold the backup has already reached the > requested end state, so it counts as deleted rather than as a failure — the same as deleting an > unknown backup id through the per-physical-tenant endpoint. > > The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole > request, and the deletions that already succeeded on other tenants are not undone. Narrow the > request with physicalTenantId to delete from the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use DELETE > /v2/backups/runtime/{backupId} to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be deleted from every targeted physical tenant, so it may still exist on some of them. The deletions that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a runtime backup across physical tenants:** ```python def delete_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Deletes the backup from every physical tenant. A tenant that does not hold # it already counts as deleted, so this is idempotent when all tenants are # reachable. Use `physical_tenant_id` to narrow to a single tenant. client.delete_runtime_backup_as_cluster_admin(backup_id=backup_id) ``` ### delete_runtime_backup_state() ```python async def delete_runtime_backup_state(**kwargs) ``` Delete runtime backup state > Resets the runtime backup state of every partition of the physical tenant, clearing > all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when > switching backup stores. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Delete the runtime backup state:** ```python def delete_runtime_backup_state_example() -> None: client = CamundaClient() # Clears all checkpoint info, backup info, checkpoint metadata, and backup # ranges of every partition. Used when switching backup stores. client.delete_runtime_backup_state() ``` ### delete_runtime_backup_state_as_cluster_admin() ```python async def delete_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Delete runtime backup state across physical tenants > Resets the runtime backup state of every partition of every physical tenant of the cluster, or of > the one named by physicalTenantId, clearing all checkpoint info, backup info, checkpoint metadata, > and backup ranges. Used when switching backup stores. > > The request is all-or-nothing: a physical tenant whose state cannot be reset fails the whole > request, and the resets that already succeeded on other tenants are not undone. Narrow the request > with physicalTenantId to reset the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use DELETE > /v2/backups/runtime/state to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. The state could not be reset on every targeted physical tenant, so it may still be set on some of them. The resets that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete runtime backup state across physical tenants:** ```python def delete_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Clears all checkpoint info, backup info, checkpoint metadata, and backup # ranges of every partition of every physical tenant. Used when switching # backup stores. Use `physical_tenant_id` to narrow to a single tenant. client.delete_runtime_backup_state_as_cluster_admin() ``` ### delete_tenant() ```python async def delete_tenant(tenant_id, **kwargs) ``` Delete tenant > Deletes an existing tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a tenant:** ```python def delete_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() client.delete_tenant(tenant_id=tenant_id) ``` ### delete_tenant_cluster_variable() ```python async def delete_tenant_cluster_variable(tenant_id, name, **kwargs) ``` Delete a tenant-scoped cluster variable > Delete a tenant-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a tenant cluster variable:** ```python def delete_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() client.delete_tenant_cluster_variable( tenant_id=tenant_id, name=name, ) ``` ### delete_user() ```python async def delete_user(username, **kwargs) ``` Delete user > Deletes a user. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a user:** ```python def delete_user_example(username: Username) -> None: client = CamundaClient() client.delete_user(username=username) ``` ### deploy_resources_from_files() ```python async def deploy_resources_from_files(files, tenant_id=None) ``` Deploy BPMN/DMN/Form resources from local files. Async variant of [`CamundaClient.deploy_resources_from_files()`](client.md#camunda_orchestration_sdk.CamundaClient.deploy_resources_from_files). This reads each file path in `files` as bytes, wraps them into `camunda_orchestration_sdk.types.File`, calls [`create_deployment()`](#create_deployment), and returns an `ExtendedDeploymentResult`. Note: file reads are currently performed using blocking I/O (`open(...).read()`). If you need fully non-blocking file access, load the bytes yourself and call [`create_deployment()`](#create_deployment). **Parameters:** | Parameter | Type | Description | | ----------- | ------------------- | ------------------------------------------------------------------------ | | `files` | list [str \| Path ] | File paths (`str` or `Path`) to deploy. | | `tenant_id` | `str` \| `None` | Optional tenant identifier. If not provided, the default tenant is used. | - **Returns:** The deployment result with extracted resource lists. - **Return type:** ExtendedDeploymentResult - **Raises:** - **FileNotFoundError** – If any file path does not exist. - **PermissionError** – If any file path cannot be read. - **IsADirectoryError** – If any file path is a directory. - **OSError** – For other I/O failures while reading files. - **Exception** – Propagates any exception raised by [`create_deployment()`](#create_deployment) (including typed API errors in `camunda_orchestration_sdk.errors` and `httpx.TimeoutException`). ### evaluate_conditionals() ```python async def evaluate_conditionals(*, data, **kwargs) ``` Evaluate root level conditional start events > Evaluates root-level conditional start events for process definitions. > > If the evaluation is successful, it will return the keys of all created process instances, along > with their associated process definition key. > Multiple root-level conditional start events of the same process definition can trigger if their > conditions evaluate to true. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------------------- | ----------- | | `data` | `ConditionalEvaluationInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The client is not authorized to start process instances for the specified process definition. If a processDefinitionKey is not provided, this indicates that the client is not authorized to start process instances for at least one of the matched process definitions. - **errors.NotFoundError** – If the response status code is 404. The process definition was not found for the given processDefinitionKey. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** EvaluateConditionalResult - **Return type:** EvaluateConditionalResult #### Examples **Evaluate conditionals:** ```python def evaluate_conditionals_example() -> None: client = CamundaClient() result = client.evaluate_conditionals( data=ConditionalEvaluationInstruction( variables=ConditionalEvaluationInstructionVariables.from_dict({"orderReady": True}), ), ) print(f"Result: {result}") ``` ### evaluate_decision() ```python async def evaluate_decision(*, data, **kwargs) ``` Evaluate decision > Evaluates a decision. > > You specify the decision to evaluate either by using its unique key (as returned by > DeployResource), or using the decision ID. When using the decision ID, the latest deployed > version of the decision is used. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------------- | ----------- | | `data` | `DecisionEvaluationByID` \| `DecisionEvaluationByKey` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The decision is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** EvaluateDecisionResult - **Return type:** EvaluateDecisionResult #### Examples **By key:** ```python def evaluate_decision_by_key_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() result = client.evaluate_decision( data=DecisionEvaluationByKey( decision_definition_key=decision_definition_key, ) ) print(f"Decision key: {result.decision_definition_key}") ``` **By ID:** ```python def evaluate_decision_by_id_example(decision_definition_id: DecisionDefinitionId) -> None: client = CamundaClient() result = client.evaluate_decision( data=DecisionEvaluationByID( decision_definition_id=decision_definition_id, ) ) print(f"Decision key: {result.decision_definition_key}") ``` ### evaluate_expression() ```python async def evaluate_expression(*, data, **kwargs) ``` Evaluate an expression > Evaluates a FEEL expression and returns the result. Supports references to tenant scoped > cluster variables when a tenant ID is provided. Optionally, provide a scopeKey to make the > variables of a specific process instance or element instance visible while evaluating the > expression. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------- | ----------- | | `data` | `ExpressionEvaluationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExpressionEvaluationResult - **Return type:** ExpressionEvaluationResult #### Examples **Evaluate an expression:** ```python def evaluate_expression_example() -> None: client = CamundaClient() result = client.evaluate_expression( data=ExpressionEvaluationRequest( expression="= 1 + 2", ), ) print(f"Result: {result.result}") ``` ### fail_job() ```python async def fail_job(job_key, *, data=, **kwargs) ``` Fail job > Mark the job as failed. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobFailRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given jobKey is not found. It was completed by another worker, or the process instance itself was canceled. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state (i.e: not ACTIVATED or ACTIVATABLE). The job was failed by another worker with retries = 0, and the process is now in an incident state. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Fail a job with retry:** ```python def fail_job_example(job_key: JobKey) -> None: client = CamundaClient() client.fail_job( job_key=job_key, data=JobFailRequest( retries=2, error_message="Payment gateway timeout", retry_back_off=5000, ), ) ``` ### get_agent_definition() ```python async def get_agent_definition(agent_definition_key, *, consistency=None, **kwargs) ``` Get agent definition > Returns an agent definition by key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ------------------------------------------------------------------------ | | `agent_definition_key` | `str` | System-generated key for an agent definition. Example: 2251799813691958. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentDefinitionResult - **Return type:** AgentDefinitionResult #### Examples **Get an agent definition:** ```python def get_agent_definition_example(agent_definition_key: AgentDefinitionKey) -> None: client = CamundaClient() agent_definition = client.get_agent_definition( agent_definition_key=agent_definition_key ) print(f"Agent definition name: {agent_definition.name}") ``` ### get_agent_instance() ```python async def get_agent_instance(agent_instance_key, *, consistency=None, **kwargs) ``` Get agent instance > Returns agent instance as JSON. **Parameters:** | Parameter | Type | Description | | -------------------- | ------------------------------ | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceResult - **Return type:** AgentInstanceResult #### Examples **Get an agent instance:** ```python def get_agent_instance_example(agent_instance_key: AgentInstanceKey) -> None: client = CamundaClient() agent_instance = client.get_agent_instance(agent_instance_key=agent_instance_key) print(f"Agent instance status: {agent_instance.status}") ``` ### get_audit_log() ```python async def get_audit_log(audit_log_key, *, consistency=None, **kwargs) ``` Get audit log > Get an audit log entry by auditLogKey. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------------------------------------------ | | `audit_log_key` | `str` | System-generated key for an audit log entry. Example: 22517998136843567. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The audit log with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogResult - **Return type:** AuditLogResult #### Examples **Get an audit log entry:** ```python def get_audit_log_example(audit_log_key: AuditLogKey) -> None: client = CamundaClient() result = client.get_audit_log(audit_log_key=audit_log_key) print(f"Audit log: {result.audit_log_key}") ``` ### get_authentication() ```python async def get_authentication(**kwargs) ``` Get current user > Retrieves the current authenticated user. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CamundaUserResult - **Parameters:** **kwargs** (_Any_) - **Return type:** CamundaUserResult #### Examples **Get authentication info:** ```python def get_authentication_example() -> None: client = CamundaClient() result = client.get_authentication() print(f"Authenticated user: {result.username}") ``` ### get_authorization() ```python async def get_authorization(authorization_key, *, consistency=None, **kwargs) ``` Get authorization > Get authorization by the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | ------------------------------ | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The authorization with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationResult - **Return type:** AuthorizationResult #### Examples **Get an authorization:** ```python def get_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() result = client.get_authorization( authorization_key=authorization_key, ) print(f"Resource type: {result.resource_type}") ``` ### get_batch_operation() ```python async def get_batch_operation(batch_operation_key, *, consistency=None, **kwargs) ``` Get batch operation > Get batch operation by key. **Parameters:** | Parameter | Type | Description | | --------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The batch operation is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationResponse - **Return type:** BatchOperationResponse #### Examples **Get a batch operation:** ```python def get_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() result = client.get_batch_operation( batch_operation_key=batch_operation_key, ) print(f"Batch operation: {result.batch_operation_key}") ``` ### get_cluster_exporting_status() ```python async def get_cluster_exporting_status(**kwargs) ``` Get exporting status of the whole cluster > Returns the exporting status of the whole cluster, folded over the exporting status of every > physical tenant. Only PAUSED and SOFT_PAUSED confirm that exporting is paused cluster-wide; > every other value means at least one physical tenant is not paused, so callers should keep polling. > A physical tenant that itself reports MIXED makes the whole cluster MIXED. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExportingStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ExportingStatusResponse #### Examples **Get exporting status for the whole cluster:** ```python def get_cluster_exporting_status_example() -> None: client = CamundaClient() # Requires the cluster-admin security chain — not the Orchestration Cluster # user credentials. Only `PAUSED` and `SOFT_PAUSED` confirm a cluster-wide # pause; any other value means at least one physical tenant is still active. result = client.get_cluster_exporting_status() print(f"Cluster exporting status: {result.status}") ``` ### get_cluster_rebalance() ```python async def get_cluster_rebalance(**kwargs) ``` Report the cluster’s current leadership balance > Reports whether the cluster is currently balanced, the current leadership state of every partition, > and what became of the last rebalance to finish. The last completed rebalance is held in memory by > the coordinating broker, so none will be reported if the coordinator has moved or restarted since > the last rebalance. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterBalanceResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterBalanceResponse #### Examples **Get the current cluster rebalance status:** ```python def get_cluster_rebalance_example() -> None: client = CamundaClient() # Poll this endpoint after triggering a rebalance to monitor progress. result: ClusterBalanceResponse = client.get_cluster_rebalance() print(f"Cluster balance state: {result.state}") if result.running_rebalance is not None: print(f"Running rebalance in progress: {result.running_rebalance}") if result.last_completed_rebalance is not None: print(f"Last completed rebalance: {result.last_completed_rebalance}") for partition in result.partitions: print(f" Partition {partition.partition_id}: {partition.state}") ``` ### get_cluster_status() ```python async def get_cluster_status(**kwargs) ``` Get the status of the whole cluster > Checks the health status of the whole cluster, aggregated over all physical tenants. Returns > HEALTHY when every physical tenant is healthy, DOWN when no physical tenant can process work, > and DEGRADED in every other case. No per-tenant detail is reported; use GET /cluster/v2/topology > for that. > > This endpoint is public and requires no authentication, unlike PATCH /cluster/v2/mode below, which > needs cluster-admin credentials. - **Raises:** - **errors.ServiceUnavailableError** – If the response status code is 503. The cluster is DOWN because no physical tenant can process work. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterStatusResponse #### Examples **Get cluster status:** ```python def get_cluster_status_example() -> None: client = CamundaClient() result = client.get_cluster_status() print(f"Cluster status: {result.status}") ``` ### get_cluster_topology() ```python async def get_cluster_topology(**kwargs) ``` Get the topology of the whole cluster > Obtains the topology of the whole cluster, aggregated over all physical tenants. Cluster-level > information is reported once; partition layout, replication and per-partition role, health and state > are reported per physical tenant. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET /v2/topology for > the topology of a single physical tenant. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTopologyResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterTopologyResponse #### Examples **Get cluster topology (cluster admin):** ```python def get_cluster_topology_example() -> None: client = CamundaClient() # Returns cluster-wide topology aggregated over all physical tenants. # Use GET /v2/topology for the topology of a single physical tenant. result = client.get_cluster_topology() print(f"Cluster {result.cluster_id or 'unknown'}: {result.cluster_size} brokers") print(f"Gateway version: {result.gateway_version}") for tenant in result.physical_tenants: print(f" Physical tenant: {tenant.physical_tenant_id}") ``` ### get_cluster_upgrade_status() ```python async def get_cluster_upgrade_status(**kwargs) ``` Get the upgrade-readiness status of the whole cluster > Reports one overall upgrade-readiness status for the whole cluster, folded over every physical > tenant and condition. MIGRATED only once every known condition has migrated for every known > physical tenant; MIGRATION_IN_PROGRESS when at least one is confirmed not yet migrated; UNKNOWN > otherwise (including before anything has been reported yet). No per-tenant or per-condition detail > is reported here; see the upgradeReadiness actuator endpoint for that. - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterUpgradeStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterUpgradeStatusResponse #### Examples **Get cluster upgrade readiness status:** ```python def get_cluster_upgrade_status_example() -> None: client = CamundaClient() result = client.get_cluster_upgrade_status() print(f"Cluster upgrade readiness: {result.status.value}") ``` ### get_decision_definition() ```python async def get_decision_definition(decision_definition_key, *, consistency=None, **kwargs) ``` Get decision definition > Returns a decision definition by key. **Parameters:** | Parameter | Type | Description | | ------------------------- | ------------------------------ | -------------------------------------------------------------------------- | | `decision_definition_key` | `str` | System-generated key for a decision definition. Example: 2251799813326547. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionDefinitionResult - **Return type:** DecisionDefinitionResult #### Examples **Get a decision definition:** ```python def get_decision_definition_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() definition = client.get_decision_definition( decision_definition_key=decision_definition_key, ) print(f"Decision: {definition.decision_definition_id}") ``` ### get_decision_definition_xml() ```python async def get_decision_definition_xml(decision_definition_key, *, consistency=None, **kwargs) ``` Get decision definition XML > Returns decision definition as XML. **Parameters:** | Parameter | Type | Description | | ------------------------- | ------------------------------ | -------------------------------------------------------------------------- | | `decision_definition_key` | `str` | System-generated key for a decision definition. Example: 2251799813326547. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get decision definition XML:** ```python def get_decision_definition_xml_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() xml = client.get_decision_definition_xml( decision_definition_key=decision_definition_key, ) print(f"XML length: {len(xml)}") ``` ### get_decision_instance() ```python async def get_decision_instance(decision_evaluation_instance_key, *, consistency=None, **kwargs) ``` Get decision instance > Returns a decision instance. **Parameters:** | Parameter | Type | Description | | ---------------------------------- | ------ | ----------- | | `decision_evaluation_instance_key` | str) – | | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: -). > Example: 2251799813684367-1. - **consistency** (_ConsistencyOptions_ _|_ _None_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionInstanceGetQueryResult - **Return type:** DecisionInstanceGetQueryResult #### Examples **Get a decision instance:** ```python def get_decision_instance_example(decision_evaluation_instance_key: DecisionEvaluationInstanceKey) -> None: client = CamundaClient() result = client.get_decision_instance( decision_evaluation_instance_key=decision_evaluation_instance_key, ) print(f"Decision instance: {result.decision_definition_id}") ``` ### get_decision_requirements() ```python async def get_decision_requirements(decision_requirements_key, *, consistency=None, **kwargs) ``` Get decision requirements > Returns Decision Requirements as JSON. **Parameters:** | Parameter | Type | Description | | --------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------ | | `decision_requirements_key` | `str` | System-generated key for a deployed decision requirements definition. Example: 2251799813683346. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision requirements with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionRequirementsResult - **Return type:** DecisionRequirementsResult #### Examples **Get decision requirements:** ```python def get_decision_requirements_example(decision_requirements_key: DecisionRequirementsKey) -> None: client = CamundaClient() result = client.get_decision_requirements( decision_requirements_key=decision_requirements_key, ) print(f"DRD: {result.decision_requirements_name}") ``` ### get_decision_requirements_xml() ```python async def get_decision_requirements_xml(decision_requirements_key, *, consistency=None, **kwargs) ``` Get decision requirements XML > Returns decision requirements as XML. **Parameters:** | Parameter | Type | Description | | --------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------ | | `decision_requirements_key` | `str` | System-generated key for a deployed decision requirements definition. Example: 2251799813683346. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision requirements with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get decision requirements XML:** ```python def get_decision_requirements_xml_example(decision_requirements_key: DecisionRequirementsKey) -> None: client = CamundaClient() xml = client.get_decision_requirements_xml( decision_requirements_key=decision_requirements_key, ) print(f"XML length: {len(xml)}") ``` ### get_document() ```python async def get_document(document_id, *, store_id=, content_hash=, **kwargs) ``` Download document > Download a document from the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | -------------- | ---------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `content_hash` | `str` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.NotFoundError** – If the response status code is 404. The document with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** File - **Return type:** File #### Examples **Get a document:** ```python def get_document_example(document_id: DocumentId) -> None: client = CamundaClient() result = client.get_document(document_id=document_id) print(f"File name: {result.file_name}") ``` ### get_element_instance() ```python async def get_element_instance(element_instance_key, *, consistency=None, **kwargs) ``` Get element instance > Returns element instance as JSON. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The element instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceResult - **Return type:** ElementInstanceResult #### Examples **Get an element instance:** ```python def get_element_instance_example(element_instance_key: ElementInstanceKey) -> None: client = CamundaClient() result = client.get_element_instance( element_instance_key=element_instance_key, ) print(f"Element: {result.element_id}") ``` ### get_exporting_status() ```python async def get_exporting_status(**kwargs) ``` Get exporting status > Returns the exporting status of the physical tenant, aggregated over every replica of > every one of its partitions. > > Because pause and resume are applied to all replicas, the status is only a single phase > if every replica reports that phase; otherwise it is MIXED, which means a pause or > resume is still in flight or was only partially applied. Backup tooling should treat > only PAUSED and SOFT_PAUSED as confirmation that exporting is paused. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExportingStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ExportingStatusResponse #### Examples **Get exporting status:** ```python def get_exporting_status_example() -> None: client = CamundaClient() result = client.get_exporting_status() # The status is aggregated over every replica of every partition, so `MIXED` # means a pause or resume is still in flight or was only partially applied. # Only `PAUSED` and `SOFT_PAUSED` confirm that exporting has stopped. print(f"Status: {result.status}") ``` ### get_form_by_key() ```python async def get_form_by_key(form_key, *, consistency=None, **kwargs) ``` Get form by key > Get a form by its unique form key. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------------------------------------------------- | | `form_key` | `str` | System-generated key for a deployed form. Example: 2251799813684365. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The form with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get a form by key:** ```python def get_form_by_key_example(form_key: FormKey) -> None: client = CamundaClient() result = client.get_form_by_key(form_key=form_key) print(f"Form: {result.form_id}") ``` ### get_global_cluster_variable() ```python async def get_global_cluster_variable(name, *, consistency=None, **kwargs) ``` Get a global-scoped cluster variable > Get a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Get a global cluster variable:** ```python def get_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.get_global_cluster_variable(name=name) print(f"Variable: {result.name} = {result.value}") ``` ### get_global_job_statistics() ```python async def get_global_job_statistics(*, from_, to, job_type=, consistency=None, **kwargs) ``` Global job statistics > Returns global aggregated counts for jobs. Filter by the creation time window (required) and > optionally by jobType. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ----------- | | `from` | `datetime.datetime` | | | `to` | `datetime.datetime` | | | `job_type` | `str` \| `Unset` | | | `from_` | `datetime.datetime` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalJobStatisticsQueryResult - **Return type:** GlobalJobStatisticsQueryResult #### Examples **Get global job statistics:** ```python def get_global_job_statistics_example() -> None: client = CamundaClient() result = client.get_global_job_statistics( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), ) print(f"Global job stats: {result}") ``` ### get_global_task_listener() ```python async def get_global_task_listener(id, *, consistency=None, **kwargs) ``` Get global user task listener > Get a global user task listener by its id. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener with the given id was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Get a global task listener:** ```python def get_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() result = client.get_global_task_listener(id=listener_id) print(f"Task listener: {result.event_types}") ``` ### get_group() ```python async def get_group(group_id, *, consistency=None, **kwargs) ``` Get group > Get a group by its ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupResult - **Return type:** GroupResult #### Examples **Get a group:** ```python def get_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.get_group(group_id=group_id) print(f"Group: {result.name}") ``` ### get_history_backup() ```python async def get_history_backup(backup_id, **kwargs) ``` Get history backup > Returns detailed status of the history backup with the given id. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** HistoryBackupInfo - **Return type:** HistoryBackupInfo #### Examples **Get a history backup:** ```python def get_history_backup_example(backup_id: int) -> None: client = CamundaClient() result = client.get_history_backup(backup_id=backup_id) # The aggregated state is derived from the state of every expected snapshot. print(f"History backup {result.backup_id} is {result.state.value}") ``` ### get_history_backup_as_cluster_admin() ```python async def get_history_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Get a history backup across physical tenants > Reports what every physical tenant of the cluster, or the one named by physicalTenantId, holds for > the given backup id. There is no aggregated cluster-level state: a tenant that was reached and does > not hold this backup reports NOT_FOUND, which is a successful observation rather than a failure. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. > Narrow the request with physicalTenantId to read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use GET /v2/backups/history/{backupId} to > act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was read and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterHistoryBackupInfo - **Return type:** ClusterHistoryBackupInfo #### Examples **Get a history backup across physical tenants:** ```python def get_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Returns what each physical tenant reports for the given backup id. # A tenant reporting `NOT_FOUND` is a successful observation, not an error. result = client.get_history_backup_as_cluster_admin(backup_id=backup_id) print(f"Cluster history backup {result.backup_id}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: {tenant.state.value}") ``` ### get_incident() ```python async def get_incident(incident_key, *, consistency=None, **kwargs) ``` Get incident > Returns incident as JSON. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `incident_key` | `str` | System-generated key for a incident. Example: 2251799813689432. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The incident with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentResult - **Return type:** IncidentResult #### Examples **Get an incident:** ```python def get_incident_example(incident_key: IncidentKey) -> None: client = CamundaClient() incident = client.get_incident(incident_key=incident_key) print(f"Incident error type: {incident.error_type}") ``` ### get_job_error_statistics() ```python async def get_job_error_statistics(*, data, consistency=None, **kwargs) ``` Get error metrics for a job type > Returns aggregated metrics per error for the given jobType. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------- | | `data` | `JobErrorStatisticsQuery` | Job error statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobErrorStatisticsQueryResult - **Return type:** JobErrorStatisticsQueryResult #### Examples **Get job error statistics:** ```python def get_job_error_statistics_example() -> None: client = CamundaClient() result = client.get_job_error_statistics( data=JobErrorStatisticsQuery( filter_=JobErrorStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Error: {stat.error_code}") ``` ### get_job_time_series_statistics() ```python async def get_job_time_series_statistics(*, data, consistency=None, **kwargs) ``` Get time-series metrics for a job type > Returns a list of time-bucketed metrics ordered ascending by time. > > The from and to fields select the time window of interest. > Each item in the response corresponds to one time bucket of the requested resolution. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------- | | `data` | `JobTimeSeriesStatisticsQuery` | Job time-series statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobTimeSeriesStatisticsQueryResult - **Return type:** JobTimeSeriesStatisticsQueryResult #### Examples **Get job time series statistics:** ```python def get_job_time_series_statistics_example() -> None: client = CamundaClient() result = client.get_job_time_series_statistics( data=JobTimeSeriesStatisticsQuery( filter_=JobTimeSeriesStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Time series: {stat}") ``` ### get_job_type_statistics() ```python async def get_job_type_statistics(*, data, consistency=None, **kwargs) ``` Get job statistics by type > Get statistics about jobs, grouped by job type. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------- | | `data` | `JobTypeStatisticsQuery` | Job type statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobTypeStatisticsQueryResult - **Return type:** JobTypeStatisticsQueryResult #### Examples **Get job type statistics:** ```python def get_job_type_statistics_example() -> None: client = CamundaClient() result = client.get_job_type_statistics( data=JobTypeStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Job type: {stat.job_type}") ``` ### get_job_worker_statistics() ```python async def get_job_worker_statistics(*, data, consistency=None, **kwargs) ``` Get job statistics by worker > Get statistics about jobs, grouped by worker, for a given job type. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ---------------------------- | | `data` | `JobWorkerStatisticsQuery` | Job worker statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobWorkerStatisticsQueryResult - **Return type:** JobWorkerStatisticsQueryResult #### Examples **Get job worker statistics:** ```python def get_job_worker_statistics_example() -> None: client = CamundaClient() result = client.get_job_worker_statistics( data=JobWorkerStatisticsQuery( filter_=JobWorkerStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Worker: {stat.worker}") ``` ### get_license() ```python async def get_license(**kwargs) ``` Get license status > Obtains the status of the current Camunda license. - **Raises:** - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** LicenseResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** LicenseResponse #### Examples **Get license information:** ```python def get_license_example() -> None: client = CamundaClient() result = client.get_license() print(f"License type: {result.license_type}") ``` ### get_mapping_rule() ```python async def get_mapping_rule(mapping_rule_id, *, consistency=None, **kwargs) ``` Get a mapping rule > Gets the mapping rule with the given ID. **Parameters:** | Parameter | Type | Description | | ----------------- | ------------------------------ | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The mapping rule with the mappingRuleId was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleResult - **Return type:** MappingRuleResult #### Examples **Get a mapping rule:** ```python def get_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() result = client.get_mapping_rule(mapping_rule_id=mapping_rule_id) print(f"Mapping rule: {result.name}") ``` ### get_process_definition() ```python async def get_process_definition(process_definition_key, *, consistency=None, **kwargs) ``` Get process definition > Returns process definition as JSON. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionResult - **Return type:** ProcessDefinitionResult #### Examples **Get a process definition:** ```python def get_process_definition_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_process_definition( process_definition_key=process_definition_key, ) print(f"Process definition: {result.name}") ``` ### get_process_definition_instance_statistics() ```python async def get_process_definition_instance_statistics(*, data=, consistency=None, **kwargs) ``` Get process instance statistics > Get statistics about process instances, grouped by process definition and tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionInstanceStatisticsQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionInstanceStatisticsQueryResult - **Return type:** ProcessDefinitionInstanceStatisticsQueryResult #### Examples **Get process definition instance statistics:** ```python def get_process_definition_instance_statistics_example() -> None: client = CamundaClient() result = client.get_process_definition_instance_statistics( data=ProcessDefinitionInstanceStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Definition: {stat.process_definition_id}") ``` ### get_process_definition_instance_version_statistics() ```python async def get_process_definition_instance_version_statistics(*, data, consistency=None, **kwargs) ``` Get process instance statistics by version > Get statistics about process instances, grouped by version for a given process definition. > > The process definition ID must be provided as a required field in the request body filter. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionInstanceVersionStatisticsQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionInstanceVersionStatisticsQueryResult - **Return type:** ProcessDefinitionInstanceVersionStatisticsQueryResult #### Examples **Get version statistics:** ```python def get_process_definition_instance_version_statistics_example( process_definition_id: ProcessDefinitionId, ) -> None: client = CamundaClient() result = client.get_process_definition_instance_version_statistics( data=ProcessDefinitionInstanceVersionStatisticsQuery( filter_=ProcessDefinitionInstanceVersionStatisticsQueryFilter( process_definition_id=process_definition_id, ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Version: {stat.process_definition_version}") ``` ### get_process_definition_message_subscription_statistics() ```python async def get_process_definition_message_subscription_statistics(*, data=, consistency=None, **kwargs) ``` Get message subscription statistics > Get message subscription statistics, grouped by process definition. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionMessageSubscriptionStatisticsQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionMessageSubscriptionStatisticsQueryResult - **Return type:** ProcessDefinitionMessageSubscriptionStatisticsQueryResult #### Examples **Get message subscription statistics:** ```python def get_process_definition_message_subscription_statistics_example() -> None: client = CamundaClient() result = client.get_process_definition_message_subscription_statistics( data=ProcessDefinitionMessageSubscriptionStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print( f"Definition: {stat.process_definition_id}, subscriptions: {stat.active_subscriptions}" ) ``` ### get_process_definition_statistics() ```python async def get_process_definition_statistics(process_definition_key, *, data=, consistency=None, **kwargs) ``` Get process definition statistics > Get statistics about elements in currently running process instances by process definition key and > search filter. **Parameters:** | Parameter | Type | Description | | ------------------------ | ---------------------------------------------------- | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `data` | `ProcessDefinitionElementStatisticsQuery` \| `Unset` | Process definition element statistics request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionElementStatisticsQueryResult - **Return type:** ProcessDefinitionElementStatisticsQueryResult #### Examples **Get process definition element statistics:** ```python def get_process_definition_statistics_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_process_definition_statistics( process_definition_key=process_definition_key, ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Element: {stat.element_id}") ``` ### get_process_definition_xml() ```python async def get_process_definition_xml(process_definition_key, *, consistency=None, **kwargs) ``` Get process definition XML > Returns process definition as XML. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get process definition XML:** ```python def get_process_definition_xml_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() xml = client.get_process_definition_xml( process_definition_key=process_definition_key, ) print(f"XML length: {len(xml)}") ``` ### get_process_instance() ```python async def get_process_instance(process_instance_key, *, consistency=None, **kwargs) ``` Get process instance > Get the process instance by the process instance key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceResult - **Return type:** ProcessInstanceResult #### Examples **Get a process instance:** ```python def get_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() result = client.get_process_instance( process_instance_key=process_instance_key, ) print(f"Process instance: {result.process_definition_id}") ``` ### get_process_instance_call_hierarchy() ```python async def get_process_instance_call_hierarchy(process_instance_key, *, consistency=None, **kwargs) ``` Get call hierarchy > Returns the call hierarchy for a given process instance, showing its ancestry up to the root > instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[Any] #### Examples **Get process instance call hierarchy:** ```python def get_process_instance_call_hierarchy_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_call_hierarchy( process_instance_key=process_instance_key, ) for entry in result: print(f"Call hierarchy entry: {entry}") ``` ### get_process_instance_sequence_flows() ```python async def get_process_instance_sequence_flows(process_instance_key, *, consistency=None, **kwargs) ``` Get sequence flows > Get sequence flows taken by the process instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceSequenceFlowsQueryResult - **Return type:** ProcessInstanceSequenceFlowsQueryResult #### Examples **Get process instance sequence flows:** ```python def get_process_instance_sequence_flows_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_sequence_flows( process_instance_key=process_instance_key, ) if not isinstance(result.items, Unset): for flow in result.items: print(f"Sequence flow: {flow}") ``` ### get_process_instance_statistics() ```python async def get_process_instance_statistics(process_instance_key, *, consistency=None, **kwargs) ``` Get element instance statistics > Get statistics about elements by the process instance key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceElementStatisticsQueryResult - **Return type:** ProcessInstanceElementStatisticsQueryResult #### Examples **Get process instance statistics:** ```python def get_process_instance_statistics_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_statistics( process_instance_key=process_instance_key, ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Element: {stat.element_id}, Active: {stat.active}") ``` ### get_process_instance_statistics_by_definition() ```python async def get_process_instance_statistics_by_definition(*, data, consistency=None, **kwargs) ``` Get process instance statistics by definition > Returns statistics for active process instances with incidents, grouped by process > definition. The result set is scoped to a specific incident error hash code, which must be > provided as a filter in the request body. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------- | ----------- | | `data` | `IncidentProcessInstanceStatisticsByDefinitionQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentProcessInstanceStatisticsByDefinitionQueryResult - **Return type:** IncidentProcessInstanceStatisticsByDefinitionQueryResult #### Examples **Get instance statistics by definition:** ```python def get_process_instance_statistics_by_definition_example() -> None: client = CamundaClient() result = client.get_process_instance_statistics_by_definition( data=IncidentProcessInstanceStatisticsByDefinitionQuery( filter_=IncidentProcessInstanceStatisticsByDefinitionQueryFilter( error_hash_code=12345, ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Definition: {stat.process_definition_key}") ``` ### get_process_instance_statistics_by_error() ```python async def get_process_instance_statistics_by_error(*, data=, consistency=None, **kwargs) ``` Get process instance statistics by error > Returns statistics for active process instances that currently have active incidents, > grouped by incident error hash code. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------------- | ----------- | | `data` | `IncidentProcessInstanceStatisticsByErrorQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentProcessInstanceStatisticsByErrorQueryResult - **Return type:** IncidentProcessInstanceStatisticsByErrorQueryResult #### Examples **Get instance statistics by error:** ```python def get_process_instance_statistics_by_error_example() -> None: client = CamundaClient() result = client.get_process_instance_statistics_by_error( data=IncidentProcessInstanceStatisticsByErrorQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Error: {stat.error_message}") ``` ### get_process_instance_wait_state_statistics() ```python async def get_process_instance_wait_state_statistics(process_instance_key, *, consistency=None, **kwargs) ``` Get wait state statistics > Get statistics about waiting element instances by the process instance key, grouped by element id. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceWaitStateStatisticsQueryResult - **Return type:** ProcessInstanceWaitStateStatisticsQueryResult #### Examples **Get process instance wait state statistics:** ```python def get_process_instance_wait_state_statistics_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_wait_state_statistics( process_instance_key=process_instance_key, ) for stat in result.items: print(f"Element: {stat.element_id}, Waiting: {stat.waiting_count}") ``` ### get_resource() ```python async def get_resource(resource_key, *, consistency=None, **kwargs) ``` Get resource > Returns a deployed resource. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** ResourceResult **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** ResourceResult #### Examples **Get a resource:** ```python def get_resource_example() -> None: client = CamundaClient() result = client.get_resource(resource_key="123456") print(f"Resource: {result.resource_name}") ```` ### get_resource_content() ```python async def get_resource_content(resource_key, *, consistency=None, **kwargs) ``` Get RPA resource content (deprecated) > **Deprecated** — use /resources/{resourceKey}/content/binary instead, which supports all > resource types and returns content as binary (octet-stream). > > Returns the content of a deployed RPA resource as JSON. :::info This endpoint only supports RPA resources. For generic resource content in binary format, use the /resources/{resourceKey}/content/binary endpoint. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.NotAcceptableError** – If the response status code is 406. The resource exists but is not an RPA resource. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** GetResourceContentResponse200 **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** GetResourceContentResponse200 #### Examples **Get resource content:** ```python def get_resource_content_example() -> None: client = CamundaClient() content = client.get_resource_content(resource_key="123456") print(f"Content: {content}") ```` ### get_resource_content_binary() ```python async def get_resource_content_binary(resource_key, *, consistency=None, **kwargs) ``` Get resource content as binary > Returns the content of a deployed resource in binary format (octet-stream). :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** File **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** File #### Examples **Get resource content as binary:** ```python def get_resource_content_binary_example() -> None: client = CamundaClient() content = client.get_resource_content_binary(resource_key="123456") print(f"Binary content size: {len(content.payload.read())}") ```` ### get_restore_status() ```python async def get_restore_status(**kwargs) ``` Get the status of the restore that is currently in progress > Returns the status of the restore that is currently in progress, reported per broker and per > partition. There is at most one restore in flight at any time. Once the restore has finished this > endpoint returns 404; the per-partition detail is not retained after completion. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. No restore is currently in progress. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RestoreStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** RestoreStatusResponse #### Examples **Get restore status:** ```python def get_restore_status_example() -> None: client = CamundaClient() result = client.get_restore_status() print(f"Restore status: {result.status}") ``` ### get_role() ```python async def get_role(role_id, *, consistency=None, **kwargs) ``` Get role > Get a role by its ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleResult - **Return type:** RoleResult #### Examples **Get a role:** ```python def get_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.get_role(role_id=role_id) print(f"Role: {result.name}") ``` ### get_runtime_backup() ```python async def get_runtime_backup(backup_id, **kwargs) ``` Get runtime backup > Returns detailed status of the runtime backup with the given id. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BackupInfo - **Return type:** BackupInfo #### Examples **Get a runtime backup:** ```python def get_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() result = client.get_runtime_backup(backup_id=backup_id) print(f"Backup {result.backup_id} is {result.state.value}") for partition in result.details: print(f" partition {partition.partition_id}: {partition.state.value}") ``` ### get_runtime_backup_as_cluster_admin() ```python async def get_runtime_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Get a runtime backup across physical tenants > Reports what every physical tenant of the cluster, or the one named by physicalTenantId, holds for > the given backup id, plus the state aggregated over all of them. A tenant that was reached and does > not hold this backup reports DOES_NOT_EXIST, which is a successful observation rather than a > failure — so a backup only some tenants hold aggregates to INCOMPLETE, the same way a backup only > some partitions hold does within one tenant. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. > Narrow the request with physicalTenantId to read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime/{backupId} to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was read and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupInfo - **Return type:** ClusterRuntimeBackupInfo #### Examples **Get a runtime backup across physical tenants:** ```python def get_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Returns what each physical tenant reports for the given backup id. # A tenant reporting `DOES_NOT_EXIST` is a successful observation, not an error. result = client.get_runtime_backup_as_cluster_admin(backup_id=backup_id) print(f"Cluster runtime backup {result.backup_id} is {result.state.value}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: {tenant.state.value}") ``` ### get_runtime_backup_state() ```python async def get_runtime_backup_state(**kwargs) ``` Get runtime backup state > Returns the current checkpoint and backup state of every partition of the physical > tenant. Unlike the backupRuntime actuator, this fails the whole request if the > checkpoint state or the backup ranges cannot be retrieved from any partition, instead > of silently returning an empty section. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RuntimeBackupState - **Parameters:** **kwargs** (_Any_) - **Return type:** RuntimeBackupState #### Examples **Get the runtime backup state:** ```python def get_runtime_backup_state_example() -> None: client = CamundaClient() result = client.get_runtime_backup_state() for checkpoint in result.checkpoint_states: print( f"Partition {checkpoint.partition_id} checkpoint {checkpoint.checkpoint_id}" f" at position {checkpoint.checkpoint_position}" ) for backup_range in result.ranges: print( f"Partition {backup_range.partition_id} range:" f" {backup_range.start} - {backup_range.end}" ) ``` ### get_runtime_backup_state_as_cluster_admin() ```python async def get_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Get runtime backup state across physical tenants > Reports the checkpoint and backup state of every partition of every physical tenant of the cluster, > or of the one named by physicalTenantId, grouped by physical tenant. Checkpoint ids and log > positions only mean anything within one physical tenant’s partitions, so nothing is aggregated > across tenants. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request > rather than contributing an empty section, which an operator making a delete or restore decision > could not tell apart from “nothing to report yet”. Narrow the request with physicalTenantId to > read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime/state to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupState - **Return type:** ClusterRuntimeBackupState #### Examples **Get runtime backup state across physical tenants:** ```python def get_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Reports the checkpoint and backup state of every partition of every # physical tenant. Use `physical_tenant_id` to narrow to a single tenant. result = client.get_runtime_backup_state_as_cluster_admin() for tenant in result.physical_tenants: print(f"Physical tenant {tenant.physical_tenant_id}:") for checkpoint in tenant.state.checkpoint_states: print( f" partition {checkpoint.partition_id} checkpoint" f" {checkpoint.checkpoint_id}" ) ``` ### get_start_process_form() ```python async def get_start_process_form(process_definition_key, *, consistency=None, **kwargs) ``` Get process start form > Get the start form of a process. > > Note that this endpoint will only return linked forms. This endpoint does not support embedded > forms. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get start process form:** ```python def get_start_process_form_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_start_process_form( process_definition_key=process_definition_key, ) print(f"Form: {result.form_key}") ``` ### get_status() ```python async def get_status(**kwargs) ``` Get physical tenant status - **Raises:** - **errors.ServiceUnavailableError** – If the response status code is 503. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Check cluster status:** ```python def get_status_example() -> None: client = CamundaClient() client.get_status() print("Cluster is healthy") ``` ### get_system_configuration() ```python async def get_system_configuration(**kwargs) ``` System configuration (alpha) > Returns the current system configuration. The response is an envelope > that groups settings by feature area. > > This endpoint is an alpha feature and may be subject to change > in future releases. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SystemConfigurationResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** SystemConfigurationResponse #### Examples **Get system configuration:** ```python def get_system_configuration_example() -> None: client = CamundaClient() result = client.get_system_configuration() print(f"System config: {result}") ``` ### get_tenant() ```python async def get_tenant(tenant_id, *, consistency=None, **kwargs) ``` Get tenant > Retrieves a single tenant by tenant ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Tenant not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantResult - **Return type:** TenantResult #### Examples **Get a tenant:** ```python def get_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.get_tenant(tenant_id=tenant_id) print(f"Tenant: {result.name}") ``` ### get_tenant_cluster_variable() ```python async def get_tenant_cluster_variable(tenant_id, name, *, consistency=None, **kwargs) ``` Get a tenant-scoped cluster variable > Get a tenant-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Get a tenant cluster variable:** ```python def get_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.get_tenant_cluster_variable( tenant_id=tenant_id, name=name, ) print(f"Variable: {result.name} = {result.value}") ``` ### get_topology() ```python async def get_topology(**kwargs) ``` Get cluster topology > Obtains the current topology of the cluster the gateway is part of. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TopologyResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** TopologyResponse #### Examples **Get cluster topology:** ```python def get_topology_example() -> None: client = CamundaClient() result = client.get_topology() print(f"Topology: {result}") ``` ### get_usage_metrics() ```python async def get_usage_metrics(*, start_time, end_time, tenant_id=, with_tenants=, consistency=None, **kwargs) ``` Get usage metrics > Retrieve the usage metrics based on given criteria. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `start_time` | `datetime.datetime` | Example: 2025-06-07T13:14:15Z. | | `end_time` | `datetime.datetime` | Example: 2025-06-07T13:14:15Z. | | `tenant_id` | `str` \| `Unset` | The unique identifier of the tenant. Example: customer-service. | | `with_tenants` | `bool` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UsageMetricsResponse - **Return type:** UsageMetricsResponse #### Examples **Get usage metrics:** ```python def get_usage_metrics_example() -> None: client = CamundaClient() result = client.get_usage_metrics( start_time=datetime.datetime(2024, 1, 1), end_time=datetime.datetime(2024, 12, 31), ) print(f"Metrics: {result}") ``` ### get_user() ```python async def get_user(username, *, consistency=None, **kwargs) ``` Get user > Get a user by its username. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user with the given username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserResult - **Return type:** UserResult #### Examples **Get a user:** ```python def get_user_example(username: Username) -> None: client = CamundaClient() result = client.get_user(username=username) print(f"User: {result.username}") ``` ### get_user_task() ```python async def get_user_task(user_task_key, *, consistency=None, **kwargs) ``` Get user task > Get the user task by the user task key. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserTaskResult - **Return type:** UserTaskResult #### Examples **Get a user task:** ```python def get_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() task = client.get_user_task(user_task_key=user_task_key) print(f"Task: {task.user_task_key}") ``` ### get_user_task_form() ```python async def get_user_task_form(user_task_key, *, consistency=None, **kwargs) ``` Get user task form > Get the form of a user task. > > Note that this endpoint will only return linked forms. This endpoint does not support embedded > forms. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get a user task form:** ```python def get_user_task_form_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.get_user_task_form( user_task_key=user_task_key, ) print(f"Form: {result.form_key}") ``` ### get_variable() ```python async def get_variable(variable_key, *, consistency=None, **kwargs) ``` Get variable > Get a variable by its key. > > This endpoint returns both process-level and local (element-scoped) variables. > The variable’s scopeKey indicates whether it’s a process-level variable or scoped to a > specific element instance. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `variable_key` | `str` | System-generated key for a variable. Example: 2251799813683287. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableResult - **Return type:** VariableResult #### Examples **Get a variable:** ```python def get_variable_example(variable_key: VariableKey) -> None: client = CamundaClient() result = client.get_variable( variable_key=variable_key, ) print(f"Variable: {result.name} = {result.value}") ``` ### list_history_backups() ```python async def list_history_backups(*, prefix=, verbose=, **kwargs) ``` List history backups > Returns a list of all available history backups of the physical tenant, with their state > and additional info, most recent first by snapshot start time. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **verbose** (_bool_ _|_ _Unset_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List history backups:** ```python def list_history_backups_example() -> None: client = CamundaClient() # `prefix` is a backup id prefix followed by a single `*` wildcard. result = client.list_history_backups(prefix="17567*") for backup in result: print(f"History backup: {backup}") ``` ### list_history_backups_as_cluster_admin() ```python async def list_history_backups_as_cluster_admin(*, physical_tenant_id=, prefix=, verbose=, **kwargs) ``` List history backups across physical tenants > Lists the history backups of every physical tenant of the cluster, or of the one named by > physicalTenantId, grouped by backup id. A backup id that only some physical tenants hold is a > supported outcome rather than a degraded one, so only the tenants that hold it are listed under it. > > The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole > request rather than silently dropping out of the listing. Narrow the request with physicalTenantId > to list the backups of the tenants that can still be read. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use GET /v2/backups/history to act as a > single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **verbose** (_bool_ _|_ _Unset_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List history backups across physical tenants:** ```python def list_history_backups_as_cluster_admin_example() -> None: client = CamundaClient() # Lists backups across every physical tenant. Pass `physical_tenant_id` to # restrict to one tenant. `prefix` filters to backup ids starting with the # given value (end with a `*` wildcard, e.g. "17567*"). backups = client.list_history_backups_as_cluster_admin(prefix="17567*") for backup in backups: print(f"History backup: {backup}") ``` ### list_runtime_backups() ```python async def list_runtime_backups(*, prefix=, **kwargs) ``` List runtime backups > Returns a list of all available runtime backups of the physical tenant, with their > state and additional info, sorted in descending order of backupId. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List runtime backups:** ```python def list_runtime_backups_example() -> None: client = CamundaClient() # `prefix` is a backup id prefix followed by a single `*` wildcard. result = client.list_runtime_backups(prefix="17567*") for backup in result: print(f"Runtime backup: {backup}") ``` ### list_runtime_backups_as_cluster_admin() ```python async def list_runtime_backups_as_cluster_admin(*, physical_tenant_id=, prefix=, **kwargs) ``` List runtime backups across physical tenants > Lists the runtime backups of every physical tenant of the cluster, or of the one named by > physicalTenantId, grouped by backup id. Every group reports every targeted tenant, including the > ones holding nothing for that id, so a backup only some tenants hold aggregates to INCOMPLETE here > exactly as it does when looked up directly — the state of a listed group can be trusted to say > whether the cluster can be restored from it. A backup id that only some physical tenants hold is a > supported outcome rather than a degraded one; tenants that generate their own backup ids never share > one, so in that mode each backup forms its own group and the other tenants report DOES_NOT_EXIST > under it. > > The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole > request rather than silently dropping out of the listing. Narrow the request with physicalTenantId > to list the backups of the tenants that can still be read. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List runtime backups across physical tenants:** ```python def list_runtime_backups_as_cluster_admin_example() -> None: client = CamundaClient() # Lists backups across every physical tenant. Pass `physical_tenant_id` to # restrict to one tenant. `prefix` filters to backup ids starting with the # given value (end with a `*` wildcard, e.g. "17567*"). backups = client.list_runtime_backups_as_cluster_admin(prefix="17567*") for backup in backups: print(f"Runtime backup: {backup}") ``` ### list_secrets() ```python async def list_secrets(*, data=, **kwargs) ``` List secrets > List the camunda.secrets.\* references known for the caller’s physical tenant. > > Only references the caller holds SECRET:READ on are returned. This endpoint never > returns secret values, only the reference names. > > The references are read from the secret stores configured for the caller’s physical tenant. > A store may hold names outside the reference name charset (for example one containing a > dot); those are omitted, since /secrets/resolve would reject them and no permission can > be granted on them. > > A returned reference is usable verbatim with /secrets/resolve. In a FEEL expression, > however, a name that is not a bare identifier has to be backtick-escaped, since FEEL reads > a bare dash as the minus operator: a listed camunda.secrets.db-password is written > \`\` =camunda.secrets.\`db-password\` \`\` in a BPMN input mapping. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `data` | `SecretListRequest` \| `Unset` | Reserved for future filtering options. Currently takes no properties. The request body is optional: omitting it (or sending an empty object) applies no filters. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SecretListResult - **Return type:** SecretListResult #### Examples **List secrets:** ```python def list_secrets_example() -> None: client = CamundaClient() # Lists the `camunda.secrets.*` references visible to the caller's physical # tenant. Only references the caller holds `SECRET:READ` on are returned, and # the response carries reference names only -- never the secret values. # The request body is optional; an empty one applies no filters. result = client.list_secrets(data=SecretListRequest()) for reference in result.references: print(f"Known secret reference: {reference}") ``` ### migrate_process_instance() ```python async def migrate_process_instance(process_instance_key, *, data, **kwargs) ``` Migrate process instance > Migrates a process instance to a new process definition. > > This request can contain multiple mapping instructions to define mapping between the active > process instance’s elements and target process definition elements. > > Use this to upgrade a process instance to a new version of a process or to > a different process definition, e.g. to keep your running instances up-to-date with the > latest process improvements. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceMigrationInstruction` | The migration instructions describe how to migrate a process instance from one process definition to another. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance migration failed. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Migrate a process instance:** ```python def migrate_process_instance_example( process_instance_key: ProcessInstanceKey, target_process_definition_key: ProcessDefinitionKey, source_element_id: ElementId, target_element_id: ElementId, ) -> None: client = CamundaClient() client.migrate_process_instance( process_instance_key=process_instance_key, data=ProcessInstanceMigrationInstruction( target_process_definition_key=target_process_definition_key, mapping_instructions=[ MigrateProcessInstanceMappingInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ) ``` ### migrate_process_instances_batch_operation() ```python async def migrate_process_instances_batch_operation(*, data, **kwargs) ``` Migrate process instances (batch) > Migrate multiple process instances. > > Since only process instances with ACTIVE state can be migrated, any given > filters for state are ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ----------- | | `data` | `ProcessInstanceMigrationBatchOperationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Migrate process instances in batch:** ```python def migrate_process_instances_batch_operation_example(target_process_definition_key: ProcessDefinitionKey, source_element_id: ElementId, target_element_id: ElementId) -> None: client = CamundaClient() result = client.migrate_process_instances_batch_operation( data=ProcessInstanceMigrationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), migration_plan=ProcessInstanceMigrationBatchOperationRequestMigrationPlan( target_process_definition_key=target_process_definition_key, mapping_instructions=[ MigrateProcessInstanceMappingInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### modify_process_instance() ```python async def modify_process_instance(process_instance_key, *, data, **kwargs) ``` Modify process instance > Modifies a running process instance. > > This request can contain multiple instructions to activate an element of the process or > to terminate an active instance of an element. > > Use this to repair a process instance that is stuck on an element or took an unintended path. > For example, because an external system is not available or doesn’t respond as expected. **Parameters:** | Parameter | Type | Description | | ---------------------- | ---------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceModificationInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Modify a process instance:** ```python def modify_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.modify_process_instance( process_instance_key=process_instance_key, data=ProcessInstanceModificationInstruction(), ) ``` ### modify_process_instances_batch_operation() ```python async def modify_process_instances_batch_operation(*, data, **kwargs) ``` Modify process instances (batch) > Modify multiple process instances. > > Since only process instances with ACTIVE state can be modified, any given > filters for state are ignored and overridden during this batch operation. > In contrast to single modification operation, it is not possible to add variable instructions or > modify by element key. > It is only possible to use the element id of the source and target. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `data` | `ProcessInstanceModificationBatchOperationRequest` | The process instance filter to define on which process instances tokens should be moved, and new element instances should be activated or terminated. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Modify process instances in batch:** ```python def modify_process_instances_batch_operation_example(source_element_id: ElementId, target_element_id: ElementId) -> None: client = CamundaClient() result = client.modify_process_instances_batch_operation( data=ProcessInstanceModificationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), move_instructions=[ ProcessInstanceModificationMoveBatchOperationInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### pause_cluster_exporting() ```python async def pause_cluster_exporting(*, soft=, **kwargs) ``` Pause exporting across the whole cluster > Pauses exporting on every physical tenant of the cluster in one call. With soft=true, every > physical tenant is soft-paused instead. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `soft` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pause exporting across the whole cluster:** ```python def pause_cluster_exporting_example() -> None: client = CamundaClient() # Pauses exporting on every physical tenant in one call. # With `soft=True` the position is not committed, so the log is not compacted, # which is the right mode for taking a consistent backup without stopping # real processing work. client.pause_cluster_exporting(soft=True) ``` ### pause_exporting() ```python async def pause_exporting(*, soft=, **kwargs) ``` Pause exporting > Pauses exporting on all partitions of the physical tenant. While paused, exported records > are not committed, so the log is not compacted for the affected partitions. > > With soft=true, exporting continues to run but its position is not committed, so the > state after resuming is identical to a hard pause; use this variant when exporting must > keep progressing (e.g. to avoid falling behind) while still preventing log compaction, > such as during a backup. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `soft` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pause exporting:** ```python def pause_exporting_example() -> None: client = CamundaClient() # With `soft=True` exporting keeps running but its position is not committed, # so the log is still not compacted. Use it when exporting must keep # progressing -- for example while a backup is taken. client.pause_exporting(soft=True) ``` ### pin_clock() ```python async def pin_clock(*, data, **kwargs) ``` Pin internal clock (alpha) > Set a precise, static time for the Zeebe engine’s internal clock. > > When the clock is pinned, it remains at the specified time and does not advance. > To change the time, the clock must be pinned again with a new timestamp. > > This endpoint is an alpha feature and may be subject to change > in future releases. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `data` | `ClockPinRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pin the cluster clock:** ```python def pin_clock_example() -> None: client = CamundaClient() client.pin_clock( data=ClockPinRequest( timestamp=1700000000000, ), ) ``` ### publish_message() ```python async def publish_message(*, data, **kwargs) ``` Publish message > Publishes a single message. > > Messages are published to specific partitions computed from their correlation keys. > Messages can be buffered. > The endpoint does not wait for a correlation result. > Use the message correlation endpoint for such use cases. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `data` | `MessagePublicationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessagePublicationResult - **Return type:** MessagePublicationResult #### Examples **Publish a message:** ```python def publish_message_example() -> None: client = CamundaClient() result = client.publish_message( data=MessagePublicationRequest( name="order-created", correlation_key="order-12345", time_to_live=60000, ) ) print(f"Message key: {result.message_key}") ``` ### _property_ random _: RandomSource_ the injected source when supplied, else the live one. - **Type:** Randomness behind SDK jitter ### reset_clock() ```python async def reset_clock(**kwargs) ``` Reset internal clock (alpha) > Resets the Zeebe engine’s internal clock to the current system time, enabling it to tick in real- > time. > This operation is useful for returning the clock to > normal behavior after it has been pinned to a specific time. > > This endpoint is an alpha feature and may be subject to change > in future releases. - **Raises:** - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Reset the cluster clock:** ```python def reset_clock_example() -> None: client = CamundaClient() client.reset_clock() ``` ### resolve_incident() ```python async def resolve_incident(incident_key, *, data=, **kwargs) ``` Resolve incident > Marks the incident as resolved; most likely a call to Update job will be necessary > to reset the job’s retries, followed by this call. **Parameters:** | Parameter | Type | Description | | -------------- | -------------------------------------- | --------------------------------------------------------------- | | `incident_key` | `str` | System-generated key for a incident. Example: 2251799813689432. | | `data` | `IncidentResolutionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The incident with the incidentKey is not found. - **errors.ConflictError** – If the response status code is 409. The incident cannot be resolved due to an invalid state. For example, the associated job may have no retries left. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resolve an incident:** ```python def resolve_incident_example(incident_key: IncidentKey) -> None: client = CamundaClient() client.resolve_incident(incident_key=incident_key) ``` ### resolve_incidents_batch_operation() ```python async def resolve_incidents_batch_operation(*, data, **kwargs) ``` Resolve related incidents (batch) > Resolves multiple instances of process instances. > > Since only process instances with ACTIVE state can have unresolved incidents, any given > filters for state are ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | | `data` | `ProcessInstanceIncidentResolutionBatchOperationRequest` | The process instance filter that defines which process instances should have their incidents resolved. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resolve incidents in batch:** ```python def resolve_incidents_batch_operation_example() -> None: client = CamundaClient() result = client.resolve_incidents_batch_operation( data=ProcessInstanceIncidentResolutionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### resolve_process_instance_incidents() ```python async def resolve_process_instance_incidents(process_instance_key, **kwargs) ``` Resolve related incidents > Creates a batch operation to resolve multiple incidents of a process instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ----- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resolve process instance incidents:** ```python def resolve_process_instance_incidents_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.resolve_process_instance_incidents( process_instance_key=process_instance_key, ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### resolve_secrets() ```python async def resolve_secrets(*, data, **kwargs) ``` Resolve secrets > Resolve a deduplicated batch of camunda.secrets.\* references for the caller’s > physical tenant in a single round-trip. > > Each reference is authorized and resolved independently. For valid requests, the endpoint > always responds with HTTP 200: successfully resolved references are returned in resolved, > while references that could not be resolved (for example not found, malformed or over-long, > or the caller lacks SECRET:REVEAL on that reference) are returned in errors. A failure of > one reference never fails the others. Only structurally invalid requests are rejected with > HTTP 400: a missing or non-array references field, more than 20 references, or a null entry. > > References are resolved against the secret stores configured for the caller’s physical > tenant, served from the gateway’s secret cache when the value is already cached and read > from the store otherwise. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `SecretResolveRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SecretResolveResult - **Return type:** SecretResolveResult #### Examples **Resolve secrets:** ```python def resolve_secrets_example() -> None: client = CamundaClient() # Hands the resolved secret to whatever needs it (an HTTP client, a DB # driver, ...) without logging it. def use_secret(value: str) -> None: ... result = client.resolve_secrets( data=SecretResolveRequest( references=[ "camunda.secrets.my_api_token", "camunda.secrets.db_password", ], ) ) # Successfully resolved references are returned in `resolved`; references that # could not be resolved are returned in `errors`, each with a typed error code. # Never log a resolved value -- it holds secret material. Pass it straight to # the consumer that needs it instead. for resolved in result.resolved: print(f"Resolved {resolved.reference} (value redacted)") use_secret(resolved.value) for error in result.errors: print(f"Failed to resolve {error.reference}: {error.code.value} - {error.message}") ``` ### restore() ```python async def restore(*, data, dry_run=, **kwargs) ``` Restore from a backup > Restores the cluster from a backup. The restore is described either by a single backup ID or by a > time range (from/to) that selects the backups to restore. This endpoint is only accessible while > the cluster is in recovery mode; requests are rejected otherwise. The request is validated and > acknowledged, but the restore itself is performed asynchronously. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dry_run` | `bool` \| `Unset` | | | `data` | `RestoreRequest` | Describes a restore request. Provide either a list of backup IDs or a time range (from/to) that selects the backups to restore; the two are mutually exclusive. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. The cluster is not in recovery mode, so the restore cannot be accepted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRestoreResponse - **Return type:** ClusterRestoreResponse #### Examples **Restore from a backup:** ```python def restore_example() -> None: client = CamundaClient() # The cluster must be in recovery mode before a restore is accepted. Provide # either a list of backup IDs (one per partition) or a time range (from/to) # that selects the backups to restore, but not both. result = client.restore( data=RestoreRequest(backup_ids=[100, 101]), ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### restore_as_cluster_admin() ```python async def restore_as_cluster_admin(*, data, physical_tenant_id=, dry_run=, **kwargs) ``` Restore one or every physical tenant from a backup > Restores physical tenants from backups. The restore is described either by a list of backup IDs or > by a time range (from/to) that selects the backups to restore. Restores are only accepted while > the targeted physical tenants are in recovery mode; requests are rejected otherwise. The request is > validated and acknowledged, but the restore itself is performed asynchronously. > > If the physicalTenantId parameter is provided, only that physical tenant is restored and > overrides must be omitted. > > If it is not provided, every physical tenant of the cluster is restored: those named in overrides > with their own backup selection, all others with the selection at the top level of the request body. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `dry_run` | `bool` \| `Unset` | | | `data` | `ClusterRestoreRequest` | Describes a restore request issued by a cluster admin. The backup selection at the top level applies to every targeted physical tenant, except for the ones listed in overrides. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId, or a physical tenant named in overrides, does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. A targeted physical tenant is not in recovery mode, so the restore cannot be accepted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRestoreResponse - **Return type:** ClusterRestoreResponse #### Examples **Restore physical tenants from backup as cluster admin:** ```python def restore_as_cluster_admin_example() -> None: client = CamundaClient() # The targeted physical tenants must be in recovery mode before a restore is # accepted. Provide either backup_ids (one per partition) or a time range # (from_/to), but not both. # # Omit physical_tenant_id to restore every physical tenant. Supply it to # scope the restore to a single tenant (overrides must then be omitted). result = client.restore_as_cluster_admin( data=ClusterRestoreRequest( backup_ids=[100, 101], ), dry_run=True, ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### resume_batch_operation() ```python async def resume_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Resume Batch operation > Resumes a suspended batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resume a batch operation:** ```python def resume_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.resume_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### resume_cluster_exporting() ```python async def resume_cluster_exporting(**kwargs) ``` Resume exporting across the whole cluster > Resumes exporting on every physical tenant of the cluster in one call, after a pause or soft pause. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Resume exporting across the whole cluster:** ```python def resume_cluster_exporting_example() -> None: client = CamundaClient() # Resumes exporting on every physical tenant after a pause or soft pause. client.resume_cluster_exporting() ``` ### resume_exporting() ```python async def resume_exporting(**kwargs) ``` Resume exporting > Resumes exporting on all partitions of the physical tenant after a pause or soft pause. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Resume exporting:** ```python def resume_exporting_example() -> None: client = CamundaClient() client.resume_exporting() ``` ### resume_process_instance() ```python async def resume_process_instance(process_instance_key, *, data=, **kwargs) ``` Resume process instance > Resumes a suspended process instance, returning it to the ACTIVE state and continuing processing. > > Only process instances in the SUSPENDED state can be resumed. > A child process instance can be resumed independently of its parent or root process > instance; resumption does not cascade to or from related instances. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `None` \| `ResumeProcessInstanceRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in the SUSPENDED state and cannot be resumed. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resume a process instance:** ```python def resume_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.resume_process_instance( process_instance_key=process_instance_key, ) ``` ### resume_process_instances_batch_operation() ```python async def resume_process_instances_batch_operation(*, data, **kwargs) ``` Resume process instances (batch) > Resumes multiple suspended process instances. > > Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only > SUSPENDED process instances can be resumed and resumption does not cascade between parent > and child instances, so child instances are resumed independently of their parent or root > instance. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------------------ | ----------------------------------------------------------------------------------- | | `data` | `ProcessInstanceResumptionBatchOperationRequest` | The process instance filter that defines which process instances should be resumed. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resume process instances in batch:** ```python def resume_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.resume_process_instances_batch_operation( data=ProcessInstanceResumptionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### run_workers() ```python async def run_workers() ``` ### search_agent_definitions() ```python async def search_agent_definitions(*, data=, consistency=None, **kwargs) ``` Search agent definitions > Search for agent definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `AgentDefinitionSearchQuery` \| `Unset` | Agent definition search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentDefinitionSearchQueryResult - **Return type:** AgentDefinitionSearchQueryResult #### Examples **Search agent definitions:** ```python def search_agent_definitions_example() -> None: client = CamundaClient() result = client.search_agent_definitions(data=AgentDefinitionSearchQuery()) for agent_definition in result.items: print(f"Agent definition key: {agent_definition.agent_definition_key}") ``` ### search_agent_instance_history() ```python async def search_agent_instance_history(agent_instance_key, *, data=, consistency=None, **kwargs) ``` Search agent instance history > Searches the conversation history of an agent instance. Committed items > are returned by default. **Parameters:** | Parameter | Type | Description | | -------------------- | -------------------------------------------- | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `data` | `AgentInstanceHistorySearchQuery` \| `Unset` | Agent instance history search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceHistorySearchQueryResult - **Return type:** AgentInstanceHistorySearchQueryResult #### Examples **Search agent instance history:** ```python def search_agent_instance_history_example(agent_instance_key: AgentInstanceKey) -> None: client = CamundaClient() result = client.search_agent_instance_history( agent_instance_key=agent_instance_key, data=AgentInstanceHistorySearchQuery(), ) print(f"Found {len(result.items)} history items") ``` ### search_agent_instances() ```python async def search_agent_instances(*, data=, consistency=None, **kwargs) ``` Search agent instances > Search for agent instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ------------------------------ | | `data` | `AgentInstanceSearchQuery` \| `Unset` | Agent instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceSearchQueryResult - **Return type:** AgentInstanceSearchQueryResult #### Examples **Search agent instances:** ```python def search_agent_instances_example() -> None: client = CamundaClient() result = client.search_agent_instances(data=AgentInstanceSearchQuery()) if not isinstance(result.items, Unset): for agent_instance in result.items: print(f"Agent instance key: {agent_instance.agent_instance_key}") ``` ### search_audit_logs() ```python async def search_audit_logs(*, data=, consistency=None, **kwargs) ``` Search audit logs > Search for audit logs based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | ------------------------- | | `data` | `AuditLogSearchQueryRequest` \| `Unset` | Audit log search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogSearchQueryResult - **Return type:** AuditLogSearchQueryResult #### Examples **Search audit logs:** ```python def search_audit_logs_example() -> None: client = CamundaClient() result = client.search_audit_logs( data=AuditLogSearchQueryRequest(), ) if not isinstance(result.items, Unset): for log in result.items: print(f"Audit log: {log.audit_log_key}") ``` ### search_authorizations() ```python async def search_authorizations(*, data=, consistency=None, **kwargs) ``` Search authorizations > Search for authorizations based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ----------- | | `data` | `AuthorizationSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationSearchResult - **Return type:** AuthorizationSearchResult #### Examples **Search authorizations:** ```python def search_authorizations_example() -> None: client = CamundaClient() result = client.search_authorizations( data=AuthorizationSearchQuery(), ) if not isinstance(result.items, Unset): for auth in result.items: print(f"Authorization: {auth.authorization_key}") ``` ### search_batch_operation_items() ```python async def search_batch_operation_items(*, data=, consistency=None, **kwargs) ``` Search batch operation items > Search for batch operation items based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------ | | `data` | `BatchOperationItemSearchQuery` \| `Unset` | Batch operation item search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationItemSearchQueryResult - **Return type:** BatchOperationItemSearchQueryResult #### Examples **Search batch operation items:** ```python def search_batch_operation_items_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() result = client.search_batch_operation_items( batch_operation_key=batch_operation_key, data=BatchOperationItemSearchQuery(), ) if not isinstance(result.items, Unset): for item in result.items: print(f"Item: {item.item_key}") ``` ### search_batch_operations() ```python async def search_batch_operations(*, data=, consistency=None, **kwargs) ``` Search batch operations > Search for batch operations based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------------- | ------------------------------- | | `data` | `BatchOperationSearchQuery` \| `Unset` | Batch operation search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationSearchQueryResult - **Return type:** BatchOperationSearchQueryResult #### Examples **Search batch operations:** ```python def search_batch_operations_example() -> None: client = CamundaClient() result = client.search_batch_operations( data=BatchOperationSearchQuery(), ) if not isinstance(result.items, Unset): for op in result.items: print(f"Batch operation: {op.batch_operation_key}") ``` ### search_clients_for_group() ```python async def search_clients_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group clients > Search clients assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupClientSearchResult - **Return type:** GroupClientSearchResult #### Examples **Search clients in a group:** ```python def search_clients_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_clients_for_group( group_id=group_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_clients_for_role() ```python async def search_clients_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role clients > Search clients with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleClientSearchResult - **Return type:** RoleClientSearchResult #### Examples **Search clients for a role:** ```python def search_clients_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_clients_for_role( role_id=role_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_clients_for_tenant() ```python async def search_clients_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search clients for tenant > Retrieves a filtered and sorted list of clients for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantClientSearchResult - **Return type:** TenantClientSearchResult #### Examples **Search clients for a tenant:** ```python def search_clients_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_clients_for_tenant( tenant_id=tenant_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_cluster_variables() ```python async def search_cluster_variables(*, data=, truncate_values=, consistency=None, **kwargs) ``` Search for cluster variables based on given criteria. By default, long variable values in the response are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | ---------------------------------------------- | -------------------------------------- | | `truncate_values` | `bool` \| `Unset` | | | `data` | `ClusterVariableSearchQueryRequest` \| `Unset` | Cluster variable search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableSearchQueryResult - **Return type:** ClusterVariableSearchQueryResult #### Examples **Search cluster variables:** ```python def search_cluster_variables_example() -> None: client = CamundaClient() result = client.search_cluster_variables( data=ClusterVariableSearchQueryRequest(), ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_correlated_message_subscriptions() ```python async def search_correlated_message_subscriptions(*, data=, consistency=None, **kwargs) ``` Search correlated message subscriptions > Search correlated message subscriptions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------------------- | ----------- | | `data` | `CorrelatedMessageSubscriptionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CorrelatedMessageSubscriptionSearchQueryResult - **Return type:** CorrelatedMessageSubscriptionSearchQueryResult #### Examples **Search correlated message subscriptions:** ```python def search_correlated_message_subscriptions_example() -> None: client = CamundaClient() result = client.search_correlated_message_subscriptions( data=CorrelatedMessageSubscriptionSearchQuery(), ) if not isinstance(result.items, Unset): for sub in result.items: print(f"Correlated subscription: {sub.message_name}") ``` ### search_decision_definitions() ```python async def search_decision_definitions(*, data=, consistency=None, **kwargs) ``` Search decision definitions > Search for decision definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `data` | `DecisionDefinitionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionDefinitionSearchQueryResult - **Return type:** DecisionDefinitionSearchQueryResult #### Examples **Search decision definitions:** ```python def search_decision_definitions_example() -> None: client = CamundaClient() result = client.search_decision_definitions( data=DecisionDefinitionSearchQuery() ) if not isinstance(result.items, Unset): for definition in result.items: print(f"Decision: {definition.decision_definition_id}") ``` ### search_decision_instances() ```python async def search_decision_instances(*, data=, consistency=None, **kwargs) ``` Search decision instances > Search for decision instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ----------- | | `data` | `DecisionInstanceSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionInstanceSearchQueryResult - **Return type:** DecisionInstanceSearchQueryResult #### Examples **Search decision instances:** ```python def search_decision_instances_example() -> None: client = CamundaClient() result = client.search_decision_instances( data=DecisionInstanceSearchQuery(), ) if not isinstance(result.items, Unset): for di in result.items: print(f"Decision instance: {di.decision_definition_id}") ``` ### search_decision_requirements() ```python async def search_decision_requirements(*, data=, consistency=None, **kwargs) ``` Search decision requirements > Search for decision requirements based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `data` | `DecisionRequirementsSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionRequirementsSearchQueryResult - **Return type:** DecisionRequirementsSearchQueryResult #### Examples **Search decision requirements:** ```python def search_decision_requirements_example() -> None: client = CamundaClient() result = client.search_decision_requirements( data=DecisionRequirementsSearchQuery(), ) if not isinstance(result.items, Unset): for drd in result.items: print(f"DRD: {drd.decision_requirements_name}") ``` ### search_element_instance_incidents() ```python async def search_element_instance_incidents(element_instance_key, *, data, consistency=None, **kwargs) ``` Search for incidents of a specific element instance > Search for incidents caused by the specified element instance, including incidents of any child > instances created from this element instance. > > Although the elementInstanceKey is provided as a path parameter to indicate the root element > instance, > you may also include an elementInstanceKey within the filter object to narrow results to specific > child element instances. This is useful, for example, if you want to isolate incidents associated > with > nested or subordinate elements within the given element instance while excluding incidents directly > tied > to the root element itself. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `IncidentSearchQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The element instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search element instance incidents:** ```python def search_element_instance_incidents_example( element_instance_key: ElementInstanceKey, ) -> None: client = CamundaClient() result = client.search_element_instance_incidents( element_instance_key=element_instance_key, data=IncidentSearchQuery(), ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident: {incident.incident_key}") ``` ### search_element_instance_wait_states() ```python async def search_element_instance_wait_states(*, data=, consistency=None, **kwargs) ``` Search element instance wait states > Returns the wait states for element instances matching the given filter. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------ | | `data` | `ElementInstanceWaitStateQuery` \| `Unset` | Element instance inspection request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceWaitStateQueryResult - **Return type:** ElementInstanceWaitStateQueryResult #### Examples **Search element instance wait states:** ```python def search_element_instance_wait_states_example() -> None: client = CamundaClient() result = client.search_element_instance_wait_states( data=ElementInstanceWaitStateQuery(), ) for wait_state in result.items: details = wait_state.details if isinstance(details, JobWaitStateDetails): info = f"waiting on job '{details.job_type}'" elif isinstance(details, MessageWaitStateDetails): info = f"waiting for message '{details.message_name}'" else: info = f"waiting ({details.wait_state_type})" print( f"Element {wait_state.element_id} " f"(instance {wait_state.element_instance_key}) {info}" ) ``` ### search_element_instances() ```python async def search_element_instances(*, data=, consistency=None, **kwargs) ``` Search element instances > Search for element instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `ElementInstanceSearchQuery` \| `Unset` | Element instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceSearchQueryResult - **Return type:** ElementInstanceSearchQueryResult #### Examples **Search element instances:** ```python def search_element_instances_example() -> None: client = CamundaClient() result = client.search_element_instances( data=ElementInstanceSearchQuery(), ) if not isinstance(result.items, Unset): for ei in result.items: print(f"Element instance: {ei.element_instance_key}") ``` ### search_global_task_listeners() ```python async def search_global_task_listeners(*, data=, consistency=None, **kwargs) ``` Search global user task listeners > Search for global user task listeners based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------------- | ------------------------------------- | | `data` | `GlobalTaskListenerSearchQueryRequest` \| `Unset` | Global listener search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerSearchQueryResult - **Return type:** GlobalTaskListenerSearchQueryResult #### Examples **Search global task listeners:** ```python def search_global_task_listeners_example() -> None: client = CamundaClient() result = client.search_global_task_listeners( data=GlobalTaskListenerSearchQueryRequest(), ) if not isinstance(result.items, Unset): for listener in result.items: print(f"Listener: {listener.id}") ``` ### search_group_ids_for_tenant() ```python async def search_group_ids_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search groups for tenant > Retrieves a filtered and sorted list of groups for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantGroupSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantGroupSearchResult - **Return type:** TenantGroupSearchResult #### Examples **Search groups for a tenant:** ```python def search_group_ids_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_group_ids_for_tenant( tenant_id=tenant_id, data=TenantGroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.group_id}") ``` ### search_groups() ```python async def search_groups(*, data=, consistency=None, **kwargs) ``` Search groups > Search for groups based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------ | --------------------- | | `data` | `GroupSearchQueryRequest` \| `Unset` | Group search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupSearchQueryResult - **Return type:** GroupSearchQueryResult #### Examples **Search groups:** ```python def search_groups_example() -> None: client = CamundaClient() result = client.search_groups( data=GroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.name}") ``` ### search_groups_for_role() ```python async def search_groups_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role groups > Search groups with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleGroupSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleGroupSearchResult - **Return type:** RoleGroupSearchResult #### Examples **Search groups for a role:** ```python def search_groups_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_groups_for_role( role_id=role_id, data=RoleGroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.group_id}") ``` ### search_incidents() ```python async def search_incidents(*, data=, consistency=None, **kwargs) ``` Search incidents > Search for incidents based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `data` | `IncidentSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search incidents:** ```python def search_incidents_example() -> None: client = CamundaClient() result = client.search_incidents( data=IncidentSearchQuery() ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident key: {incident.incident_key}") ``` ### search_jobs() ```python async def search_jobs(*, data=, consistency=None, **kwargs) ``` Search jobs > Search for jobs based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------- | | `data` | `JobSearchQuery` \| `Unset` | Job search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobSearchQueryResult - **Return type:** JobSearchQueryResult #### Examples **Search jobs:** ```python def search_jobs_example() -> None: client = CamundaClient() result = client.search_jobs( data=JobSearchQuery(), ) if not isinstance(result.items, Unset): for job in result.items: print(f"Job: {job.job_key}") ``` ### search_mapping_rule() ```python async def search_mapping_rule(*, data=, consistency=None, **kwargs) ``` Search mapping rules > Search for mapping rules based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleSearchQueryResult - **Return type:** MappingRuleSearchQueryResult #### Examples **Search mapping rules:** ```python def search_mapping_rule_example() -> None: client = CamundaClient() result = client.search_mapping_rule( data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.name}") ``` ### search_mapping_rules_for_group() ```python async def search_mapping_rules_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group mapping rules > Search mapping rules assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupMappingRuleSearchResult - **Return type:** GroupMappingRuleSearchResult #### Examples **Search mapping rules for a group:** ```python def search_mapping_rules_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_group( group_id=group_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_mapping_rules_for_role() ```python async def search_mapping_rules_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role mapping rules > Search mapping rules with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleMappingRuleSearchResult - **Return type:** RoleMappingRuleSearchResult #### Examples **Search mapping rules for a role:** ```python def search_mapping_rules_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_role( role_id=role_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_mapping_rules_for_tenant() ```python async def search_mapping_rules_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search mapping rules for tenant > Retrieves a filtered and sorted list of MappingRules for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantMappingRuleSearchResult - **Return type:** TenantMappingRuleSearchResult #### Examples **Search mapping rules for a tenant:** ```python def search_mapping_rules_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_tenant( tenant_id=tenant_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_message_subscriptions() ```python async def search_message_subscriptions(*, data=, consistency=None, **kwargs) ``` Search message subscriptions > Search for message subscriptions based on given criteria. > > By default, both start and intermediate event subscriptions are returned. Use the > messageSubscriptionType filter to restrict results to a single type. > > **Version notes:** - Start event subscriptions are only captured for deployments made with 8.10 or later. - The messageSubscriptionType field is only populated for data created > with Camunda 8.10 or later. For pre-8.10 data, intermediate event entries have no > messageSubscriptionType value stored. For convenience, the API returns PROCESS_EVENT > as a default for such search results, though. - Searching for intermediate event subscriptions **including legacy data** can be achieved by filtering for messageSubscriptionType not matching START_EVENT. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `data` | `MessageSubscriptionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessageSubscriptionSearchQueryResult - **Return type:** MessageSubscriptionSearchQueryResult #### Examples **Search message subscriptions:** ```python def search_message_subscriptions_example() -> None: client = CamundaClient() result = client.search_message_subscriptions( data=MessageSubscriptionSearchQuery(), ) if not isinstance(result.items, Unset): for sub in result.items: print(f"Subscription: {sub.message_name}") ``` ### search_own_authorizations() ```python async def search_own_authorizations(*, data=, consistency=None, **kwargs) ``` Search own authorizations > Search for the current authenticated principal’s own authorization records — including > authorizations granted directly to the user or client, as well as those granted via a group, role, > or mapping rule the principal belongs to. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ----------- | | `data` | `AuthorizationSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** OwnAuthorizationSearchResult - **Return type:** OwnAuthorizationSearchResult #### Examples **Search own authorizations:** ```python def search_own_authorizations_example() -> None: client = CamundaClient() result = client.search_own_authorizations( data=AuthorizationSearchQuery( filter_=AuthorizationSearchQueryFilter( resource_type=AuthorizationSearchQueryFilterResourceType.PROCESS_DEFINITION, ), page=LimitBasedPagination(limit=20), ) ) if not isinstance(result.items, Unset): for auth in result.items: print(f"Resource: {auth.resource_id}, permissions: {auth.permission_types}") ``` ### search_process_definition_variable_names() ```python async def search_process_definition_variable_names(process_definition_key, *, data=, consistency=None, **kwargs) ``` Search process definition variable names > Search for distinct variable names defined on a process definition, optionally narrowed by the name > filter. **Parameters:** | Parameter | Type | Description | | ------------------------ | ----------------------------------------------------- | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `data` | `ProcessDefinitionVariableNameSearchQuery` \| `Unset` | Process definition variable name search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionVariableNameSearchQueryResult - **Return type:** ProcessDefinitionVariableNameSearchQueryResult #### Examples **Search process definition variable names:** ```python def search_process_definition_variable_names_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.search_process_definition_variable_names( process_definition_key=process_definition_key, data=ProcessDefinitionVariableNameSearchQuery(), ) if not isinstance(result.items, Unset): for variable in result.items: print(f"Variable name: {variable.name}") ``` ### search_process_definitions() ```python async def search_process_definitions(*, data=, consistency=None, **kwargs) ``` Search process definitions > Search for process definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | ----------- | | `data` | `ProcessDefinitionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionSearchQueryResult - **Return type:** ProcessDefinitionSearchQueryResult #### Examples **Search process definitions:** ```python def search_process_definitions_example() -> None: client = CamundaClient() result = client.search_process_definitions( data=ProcessDefinitionSearchQuery(), ) if not isinstance(result.items, Unset): for pd in result.items: print(f"Process definition: {pd.name}") ``` ### search_process_instance_incidents() ```python async def search_process_instance_incidents(process_instance_key, *, data=, consistency=None, **kwargs) ``` Search related incidents > Search for incidents caused by the process instance or any of its called process or decision > instances. > > Although the processInstanceKey is provided as a path parameter to indicate the root process > instance, > you may also include a processInstanceKey within the filter object to narrow results to specific > child process instances. This is useful, for example, if you want to isolate incidents associated > with > subprocesses or called processes under the root instance while excluding incidents directly tied to > the root. **Parameters:** | Parameter | Type | Description | | ---------------------- | -------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `IncidentSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search process instance incidents:** ```python def search_process_instance_incidents_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.search_process_instance_incidents( process_instance_key=process_instance_key, data=IncidentSearchQuery(), ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident: {incident.incident_key}") ``` ### search_process_instances() ```python async def search_process_instances(*, data=, consistency=None, **kwargs) ``` Search process instances > Search for process instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `ProcessInstanceSearchQuery` \| `Unset` | Process instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceSearchQueryResult - **Return type:** ProcessInstanceSearchQueryResult #### Examples **Search process instances:** ```python def search_process_instances_example() -> None: client = CamundaClient() result = client.search_process_instances( data=ProcessInstanceSearchQuery( filter_=ProcessInstanceSearchQueryFilter( process_definition_id="order-process", ), sort=[ ProcessInstanceSearchQuerySortRequest( field=ProcessInstanceSearchQuerySortRequestField.STARTDATE, order=SortOrderEnum.DESC, ) ], page=LimitBasedPagination(limit=10), ) ) for instance in result.items: print(f"{instance.process_instance_key}: {instance.state}") print(f"Total: {result.page.total_items}") ``` ### search_resources() ```python async def search_resources(*, data=, consistency=None, **kwargs) ``` Search resources > Search for deployed resources based on given criteria. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective search APIs. ::: - **data**: :type data: ResourceSearchQuery | Unset ```` * **Raises:** * **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. * **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. * **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** ResourceSearchQueryResult **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `data` | `ResourceSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** ResourceSearchQueryResult #### Examples **Search resources:** ```python def search_resources_example() -> None: client = CamundaClient() result = client.search_resources( data=ResourceSearchQuery(), ) if not isinstance(result.items, Unset): for resource in result.items: print(f"Resource: {resource.resource_name}") ```` ### search_roles() ```python async def search_roles(*, data=, consistency=None, **kwargs) ``` Search roles > Search for roles based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | -------------------- | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleSearchQueryResult - **Return type:** RoleSearchQueryResult #### Examples **Search roles:** ```python def search_roles_example() -> None: client = CamundaClient() result = client.search_roles( data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_roles_for_group() ```python async def search_roles_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group roles > Search roles assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupRoleSearchResult - **Return type:** GroupRoleSearchResult #### Examples **Search roles for a group:** ```python def search_roles_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_roles_for_group( group_id=group_id, data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_roles_for_tenant() ```python async def search_roles_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search roles for tenant > Retrieves a filtered and sorted list of roles for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantRoleSearchResult - **Return type:** TenantRoleSearchResult #### Examples **Search roles for a tenant:** ```python def search_roles_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_roles_for_tenant( tenant_id=tenant_id, data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_tenants() ```python async def search_tenants(*, data=, consistency=None, **kwargs) ``` Search tenants > Retrieves a filtered and sorted list of tenants. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | --------------------- | | `data` | `TenantSearchQueryRequest` \| `Unset` | Tenant search request | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantSearchQueryResult - **Return type:** TenantSearchQueryResult #### Examples **Search tenants:** ```python def search_tenants_example() -> None: client = CamundaClient() result = client.search_tenants( data=TenantSearchQueryRequest(), ) if not isinstance(result.items, Unset): for tenant in result.items: print(f"Tenant: {tenant.name}") ``` ### search_user_task_audit_logs() ```python async def search_user_task_audit_logs(user_task_key, *, data=, consistency=None, **kwargs) ``` Search user task audit logs > Search for user task audit logs based on given criteria. **Parameters:** | Parameter | Type | Description | | --------------- | ----------------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskAuditLogSearchQueryRequest` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogSearchQueryResult - **Return type:** AuditLogSearchQueryResult #### Examples **Search user task audit logs:** ```python def search_user_task_audit_logs_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_audit_logs( user_task_key=user_task_key, data=UserTaskAuditLogSearchQueryRequest(), ) if not isinstance(result.items, Unset): for log in result.items: print(f"Audit log: {log.audit_log_key}") ``` ### search_user_task_effective_variables() ```python async def search_user_task_effective_variables(user_task_key, *, data=, truncate_values=, consistency=None, **kwargs) ``` Search user task effective variables > Search for the effective variables of a user task. This endpoint returns deduplicated > variables where each variable name appears at most once. When the same variable name exists > at multiple scope levels in the scope hierarchy, the value from the innermost scope (closest > to the user task) takes precedence. This is useful for retrieving the actual runtime state > of variables as seen by the user task. By default, long variable values in the response are > truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `truncate_values` | `bool` \| `Unset` | | | `data` | `UserTaskEffectiveVariableSearchQueryRequest` \| `Unset` | User task effective variable search query request. Uses offset-based pagination only. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search user task effective variables:** ```python def search_user_task_effective_variables_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_effective_variables( user_task_key=user_task_key, ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_user_task_variables() ```python async def search_user_task_variables(user_task_key, *, data=, truncate_values=, consistency=None, **kwargs) ``` Search user task variables > Search for user task variables based on given criteria. This endpoint returns all variable > documents visible from the user task’s scope, including variables from parent scopes in the > scope hierarchy. If the same variable name exists at multiple scope levels, each scope’s > variable is returned as a separate result. Use the > /user-tasks/{userTaskKey}/effective-variables/search endpoint to get deduplicated variables > where the innermost scope takes precedence. By default, long variable values in the response > are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | ----------------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `truncate_values` | `bool` \| `Unset` | | | `data` | `UserTaskVariableSearchQueryRequest` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search user task variables:** ```python def search_user_task_variables_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_variables( user_task_key=user_task_key, ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_user_tasks() ```python async def search_user_tasks(*, data=, consistency=None, **kwargs) ``` Search user tasks > Search for user tasks based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------- | ------------------------------- | | `data` | `UserTaskSearchQuery` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserTaskSearchQueryResult - **Return type:** UserTaskSearchQueryResult #### Examples **Search user tasks:** ```python def search_user_tasks_example() -> None: client = CamundaClient() result = client.search_user_tasks( data=UserTaskSearchQuery() ) if not isinstance(result.items, Unset): for task in result.items: print(f"Task: {task.user_task_key}") ``` ### search_users() ```python async def search_users(*, data=, consistency=None, **kwargs) ``` Search users > Search for users based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | ----------- | | `data` | `UserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserSearchResult - **Return type:** UserSearchResult #### Examples **Search users:** ```python def search_users_example() -> None: client = CamundaClient() result = client.search_users( data=UserSearchQueryRequest(), ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_group() ```python async def search_users_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group users > Search users assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupUserSearchResult - **Return type:** GroupUserSearchResult #### Examples **Search users in a group:** ```python def search_users_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_users_for_group( group_id=group_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_role() ```python async def search_users_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role users > Search users with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleUserSearchResult - **Return type:** RoleUserSearchResult #### Examples **Search users for a role:** ```python def search_users_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_users_for_role( role_id=role_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_tenant() ```python async def search_users_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search users for tenant > Retrieves a filtered and sorted list of users for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantUserSearchResult - **Return type:** TenantUserSearchResult #### Examples **Search users for a tenant:** ```python def search_users_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_users_for_tenant( tenant_id=tenant_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_variables() ```python async def search_variables(*, data=, truncate_values=, consistency=None, **kwargs) ``` Search variables > Search for variables based on given criteria. > > This endpoint returns variables that exist directly at the specified scopes - it does not > include variables from parent scopes that would be visible through the scope hierarchy. > > Variables can be process-level (scoped to the process instance) or local (scoped to specific > BPMN elements like tasks, subprocesses, etc.). > > By default, long variable values in the response are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | -------------------------------- | ------------------------------ | | `truncate_values` | `bool` \| `Unset` | | | `data` | `VariableSearchQuery` \| `Unset` | Variable search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search variables:** ```python def search_variables_example() -> None: client = CamundaClient() result = client.search_variables() if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_variables_as_dto() ```python async def search_variables_as_dto(dto, *, process_instance_key, scope_key=None, tenant_id=None, page_size=100, consistency=None) ``` Fetch the variables declared by a Pydantic model for a process instance. Async variant of [`CamundaClient.search_variables_as_dto()`](client.md#camunda_orchestration_sdk.CamundaClient.search_variables_as_dto). **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------- | | `dto` | type [ \_VarDtoT ] | | | `process_instance_key` | `str` | | | `scope_key` | `str` \| `None` | | | `tenant_id` | `str` \| `None` | | | `page_size` | `int` | | | `consistency` | `ConsistencyOptions` \| `None` | | - **Return type:** _VariableMap_[ _\_VarDtoT_] ### suspend_batch_operation() ```python async def suspend_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Suspend Batch operation > Suspends a running batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Suspend a batch operation:** ```python def suspend_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.suspend_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### suspend_process_instance() ```python async def suspend_process_instance(process_instance_key, *, data=, **kwargs) ``` Suspend process instance > Suspends a running process instance, pausing further processing until it is resumed. > > Only process instances in the ACTIVE state can be suspended. > A child process instance can be suspended independently of its parent or root process > instance; suspension does not cascade to or from related instances. **Parameters:** | Parameter | Type | Description | | ---------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `None` \| `SuspendProcessInstanceRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in the ACTIVE state and cannot be suspended. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Suspend a process instance:** ```python def suspend_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.suspend_process_instance( process_instance_key=process_instance_key, ) ``` ### suspend_process_instances_batch_operation() ```python async def suspend_process_instances_batch_operation(*, data, **kwargs) ``` Suspend process instances (batch) > Suspends multiple running process instances. > > Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only > ACTIVE process instances can be suspended and suspension does not cascade between parent > and child instances, so child instances are suspended independently of their parent or > root instance. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------------------ | ------------------------------------------------------------------------------------- | | `data` | `ProcessInstanceSuspensionBatchOperationRequest` | The process instance filter that defines which process instances should be suspended. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Suspend process instances in batch:** ```python def suspend_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.suspend_process_instances_batch_operation( data=ProcessInstanceSuspensionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### sync_runtime_backup_state() ```python async def sync_runtime_backup_state(**kwargs) ``` Force-write runtime backup state > Force-writes the checkpoint and backup metadata of every partition of the physical > tenant to the backup store, independent of any backup being taken or confirmed, and > returns the updated state. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RuntimeBackupState - **Parameters:** **kwargs** (_Any_) - **Return type:** RuntimeBackupState #### Examples **Force-write the runtime backup state:** ```python def sync_runtime_backup_state_example() -> None: client = CamundaClient() # Force-writes the checkpoint and backup metadata of every partition to the # backup store, independent of any backup being taken or confirmed. result = client.sync_runtime_backup_state() print(f"Synced {len(result.backup_states)} partition backup states") ``` ### sync_runtime_backup_state_as_cluster_admin() ```python async def sync_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Force-write runtime backup state across physical tenants > Force-writes the checkpoint and backup metadata of every partition of every physical tenant of the > cluster, or of the one named by physicalTenantId, to that tenant’s backup store, independent of > any backup being taken or confirmed, and returns the updated state per physical tenant. > > The request is all-or-nothing: a physical tenant whose metadata cannot be written fails the whole > request, and the writes that already succeeded on other tenants are not undone. The operation is > idempotent, so retrying the same call is the correct remedy. Narrow the request with > physicalTenantId to write the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use POST > /v2/backups/runtime/state/sync to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out on at least one targeted physical tenant. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupState - **Return type:** ClusterRuntimeBackupState #### Examples **Force-write runtime backup state across physical tenants:** ```python def sync_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Force-writes the checkpoint and backup metadata of every partition of # every physical tenant to the backup store, independent of any backup being # taken or confirmed. Use `physical_tenant_id` to narrow to a single tenant. result = client.sync_runtime_backup_state_as_cluster_admin() print(f"Synced {len(result.physical_tenants)} physical tenant backup states") ``` ### take_history_backup() ```python async def take_history_backup(*, data, **kwargs) ``` Take a history backup > Triggers a backup of the physical tenant’s history, by scheduling a snapshot of every > secondary storage index it owns. > > Unlike runtime backups, history backups have no generated-id mode: backupId is always > required. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | --------- | -------------------------- | ----------------------------------------- | | `data` | `TakeHistoryBackupRequest` | Request body for taking a history backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.ConflictError** – If the response status code is 409. A backup with the given id already exists, or another backup is already running. The “already running” check is best-effort and node-local: it only observes backups started by the gateway that serves the request. Two concurrent requests reaching different gateways are narrowed by the duplicate-id check alone. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TakeHistoryBackupResponse - **Return type:** TakeHistoryBackupResponse #### Examples **Take a history backup:** ```python def take_history_backup_example(backup_id: int) -> None: client = CamundaClient() # Backups are logically ordered by id, so each successive backup must use a # higher id than the previous one. result = client.take_history_backup( data=TakeHistoryBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled history backup {result.backup_id}") for snapshot in result.scheduled_snapshots: print(f" {snapshot}") ``` ### take_history_backup_as_cluster_admin() ```python async def take_history_backup_as_cluster_admin(*, data, physical_tenant_id=, **kwargs) ``` Take a history backup on one or every physical tenant > Triggers a history backup on every physical tenant of the cluster, or on the one named by > physicalTenantId. Every targeted tenant uses the same caller-supplied backupId, but the backups > are independent: they are neither coordinated nor rolled back together. > > The request is all-or-nothing: the backupId is checked on every targeted tenant before any > snapshot is scheduled, so a tenant that already holds this id, or that cannot be reached, fails the > whole request and no backup is started anywhere. There is no aggregated cluster-level state in the > response. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use POST /v2/backups/history to act as a > single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | -------------------------- | ----------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `data` | `TakeHistoryBackupRequest` | Request body for taking a history backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. At least one targeted physical tenant already holds a backup with this id, or already has another backup running. The check that precedes the fan-out normally rejects the request before anything is scheduled; a tenant that takes the id in between rejects it during the fan-out instead, which can leave snapshots behind on the tenants already reached, so delete this backup id before retrying. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be scheduled on every targeted physical tenant, because one of them hit an internal error. The check that precedes the fan-out rejects the request before anything is scheduled, but a failure during the fan-out itself can leave snapshots behind on the tenants already reached, so delete this backup id before retrying. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTakeHistoryBackupResponse - **Return type:** ClusterTakeHistoryBackupResponse #### Examples **Take a history backup on every physical tenant:** ```python def take_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Requires the cluster-admin security chain. Triggers the backup on every # physical tenant; the backup id must be higher than any previously used id. # Use `physical_tenant_id` to target a single physical tenant instead. result = client.take_history_backup_as_cluster_admin( data=TakeHistoryBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled history backup {result.backup_id}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: scheduled") ``` ### take_runtime_backup() ```python async def take_runtime_backup(*, data=, **kwargs) ``` Take a runtime backup > Triggers a backup of runtime data on all partitions of the physical tenant. > > The backupId must be omitted if continuous backups and/or a backup or checkpoint > schedule is enabled for the physical tenant, as the id is generated automatically. > Otherwise, backupId is required. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------- | ----------------------------------------- | | `data` | `TakeRuntimeBackupRequest` \| `Unset` | Request body for taking a runtime backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A backup with the same or a higher id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TakeRuntimeBackupResponse - **Return type:** TakeRuntimeBackupResponse #### Examples **Take a runtime backup:** ```python def take_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() # `backup_id` is optional: leave it unset when continuous backups or a # backup/checkpoint schedule is enabled and an id is generated for you. # Here it is supplied explicitly, which is what a one-off manual backup does. result = client.take_runtime_backup( data=TakeRuntimeBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled backup {result.backup_id}") ``` ### take_runtime_backup_as_cluster_admin() ```python async def take_runtime_backup_as_cluster_admin(*, data=, physical_tenant_id=, **kwargs) ``` Take a runtime backup on one or every physical tenant > Triggers a runtime backup on every physical tenant of the cluster, or on the one named by > physicalTenantId. A cluster-wide backup is a set of independent per-tenant backups, not an atomic > snapshot of the cluster: they are neither coordinated nor rolled back together, and each tenant > stores its own, so the same backupId can be used for all of them. > > Every targeted physical tenant must be in the same backup-id mode. backupId must be omitted when > every targeted tenant generates its own ids (because continuous backups and/or a backup or > checkpoint schedule is enabled for it), and is required when none of them does. A cluster whose > targeted tenants mix the two modes is rejected with 400 and has to be driven one tenant at a time > through POST /v2/backups/runtime. In generated-id mode each tenant generates its own id, so the > response reports an id per physical tenant rather than one for the cluster. > > The trigger is all-or-error, and never silent about a partial trigger: if any targeted tenant cannot > be triggered the response carries an error status, but its body still lists every targeted tenant — > which ones were triggered, under which backupId to monitor or delete them, and why the others > failed. Nothing is rolled back, so the backups that were triggered keep running and have to be > deleted explicitly. A request rejected before any tenant was triggered answers with a problem detail > instead, and nothing is running. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use POST > /v2/backups/runtime to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ------------------------------------- | ----------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `data` | `TakeRuntimeBackupRequest` \| `Unset` | Request body for taking a runtime backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The request names a backupId while at least one targeted physical tenant generates its own ids, or omits it while at least one does not, or the id is not a positive number. No tenant was triggered. A targeted tenant that rejects the request as invalid during the fan-out answers with the same status but the cluster body, listing the tenants that were triggered. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, so no tenant was triggered. - **errors.ConflictError** – If the response status code is 409. At least one targeted physical tenant already holds a backup with this id or a higher one. Backups are triggered without a preceding check, so the tenants that accepted the id are listed in the body and keep running; delete them before retrying. - **errors.InternalServerErrorError** – If the response status code is 500. At least one targeted physical tenant could not be triggered, and the failures do not agree on a single status. The body lists the tenants that were triggered and keep running. - **errors.BadGatewayError** – If the response status code is 502. The connection to the broker was cut mid-flight on at least one targeted physical tenant, which may or may not have accepted the request. Those tenants are reported as UNKNOWN with the id to check them under, and the tenants that were triggered keep running. - **errors.ServiceUnavailableError** – If the response status code is 503. At least one targeted physical tenant could not be reached. The body lists the tenants that were triggered and keep running. - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out on at least one targeted physical tenant, which may or may not have accepted it. Those tenants are reported as UNKNOWN with the id to check them under, and the tenants that were triggered keep running. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTakeRuntimeBackupResponse - **Return type:** ClusterTakeRuntimeBackupResponse #### Examples **Take a runtime backup across physical tenants:** ```python def take_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Requires the cluster-admin security chain. Triggers the backup on every # physical tenant; the backup id must be higher than any previously used id. # Use `physical_tenant_id` to target a single physical tenant instead. result = client.take_runtime_backup_as_cluster_admin( data=TakeRuntimeBackupRequest( backup_id=backup_id, ) ) for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: backup {tenant.backup_id}") ``` ### throw_job_error() ```python async def throw_job_error(job_key, *, data, **kwargs) ``` Throw error for job > Reports a business error (i.e. non-technical) that occurs while processing a job. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobErrorRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given key was not found or is not activated. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Throw a job error:** ```python def throw_job_error_example(job_key: JobKey) -> None: client = CamundaClient() client.throw_job_error( job_key=job_key, data=JobErrorRequest( error_code="VALIDATION_ERROR", error_message="Input validation failed", ), ) ``` ### trigger_cluster_rebalance() ```python async def trigger_cluster_rebalance(*, data=, dry_run=, **kwargs) ``` Trigger a cluster-wide leadership rebalance > Transfers leadership of every partition that is not led by its highest-priority replica towards that > replica, one partition at a time. Returns as soon as the rebalance has been accepted (poll GET > /cluster/v2/rebalance to monitor progress). > > Each rebalance can specify overrides for the configured rebalance settings (e.g. maximum replication > lag to allow). An absent request body means “use the configured settings”. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dry_run` | `bool` \| `Unset` | | | `data` | `ClusterRebalanceRequest` \| `Unset` | The settings to run a given rebalance with. Every setting is optional; an absent request body is equivalent to a body with every field absent, and means “use the configured settings”. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ConflictError** – If the response status code is 409. A rebalance or cluster configuration change is already in progress, so there is no settled configuration to plan a rebalance against. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterBalanceResponse - **Return type:** ClusterBalanceResponse #### Examples **Trigger a cluster-wide leadership rebalance:** ```python def trigger_cluster_rebalance_example() -> None: client = CamundaClient() # Start a dry run first to inspect the plan without transferring any leadership. # Omit dry_run (or set it to False) to execute the rebalance for real. result: ClusterBalanceResponse = client.trigger_cluster_rebalance( data=ClusterRebalanceRequest( replication_lag_threshold=8388608, max_transfer_attempts=3, ), dry_run=True, ) print(f"Cluster balance state: {result.state}") if result.running_rebalance is not None: print(f"Running rebalance: {result.running_rebalance}") for partition in result.partitions: print(f" Partition {partition.partition_id}: {partition.state}") ``` ### unassign_client_from_group() ```python async def unassign_client_from_group(group_id, client_id, **kwargs) ``` Unassign a client from a group > Unassigns a client from a group. > > The client is removed as a group member, with associated authorizations, roles, and tenant > assignments no longer applied. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found, or the client is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a client from a group:** ```python def unassign_client_from_group_example(group_id: GroupId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_client_from_group( group_id=group_id, client_id=client_id, ) ``` ### unassign_client_from_tenant() ```python async def unassign_client_from_tenant(tenant_id, client_id, **kwargs) ``` Unassign a client from a tenant > Unassigns the client from the specified tenant. > > The client can no longer access tenant data. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant does not exist or the client was not assigned to it. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a client from a tenant:** ```python def unassign_client_from_tenant_example(tenant_id: TenantId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_client_from_tenant( tenant_id=tenant_id, client_id=client_id, ) ``` ### unassign_group_from_tenant() ```python async def unassign_group_from_tenant(tenant_id, group_id, **kwargs) ``` Unassign a group from a tenant > Unassigns a group from a specified tenant. > > Members of the group (users, clients) will no longer have access to the tenant’s data - except they > are assigned directly to the tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or group was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a group from a tenant:** ```python def unassign_group_from_tenant_example(tenant_id: TenantId, group_id: GroupId) -> None: client = CamundaClient() client.unassign_group_from_tenant( tenant_id=tenant_id, group_id=group_id, ) ``` ### unassign_mapping_rule_from_group() ```python async def unassign_mapping_rule_from_group(group_id, mapping_rule_id, **kwargs) ``` Unassign a mapping rule from a group > Unassigns a mapping rule from a group. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or mapping rule with the given ID was not found, or the mapping rule is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a mapping rule from a group:** ```python def unassign_mapping_rule_from_group_example(group_id: GroupId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_mapping_rule_from_group( group_id=group_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_mapping_rule_from_tenant() ```python async def unassign_mapping_rule_from_tenant(tenant_id, mapping_rule_id, **kwargs) ``` Unassign a mapping rule from a tenant > Unassigns a single mapping rule from a specified tenant without deleting the rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or mapping rule was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a mapping rule from a tenant:** ```python def unassign_mapping_rule_from_tenant_example(tenant_id: TenantId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_mapping_rule_from_tenant( tenant_id=tenant_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_role_from_client() ```python async def unassign_role_from_client(role_id, client_id, **kwargs) ``` Unassign a role from a client > Unassigns the specified role from the client. The client will no longer inherit the authorizations > associated with this role. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or client with the given ID or username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a client:** ```python def unassign_role_from_client_example(role_id: RoleId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_role_from_client( role_id=role_id, client_id=client_id, ) ``` ### unassign_role_from_group() ```python async def unassign_role_from_group(role_id, group_id, **kwargs) ``` Unassign a role from a group > Unassigns the specified role from the group. All group members (user or client) no longer inherit > the authorizations associated with this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a group:** ```python def unassign_role_from_group_example(role_id: RoleId, group_id: GroupId) -> None: client = CamundaClient() client.unassign_role_from_group( role_id=role_id, group_id=group_id, ) ``` ### unassign_role_from_mapping_rule() ```python async def unassign_role_from_mapping_rule(role_id, mapping_rule_id, **kwargs) ``` Unassign a role from a mapping rule > Unassigns a role from a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or mapping rule with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a mapping rule:** ```python def unassign_role_from_mapping_rule_example(role_id: RoleId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_role_from_mapping_rule( role_id=role_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_role_from_tenant() ```python async def unassign_role_from_tenant(tenant_id, role_id, **kwargs) ``` Unassign a role from a tenant > Unassigns a role from a specified tenant. > > Users, Clients or Groups, that have the role assigned, will no longer have access to the > tenant’s data - unless they are assigned directly to the tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or role was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a tenant:** ```python def unassign_role_from_tenant_example(tenant_id: TenantId, role_id: RoleId) -> None: client = CamundaClient() client.unassign_role_from_tenant( tenant_id=tenant_id, role_id=role_id, ) ``` ### unassign_role_from_user() ```python async def unassign_role_from_user(role_id, username, **kwargs) ``` Unassign a role from a user > Unassigns a role from a user. The user will no longer inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or user with the given ID or username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a user:** ```python def unassign_role_from_user_example(role_id: RoleId, username: Username) -> None: client = CamundaClient() client.unassign_role_from_user( role_id=role_id, username=username, ) ``` ### unassign_user_from_group() ```python async def unassign_user_from_group(group_id, username, **kwargs) ``` Unassign a user from a group > Unassigns a user from a group. > > The user is removed as a group member, with associated authorizations, roles, and tenant assignments > no longer applied. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or user with the given ID was not found, or the user is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user from a group:** ```python def unassign_user_from_group_example(group_id: GroupId, username: Username) -> None: client = CamundaClient() client.unassign_user_from_group( group_id=group_id, username=username, ) ``` ### unassign_user_from_tenant() ```python async def unassign_user_from_tenant(tenant_id, username, **kwargs) ``` Unassign a user from a tenant > Unassigns the user from the specified tenant. > > The user can no longer access tenant data. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user from a tenant:** ```python def unassign_user_from_tenant_example(tenant_id: TenantId, username: Username) -> None: client = CamundaClient() client.unassign_user_from_tenant( tenant_id=tenant_id, username=username, ) ``` ### unassign_user_task() ```python async def unassign_user_task(user_task_key, **kwargs) ``` Unassign user task > Removes the assignee of a task with the given key. Unassignment waits for blocking task listeners on > this lifecycle transition. If listener processing is delayed beyond the request timeout, this > endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and > inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | ----- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user task:** ```python def unassign_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.unassign_user_task(user_task_key=user_task_key) ``` ### update_agent_instance() ```python async def update_agent_instance(agent_instance_key, *, data, **kwargs) ``` Update agent instance > Updates the status of an agent instance and appends a batch of history items > to its conversation history. Each history item created for this request is > echoed back in the response. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------------------- | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `data` | `AgentInstanceUpdateRequest` | Request to update the mutable state of an agent instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceUpdateResult - **Return type:** AgentInstanceUpdateResult #### Examples **Update an agent instance:** ```python def update_agent_instance_example( agent_instance_key: AgentInstanceKey, element_instance_key: ElementInstanceKey, job_key: JobKey, # Engine-minted: take the token from the job activation response, never build one. job_lease_token: JobLeaseToken, ) -> None: client = CamundaClient() # Appending conversation history is part of an update; there is no separate # history-item endpoint. result = client.update_agent_instance( agent_instance_key=agent_instance_key, data=AgentInstanceUpdateRequest( element_instance_key=element_instance_key, job_key=job_key, job_lease_token=job_lease_token, status=AgentInstanceUpdateRequestStatus.THINKING, history=[ AgentInstanceHistoryItem( history_item_id=HistoryItemId("assistant-1"), loop_iteration=1, role=AgentInstanceHistoryItemRole.ASSISTANT, content=[ TextContent(content_type="TEXT", text="How can I help you today?"), ], produced_at=datetime.datetime.now(datetime.timezone.utc), ), ], ), ) for item in result.created_history: print(f"Appended history item {item.history_item_id}: {item.history_item_key}") ``` ### update_authorization() ```python async def update_authorization(authorization_key, *, data, **kwargs) ``` Update authorization > Update the authorization with the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `data` | `AuthorizationIdBasedRequest` \| `AuthorizationPropertyBasedRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The authorization with the authorizationKey was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update an authorization:** ```python def update_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() client.update_authorization( authorization_key=authorization_key, data=AuthorizationIdBasedRequest( resource_type=AuthorizationIdBasedRequestResourceType.PROCESS_DEFINITION, permission_types=[ AuthorizationIdBasedRequestPermissionTypesItem.READ, AuthorizationIdBasedRequestPermissionTypesItem.UPDATE, AuthorizationIdBasedRequestPermissionTypesItem.DELETE, ], resource_id="my-process", owner_type=OwnerTypeEnum.USER, owner_id="user@example.com", ), ) ``` ### update_global_cluster_variable() ```python async def update_global_cluster_variable(name, *, data, **kwargs) ``` Update a global-scoped cluster variable > Updates the value of an existing global cluster variable. > > The variable must exist, otherwise a 404 error is returned. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `data` | `UpdateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Update a global cluster variable:** ```python def update_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.update_global_cluster_variable( name=name, data=UpdateClusterVariableRequest( value={"key": "updated-value"}, ), ) print(f"Updated variable: {result.name}") ``` ### update_global_task_listener() ```python async def update_global_task_listener(id, *, data, **kwargs) ``` Update global user task listener > Updates a global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `data` | `UpdateGlobalTaskListenerRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Update a global task listener:** ```python def update_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() result = client.update_global_task_listener( id=listener_id, data=UpdateGlobalTaskListenerRequest( event_types=[GlobalTaskListenerEventTypeEnum.COMPLETING], type_="updated-task-listener", ), ) print(f"Updated listener: {result.id}") ``` ### update_group() ```python async def update_group(group_id, *, data, **kwargs) ``` Update group > Update a group with the given ID. **Parameters:** | Parameter | Type | Description | | ---------- | -------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupUpdateResult - **Return type:** GroupUpdateResult #### Examples **Update a group:** ```python def update_group_example(group_id: GroupId) -> None: client = CamundaClient() client.update_group( group_id=group_id, data=GroupUpdateRequest(name="engineering-team"), ) ``` ### update_job() ```python async def update_job(job_key, *, data, **kwargs) ``` Update job > Update a job with the given key. **Parameters:** | Parameter | Type | Description | | --------- | ------------------ | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the jobKey is not found. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update a job:** ```python def update_job_example(job_key: JobKey) -> None: client = CamundaClient() client.update_job( job_key=job_key, data=JobUpdateRequest( changeset=JobChangeset( retries=3, ), ), ) ``` ### update_jobs_batch_operation() ```python async def update_jobs_batch_operation(*, data, **kwargs) ``` Update jobs (batch) > Creates a batch operation to update jobs matching the given filter. At least one changeset field > must be non-null. This is done asynchronously; the progress can be tracked using the > batchOperationKey from the response and the batch operation status endpoint (/batch- > operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `data` | `JobBatchUpdateRequest` | The filter and changeset for a batch job update operation. The filter defines which jobs are updated; the changeset defines what to update. At least one changeset field must be non-null. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The job batch update operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Update jobs in batch:** ```python def update_jobs_batch_operation_example() -> None: client = CamundaClient() result = client.update_jobs_batch_operation( data=JobBatchUpdateRequest( filter_=JobBatchUpdateRequestFilter( type_="my-job-type", ), changeset=JobBatchUpdateRequestChangeset( retries=3, ), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### update_mapping_rule() ```python async def update_mapping_rule(mapping_rule_id, *, data=, **kwargs) ``` Update mapping rule > Update a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ------------------------------------- | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `data` | `MappingRuleUpdateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The request to update a mapping rule was denied. More details are provided in the response body. - **errors.NotFoundError** – If the response status code is 404. The request to update a mapping rule was denied. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleUpdateResult - **Return type:** MappingRuleUpdateResult #### Examples **Update a mapping rule:** ```python def update_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.update_mapping_rule( mapping_rule_id=mapping_rule_id, data=MappingRuleUpdateRequest( claim_name="groups", claim_value="senior-engineering", name="Senior Engineering Mapping", ), ) ``` ### update_role() ```python async def update_role(role_id, *, data, **kwargs) ``` Update role > Update a role with the given ID. **Parameters:** | Parameter | Type | Description | | --------- | ------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The role with the ID is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleUpdateResult - **Return type:** RoleUpdateResult #### Examples **Update a role:** ```python def update_role_example(role_id: RoleId) -> None: client = CamundaClient() client.update_role( role_id=role_id, data=RoleUpdateRequest(name="senior-developer"), ) ``` ### update_tenant() ```python async def update_tenant(tenant_id, *, data, **kwargs) ``` Update tenant > Updates an existing tenant. **Parameters:** | Parameter | Type | Description | | ----------- | --------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantUpdateResult - **Return type:** TenantUpdateResult #### Examples **Update a tenant:** ```python def update_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() client.update_tenant( tenant_id=tenant_id, data=TenantUpdateRequest(name="Acme Corp International"), ) ``` ### update_tenant_cluster_variable() ```python async def update_tenant_cluster_variable(tenant_id, name, *, data, **kwargs) ``` Update a tenant-scoped cluster variable > Updates the value of an existing tenant-scoped cluster variable. > > The variable must exist, otherwise a 404 error is returned. **Parameters:** | Parameter | Type | Description | | ----------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `data` | `UpdateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Update a tenant cluster variable:** ```python def update_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.update_tenant_cluster_variable( tenant_id=tenant_id, name=name, data=UpdateClusterVariableRequest( value={"key": "updated-tenant-value"}, ), ) print(f"Updated variable: {result.name}") ``` ### update_user() ```python async def update_user(username, *, data, **kwargs) ``` Update user > Updates a user. **Parameters:** | Parameter | Type | Description | | ---------- | ------------------- | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `data` | `UserUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserUpdateResult - **Return type:** UserUpdateResult #### Examples **Update a user:** ```python def update_user_example(username: Username) -> None: client = CamundaClient() client.update_user( username=username, data=UserUpdateRequest( name="Jane Smith", email="jsmith@example.com", ), ) ``` ### update_user_task() ```python async def update_user_task(user_task_key, *, data=, **kwargs) ``` Update user task > Update a user task with the given key. Updates wait for blocking task listeners on this lifecycle > transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | ---------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskUpdateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update a user task:** ```python def update_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.update_user_task( user_task_key=user_task_key, data=UserTaskUpdateRequest( changeset=Changeset( due_date=datetime.datetime(2025, 12, 31, 23, 59, 59), ), ), ) ``` --- ## CamundaClient(3) ## CamundaClient ```python class CamundaClient(configuration=None, auth_provider=None, logger=None, clock=None, random=None, **kwargs) ``` Bases: `object` **Parameters:** | Parameter | Type | Description | | --------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------- | | `configuration` | [CamundaSdkConfiguration](runtime.md#camunda_orchestration_sdk.runtime.configuration_resolver.CamundaSdkConfiguration) | | | `auth_provider` | [AuthProvider](runtime.md#camunda_orchestration_sdk.runtime.auth.AuthProvider) | | | `logger` | [CamundaLogger](runtime.md#camunda_orchestration_sdk.runtime.logging.CamundaLogger) \| `None` | | | `clock` | `Clock` \| `None` | | | `random` | `RandomSource` \| `None` | | | `kwargs` | `Any` | | ### activate_ad_hoc_sub_process_activities() ```python def activate_ad_hoc_sub_process_activities(ad_hoc_sub_process_instance_key, *, data, **kwargs) ``` Activate activities within an ad-hoc sub-process > Activates selected activities within an ad-hoc sub-process identified by element ID. > > The provided element IDs must exist within the ad-hoc sub-process instance identified by the > provided adHocSubProcessInstanceKey. **Parameters:** | Parameter | Type | Description | | --------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------- | | `ad_hoc_sub_process_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `AdHocSubProcessActivateActivitiesInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The ad-hoc sub-process instance is not found or the provided key does not identify an ad-hoc sub-process. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Activate ad-hoc sub-process activities:** ```python def activate_ad_hoc_sub_process_activities_example(element_id: ElementId) -> None: client = CamundaClient() client.activate_ad_hoc_sub_process_activities( ad_hoc_sub_process_instance_key="123456", data=AdHocSubProcessActivateActivitiesInstruction( elements=[ AdHocSubProcessActivateActivityReference(element_id=element_id), AdHocSubProcessActivateActivityReference(element_id=element_id), ], ), ) ``` ### activate_jobs() ```python def activate_jobs(*, data, **kwargs) ``` Activate jobs > Iterate through all known partitions and activate jobs up to the requested maximum. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `JobActivationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobActivationResult - **Return type:** JobActivationResult #### Examples **Activate and process jobs:** ```python async def activate_jobs_example() -> None: async with CamundaAsyncClient() as client: result = await client.activate_jobs( data=JobActivationRequest( type_="payment-processing", timeout=30000, max_jobs_to_activate=5, ) ) for job in result.jobs: print(f"Job {job.job_key}: {job.type_}") ``` ### assign_client_to_group() ```python def assign_client_to_group(group_id, client_id, **kwargs) ``` Assign a client to a group > Assigns a client to a group, making it a member of the group. > > Members of the group inherit the group authorizations, roles, and tenant assignments. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The client with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a client to a group:** ```python def assign_client_to_group_example(group_id: GroupId, client_id: ClientId) -> None: client = CamundaClient() client.assign_client_to_group( group_id=group_id, client_id=client_id, ) ``` ### assign_client_to_tenant() ```python def assign_client_to_tenant(tenant_id, client_id, **kwargs) ``` Assign a client to a tenant > Assign the client to the specified tenant. > > The client can then access tenant data and perform authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a client to a tenant:** ```python def assign_client_to_tenant_example(tenant_id: TenantId, client_id: ClientId) -> None: client = CamundaClient() client.assign_client_to_tenant( tenant_id=tenant_id, client_id=client_id, ) ``` ### assign_group_to_tenant() ```python def assign_group_to_tenant(tenant_id, group_id, **kwargs) ``` Assign a group to a tenant > Assigns a group to a specified tenant. > > Group members (users, clients) can then access tenant data and perform authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or group was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a group to a tenant:** ```python def assign_group_to_tenant_example(tenant_id: TenantId, group_id: GroupId) -> None: client = CamundaClient() client.assign_group_to_tenant( tenant_id=tenant_id, group_id=group_id, ) ``` ### assign_mapping_rule_to_group() ```python def assign_mapping_rule_to_group(group_id, mapping_rule_id, **kwargs) ``` Assign a mapping rule to a group > Assigns a mapping rule to a group. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or mapping rule with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The mapping rule with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a mapping rule to a group:** ```python def assign_mapping_rule_to_group_example(group_id: GroupId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_mapping_rule_to_group( group_id=group_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_mapping_rule_to_tenant() ```python def assign_mapping_rule_to_tenant(tenant_id, mapping_rule_id, **kwargs) ``` Assign a mapping rule to a tenant > Assign a single mapping rule to a specified tenant. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or mapping rule was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a mapping rule to a tenant:** ```python def assign_mapping_rule_to_tenant_example(tenant_id: TenantId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_mapping_rule_to_tenant( tenant_id=tenant_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_process_instance_business_id() ```python def assign_process_instance_business_id(process_instance_key, *, data, **kwargs) ``` Assign business id to process instance > Assigns a business id to an already-running process instance that currently has none. > > The assignment is single and irreversible: only artifacts created after the assignment > (for example future jobs, user tasks, decision instances, and message subscriptions) carry > the business id, while existing artifacts are not retroactively enriched. Re-sending the > same business id succeeds as a no-op. This endpoint is only useful while business id > uniqueness enforcement is disabled; when it is enabled, the request is rejected with a 409 > response. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceBusinessIdAssignmentInstruction` | The instruction describing the business id to assign to a running process instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The business id assignment failed because the process instance is not eligible, for example it already has a different business id, it is a call-activity child, or business id uniqueness enforcement is enabled. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a business id to a process instance:** ```python def assign_process_instance_business_id_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.assign_process_instance_business_id( process_instance_key=process_instance_key, data=ProcessInstanceBusinessIdAssignmentInstruction( business_id="order-12345", ), ) ``` ### assign_role_to_client() ```python def assign_role_to_client(role_id, client_id, **kwargs) ``` Assign a role to a client > Assigns the specified role to the client. The client will inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role was already assigned to the client with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a client:** ```python def assign_role_to_client_example(role_id: RoleId, client_id: ClientId) -> None: client = CamundaClient() client.assign_role_to_client( role_id=role_id, client_id=client_id, ) ``` ### assign_role_to_group() ```python def assign_role_to_group(role_id, group_id, **kwargs) ``` Assign a role to a group > Assigns the specified role to the group. Every member of the group (user or client) will inherit the > authorizations associated with this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or group with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the group with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a group:** ```python def assign_role_to_group_example(role_id: RoleId, group_id: GroupId) -> None: client = CamundaClient() client.assign_role_to_group( role_id=role_id, group_id=group_id, ) ``` ### assign_role_to_mapping_rule() ```python def assign_role_to_mapping_rule(role_id, mapping_rule_id, **kwargs) ``` Assign a role to a mapping rule > Assigns a role to a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or mapping rule with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the mapping rule with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a mapping rule:** ```python def assign_role_to_mapping_rule_example(role_id: RoleId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.assign_role_to_mapping_rule( role_id=role_id, mapping_rule_id=mapping_rule_id, ) ``` ### assign_role_to_tenant() ```python def assign_role_to_tenant(tenant_id, role_id, **kwargs) ``` Assign a role to a tenant > Assigns a role to a specified tenant. > > Users, Clients or Groups, that have the role assigned, will get access to the tenant’s data and can > perform actions according to their authorizations. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or role was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a tenant:** ```python def assign_role_to_tenant_example(tenant_id: TenantId, role_id: RoleId) -> None: client = CamundaClient() client.assign_role_to_tenant( tenant_id=tenant_id, role_id=role_id, ) ``` ### assign_role_to_user() ```python def assign_role_to_user(role_id, username, **kwargs) ``` Assign a role to a user > Assigns the specified role to the user. The user will inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or user with the given ID or username was not found. - **errors.ConflictError** – If the response status code is 409. The role is already assigned to the user with the given ID. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a role to a user:** ```python def assign_role_to_user_example(role_id: RoleId, username: Username) -> None: client = CamundaClient() client.assign_role_to_user( role_id=role_id, username=username, ) ``` ### assign_user_task() ```python def assign_user_task(user_task_key, *, data, **kwargs) ``` Assign user task > Assigns a user task with the given key to the given assignee. Assignment waits for blocking task > listeners on this lifecycle transition. If listener processing is delayed beyond the request > timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with > backoff and inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | --------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskAssignmentRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user task:** ```python def assign_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.assign_user_task( user_task_key=user_task_key, data=UserTaskAssignmentRequest( assignee="user@example.com", ), ) ``` ### assign_user_to_group() ```python def assign_user_to_group(group_id, username, **kwargs) ``` Assign a user to a group > Assigns a user to a group, making the user a member of the group. > > Group members inherit the group authorizations, roles, and tenant assignments. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or user with the given ID or username was not found. - **errors.ConflictError** – If the response status code is 409. The user with the given ID is already assigned to the group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user to a group:** ```python def assign_user_to_group_example(group_id: GroupId, username: Username) -> None: client = CamundaClient() client.assign_user_to_group( group_id=group_id, username=username, ) ``` ### assign_user_to_tenant() ```python def assign_user_to_tenant(tenant_id, username, **kwargs) ``` Assign a user to a tenant > Assign a single user to a specified tenant. The user can then access tenant data and perform > authorized actions. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Assign a user to a tenant:** ```python def assign_user_to_tenant_example(tenant_id: TenantId, username: Username) -> None: client = CamundaClient() client.assign_user_to_tenant( tenant_id=tenant_id, username=username, ) ``` ### auth_provider ```python auth_provider: [AuthProvider](runtime.md#camunda_orchestration_sdk.runtime.auth.AuthProvider) ``` ### broadcast_signal() ```python def broadcast_signal(*, data, **kwargs) ``` Broadcast signal > Broadcasts a signal. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------ | ----------- | | `data` | `SignalBroadcastRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The signal is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SignalBroadcastResult - **Return type:** SignalBroadcastResult #### Examples **Broadcast a signal:** ```python def broadcast_signal_example() -> None: client = CamundaClient() result = client.broadcast_signal( data=SignalBroadcastRequest( signal_name="order-cancelled", ) ) print(f"Signal key: {result.signal_key}") ``` ### cancel_batch_operation() ```python def cancel_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Cancel Batch operation > Cancels a running batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Cancel a batch operation:** ```python def cancel_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.cancel_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### cancel_cluster_rebalance() ```python def cancel_cluster_rebalance(**kwargs) ``` Stop the running rebalance > Asks the running rebalance to stop once the transfer in flight has finished. Partitions already > transferred keep their new leaders, and those the rebalance had not yet reached keep their current > ones. > > Cancellation requests are idempotent and always accepted. The wasRunning response field can be > used to distinguish a cancellation that found a running rebalance from one that did not. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RebalanceCancellationResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** RebalanceCancellationResponse #### Examples **Cancel the running cluster rebalance:** ```python def cancel_cluster_rebalance_example() -> None: client = CamundaClient() # Asks the running rebalance to stop after the in-flight transfer finishes. # Partitions already rebalanced keep their new leaders. result = client.cancel_cluster_rebalance() if result.was_running: print("Rebalance was running and has been asked to stop.") else: print("No rebalance was running.") ``` ### cancel_process_instance() ```python def cancel_process_instance(process_instance_key, *, data=, **kwargs) ``` Cancel process instance > Cancels a running process instance. As a cancellation includes more than just the removal of the > process instance resource, the cancellation resource must be posted. Cancellation can wait on > listener-related processing; when that processing does not complete in time, this endpoint can > return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener > worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `CancelProcessInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance cannot be canceled, for example because it is already being terminated or because it is a child process instance. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Cancel a process instance:** ```python def cancel_process_instance_example(process_definition_id: ProcessDefinitionId) -> None: client = CamundaClient() # Create a process instance and get its key from the response created = client.create_process_instance( data=ProcessCreationById(process_definition_id=process_definition_id) ) # Cancel it using the key from the creation response client.cancel_process_instance( process_instance_key=created.process_instance_key, ) ``` ### cancel_process_instances_batch_operation() ```python def cancel_process_instances_batch_operation(*, data, **kwargs) ``` Cancel process instances (batch) > Cancels multiple active or suspended process instances. > > Only ACTIVE and SUSPENDED root instances can be cancelled. A state filter narrows the batch > to the given states. Requesting any state other than ACTIVE or SUSPENDED through the $eq or > $in operators is rejected. Other state operators ($neq, $exists, $like) are applied as > given, and the batch remains limited to ACTIVE and SUSPENDED instances. Without a state filter, > both ACTIVE and SUSPENDED instances are selected. Any given filter for parentProcessInstanceKey > is ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------- | ------------------------------------------------------------------------------------ | | `data` | `ProcessInstanceCancellationBatchOperationRequest` | The process instance filter that defines which process instances should be canceled. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Cancel process instances in batch:** ```python def cancel_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.cancel_process_instances_batch_operation( data=ProcessInstanceCancellationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### change_cluster_mode() ```python def change_cluster_mode(*, mode, dry_run=, **kwargs) ``` Change cluster mode > Transitions the cluster between processing and recovery mode. This is a non-blocking operation: the > request is acknowledged once the change has been accepted, before the transition itself has > completed. Entering recovery mode deactivates all partitions so that only a restricted set of read- > only operations remains available; exiting recovery mode returns the cluster to normal processing. > Returns the planned cluster change so its progress can be monitored via the topology. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | --------------------------------------------- | | `mode` | `Mode` | The operating mode of a cluster’s partitions. | | `dry_run` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterModeChangeResponse - **Return type:** ClusterModeChangeResponse #### Examples **Change cluster mode:** ```python def change_cluster_mode_example() -> None: client = CamundaClient() # Pass dry_run=True to validate the request and inspect the resulting plan # without applying it. Omit it (or set it to False) to trigger the transition. result = client.change_cluster_mode( mode=Mode.RECOVERING, dry_run=True, ) # Operations are grouped by physical tenant; a null tenant means the operation # is not scoped to one, such as a broker lifecycle operation. print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### change_cluster_mode_as_cluster_admin() ```python def change_cluster_mode_as_cluster_admin(*, mode, physical_tenant_id=, dry_run=, **kwargs) ``` Change the cluster mode of one or every physical tenant > Transitions physical tenants between processing and recovery mode. > > If the physicalTenantId parameter is not provided, all available physical tenants are transitioned > individually. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | --------------------------------------------- | | `mode` | `Mode` | The operating mode of a cluster’s partitions. | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `dry_run` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. The mode change conflicts with the cluster state, for example because another configuration change is in progress. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterModeChangeResponse - **Return type:** ClusterModeChangeResponse #### Examples **Change cluster mode as cluster admin:** ```python def change_cluster_mode_as_cluster_admin_example() -> None: client = CamundaClient() # The cluster-admin variant can target a single physical tenant. Omit # physical_tenant_id to apply the change to every physical tenant. result = client.change_cluster_mode_as_cluster_admin( mode=Mode.RECOVERING, physical_tenant_id="default", dry_run=True, ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### client ```python client: [Client](configuration.md#camunda_orchestration_sdk.Client) | [AuthenticatedClient](configuration.md#camunda_orchestration_sdk.AuthenticatedClient) ``` ### _property_ clock _: Clock_ the injected one when supplied, else the live clock. - **Type:** Clock backing SDK cadence ### close() ```python def close() ``` Close underlying HTTP clients. This closes both the API client’s httpx client and, when available, the auth provider’s token client. - **Return type:** None ### complete_job() ```python def complete_job(job_key, *, data=, **kwargs) ``` Complete job > Complete a job with the given payload, which allows completing the associated service task. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobCompletionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Complete a job:** ```python def complete_job_example(job_key: JobKey) -> None: client = CamundaClient() client.complete_job( job_key=job_key, data=JobCompletionRequest( variables=JobCompletionRequestVariables.from_dict( {"paymentId": "PAY-123", "status": "completed"} ) ), ) ``` ### complete_user_task() ```python def complete_user_task(user_task_key, *, data=, **kwargs) ``` Complete user task > Completes a user task with the given key. Completion waits for blocking task listeners on this > lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint > can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect > listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | -------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskCompletionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Complete a user task:** ```python def complete_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() variables = UserTaskCompletionRequestVariables() variables["approved"] = True client.complete_user_task( user_task_key=user_task_key, data=UserTaskCompletionRequest( variables=variables, ), ) ``` ### configuration ```python configuration: [CamundaSdkConfiguration](runtime.md#camunda_orchestration_sdk.runtime.configuration_resolver.CamundaSdkConfiguration) ``` ### correlate_message() ```python def correlate_message(*, data, **kwargs) ``` Correlate message > Publishes a message and correlates it to a subscription. > > If correlation is successful it will return the first process instance key the message correlated > with. > The message is not buffered. > Use the publish message endpoint to send messages that can be buffered. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `data` | `MessageCorrelationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessageCorrelationResult - **Return type:** MessageCorrelationResult #### Examples **Correlate a message:** ```python def correlate_message_example() -> None: client = CamundaClient() result = client.correlate_message( data=MessageCorrelationRequest( name="payment-received", correlation_key="order-12345", ) ) print(f"Message key: {result.message_key}") ``` ### create_admin_user() ```python def create_admin_user(*, data, **kwargs) ``` Create admin user > Creates a new user and assigns the admin role to it. This endpoint is only usable when users are > managed in the Orchestration Cluster and while no user is assigned to the admin role. **Parameters:** | Parameter | Type | Description | | --------- | ------------- | ----------- | | `data` | `UserRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A user with this username already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserCreateResult - **Return type:** UserCreateResult #### Examples **Create an admin user:** ```python def create_admin_user_example(username: Username) -> None: client = CamundaClient() result = client.create_admin_user( data=UserRequest( username=username, name="Admin User", email="admin@example.com", password="admin-password", ), ) print(f"Admin user: {result.username}") ``` ### create_agent_instance() ```python def create_agent_instance(*, data, **kwargs) ``` Create agent instance > Creates a new agent instance. The returned key identifies the instance and must > be used in subsequent update and query calls. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | --------------------------------------- | | `data` | `AgentInstanceCreationRequest` | Request to create a new agent instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The elementInstanceKey does not correspond to an active element instance. More details are provided in the response body. - **errors.ConflictError** – If the response status code is 409. An agent instance already exists for the given element instance. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceCreationResult - **Return type:** AgentInstanceCreationResult #### Examples **Create an agent instance:** ```python def create_agent_instance_example( element_instance_key: ElementInstanceKey, job_key: JobKey, # Engine-minted: take the token from the job activation response, never build one. job_lease_token: JobLeaseToken, ) -> None: client = CamundaClient() result = client.create_agent_instance( data=AgentInstanceCreationRequest( element_instance_key=element_instance_key, job_key=job_key, job_lease_token=job_lease_token, history=[ # A CONFIGURATION item is mandatory on creation; it carries the model, # provider and system prompt in role-specific fields, not in content. AgentInstanceHistoryItem( history_item_id=HistoryItemId("configuration-1"), loop_iteration=1, role=AgentInstanceHistoryItemRole.CONFIGURATION, content=[], produced_at=datetime.datetime.now(datetime.timezone.utc), model="gpt-4o", provider="openai", system_prompt=[ TextContent(content_type="TEXT", text="You are a helpful assistant."), ], limits=AgentInstanceHistoryItemLimits( max_model_calls=10, max_tool_calls=20, max_tokens=100_000, ), ), ], ), ) print(f"Created agent instance: {result.agent_instance_key}") ``` ### create_authorization() ```python def create_authorization(*, data, **kwargs) ``` Create authorization > Create the authorization. **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------------------------- | ----------- | | `data` | `AuthorizationIdBasedRequest` \| `AuthorizationPropertyBasedRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The owner was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationCreateResult - **Return type:** AuthorizationCreateResult #### Examples **Create an authorization:** ```python def create_authorization_example() -> None: client = CamundaClient() result = client.create_authorization( data=AuthorizationIdBasedRequest( resource_type=AuthorizationIdBasedRequestResourceType.PROCESS_DEFINITION, permission_types=[ AuthorizationIdBasedRequestPermissionTypesItem.READ, AuthorizationIdBasedRequestPermissionTypesItem.UPDATE, ], resource_id="my-process", owner_type=OwnerTypeEnum.USER, owner_id="user@example.com", ), ) print(f"Authorization key: {result.authorization_key}") ``` ### create_deployment() ```python def create_deployment(*, data, **kwargs) ``` Deploy resources > Deploys one or more resources, including BPMN processes, DMN decision models, forms, RPA resources, > and generic files. > A deployment can contain any file type. Files that are not interpreted as BPMN, DMN, form, or RPA > resources are stored as deployable generic resources in the engine. > This is an atomic call, i.e. either all resources are deployed or none of them are. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `CreateDeploymentData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DeploymentResult - **Return type:** DeploymentResult #### Examples **From files:** ```python def deploy_resources_example() -> None: client = CamundaClient() result = client.deploy_resources_from_files( ["order-process.bpmn", "decision.dmn"] ) print(f"Deployment key: {result.deployment_key}") for process in result.processes: print( f" Process: {process.process_definition_id} v{process.process_definition_version}" ) for decision in result.decisions: print(f" Decision: {decision.decision_definition_id}") ``` **With tenant ID:** ```python def deploy_resources_with_tenant_example() -> None: client = CamundaClient() result = client.deploy_resources_from_files( ["order-process.bpmn"], tenant_id="my-tenant", ) print(f"Deployment key: {result.deployment_key}") print(f"Tenant: {result.tenant_id}") ``` ### create_document() ```python def create_document(*, data, store_id=, document_id=, **kwargs) ``` Upload document > Upload a document to the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ------------- | -------------------- | ------------------------------------------------ | | `store_id` | `str` \| `Unset` | | | `document_id` | `str` \| `Unset` | Document Id that uniquely identifies a document. | | `data` | `CreateDocumentData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnsupportedMediaTypeError** – If the response status code is 415. The server cannot process the request because the media type (Content-Type) of the request payload is not supported by the server for the requested resource and method. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentReference - **Return type:** DocumentReference #### Examples **Create a document:** ```python def create_document_example() -> None: client = CamundaClient() result = client.create_document( data=CreateDocumentData( file=File(payload=io.BytesIO(b"hello world"), file_name="example.txt"), ), ) print(f"Document ID: {result.document_id}") ``` ### create_document_link() ```python def create_document_link(document_id, *, data, store_id=, content_hash=, **kwargs) ``` Create document link > Create a link to a document in the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP **Parameters:** | Parameter | Type | Description | | -------------- | --------------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `content_hash` | `str` \| `Unset` | | | `data` | `DocumentLinkRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentLink - **Return type:** DocumentLink #### Examples **Create a document link:** ```python def create_document_link_example(document_id: DocumentId) -> None: client = CamundaClient() result = client.create_document_link( document_id=document_id, data=DocumentLinkRequest(), ) print(f"Document link: {result.url}") ``` ### create_documents() ```python def create_documents(*, data, store_id=, **kwargs) ``` Upload multiple documents > Upload multiple documents to the Camunda 8 cluster. > > The caller must provide a file name for each document, which will be used in case of a multi-status > response > to identify which documents failed to upload. The file name can be provided in the Content- > Disposition header > of the file part or in the fileName field of the metadata. You can add a parallel array of > metadata objects. These > are matched with the files based on index, and must have the same length as the files array. > To pass homogenous metadata for all files, spread the metadata over the metadata array. > A filename value provided explicitly via the metadata array in the request overrides the Content- > Disposition header > of the file part. > > In case of a multi-status response, the response body will contain a list of > DocumentBatchProblemDetail objects, > each of which contains the file name of the document that failed to upload and the reason for the > failure. > The client can choose to retry the whole batch or individual documents based on the response. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ---------- | --------------------- | ----------- | | `store_id` | `str` \| `Unset` | | | `data` | `CreateDocumentsData` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnsupportedMediaTypeError** – If the response status code is 415. The server cannot process the request because the media type (Content-Type) of the request payload is not supported by the server for the requested resource and method. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DocumentCreationBatchResponse - **Return type:** DocumentCreationBatchResponse #### Examples **Create documents:** ```python def create_documents_example() -> None: client = CamundaClient() result = client.create_documents( data=CreateDocumentsData( files=[ File(payload=io.BytesIO(b"file one"), file_name="one.txt"), File(payload=io.BytesIO(b"file two"), file_name="two.txt"), ], ), ) if not isinstance(result.created_documents, Unset): for doc in result.created_documents: print(f"Created document: {doc.document_id}") ``` ### create_element_instance_variables() ```python def create_element_instance_variables(element_instance_key, *, data, **kwargs) ``` Update element instance variables > Updates all the variables of a particular scope (for example, process instance, element instance) > with the given variable data. > Specify the element instance in the elementInstanceKey parameter. > Variable updates can be delayed by listener-related processing; if processing exceeds the > request timeout, this endpoint can return 504. Other gateway timeout causes are also > possible. Retry with backoff and inspect listener worker availability and logs when this > repeats. **Parameters:** | Parameter | Type | Description | | ---------------------- | -------------------- | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `SetVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Create element instance variables:** ```python def create_element_instance_variables_example( element_instance_key: ElementInstanceKey, ) -> None: client = CamundaClient() variables = SetVariableRequestVariables.from_dict({"myVar": "myValue"}) client.create_element_instance_variables( element_instance_key=element_instance_key, data=SetVariableRequest( variables=variables, ), ) ``` ### create_global_cluster_variable() ```python def create_global_cluster_variable(*, data, **kwargs) ``` Create a global-scoped cluster variable > Create a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `data` | `CreateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A cluster variable with this name already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Create a global cluster variable:** ```python def create_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.create_global_cluster_variable( data=CreateClusterVariableRequest( name=name, value={"key": "my-value"}, ), ) print(f"Created variable: {result.name}") ``` ### create_global_task_listener() ```python def create_global_task_listener(*, data, **kwargs) ``` Create global user task listener > Create a new global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `data` | `CreateGlobalTaskListenerRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A global listener with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Create a global task listener:** ```python def create_global_task_listener_example() -> None: client = CamundaClient() result = client.create_global_task_listener( data=CreateGlobalTaskListenerRequest( id="audit-log-listener", event_types=[GlobalTaskListenerEventTypeEnum.COMPLETING], type_="my-task-listener", ), ) print(f"Task listener: {result.id}") ``` ### create_group() ```python def create_group(*, data=, **kwargs) ``` Create group > Create a new group. > > The supplied groupId is validated against \`\` ^[a-zA-Z0-9_~@.+-]+$ \`\` > (max 256 characters) by IdentifierValidator.validateId in the > runtime. This strict validation applies wherever the Groups API > is available: in OIDC deployments that set > camunda.security.authentication.oidc.groupsClaim the Groups > API (including this endpoint) is disabled entirely, so group > CRUD never sees externally-minted IdP IDs. The BYOG relaxation > only loosens validation when a group is referenced _as a member_ > of a role or tenant (assignRoleToGroup, > assignGroupToTenant); group CRUD itself always uses the strict > default-id regex. The constraint is not advertised on the > GroupId schema so that the same schema can be reused at > member-reference sites without falsely rejecting > externally-minted IdP group IDs there. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------- | ----------- | | `data` | `GroupCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. Group with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupCreateResult - **Return type:** GroupCreateResult #### Examples **Create a group:** ```python def create_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.create_group( data=GroupCreateRequest(group_id=group_id, name="Engineering"), ) print(f"Group: {result.group_id}") ``` ### create_mapping_rule() ```python def create_mapping_rule(*, data=, **kwargs) ``` Create mapping rule > Create a new mapping rule **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------- | ----------- | | `data` | `MappingRuleCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The request to create a mapping rule was denied. More details are provided in the response body. - **errors.NotFoundError** – If the response status code is 404. The request to create a mapping rule was denied. - **errors.ConflictError** – If the response status code is 409. Mapping rule with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleCreateResult - **Return type:** MappingRuleCreateResult #### Examples **Create a mapping rule:** ```python def create_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() result = client.create_mapping_rule( data=MappingRuleCreateRequest( mapping_rule_id=mapping_rule_id, claim_name="groups", claim_value="engineering", name="Engineering Group Mapping", ), ) print(f"Mapping rule: {result.mapping_rule_id}") ``` ### create_process_instance() ```python def create_process_instance(*, data, **kwargs) ``` Create process instance > Creates and starts an instance of the specified process. > > The process definition to use to create the instance can be specified either using its unique key > (as returned by Deploy resources), or using the BPMN process id and a version. > If only the process definition id is given, the latest ACTIVE version is used. > If no ACTIVE version exists, the request is rejected as not found. > > Waits for the completion of the process instance before returning a result > when awaitCompletion is enabled. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `data` | `ProcessCreationById` \| `ProcessCreationByKey` | Instructions for creating a process instance. The process definition can be specified either by id or by key. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ConflictError** – If the response status code is 409. The process instance creation was rejected due to a business ID uniqueness conflict. This can happen only when Business ID Uniqueness Control is enabled and an active root process instance with the provided business ID already exists for the same process definition and tenant. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The process instance creation request timed out in the gateway. This can happen if the awaitCompletion request parameter is set to true and the created process instance did not complete within the defined request timeout. This often happens when the created instance is not fully automated or contains wait states. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CreateProcessInstanceResult - **Return type:** CreateProcessInstanceResult #### Examples **By key:** ```python def create_process_instance_by_key_example() -> None: client = CamundaClient() # Deploy a process and obtain the typed key from the response deployment = client.deploy_resources_from_files(["order-process.bpmn"]) process_key = deployment.processes[0].process_definition_key # Use the typed key directly — no manual string lifting needed result = client.create_process_instance( data=ProcessCreationByKey( process_definition_key=process_key, ) ) print(f"Process instance key: {result.process_instance_key}") ``` **By stored key:** ```python def create_process_instance_by_key_from_storage_example() -> None: client = CamundaClient() # When restoring a key from a database or message queue, # wrap the raw string with the semantic type constructor: stored_key = "2251799813685249" # e.g. from a DB row result = client.create_process_instance( data=ProcessCreationByKey( process_definition_key=ProcessDefinitionKey(stored_key), ) ) print(f"Process instance key: {result.process_instance_key}") ``` **By ID:** ```python def create_process_instance_by_id_example(process_definition_id: ProcessDefinitionId) -> None: client = CamundaClient() result = client.create_process_instance( data=ProcessCreationById( process_definition_id=process_definition_id, ) ) print(f"Process instance key: {result.process_instance_key}") ``` ### create_role() ```python def create_role(*, data=, **kwargs) ``` Create role > Create a new role. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ----------- | | `data` | `RoleCreateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. Role with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleCreateResult - **Return type:** RoleCreateResult #### Examples **Create a role:** ```python def create_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.create_role( data=RoleCreateRequest(role_id=role_id, name="Developer"), ) print(f"Role: {result.role_id}") ``` ### create_tenant() ```python def create_tenant(*, data, **kwargs) ``` Create tenant > Creates a new tenant. **Parameters:** | Parameter | Type | Description | | --------- | --------------------- | ----------- | | `data` | `TenantCreateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The resource was not found. - **errors.ConflictError** – If the response status code is 409. Tenant with this id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantCreateResult - **Return type:** TenantCreateResult #### Examples **Create a tenant:** ```python def create_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.create_tenant( data=TenantCreateRequest( tenant_id=tenant_id, name="Acme Corporation", ), ) print(f"Tenant: {result.tenant_id}") ``` ### create_tenant_cluster_variable() ```python def create_tenant_cluster_variable(tenant_id, *, data, **kwargs) ``` Create a tenant-scoped cluster variable > Create a new cluster variable for the given tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `CreateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant with the given ID was not found. - **errors.ConflictError** – If the response status code is 409. A cluster variable with this name already exists for the given tenant. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Create a tenant cluster variable:** ```python def create_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.create_tenant_cluster_variable( tenant_id=tenant_id, data=CreateClusterVariableRequest( name=name, value={"key": "tenant-value"}, ), ) print(f"Created variable: {result.name}") ``` ### create_user() ```python def create_user(*, data, **kwargs) ``` Create user > Create a new user. **Parameters:** | Parameter | Type | Description | | --------- | ------------- | ----------- | | `data` | `UserRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A user with this username already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserCreateResult - **Return type:** UserCreateResult #### Examples **Create a user:** ```python def create_user_example(username: Username) -> None: client = CamundaClient() result = client.create_user( data=UserRequest( username=username, name="Jane Doe", email="jdoe@example.com", password="secure-password", ), ) print(f"Created user: {result.username}") ``` ### delete_authorization() ```python def delete_authorization(authorization_key, **kwargs) ``` Delete authorization > Deletes the authorization with the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | ----- | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The authorization with the authorizationKey was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete an authorization:** ```python def delete_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() client.delete_authorization( authorization_key=authorization_key, ) ``` ### delete_decision_instance() ```python def delete_decision_instance(decision_evaluation_key, *, data=, **kwargs) ``` Delete decision instance > Delete all associated decision evaluations based on provided key. **Parameters:** | Parameter | Type | Description | | ------------------------- | ---------------------------------------------------- | -------------------------------------------------------------------------- | | `decision_evaluation_key` | `str` | System-generated key for a decision evaluation. Example: 2251792362345323. | | `data` | `DeleteDecisionInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a decision instance:** ```python def delete_decision_instance_example(decision_evaluation_key: DecisionEvaluationKey) -> None: client = CamundaClient() client.delete_decision_instance( decision_evaluation_key=decision_evaluation_key, ) ``` ### delete_decision_instances_batch_operation() ```python def delete_decision_instances_batch_operation(*, data, **kwargs) ``` Delete decision instances (batch) > Delete multiple decision instances. This will delete the historic data from secondary storage. > > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ------------------------------------------------------------------------------------- | | `data` | `DecisionInstanceDeletionBatchOperationRequest` | The decision instance filter that defines which decision instances should be deleted. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The decision instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Delete decision instances in batch:** ```python def delete_decision_instances_batch_operation_example() -> None: client = CamundaClient() result = client.delete_decision_instances_batch_operation( data=DecisionInstanceDeletionBatchOperationRequest( filter_=DecisionInstanceDeletionBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### delete_document() ```python def delete_document(document_id, *, store_id=, **kwargs) ``` Delete document > Delete a document from the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | ------------- | ---------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.NotFoundError** – If the response status code is 404. The document with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a document:** ```python def delete_document_example(document_id: DocumentId) -> None: client = CamundaClient() client.delete_document(document_id=document_id) ``` ### delete_global_cluster_variable() ```python def delete_global_cluster_variable(name, **kwargs) ``` Delete a global-scoped cluster variable > Delete a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | --------- | ----- | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a global cluster variable:** ```python def delete_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() client.delete_global_cluster_variable(name=name) ``` ### delete_global_task_listener() ```python def delete_global_task_listener(id, **kwargs) ``` Delete global user task listener > Deletes a global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | ----- | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a global task listener:** ```python def delete_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() client.delete_global_task_listener(id=listener_id) ``` ### delete_group() ```python def delete_group(group_id, **kwargs) ``` Delete group > Deletes the group with the given ID. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a group:** ```python def delete_group_example(group_id: GroupId) -> None: client = CamundaClient() client.delete_group(group_id=group_id) ``` ### delete_history_backup() ```python def delete_history_backup(backup_id, **kwargs) ``` Delete history backup > Deletes the history backup with the given id, by deleting every snapshot that makes it > up. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a history backup:** ```python def delete_history_backup_example(backup_id: int) -> None: client = CamundaClient() client.delete_history_backup(backup_id=backup_id) ``` ### delete_history_backup_as_cluster_admin() ```python def delete_history_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Delete a history backup across physical tenants > Deletes the history backup with the given id from every physical tenant of the cluster, or from the > one named by physicalTenantId. A tenant that does not hold the backup has already reached the > requested end state, so it counts as deleted rather than as a failure. > > The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole > request, and the deletions that already succeeded on other tenants are not undone. Narrow the > request with physicalTenantId to delete from the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use DELETE /v2/backups/history/{backupId} > to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. Deletion fans out with no preceding check, so an absent repository is found only once that tenant is reached, by which time the backup may already be deleted from the others; those deletions are not undone. Narrow the request with physicalTenantId to work with the tenants whose repository is usable. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was reached and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be deleted from every targeted physical tenant, because one of them hit an internal error, so it may still exist on some of them. The deletions that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a history backup across physical tenants:** ```python def delete_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Deletes the backup from every physical tenant. A tenant that does not hold # it already counts as deleted, so this is idempotent when all tenants are # reachable. Use `physical_tenant_id` to narrow to a single tenant. client.delete_history_backup_as_cluster_admin(backup_id=backup_id) ``` ### delete_mapping_rule() ```python def delete_mapping_rule(mapping_rule_id, **kwargs) ``` Delete a mapping rule > Deletes the mapping rule with the given ID. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The mapping rule with the mappingRuleId was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a mapping rule:** ```python def delete_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.delete_mapping_rule(mapping_rule_id=mapping_rule_id) ``` ### delete_process_instance() ```python def delete_process_instance(process_instance_key, *, data=, **kwargs) ``` Delete process instance > Deletes a process instance. Only instances that are completed or terminated can be deleted. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `DeleteProcessInstanceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in a completed or terminated state and cannot be deleted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a process instance:** ```python def delete_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.delete_process_instance( process_instance_key=process_instance_key, ) ``` ### delete_process_instances_batch_operation() ```python def delete_process_instances_batch_operation(*, data, **kwargs) ``` Delete process instances (batch) > Delete multiple process instances. This will delete the historic data from secondary storage. > > Only process instances in a final state (COMPLETED or TERMINATED) can be deleted. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ---------------------------------------------- | ----------------------------------------------------------------------------------- | | `data` | `ProcessInstanceDeletionBatchOperationRequest` | The process instance filter that defines which process instances should be deleted. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Delete process instances in batch:** ```python def delete_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.delete_process_instances_batch_operation( data=ProcessInstanceDeletionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### delete_resource() ```python def delete_resource(resource_key, *, data=, **kwargs) ``` Delete resource > Deletes a deployed resource. This can be a process definition, decision requirements > definition, or form definition deployed using the deploy resources endpoint. Specify the > resource you want to delete in the resourceKey parameter. > > Once a resource has been deleted it cannot be recovered. If the resource needs to be > available again, a new deployment of the resource is required. > > By default, only the resource itself is deleted from the runtime state. To also delete the > historic data associated with a resource, set the deleteHistory flag in the request body > to true. History deletion is supported for process definitions and decision requirements > definitions; for other resource types (forms, generic resources) the flag is ignored and no > history is deleted. > > The two supported types differ in how the history is removed. For a decision requirements > definition the history is deleted asynchronously via a batch operation whose details are > returned in the batchOperation field of the response. For a process definition that still > exists in the runtime state, the definition first drains its running instances and its > history is deleted asynchronously once the definition is fully removed cluster-wide; no batch > operation is returned in the response. If the process definition has already been removed > from the runtime state and the deletion is later re-triggered with deleteHistory set to > true, a batch operation is created immediately and returned in the batchOperation field. **Parameters:** | Parameter | Type | Description | | -------------- | -------------------------------------------- | ------------------------------------------ | | `resource_key` | `str` | The system-assigned key for this resource. | | `data` | `DeleteResourceRequest` \| `None` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The resource is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DeleteResourceResponse - **Return type:** DeleteResourceResponse #### Examples **Delete a resource:** ```python def delete_resource_example() -> None: client = CamundaClient() # Use a resource key from a previous deployment response client.delete_resource(resource_key="2251799813685249") ``` ### delete_role() ```python def delete_role(role_id, **kwargs) ``` Delete role > Deletes the role with the given ID. **Parameters:** | Parameter | Type | Description | | --------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The role with the ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a role:** ```python def delete_role_example(role_id: RoleId) -> None: client = CamundaClient() client.delete_role(role_id=role_id) ``` ### delete_runtime_backup() ```python def delete_runtime_backup(backup_id, **kwargs) ``` Delete runtime backup > Deletes the runtime backup with the given id. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a runtime backup:** ```python def delete_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() client.delete_runtime_backup(backup_id=backup_id) ``` ### delete_runtime_backup_as_cluster_admin() ```python def delete_runtime_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Delete a runtime backup across physical tenants > Deletes the runtime backup with the given id from every physical tenant of the cluster, or from the > one named by physicalTenantId. A tenant that does not hold the backup has already reached the > requested end state, so it counts as deleted rather than as a failure — the same as deleting an > unknown backup id through the per-physical-tenant endpoint. > > The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole > request, and the deletions that already succeeded on other tenants are not undone. Narrow the > request with physicalTenantId to delete from the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use DELETE > /v2/backups/runtime/{backupId} to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be deleted from every targeted physical tenant, so it may still exist on some of them. The deletions that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a runtime backup across physical tenants:** ```python def delete_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Deletes the backup from every physical tenant. A tenant that does not hold # it already counts as deleted, so this is idempotent when all tenants are # reachable. Use `physical_tenant_id` to narrow to a single tenant. client.delete_runtime_backup_as_cluster_admin(backup_id=backup_id) ``` ### delete_runtime_backup_state() ```python def delete_runtime_backup_state(**kwargs) ``` Delete runtime backup state > Resets the runtime backup state of every partition of the physical tenant, clearing > all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when > switching backup stores. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Delete the runtime backup state:** ```python def delete_runtime_backup_state_example() -> None: client = CamundaClient() # Clears all checkpoint info, backup info, checkpoint metadata, and backup # ranges of every partition. Used when switching backup stores. client.delete_runtime_backup_state() ``` ### delete_runtime_backup_state_as_cluster_admin() ```python def delete_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Delete runtime backup state across physical tenants > Resets the runtime backup state of every partition of every physical tenant of the cluster, or of > the one named by physicalTenantId, clearing all checkpoint info, backup info, checkpoint metadata, > and backup ranges. Used when switching backup stores. > > The request is all-or-nothing: a physical tenant whose state cannot be reset fails the whole > request, and the resets that already succeeded on other tenants are not undone. Narrow the request > with physicalTenantId to reset the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use DELETE > /v2/backups/runtime/state to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. The state could not be reset on every targeted physical tenant, so it may still be set on some of them. The resets that already succeeded are not undone, so a retry has only the remaining tenants left to reach. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete runtime backup state across physical tenants:** ```python def delete_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Clears all checkpoint info, backup info, checkpoint metadata, and backup # ranges of every partition of every physical tenant. Used when switching # backup stores. Use `physical_tenant_id` to narrow to a single tenant. client.delete_runtime_backup_state_as_cluster_admin() ``` ### delete_tenant() ```python def delete_tenant(tenant_id, **kwargs) ``` Delete tenant > Deletes an existing tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a tenant:** ```python def delete_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() client.delete_tenant(tenant_id=tenant_id) ``` ### delete_tenant_cluster_variable() ```python def delete_tenant_cluster_variable(tenant_id, name, **kwargs) ``` Delete a tenant-scoped cluster variable > Delete a tenant-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a tenant cluster variable:** ```python def delete_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() client.delete_tenant_cluster_variable( tenant_id=tenant_id, name=name, ) ``` ### delete_user() ```python def delete_user(username, **kwargs) ``` Delete user > Deletes a user. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Delete a user:** ```python def delete_user_example(username: Username) -> None: client = CamundaClient() client.delete_user(username=username) ``` ### deploy_resources_from_files() ```python def deploy_resources_from_files(files, tenant_id=None) ``` Deploy BPMN/DMN/Form resources from local files. This is a convenience wrapper around [`create_deployment()`](#create_deployment) that: - Reads each path in `files` as bytes. - Wraps the bytes in `camunda_orchestration_sdk.types.File` using the file’s basename as `file_name`. - Builds `camunda_orchestration_sdk.models.CreateDeploymentData` and calls [`create_deployment()`](#create_deployment). - Returns an `ExtendedDeploymentResult`, which is the deployment response plus convenience lists (`processes`, `decisions`, `decision_requirements`, `forms`). **Parameters:** | Parameter | Type | Description | | ----------- | ------------------- | ------------------------------------------------------------------------ | | `files` | list [str \| Path ] | File paths (`str` or `Path`) to deploy. | | `tenant_id` | `str` \| `None` | Optional tenant identifier. If not provided, the default tenant is used. | - **Returns:** The deployment result with extracted resource lists. - **Return type:** ExtendedDeploymentResult - **Raises:** - **FileNotFoundError** – If any file path does not exist. - **PermissionError** – If any file path cannot be read. - **IsADirectoryError** – If any file path is a directory. - **OSError** – For other I/O failures while reading files. - **Exception** – Propagates any exception raised by [`create_deployment()`](#create_deployment) (including typed API errors in `camunda_orchestration_sdk.errors` and `httpx.TimeoutException`). ### evaluate_conditionals() ```python def evaluate_conditionals(*, data, **kwargs) ``` Evaluate root level conditional start events > Evaluates root-level conditional start events for process definitions. > > If the evaluation is successful, it will return the keys of all created process instances, along > with their associated process definition key. > Multiple root-level conditional start events of the same process definition can trigger if their > conditions evaluate to true. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------------------- | ----------- | | `data` | `ConditionalEvaluationInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The client is not authorized to start process instances for the specified process definition. If a processDefinitionKey is not provided, this indicates that the client is not authorized to start process instances for at least one of the matched process definitions. - **errors.NotFoundError** – If the response status code is 404. The process definition was not found for the given processDefinitionKey. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** EvaluateConditionalResult - **Return type:** EvaluateConditionalResult #### Examples **Evaluate conditionals:** ```python def evaluate_conditionals_example() -> None: client = CamundaClient() result = client.evaluate_conditionals( data=ConditionalEvaluationInstruction( variables=ConditionalEvaluationInstructionVariables.from_dict({"orderReady": True}), ), ) print(f"Result: {result}") ``` ### evaluate_decision() ```python def evaluate_decision(*, data, **kwargs) ``` Evaluate decision > Evaluates a decision. > > You specify the decision to evaluate either by using its unique key (as returned by > DeployResource), or using the decision ID. When using the decision ID, the latest deployed > version of the decision is used. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------------- | ----------- | | `data` | `DecisionEvaluationByID` \| `DecisionEvaluationByKey` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The decision is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** EvaluateDecisionResult - **Return type:** EvaluateDecisionResult #### Examples **By key:** ```python def evaluate_decision_by_key_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() result = client.evaluate_decision( data=DecisionEvaluationByKey( decision_definition_key=decision_definition_key, ) ) print(f"Decision key: {result.decision_definition_key}") ``` **By ID:** ```python def evaluate_decision_by_id_example(decision_definition_id: DecisionDefinitionId) -> None: client = CamundaClient() result = client.evaluate_decision( data=DecisionEvaluationByID( decision_definition_id=decision_definition_id, ) ) print(f"Decision key: {result.decision_definition_key}") ``` ### evaluate_expression() ```python def evaluate_expression(*, data, **kwargs) ``` Evaluate an expression > Evaluates a FEEL expression and returns the result. Supports references to tenant scoped > cluster variables when a tenant ID is provided. Optionally, provide a scopeKey to make the > variables of a specific process instance or element instance visible while evaluating the > expression. **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------- | ----------- | | `data` | `ExpressionEvaluationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExpressionEvaluationResult - **Return type:** ExpressionEvaluationResult #### Examples **Evaluate an expression:** ```python def evaluate_expression_example() -> None: client = CamundaClient() result = client.evaluate_expression( data=ExpressionEvaluationRequest( expression="= 1 + 2", ), ) print(f"Result: {result.result}") ``` ### fail_job() ```python def fail_job(job_key, *, data=, **kwargs) ``` Fail job > Mark the job as failed. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobFailRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given jobKey is not found. It was completed by another worker, or the process instance itself was canceled. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state (i.e: not ACTIVATED or ACTIVATABLE). The job was failed by another worker with retries = 0, and the process is now in an incident state. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Fail a job with retry:** ```python def fail_job_example(job_key: JobKey) -> None: client = CamundaClient() client.fail_job( job_key=job_key, data=JobFailRequest( retries=2, error_message="Payment gateway timeout", retry_back_off=5000, ), ) ``` ### get_agent_definition() ```python def get_agent_definition(agent_definition_key, *, consistency=None, **kwargs) ``` Get agent definition > Returns an agent definition by key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ------------------------------------------------------------------------ | | `agent_definition_key` | `str` | System-generated key for an agent definition. Example: 2251799813691958. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentDefinitionResult - **Return type:** AgentDefinitionResult #### Examples **Get an agent definition:** ```python def get_agent_definition_example(agent_definition_key: AgentDefinitionKey) -> None: client = CamundaClient() agent_definition = client.get_agent_definition( agent_definition_key=agent_definition_key ) print(f"Agent definition name: {agent_definition.name}") ``` ### get_agent_instance() ```python def get_agent_instance(agent_instance_key, *, consistency=None, **kwargs) ``` Get agent instance > Returns agent instance as JSON. **Parameters:** | Parameter | Type | Description | | -------------------- | ------------------------------ | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceResult - **Return type:** AgentInstanceResult #### Examples **Get an agent instance:** ```python def get_agent_instance_example(agent_instance_key: AgentInstanceKey) -> None: client = CamundaClient() agent_instance = client.get_agent_instance(agent_instance_key=agent_instance_key) print(f"Agent instance status: {agent_instance.status}") ``` ### get_audit_log() ```python def get_audit_log(audit_log_key, *, consistency=None, **kwargs) ``` Get audit log > Get an audit log entry by auditLogKey. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------------------------------------------ | | `audit_log_key` | `str` | System-generated key for an audit log entry. Example: 22517998136843567. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The audit log with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogResult - **Return type:** AuditLogResult #### Examples **Get an audit log entry:** ```python def get_audit_log_example(audit_log_key: AuditLogKey) -> None: client = CamundaClient() result = client.get_audit_log(audit_log_key=audit_log_key) print(f"Audit log: {result.audit_log_key}") ``` ### get_authentication() ```python def get_authentication(**kwargs) ``` Get current user > Retrieves the current authenticated user. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CamundaUserResult - **Parameters:** **kwargs** (_Any_) - **Return type:** CamundaUserResult #### Examples **Get authentication info:** ```python def get_authentication_example() -> None: client = CamundaClient() result = client.get_authentication() print(f"Authenticated user: {result.username}") ``` ### get_authorization() ```python def get_authorization(authorization_key, *, consistency=None, **kwargs) ``` Get authorization > Get authorization by the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | ------------------------------ | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The authorization with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationResult - **Return type:** AuthorizationResult #### Examples **Get an authorization:** ```python def get_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() result = client.get_authorization( authorization_key=authorization_key, ) print(f"Resource type: {result.resource_type}") ``` ### get_batch_operation() ```python def get_batch_operation(batch_operation_key, *, consistency=None, **kwargs) ``` Get batch operation > Get batch operation by key. **Parameters:** | Parameter | Type | Description | | --------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The batch operation is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationResponse - **Return type:** BatchOperationResponse #### Examples **Get a batch operation:** ```python def get_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() result = client.get_batch_operation( batch_operation_key=batch_operation_key, ) print(f"Batch operation: {result.batch_operation_key}") ``` ### get_cluster_exporting_status() ```python def get_cluster_exporting_status(**kwargs) ``` Get exporting status of the whole cluster > Returns the exporting status of the whole cluster, folded over the exporting status of every > physical tenant. Only PAUSED and SOFT_PAUSED confirm that exporting is paused cluster-wide; > every other value means at least one physical tenant is not paused, so callers should keep polling. > A physical tenant that itself reports MIXED makes the whole cluster MIXED. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExportingStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ExportingStatusResponse #### Examples **Get exporting status for the whole cluster:** ```python def get_cluster_exporting_status_example() -> None: client = CamundaClient() # Requires the cluster-admin security chain — not the Orchestration Cluster # user credentials. Only `PAUSED` and `SOFT_PAUSED` confirm a cluster-wide # pause; any other value means at least one physical tenant is still active. result = client.get_cluster_exporting_status() print(f"Cluster exporting status: {result.status}") ``` ### get_cluster_rebalance() ```python def get_cluster_rebalance(**kwargs) ``` Report the cluster’s current leadership balance > Reports whether the cluster is currently balanced, the current leadership state of every partition, > and what became of the last rebalance to finish. The last completed rebalance is held in memory by > the coordinating broker, so none will be reported if the coordinator has moved or restarted since > the last rebalance. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterBalanceResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterBalanceResponse #### Examples **Get the current cluster rebalance status:** ```python def get_cluster_rebalance_example() -> None: client = CamundaClient() # Poll this endpoint after triggering a rebalance to monitor progress. result: ClusterBalanceResponse = client.get_cluster_rebalance() print(f"Cluster balance state: {result.state}") if result.running_rebalance is not None: print(f"Running rebalance in progress: {result.running_rebalance}") if result.last_completed_rebalance is not None: print(f"Last completed rebalance: {result.last_completed_rebalance}") for partition in result.partitions: print(f" Partition {partition.partition_id}: {partition.state}") ``` ### get_cluster_status() ```python def get_cluster_status(**kwargs) ``` Get the status of the whole cluster > Checks the health status of the whole cluster, aggregated over all physical tenants. Returns > HEALTHY when every physical tenant is healthy, DOWN when no physical tenant can process work, > and DEGRADED in every other case. No per-tenant detail is reported; use GET /cluster/v2/topology > for that. > > This endpoint is public and requires no authentication, unlike PATCH /cluster/v2/mode below, which > needs cluster-admin credentials. - **Raises:** - **errors.ServiceUnavailableError** – If the response status code is 503. The cluster is DOWN because no physical tenant can process work. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterStatusResponse #### Examples **Get cluster status:** ```python def get_cluster_status_example() -> None: client = CamundaClient() result = client.get_cluster_status() print(f"Cluster status: {result.status}") ``` ### get_cluster_topology() ```python def get_cluster_topology(**kwargs) ``` Get the topology of the whole cluster > Obtains the topology of the whole cluster, aggregated over all physical tenants. Cluster-level > information is reported once; partition layout, replication and per-partition role, health and state > are reported per physical tenant. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET /v2/topology for > the topology of a single physical tenant. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTopologyResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterTopologyResponse #### Examples **Get cluster topology (cluster admin):** ```python def get_cluster_topology_example() -> None: client = CamundaClient() # Returns cluster-wide topology aggregated over all physical tenants. # Use GET /v2/topology for the topology of a single physical tenant. result = client.get_cluster_topology() print(f"Cluster {result.cluster_id or 'unknown'}: {result.cluster_size} brokers") print(f"Gateway version: {result.gateway_version}") for tenant in result.physical_tenants: print(f" Physical tenant: {tenant.physical_tenant_id}") ``` ### get_cluster_upgrade_status() ```python def get_cluster_upgrade_status(**kwargs) ``` Get the upgrade-readiness status of the whole cluster > Reports one overall upgrade-readiness status for the whole cluster, folded over every physical > tenant and condition. MIGRATED only once every known condition has migrated for every known > physical tenant; MIGRATION_IN_PROGRESS when at least one is confirmed not yet migrated; UNKNOWN > otherwise (including before anything has been reported yet). No per-tenant or per-condition detail > is reported here; see the upgradeReadiness actuator endpoint for that. - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterUpgradeStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ClusterUpgradeStatusResponse #### Examples **Get cluster upgrade readiness status:** ```python def get_cluster_upgrade_status_example() -> None: client = CamundaClient() result = client.get_cluster_upgrade_status() print(f"Cluster upgrade readiness: {result.status.value}") ``` ### get_decision_definition() ```python def get_decision_definition(decision_definition_key, *, consistency=None, **kwargs) ``` Get decision definition > Returns a decision definition by key. **Parameters:** | Parameter | Type | Description | | ------------------------- | ------------------------------ | -------------------------------------------------------------------------- | | `decision_definition_key` | `str` | System-generated key for a decision definition. Example: 2251799813326547. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionDefinitionResult - **Return type:** DecisionDefinitionResult #### Examples **Get a decision definition:** ```python def get_decision_definition_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() definition = client.get_decision_definition( decision_definition_key=decision_definition_key, ) print(f"Decision: {definition.decision_definition_id}") ``` ### get_decision_definition_xml() ```python def get_decision_definition_xml(decision_definition_key, *, consistency=None, **kwargs) ``` Get decision definition XML > Returns decision definition as XML. **Parameters:** | Parameter | Type | Description | | ------------------------- | ------------------------------ | -------------------------------------------------------------------------- | | `decision_definition_key` | `str` | System-generated key for a decision definition. Example: 2251799813326547. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get decision definition XML:** ```python def get_decision_definition_xml_example(decision_definition_key: DecisionDefinitionKey) -> None: client = CamundaClient() xml = client.get_decision_definition_xml( decision_definition_key=decision_definition_key, ) print(f"XML length: {len(xml)}") ``` ### get_decision_instance() ```python def get_decision_instance(decision_evaluation_instance_key, *, consistency=None, **kwargs) ``` Get decision instance > Returns a decision instance. **Parameters:** | Parameter | Type | Description | | ---------------------------------- | ------ | ----------- | | `decision_evaluation_instance_key` | str) – | | System-generated identifier for a decision evaluation instance. It is composed of the parent decision evaluation key and the 1-based index of the evaluated decision within that evaluation, joined by a hyphen (format: -). > Example: 2251799813684367-1. - **consistency** (_ConsistencyOptions_ _|_ _None_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionInstanceGetQueryResult - **Return type:** DecisionInstanceGetQueryResult #### Examples **Get a decision instance:** ```python def get_decision_instance_example(decision_evaluation_instance_key: DecisionEvaluationInstanceKey) -> None: client = CamundaClient() result = client.get_decision_instance( decision_evaluation_instance_key=decision_evaluation_instance_key, ) print(f"Decision instance: {result.decision_definition_id}") ``` ### get_decision_requirements() ```python def get_decision_requirements(decision_requirements_key, *, consistency=None, **kwargs) ``` Get decision requirements > Returns Decision Requirements as JSON. **Parameters:** | Parameter | Type | Description | | --------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------ | | `decision_requirements_key` | `str` | System-generated key for a deployed decision requirements definition. Example: 2251799813683346. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision requirements with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionRequirementsResult - **Return type:** DecisionRequirementsResult #### Examples **Get decision requirements:** ```python def get_decision_requirements_example(decision_requirements_key: DecisionRequirementsKey) -> None: client = CamundaClient() result = client.get_decision_requirements( decision_requirements_key=decision_requirements_key, ) print(f"DRD: {result.decision_requirements_name}") ``` ### get_decision_requirements_xml() ```python def get_decision_requirements_xml(decision_requirements_key, *, consistency=None, **kwargs) ``` Get decision requirements XML > Returns decision requirements as XML. **Parameters:** | Parameter | Type | Description | | --------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------ | | `decision_requirements_key` | `str` | System-generated key for a deployed decision requirements definition. Example: 2251799813683346. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The decision requirements with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get decision requirements XML:** ```python def get_decision_requirements_xml_example(decision_requirements_key: DecisionRequirementsKey) -> None: client = CamundaClient() xml = client.get_decision_requirements_xml( decision_requirements_key=decision_requirements_key, ) print(f"XML length: {len(xml)}") ``` ### get_document() ```python def get_document(document_id, *, store_id=, content_hash=, **kwargs) ``` Download document > Download a document from the Camunda 8 cluster. > > Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non- > production), local (non-production) **Parameters:** | Parameter | Type | Description | | -------------- | ---------------- | ------------------------------------------------ | | `document_id` | `str` | Document Id that uniquely identifies a document. | | `store_id` | `str` \| `Unset` | | | `content_hash` | `str` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.NotFoundError** – If the response status code is 404. The document with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** File - **Return type:** File #### Examples **Get a document:** ```python def get_document_example(document_id: DocumentId) -> None: client = CamundaClient() result = client.get_document(document_id=document_id) print(f"File name: {result.file_name}") ``` ### get_element_instance() ```python def get_element_instance(element_instance_key, *, consistency=None, **kwargs) ``` Get element instance > Returns element instance as JSON. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The element instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceResult - **Return type:** ElementInstanceResult #### Examples **Get an element instance:** ```python def get_element_instance_example(element_instance_key: ElementInstanceKey) -> None: client = CamundaClient() result = client.get_element_instance( element_instance_key=element_instance_key, ) print(f"Element: {result.element_id}") ``` ### get_exporting_status() ```python def get_exporting_status(**kwargs) ``` Get exporting status > Returns the exporting status of the physical tenant, aggregated over every replica of > every one of its partitions. > > Because pause and resume are applied to all replicas, the status is only a single phase > if every replica reports that phase; otherwise it is MIXED, which means a pause or > resume is still in flight or was only partially applied. Backup tooling should treat > only PAUSED and SOFT_PAUSED as confirmation that exporting is paused. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ExportingStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** ExportingStatusResponse #### Examples **Get exporting status:** ```python def get_exporting_status_example() -> None: client = CamundaClient() result = client.get_exporting_status() # The status is aggregated over every replica of every partition, so `MIXED` # means a pause or resume is still in flight or was only partially applied. # Only `PAUSED` and `SOFT_PAUSED` confirm that exporting has stopped. print(f"Status: {result.status}") ``` ### get_form_by_key() ```python def get_form_by_key(form_key, *, consistency=None, **kwargs) ``` Get form by key > Get a form by its unique form key. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------------------------------------------------- | | `form_key` | `str` | System-generated key for a deployed form. Example: 2251799813684365. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The form with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get a form by key:** ```python def get_form_by_key_example(form_key: FormKey) -> None: client = CamundaClient() result = client.get_form_by_key(form_key=form_key) print(f"Form: {result.form_id}") ``` ### get_global_cluster_variable() ```python def get_global_cluster_variable(name, *, consistency=None, **kwargs) ``` Get a global-scoped cluster variable > Get a global-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Get a global cluster variable:** ```python def get_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.get_global_cluster_variable(name=name) print(f"Variable: {result.name} = {result.value}") ``` ### get_global_job_statistics() ```python def get_global_job_statistics(*, from_, to, job_type=, consistency=None, **kwargs) ``` Global job statistics > Returns global aggregated counts for jobs. Filter by the creation time window (required) and > optionally by jobType. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ----------- | | `from` | `datetime.datetime` | | | `to` | `datetime.datetime` | | | `job_type` | `str` \| `Unset` | | | `from_` | `datetime.datetime` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalJobStatisticsQueryResult - **Return type:** GlobalJobStatisticsQueryResult #### Examples **Get global job statistics:** ```python def get_global_job_statistics_example() -> None: client = CamundaClient() result = client.get_global_job_statistics( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), ) print(f"Global job stats: {result}") ``` ### get_global_task_listener() ```python def get_global_task_listener(id, *, consistency=None, **kwargs) ``` Get global user task listener > Get a global user task listener by its id. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener with the given id was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Get a global task listener:** ```python def get_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() result = client.get_global_task_listener(id=listener_id) print(f"Task listener: {result.event_types}") ``` ### get_group() ```python def get_group(group_id, *, consistency=None, **kwargs) ``` Get group > Get a group by its ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupResult - **Return type:** GroupResult #### Examples **Get a group:** ```python def get_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.get_group(group_id=group_id) print(f"Group: {result.name}") ``` ### get_history_backup() ```python def get_history_backup(backup_id, **kwargs) ``` Get history backup > Returns detailed status of the history backup with the given id. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** HistoryBackupInfo - **Return type:** HistoryBackupInfo #### Examples **Get a history backup:** ```python def get_history_backup_example(backup_id: int) -> None: client = CamundaClient() result = client.get_history_backup(backup_id=backup_id) # The aggregated state is derived from the state of every expected snapshot. print(f"History backup {result.backup_id} is {result.state.value}") ``` ### get_history_backup_as_cluster_admin() ```python def get_history_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Get a history backup across physical tenants > Reports what every physical tenant of the cluster, or the one named by physicalTenantId, holds for > the given backup id. There is no aggregated cluster-level state: a tenant that was reached and does > not hold this backup reports NOT_FOUND, which is a successful observation rather than a failure. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. > Narrow the request with physicalTenantId to read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use GET /v2/backups/history/{backupId} to > act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was read and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterHistoryBackupInfo - **Return type:** ClusterHistoryBackupInfo #### Examples **Get a history backup across physical tenants:** ```python def get_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Returns what each physical tenant reports for the given backup id. # A tenant reporting `NOT_FOUND` is a successful observation, not an error. result = client.get_history_backup_as_cluster_admin(backup_id=backup_id) print(f"Cluster history backup {result.backup_id}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: {tenant.state.value}") ``` ### get_incident() ```python def get_incident(incident_key, *, consistency=None, **kwargs) ``` Get incident > Returns incident as JSON. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `incident_key` | `str` | System-generated key for a incident. Example: 2251799813689432. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The incident with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentResult - **Return type:** IncidentResult #### Examples **Get an incident:** ```python def get_incident_example(incident_key: IncidentKey) -> None: client = CamundaClient() incident = client.get_incident(incident_key=incident_key) print(f"Incident error type: {incident.error_type}") ``` ### get_job_error_statistics() ```python def get_job_error_statistics(*, data, consistency=None, **kwargs) ``` Get error metrics for a job type > Returns aggregated metrics per error for the given jobType. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------- | | `data` | `JobErrorStatisticsQuery` | Job error statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobErrorStatisticsQueryResult - **Return type:** JobErrorStatisticsQueryResult #### Examples **Get job error statistics:** ```python def get_job_error_statistics_example() -> None: client = CamundaClient() result = client.get_job_error_statistics( data=JobErrorStatisticsQuery( filter_=JobErrorStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Error: {stat.error_code}") ``` ### get_job_time_series_statistics() ```python def get_job_time_series_statistics(*, data, consistency=None, **kwargs) ``` Get time-series metrics for a job type > Returns a list of time-bucketed metrics ordered ascending by time. > > The from and to fields select the time window of interest. > Each item in the response corresponds to one time bucket of the requested resolution. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------- | | `data` | `JobTimeSeriesStatisticsQuery` | Job time-series statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobTimeSeriesStatisticsQueryResult - **Return type:** JobTimeSeriesStatisticsQueryResult #### Examples **Get job time series statistics:** ```python def get_job_time_series_statistics_example() -> None: client = CamundaClient() result = client.get_job_time_series_statistics( data=JobTimeSeriesStatisticsQuery( filter_=JobTimeSeriesStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Time series: {stat}") ``` ### get_job_type_statistics() ```python def get_job_type_statistics(*, data, consistency=None, **kwargs) ``` Get job statistics by type > Get statistics about jobs, grouped by job type. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------- | | `data` | `JobTypeStatisticsQuery` | Job type statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobTypeStatisticsQueryResult - **Return type:** JobTypeStatisticsQueryResult #### Examples **Get job type statistics:** ```python def get_job_type_statistics_example() -> None: client = CamundaClient() result = client.get_job_type_statistics( data=JobTypeStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Job type: {stat.job_type}") ``` ### get_job_worker_statistics() ```python def get_job_worker_statistics(*, data, consistency=None, **kwargs) ``` Get job statistics by worker > Get statistics about jobs, grouped by worker, for a given job type. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ---------------------------- | | `data` | `JobWorkerStatisticsQuery` | Job worker statistics query. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobWorkerStatisticsQueryResult - **Return type:** JobWorkerStatisticsQueryResult #### Examples **Get job worker statistics:** ```python def get_job_worker_statistics_example() -> None: client = CamundaClient() result = client.get_job_worker_statistics( data=JobWorkerStatisticsQuery( filter_=JobWorkerStatisticsFilter( from_=datetime.datetime(2024, 1, 1), to=datetime.datetime(2024, 12, 31), job_type="payment-processing", ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Worker: {stat.worker}") ``` ### get_license() ```python def get_license(**kwargs) ``` Get license status > Obtains the status of the current Camunda license. - **Raises:** - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** LicenseResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** LicenseResponse #### Examples **Get license information:** ```python def get_license_example() -> None: client = CamundaClient() result = client.get_license() print(f"License type: {result.license_type}") ``` ### get_mapping_rule() ```python def get_mapping_rule(mapping_rule_id, *, consistency=None, **kwargs) ``` Get a mapping rule > Gets the mapping rule with the given ID. **Parameters:** | Parameter | Type | Description | | ----------------- | ------------------------------ | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The mapping rule with the mappingRuleId was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleResult - **Return type:** MappingRuleResult #### Examples **Get a mapping rule:** ```python def get_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() result = client.get_mapping_rule(mapping_rule_id=mapping_rule_id) print(f"Mapping rule: {result.name}") ``` ### get_process_definition() ```python def get_process_definition(process_definition_key, *, consistency=None, **kwargs) ``` Get process definition > Returns process definition as JSON. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionResult - **Return type:** ProcessDefinitionResult #### Examples **Get a process definition:** ```python def get_process_definition_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_process_definition( process_definition_key=process_definition_key, ) print(f"Process definition: {result.name}") ``` ### get_process_definition_instance_statistics() ```python def get_process_definition_instance_statistics(*, data=, consistency=None, **kwargs) ``` Get process instance statistics > Get statistics about process instances, grouped by process definition and tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionInstanceStatisticsQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionInstanceStatisticsQueryResult - **Return type:** ProcessDefinitionInstanceStatisticsQueryResult #### Examples **Get process definition instance statistics:** ```python def get_process_definition_instance_statistics_example() -> None: client = CamundaClient() result = client.get_process_definition_instance_statistics( data=ProcessDefinitionInstanceStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Definition: {stat.process_definition_id}") ``` ### get_process_definition_instance_version_statistics() ```python def get_process_definition_instance_version_statistics(*, data, consistency=None, **kwargs) ``` Get process instance statistics by version > Get statistics about process instances, grouped by version for a given process definition. > > The process definition ID must be provided as a required field in the request body filter. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionInstanceVersionStatisticsQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionInstanceVersionStatisticsQueryResult - **Return type:** ProcessDefinitionInstanceVersionStatisticsQueryResult #### Examples **Get version statistics:** ```python def get_process_definition_instance_version_statistics_example( process_definition_id: ProcessDefinitionId, ) -> None: client = CamundaClient() result = client.get_process_definition_instance_version_statistics( data=ProcessDefinitionInstanceVersionStatisticsQuery( filter_=ProcessDefinitionInstanceVersionStatisticsQueryFilter( process_definition_id=process_definition_id, ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Version: {stat.process_definition_version}") ``` ### get_process_definition_message_subscription_statistics() ```python def get_process_definition_message_subscription_statistics(*, data=, consistency=None, **kwargs) ``` Get message subscription statistics > Get message subscription statistics, grouped by process definition. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------------------- | ----------- | | `data` | `ProcessDefinitionMessageSubscriptionStatisticsQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionMessageSubscriptionStatisticsQueryResult - **Return type:** ProcessDefinitionMessageSubscriptionStatisticsQueryResult #### Examples **Get message subscription statistics:** ```python def get_process_definition_message_subscription_statistics_example() -> None: client = CamundaClient() result = client.get_process_definition_message_subscription_statistics( data=ProcessDefinitionMessageSubscriptionStatisticsQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print( f"Definition: {stat.process_definition_id}, subscriptions: {stat.active_subscriptions}" ) ``` ### get_process_definition_statistics() ```python def get_process_definition_statistics(process_definition_key, *, data=, consistency=None, **kwargs) ``` Get process definition statistics > Get statistics about elements in currently running process instances by process definition key and > search filter. **Parameters:** | Parameter | Type | Description | | ------------------------ | ---------------------------------------------------- | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `data` | `ProcessDefinitionElementStatisticsQuery` \| `Unset` | Process definition element statistics request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionElementStatisticsQueryResult - **Return type:** ProcessDefinitionElementStatisticsQueryResult #### Examples **Get process definition element statistics:** ```python def get_process_definition_statistics_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_process_definition_statistics( process_definition_key=process_definition_key, ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Element: {stat.element_id}") ``` ### get_process_definition_xml() ```python def get_process_definition_xml(process_definition_key, *, consistency=None, **kwargs) ``` Get process definition XML > Returns process definition as XML. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process definition with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** str - **Return type:** str #### Examples **Get process definition XML:** ```python def get_process_definition_xml_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() xml = client.get_process_definition_xml( process_definition_key=process_definition_key, ) print(f"XML length: {len(xml)}") ``` ### get_process_instance() ```python def get_process_instance(process_instance_key, *, consistency=None, **kwargs) ``` Get process instance > Get the process instance by the process instance key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceResult - **Return type:** ProcessInstanceResult #### Examples **Get a process instance:** ```python def get_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() result = client.get_process_instance( process_instance_key=process_instance_key, ) print(f"Process instance: {result.process_definition_id}") ``` ### get_process_instance_call_hierarchy() ```python def get_process_instance_call_hierarchy(process_instance_key, *, consistency=None, **kwargs) ``` Get call hierarchy > Returns the call hierarchy for a given process instance, showing its ancestry up to the root > instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[Any] #### Examples **Get process instance call hierarchy:** ```python def get_process_instance_call_hierarchy_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_call_hierarchy( process_instance_key=process_instance_key, ) for entry in result: print(f"Call hierarchy entry: {entry}") ``` ### get_process_instance_sequence_flows() ```python def get_process_instance_sequence_flows(process_instance_key, *, consistency=None, **kwargs) ``` Get sequence flows > Get sequence flows taken by the process instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceSequenceFlowsQueryResult - **Return type:** ProcessInstanceSequenceFlowsQueryResult #### Examples **Get process instance sequence flows:** ```python def get_process_instance_sequence_flows_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_sequence_flows( process_instance_key=process_instance_key, ) if not isinstance(result.items, Unset): for flow in result.items: print(f"Sequence flow: {flow}") ``` ### get_process_instance_statistics() ```python def get_process_instance_statistics(process_instance_key, *, consistency=None, **kwargs) ``` Get element instance statistics > Get statistics about elements by the process instance key. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceElementStatisticsQueryResult - **Return type:** ProcessInstanceElementStatisticsQueryResult #### Examples **Get process instance statistics:** ```python def get_process_instance_statistics_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_statistics( process_instance_key=process_instance_key, ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Element: {stat.element_id}, Active: {stat.active}") ``` ### get_process_instance_statistics_by_definition() ```python def get_process_instance_statistics_by_definition(*, data, consistency=None, **kwargs) ``` Get process instance statistics by definition > Returns statistics for active process instances with incidents, grouped by process > definition. The result set is scoped to a specific incident error hash code, which must be > provided as a filter in the request body. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------- | ----------- | | `data` | `IncidentProcessInstanceStatisticsByDefinitionQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentProcessInstanceStatisticsByDefinitionQueryResult - **Return type:** IncidentProcessInstanceStatisticsByDefinitionQueryResult #### Examples **Get instance statistics by definition:** ```python def get_process_instance_statistics_by_definition_example() -> None: client = CamundaClient() result = client.get_process_instance_statistics_by_definition( data=IncidentProcessInstanceStatisticsByDefinitionQuery( filter_=IncidentProcessInstanceStatisticsByDefinitionQueryFilter( error_hash_code=12345, ), ), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Definition: {stat.process_definition_key}") ``` ### get_process_instance_statistics_by_error() ```python def get_process_instance_statistics_by_error(*, data=, consistency=None, **kwargs) ``` Get process instance statistics by error > Returns statistics for active process instances that currently have active incidents, > grouped by incident error hash code. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------------------------- | ----------- | | `data` | `IncidentProcessInstanceStatisticsByErrorQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentProcessInstanceStatisticsByErrorQueryResult - **Return type:** IncidentProcessInstanceStatisticsByErrorQueryResult #### Examples **Get instance statistics by error:** ```python def get_process_instance_statistics_by_error_example() -> None: client = CamundaClient() result = client.get_process_instance_statistics_by_error( data=IncidentProcessInstanceStatisticsByErrorQuery(), ) if not isinstance(result.items, Unset): for stat in result.items: print(f"Error: {stat.error_message}") ``` ### get_process_instance_wait_state_statistics() ```python def get_process_instance_wait_state_statistics(process_instance_key, *, consistency=None, **kwargs) ``` Get wait state statistics > Get statistics about waiting element instances by the process instance key, grouped by element id. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceWaitStateStatisticsQueryResult - **Return type:** ProcessInstanceWaitStateStatisticsQueryResult #### Examples **Get process instance wait state statistics:** ```python def get_process_instance_wait_state_statistics_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.get_process_instance_wait_state_statistics( process_instance_key=process_instance_key, ) for stat in result.items: print(f"Element: {stat.element_id}, Waiting: {stat.waiting_count}") ``` ### get_resource() ```python def get_resource(resource_key, *, consistency=None, **kwargs) ``` Get resource > Returns a deployed resource. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** ResourceResult **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** ResourceResult #### Examples **Get a resource:** ```python def get_resource_example() -> None: client = CamundaClient() result = client.get_resource(resource_key="123456") print(f"Resource: {result.resource_name}") ```` ### get_resource_content() ```python def get_resource_content(resource_key, *, consistency=None, **kwargs) ``` Get RPA resource content (deprecated) > **Deprecated** — use /resources/{resourceKey}/content/binary instead, which supports all > resource types and returns content as binary (octet-stream). > > Returns the content of a deployed RPA resource as JSON. :::info This endpoint only supports RPA resources. For generic resource content in binary format, use the /resources/{resourceKey}/content/binary endpoint. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.NotAcceptableError** – If the response status code is 406. The resource exists but is not an RPA resource. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** GetResourceContentResponse200 **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** GetResourceContentResponse200 #### Examples **Get resource content:** ```python def get_resource_content_example() -> None: client = CamundaClient() content = client.get_resource_content(resource_key="123456") print(f"Content: {content}") ```` ### get_resource_content_binary() ```python def get_resource_content_binary(resource_key, *, consistency=None, **kwargs) ``` Get resource content as binary > Returns the content of a deployed resource in binary format (octet-stream). :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - **resource_key**: The system-assigned key for this resource. ```` * **Raises:** * **errors.NotFoundError** – If the response status code is 404. A resource with the given key was not found. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** File **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `resource_key` | `str` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** File #### Examples **Get resource content as binary:** ```python def get_resource_content_binary_example() -> None: client = CamundaClient() content = client.get_resource_content_binary(resource_key="123456") print(f"Binary content size: {len(content.payload.read())}") ```` ### get_restore_status() ```python def get_restore_status(**kwargs) ``` Get the status of the restore that is currently in progress > Returns the status of the restore that is currently in progress, reported per broker and per > partition. There is at most one restore in flight at any time. Once the restore has finished this > endpoint returns 404; the per-partition detail is not retained after completion. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. No restore is currently in progress. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RestoreStatusResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** RestoreStatusResponse #### Examples **Get restore status:** ```python def get_restore_status_example() -> None: client = CamundaClient() result = client.get_restore_status() print(f"Restore status: {result.status}") ``` ### get_role() ```python def get_role(role_id, *, consistency=None, **kwargs) ``` Get role > Get a role by its ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleResult - **Return type:** RoleResult #### Examples **Get a role:** ```python def get_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.get_role(role_id=role_id) print(f"Role: {result.name}") ``` ### get_runtime_backup() ```python def get_runtime_backup(backup_id, **kwargs) ``` Get runtime backup > Returns detailed status of the runtime backup with the given id. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **kwargs** (_Any_) - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. A backup with the given id does not exist. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BackupInfo - **Return type:** BackupInfo #### Examples **Get a runtime backup:** ```python def get_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() result = client.get_runtime_backup(backup_id=backup_id) print(f"Backup {result.backup_id} is {result.state.value}") for partition in result.details: print(f" partition {partition.partition_id}: {partition.state.value}") ``` ### get_runtime_backup_as_cluster_admin() ```python def get_runtime_backup_as_cluster_admin(backup_id, *, physical_tenant_id=, **kwargs) ``` Get a runtime backup across physical tenants > Reports what every physical tenant of the cluster, or the one named by physicalTenantId, holds for > the given backup id, plus the state aggregated over all of them. A tenant that was reached and does > not hold this backup reports DOES_NOT_EXIST, which is a successful observation rather than a > failure — so a backup only some tenants hold aggregates to INCOMPLETE, the same way a backup only > some partitions hold does within one tenant. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. > Narrow the request with physicalTenantId to read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime/{backupId} to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ----------- | | `backup_id` | int) – | | The id of the backup. Must be a positive numerical value. As backups are logically ordered by their ids (ascending), each successive backup must use a higher id than the previous one. > Example: 1. - **physical_tenant_id** (_str_ _|_ _Unset_) – Example: default. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, or every targeted physical tenant was read and none of them holds a backup with the given id. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupInfo - **Return type:** ClusterRuntimeBackupInfo #### Examples **Get a runtime backup across physical tenants:** ```python def get_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Returns what each physical tenant reports for the given backup id. # A tenant reporting `DOES_NOT_EXIST` is a successful observation, not an error. result = client.get_runtime_backup_as_cluster_admin(backup_id=backup_id) print(f"Cluster runtime backup {result.backup_id} is {result.state.value}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: {tenant.state.value}") ``` ### get_runtime_backup_state() ```python def get_runtime_backup_state(**kwargs) ``` Get runtime backup state > Returns the current checkpoint and backup state of every partition of the physical > tenant. Unlike the backupRuntime actuator, this fails the whole request if the > checkpoint state or the backup ranges cannot be retrieved from any partition, instead > of silently returning an empty section. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RuntimeBackupState - **Parameters:** **kwargs** (_Any_) - **Return type:** RuntimeBackupState #### Examples **Get the runtime backup state:** ```python def get_runtime_backup_state_example() -> None: client = CamundaClient() result = client.get_runtime_backup_state() for checkpoint in result.checkpoint_states: print( f"Partition {checkpoint.partition_id} checkpoint {checkpoint.checkpoint_id}" f" at position {checkpoint.checkpoint_position}" ) for backup_range in result.ranges: print( f"Partition {backup_range.partition_id} range:" f" {backup_range.start} - {backup_range.end}" ) ``` ### get_runtime_backup_state_as_cluster_admin() ```python def get_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Get runtime backup state across physical tenants > Reports the checkpoint and backup state of every partition of every physical tenant of the cluster, > or of the one named by physicalTenantId, grouped by physical tenant. Checkpoint ids and log > positions only mean anything within one physical tenant’s partitions, so nothing is aggregated > across tenants. > > The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request > rather than contributing an empty section, which an operator making a delete or restore decision > could not tell apart from “nothing to report yet”. Narrow the request with physicalTenantId to > read the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime/state to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupState - **Return type:** ClusterRuntimeBackupState #### Examples **Get runtime backup state across physical tenants:** ```python def get_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Reports the checkpoint and backup state of every partition of every # physical tenant. Use `physical_tenant_id` to narrow to a single tenant. result = client.get_runtime_backup_state_as_cluster_admin() for tenant in result.physical_tenants: print(f"Physical tenant {tenant.physical_tenant_id}:") for checkpoint in tenant.state.checkpoint_states: print( f" partition {checkpoint.partition_id} checkpoint" f" {checkpoint.checkpoint_id}" ) ``` ### get_start_process_form() ```python def get_start_process_form(process_definition_key, *, consistency=None, **kwargs) ``` Get process start form > Get the start form of a process. > > Note that this endpoint will only return linked forms. This endpoint does not support embedded > forms. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------ | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get start process form:** ```python def get_start_process_form_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.get_start_process_form( process_definition_key=process_definition_key, ) print(f"Form: {result.form_key}") ``` ### get_status() ```python def get_status(**kwargs) ``` Get physical tenant status - **Raises:** - **errors.ServiceUnavailableError** – If the response status code is 503. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Check cluster status:** ```python def get_status_example() -> None: client = CamundaClient() client.get_status() print("Cluster is healthy") ``` ### get_system_configuration() ```python def get_system_configuration(**kwargs) ``` System configuration (alpha) > Returns the current system configuration. The response is an envelope > that groups settings by feature area. > > This endpoint is an alpha feature and may be subject to change > in future releases. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SystemConfigurationResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** SystemConfigurationResponse #### Examples **Get system configuration:** ```python def get_system_configuration_example() -> None: client = CamundaClient() result = client.get_system_configuration() print(f"System config: {result}") ``` ### get_tenant() ```python def get_tenant(tenant_id, *, consistency=None, **kwargs) ``` Get tenant > Retrieves a single tenant by tenant ID. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Tenant not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantResult - **Return type:** TenantResult #### Examples **Get a tenant:** ```python def get_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.get_tenant(tenant_id=tenant_id) print(f"Tenant: {result.name}") ``` ### get_tenant_cluster_variable() ```python def get_tenant_cluster_variable(tenant_id, name, *, consistency=None, **kwargs) ``` Get a tenant-scoped cluster variable > Get a tenant-scoped cluster variable. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Get a tenant cluster variable:** ```python def get_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.get_tenant_cluster_variable( tenant_id=tenant_id, name=name, ) print(f"Variable: {result.name} = {result.value}") ``` ### get_topology() ```python def get_topology(**kwargs) ``` Get cluster topology > Obtains the current topology of the cluster the gateway is part of. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TopologyResponse - **Parameters:** **kwargs** (_Any_) - **Return type:** TopologyResponse #### Examples **Get cluster topology:** ```python def get_topology_example() -> None: client = CamundaClient() result = client.get_topology() print(f"Topology: {result}") ``` ### get_usage_metrics() ```python def get_usage_metrics(*, start_time, end_time, tenant_id=, with_tenants=, consistency=None, **kwargs) ``` Get usage metrics > Retrieve the usage metrics based on given criteria. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `start_time` | `datetime.datetime` | Example: 2025-06-07T13:14:15Z. | | `end_time` | `datetime.datetime` | Example: 2025-06-07T13:14:15Z. | | `tenant_id` | `str` \| `Unset` | The unique identifier of the tenant. Example: customer-service. | | `with_tenants` | `bool` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UsageMetricsResponse - **Return type:** UsageMetricsResponse #### Examples **Get usage metrics:** ```python def get_usage_metrics_example() -> None: client = CamundaClient() result = client.get_usage_metrics( start_time=datetime.datetime(2024, 1, 1), end_time=datetime.datetime(2024, 12, 31), ) print(f"Metrics: {result}") ``` ### get_user() ```python def get_user(username, *, consistency=None, **kwargs) ``` Get user > Get a user by its username. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user with the given username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserResult - **Return type:** UserResult #### Examples **Get a user:** ```python def get_user_example(username: Username) -> None: client = CamundaClient() result = client.get_user(username=username) print(f"User: {result.username}") ``` ### get_user_task() ```python def get_user_task(user_task_key, *, consistency=None, **kwargs) ``` Get user task > Get the user task by the user task key. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserTaskResult - **Return type:** UserTaskResult #### Examples **Get a user task:** ```python def get_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() task = client.get_user_task(user_task_key=user_task_key) print(f"Task: {task.user_task_key}") ``` ### get_user_task_form() ```python def get_user_task_form(user_task_key, *, consistency=None, **kwargs) ``` Get user task form > Get the form of a user task. > > Note that this endpoint will only return linked forms. This endpoint does not support embedded > forms. **Parameters:** | Parameter | Type | Description | | --------------- | ------------------------------ | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** FormResult - **Return type:** FormResult #### Examples **Get a user task form:** ```python def get_user_task_form_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.get_user_task_form( user_task_key=user_task_key, ) print(f"Form: {result.form_key}") ``` ### get_variable() ```python def get_variable(variable_key, *, consistency=None, **kwargs) ``` Get variable > Get a variable by its key. > > This endpoint returns both process-level and local (element-scoped) variables. > The variable’s scopeKey indicates whether it’s a process-level variable or scoped to a > specific element instance. **Parameters:** | Parameter | Type | Description | | -------------- | ------------------------------ | --------------------------------------------------------------- | | `variable_key` | `str` | System-generated key for a variable. Example: 2251799813683287. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableResult - **Return type:** VariableResult #### Examples **Get a variable:** ```python def get_variable_example(variable_key: VariableKey) -> None: client = CamundaClient() result = client.get_variable( variable_key=variable_key, ) print(f"Variable: {result.name} = {result.value}") ``` ### list_history_backups() ```python def list_history_backups(*, prefix=, verbose=, **kwargs) ``` List history backups > Returns a list of all available history backups of the physical tenant, with their state > and additional info, most recent first by snapshot start time. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **verbose** (_bool_ _|_ _Unset_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List history backups:** ```python def list_history_backups_example() -> None: client = CamundaClient() # `prefix` is a backup id prefix followed by a single `*` wildcard. result = client.list_history_backups(prefix="17567*") for backup in result: print(f"History backup: {backup}") ``` ### list_history_backups_as_cluster_admin() ```python def list_history_backups_as_cluster_admin(*, physical_tenant_id=, prefix=, verbose=, **kwargs) ``` List history backups across physical tenants > Lists the history backups of every physical tenant of the cluster, or of the one named by > physicalTenantId, grouped by backup id. A backup id that only some physical tenants hold is a > supported outcome rather than a degraded one, so only the tenants that hold it are listed under it. > > The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole > request rather than silently dropping out of the listing. Narrow the request with physicalTenantId > to list the backups of the tenants that can still be read. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use GET /v2/backups/history to act as a > single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **verbose** (_bool_ _|_ _Unset_) - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List history backups across physical tenants:** ```python def list_history_backups_as_cluster_admin_example() -> None: client = CamundaClient() # Lists backups across every physical tenant. Pass `physical_tenant_id` to # restrict to one tenant. `prefix` filters to backup ids starting with the # given value (end with a `*` wildcard, e.g. "17567*"). backups = client.list_history_backups_as_cluster_admin(prefix="17567*") for backup in backups: print(f"History backup: {backup}") ``` ### list_runtime_backups() ```python def list_runtime_backups(*, prefix=, **kwargs) ``` List runtime backups > Returns a list of all available runtime backups of the physical tenant, with their > state and additional info, sorted in descending order of backupId. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List runtime backups:** ```python def list_runtime_backups_example() -> None: client = CamundaClient() # `prefix` is a backup id prefix followed by a single `*` wildcard. result = client.list_runtime_backups(prefix="17567*") for backup in result: print(f"Runtime backup: {backup}") ``` ### list_runtime_backups_as_cluster_admin() ```python def list_runtime_backups_as_cluster_admin(*, physical_tenant_id=, prefix=, **kwargs) ``` List runtime backups across physical tenants > Lists the runtime backups of every physical tenant of the cluster, or of the one named by > physicalTenantId, grouped by backup id. Every group reports every targeted tenant, including the > ones holding nothing for that id, so a backup only some tenants hold aggregates to INCOMPLETE here > exactly as it does when looked up directly — the state of a listed group can be trusted to say > whether the cluster can be restored from it. A backup id that only some physical tenants hold is a > supported outcome rather than a degraded one; tenants that generate their own backup ids never share > one, so in that mode each backup forms its own group and the other tenants report DOES_NOT_EXIST > under it. > > The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole > request rather than silently dropping out of the listing. Narrow the request with physicalTenantId > to list the backups of the tenants that can still be read. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use GET > /v2/backups/runtime to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `prefix` | `str` \| Unset) – | | A prefix of a backup id, followed by a single ‘\*’ as a wildcard, matching any backup id starting with the given prefix. > Example: 17567\*. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** list[Any] - **Return type:** list[_Any_] #### Examples **List runtime backups across physical tenants:** ```python def list_runtime_backups_as_cluster_admin_example() -> None: client = CamundaClient() # Lists backups across every physical tenant. Pass `physical_tenant_id` to # restrict to one tenant. `prefix` filters to backup ids starting with the # given value (end with a `*` wildcard, e.g. "17567*"). backups = client.list_runtime_backups_as_cluster_admin(prefix="17567*") for backup in backups: print(f"Runtime backup: {backup}") ``` ### list_secrets() ```python def list_secrets(*, data=, **kwargs) ``` List secrets > List the camunda.secrets.\* references known for the caller’s physical tenant. > > Only references the caller holds SECRET:READ on are returned. This endpoint never > returns secret values, only the reference names. > > The references are read from the secret stores configured for the caller’s physical tenant. > A store may hold names outside the reference name charset (for example one containing a > dot); those are omitted, since /secrets/resolve would reject them and no permission can > be granted on them. > > A returned reference is usable verbatim with /secrets/resolve. In a FEEL expression, > however, a name that is not a bare identifier has to be backtick-escaped, since FEEL reads > a bare dash as the minus operator: a listed camunda.secrets.db-password is written > \`\` =camunda.secrets.\`db-password\` \`\` in a BPMN input mapping. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `data` | `SecretListRequest` \| `Unset` | Reserved for future filtering options. Currently takes no properties. The request body is optional: omitting it (or sending an empty object) applies no filters. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SecretListResult - **Return type:** SecretListResult #### Examples **List secrets:** ```python def list_secrets_example() -> None: client = CamundaClient() # Lists the `camunda.secrets.*` references visible to the caller's physical # tenant. Only references the caller holds `SECRET:READ` on are returned, and # the response carries reference names only -- never the secret values. # The request body is optional; an empty one applies no filters. result = client.list_secrets(data=SecretListRequest()) for reference in result.references: print(f"Known secret reference: {reference}") ``` ### migrate_process_instance() ```python def migrate_process_instance(process_instance_key, *, data, **kwargs) ``` Migrate process instance > Migrates a process instance to a new process definition. > > This request can contain multiple mapping instructions to define mapping between the active > process instance’s elements and target process definition elements. > > Use this to upgrade a process instance to a new version of a process or to > a different process definition, e.g. to keep your running instances up-to-date with the > latest process improvements. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceMigrationInstruction` | The migration instructions describe how to migrate a process instance from one process definition to another. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance migration failed. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Migrate a process instance:** ```python def migrate_process_instance_example( process_instance_key: ProcessInstanceKey, target_process_definition_key: ProcessDefinitionKey, source_element_id: ElementId, target_element_id: ElementId, ) -> None: client = CamundaClient() client.migrate_process_instance( process_instance_key=process_instance_key, data=ProcessInstanceMigrationInstruction( target_process_definition_key=target_process_definition_key, mapping_instructions=[ MigrateProcessInstanceMappingInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ) ``` ### migrate_process_instances_batch_operation() ```python def migrate_process_instances_batch_operation(*, data, **kwargs) ``` Migrate process instances (batch) > Migrate multiple process instances. > > Since only process instances with ACTIVE state can be migrated, any given > filters for state are ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------------------------------- | ----------- | | `data` | `ProcessInstanceMigrationBatchOperationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Migrate process instances in batch:** ```python def migrate_process_instances_batch_operation_example(target_process_definition_key: ProcessDefinitionKey, source_element_id: ElementId, target_element_id: ElementId) -> None: client = CamundaClient() result = client.migrate_process_instances_batch_operation( data=ProcessInstanceMigrationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), migration_plan=ProcessInstanceMigrationBatchOperationRequestMigrationPlan( target_process_definition_key=target_process_definition_key, mapping_instructions=[ MigrateProcessInstanceMappingInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### modify_process_instance() ```python def modify_process_instance(process_instance_key, *, data, **kwargs) ``` Modify process instance > Modifies a running process instance. > > This request can contain multiple instructions to activate an element of the process or > to terminate an active instance of an element. > > Use this to repair a process instance that is stuck on an element or took an unintended path. > For example, because an external system is not available or doesn’t respond as expected. **Parameters:** | Parameter | Type | Description | | ---------------------- | ---------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `ProcessInstanceModificationInstruction` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Modify a process instance:** ```python def modify_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.modify_process_instance( process_instance_key=process_instance_key, data=ProcessInstanceModificationInstruction(), ) ``` ### modify_process_instances_batch_operation() ```python def modify_process_instances_batch_operation(*, data, **kwargs) ``` Modify process instances (batch) > Modify multiple process instances. > > Since only process instances with ACTIVE state can be modified, any given > filters for state are ignored and overridden during this batch operation. > In contrast to single modification operation, it is not possible to add variable instructions or > modify by element key. > It is only possible to use the element id of the source and target. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `data` | `ProcessInstanceModificationBatchOperationRequest` | The process instance filter to define on which process instances tokens should be moved, and new element instances should be activated or terminated. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Modify process instances in batch:** ```python def modify_process_instances_batch_operation_example(source_element_id: ElementId, target_element_id: ElementId) -> None: client = CamundaClient() result = client.modify_process_instances_batch_operation( data=ProcessInstanceModificationBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), move_instructions=[ ProcessInstanceModificationMoveBatchOperationInstruction( source_element_id=source_element_id, target_element_id=target_element_id, ), ], ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### pause_cluster_exporting() ```python def pause_cluster_exporting(*, soft=, **kwargs) ``` Pause exporting across the whole cluster > Pauses exporting on every physical tenant of the cluster in one call. With soft=true, every > physical tenant is soft-paused instead. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `soft` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pause exporting across the whole cluster:** ```python def pause_cluster_exporting_example() -> None: client = CamundaClient() # Pauses exporting on every physical tenant in one call. # With `soft=True` the position is not committed, so the log is not compacted, # which is the right mode for taking a consistent backup without stopping # real processing work. client.pause_cluster_exporting(soft=True) ``` ### pause_exporting() ```python def pause_exporting(*, soft=, **kwargs) ``` Pause exporting > Pauses exporting on all partitions of the physical tenant. While paused, exported records > are not committed, so the log is not compacted for the affected partitions. > > With soft=true, exporting continues to run but its position is not committed, so the > state after resuming is identical to a hard pause; use this variant when exporting must > keep progressing (e.g. to avoid falling behind) while still preventing log compaction, > such as during a backup. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `soft` | `bool` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pause exporting:** ```python def pause_exporting_example() -> None: client = CamundaClient() # With `soft=True` exporting keeps running but its position is not committed, # so the log is still not compacted. Use it when exporting must keep # progressing -- for example while a backup is taken. client.pause_exporting(soft=True) ``` ### pin_clock() ```python def pin_clock(*, data, **kwargs) ``` Pin internal clock (alpha) > Set a precise, static time for the Zeebe engine’s internal clock. > > When the clock is pinned, it remains at the specified time and does not advance. > To change the time, the clock must be pinned again with a new timestamp. > > This endpoint is an alpha feature and may be subject to change > in future releases. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ----------- | | `data` | `ClockPinRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Pin the cluster clock:** ```python def pin_clock_example() -> None: client = CamundaClient() client.pin_clock( data=ClockPinRequest( timestamp=1700000000000, ), ) ``` ### publish_message() ```python def publish_message(*, data, **kwargs) ``` Publish message > Publishes a single message. > > Messages are published to specific partitions computed from their correlation keys. > Messages can be buffered. > The endpoint does not wait for a correlation result. > Use the message correlation endpoint for such use cases. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------- | ----------- | | `data` | `MessagePublicationRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessagePublicationResult - **Return type:** MessagePublicationResult #### Examples **Publish a message:** ```python def publish_message_example() -> None: client = CamundaClient() result = client.publish_message( data=MessagePublicationRequest( name="order-created", correlation_key="order-12345", time_to_live=60000, ) ) print(f"Message key: {result.message_key}") ``` ### _property_ random _: RandomSource_ the injected source when supplied, else the live one. - **Type:** Randomness behind SDK jitter ### reset_clock() ```python def reset_clock(**kwargs) ``` Reset internal clock (alpha) > Resets the Zeebe engine’s internal clock to the current system time, enabling it to tick in real- > time. > This operation is useful for returning the clock to > normal behavior after it has been pinned to a specific time. > > This endpoint is an alpha feature and may be subject to change > in future releases. - **Raises:** - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Reset the cluster clock:** ```python def reset_clock_example() -> None: client = CamundaClient() client.reset_clock() ``` ### resolve_incident() ```python def resolve_incident(incident_key, *, data=, **kwargs) ``` Resolve incident > Marks the incident as resolved; most likely a call to Update job will be necessary > to reset the job’s retries, followed by this call. **Parameters:** | Parameter | Type | Description | | -------------- | -------------------------------------- | --------------------------------------------------------------- | | `incident_key` | `str` | System-generated key for a incident. Example: 2251799813689432. | | `data` | `IncidentResolutionRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The incident with the incidentKey is not found. - **errors.ConflictError** – If the response status code is 409. The incident cannot be resolved due to an invalid state. For example, the associated job may have no retries left. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resolve an incident:** ```python def resolve_incident_example(incident_key: IncidentKey) -> None: client = CamundaClient() client.resolve_incident(incident_key=incident_key) ``` ### resolve_incidents_batch_operation() ```python def resolve_incidents_batch_operation(*, data, **kwargs) ``` Resolve related incidents (batch) > Resolves multiple instances of process instances. > > Since only process instances with ACTIVE state can have unresolved incidents, any given > filters for state are ignored and overridden during this batch operation. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | | `data` | `ProcessInstanceIncidentResolutionBatchOperationRequest` | The process instance filter that defines which process instances should have their incidents resolved. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resolve incidents in batch:** ```python def resolve_incidents_batch_operation_example() -> None: client = CamundaClient() result = client.resolve_incidents_batch_operation( data=ProcessInstanceIncidentResolutionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### resolve_process_instance_incidents() ```python def resolve_process_instance_incidents(process_instance_key, **kwargs) ``` Resolve related incidents > Creates a batch operation to resolve multiple incidents of a process instance. **Parameters:** | Parameter | Type | Description | | ---------------------- | ----- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resolve process instance incidents:** ```python def resolve_process_instance_incidents_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.resolve_process_instance_incidents( process_instance_key=process_instance_key, ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### resolve_secrets() ```python def resolve_secrets(*, data, **kwargs) ``` Resolve secrets > Resolve a deduplicated batch of camunda.secrets.\* references for the caller’s > physical tenant in a single round-trip. > > Each reference is authorized and resolved independently. For valid requests, the endpoint > always responds with HTTP 200: successfully resolved references are returned in resolved, > while references that could not be resolved (for example not found, malformed or over-long, > or the caller lacks SECRET:REVEAL on that reference) are returned in errors. A failure of > one reference never fails the others. Only structurally invalid requests are rejected with > HTTP 400: a missing or non-array references field, more than 20 references, or a null entry. > > References are resolved against the secret stores configured for the caller’s physical > tenant, served from the gateway’s secret cache when the value is already cached and read > from the store otherwise. **Parameters:** | Parameter | Type | Description | | --------- | ---------------------- | ----------- | | `data` | `SecretResolveRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** SecretResolveResult - **Return type:** SecretResolveResult #### Examples **Resolve secrets:** ```python def resolve_secrets_example() -> None: client = CamundaClient() # Hands the resolved secret to whatever needs it (an HTTP client, a DB # driver, ...) without logging it. def use_secret(value: str) -> None: ... result = client.resolve_secrets( data=SecretResolveRequest( references=[ "camunda.secrets.my_api_token", "camunda.secrets.db_password", ], ) ) # Successfully resolved references are returned in `resolved`; references that # could not be resolved are returned in `errors`, each with a typed error code. # Never log a resolved value -- it holds secret material. Pass it straight to # the consumer that needs it instead. for resolved in result.resolved: print(f"Resolved {resolved.reference} (value redacted)") use_secret(resolved.value) for error in result.errors: print(f"Failed to resolve {error.reference}: {error.code.value} - {error.message}") ``` ### restore() ```python def restore(*, data, dry_run=, **kwargs) ``` Restore from a backup > Restores the cluster from a backup. The restore is described either by a single backup ID or by a > time range (from/to) that selects the backups to restore. This endpoint is only accessible while > the cluster is in recovery mode; requests are rejected otherwise. The request is validated and > acknowledged, but the restore itself is performed asynchronously. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dry_run` | `bool` \| `Unset` | | | `data` | `RestoreRequest` | Describes a restore request. Provide either a list of backup IDs or a time range (from/to) that selects the backups to restore; the two are mutually exclusive. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. The cluster is not in recovery mode, so the restore cannot be accepted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRestoreResponse - **Return type:** ClusterRestoreResponse #### Examples **Restore from a backup:** ```python def restore_example() -> None: client = CamundaClient() # The cluster must be in recovery mode before a restore is accepted. Provide # either a list of backup IDs (one per partition) or a time range (from/to) # that selects the backups to restore, but not both. result = client.restore( data=RestoreRequest(backup_ids=[100, 101]), ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### restore_as_cluster_admin() ```python def restore_as_cluster_admin(*, data, physical_tenant_id=, dry_run=, **kwargs) ``` Restore one or every physical tenant from a backup > Restores physical tenants from backups. The restore is described either by a list of backup IDs or > by a time range (from/to) that selects the backups to restore. Restores are only accepted while > the targeted physical tenants are in recovery mode; requests are rejected otherwise. The request is > validated and acknowledged, but the restore itself is performed asynchronously. > > If the physicalTenantId parameter is provided, only that physical tenant is restored and > overrides must be omitted. > > If it is not provided, every physical tenant of the cluster is restored: those named in overrides > with their own backup selection, all others with the selection at the top level of the request body. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | -------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `dry_run` | `bool` \| `Unset` | | | `data` | `ClusterRestoreRequest` | Describes a restore request issued by a cluster admin. The backup selection at the top level applies to every targeted physical tenant, except for the ones listed in overrides. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId, or a physical tenant named in overrides, does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. A targeted physical tenant is not in recovery mode, so the restore cannot be accepted. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRestoreResponse - **Return type:** ClusterRestoreResponse #### Examples **Restore physical tenants from backup as cluster admin:** ```python def restore_as_cluster_admin_example() -> None: client = CamundaClient() # The targeted physical tenants must be in recovery mode before a restore is # accepted. Provide either backup_ids (one per partition) or a time range # (from_/to), but not both. # # Omit physical_tenant_id to restore every physical tenant. Supply it to # scope the restore to a single tenant (overrides must then be omitted). result = client.restore_as_cluster_admin( data=ClusterRestoreRequest( backup_ids=[100, 101], ), dry_run=True, ) print(f"Cluster change {result.change_id}:") for group in result.planned_changes: print(f" {group.physical_tenant_id or 'cluster-wide'}:") for operation in group.operations: mode = getattr(operation, "mode", None) suffix = f" -> {mode}" if mode else "" print(f" {operation.operation}{suffix}") ``` ### resume_batch_operation() ```python def resume_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Resume Batch operation > Resumes a suspended batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resume a batch operation:** ```python def resume_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.resume_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### resume_cluster_exporting() ```python def resume_cluster_exporting(**kwargs) ``` Resume exporting across the whole cluster > Resumes exporting on every physical tenant of the cluster in one call, after a pause or soft pause. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Resume exporting across the whole cluster:** ```python def resume_cluster_exporting_example() -> None: client = CamundaClient() # Resumes exporting on every physical tenant after a pause or soft pause. client.resume_cluster_exporting() ``` ### resume_exporting() ```python def resume_exporting(**kwargs) ``` Resume exporting > Resumes exporting on all partitions of the physical tenant after a pause or soft pause. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Parameters:** **kwargs** (_Any_) - **Return type:** None #### Examples **Resume exporting:** ```python def resume_exporting_example() -> None: client = CamundaClient() client.resume_exporting() ``` ### resume_process_instance() ```python def resume_process_instance(process_instance_key, *, data=, **kwargs) ``` Resume process instance > Resumes a suspended process instance, returning it to the ACTIVE state and continuing processing. > > Only process instances in the SUSPENDED state can be resumed. > A child process instance can be resumed independently of its parent or root process > instance; resumption does not cascade to or from related instances. **Parameters:** | Parameter | Type | Description | | ---------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `None` \| `ResumeProcessInstanceRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in the SUSPENDED state and cannot be resumed. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Resume a process instance:** ```python def resume_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.resume_process_instance( process_instance_key=process_instance_key, ) ``` ### resume_process_instances_batch_operation() ```python def resume_process_instances_batch_operation(*, data, **kwargs) ``` Resume process instances (batch) > Resumes multiple suspended process instances. > > Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only > SUSPENDED process instances can be resumed and resumption does not cascade between parent > and child instances, so child instances are resumed independently of their parent or root > instance. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------------------ | ----------------------------------------------------------------------------------- | | `data` | `ProcessInstanceResumptionBatchOperationRequest` | The process instance filter that defines which process instances should be resumed. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Resume process instances in batch:** ```python def resume_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.resume_process_instances_batch_operation( data=ProcessInstanceResumptionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### search_agent_definitions() ```python def search_agent_definitions(*, data=, consistency=None, **kwargs) ``` Search agent definitions > Search for agent definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `AgentDefinitionSearchQuery` \| `Unset` | Agent definition search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentDefinitionSearchQueryResult - **Return type:** AgentDefinitionSearchQueryResult #### Examples **Search agent definitions:** ```python def search_agent_definitions_example() -> None: client = CamundaClient() result = client.search_agent_definitions(data=AgentDefinitionSearchQuery()) for agent_definition in result.items: print(f"Agent definition key: {agent_definition.agent_definition_key}") ``` ### search_agent_instance_history() ```python def search_agent_instance_history(agent_instance_key, *, data=, consistency=None, **kwargs) ``` Search agent instance history > Searches the conversation history of an agent instance. Committed items > are returned by default. **Parameters:** | Parameter | Type | Description | | -------------------- | -------------------------------------------- | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `data` | `AgentInstanceHistorySearchQuery` \| `Unset` | Agent instance history search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceHistorySearchQueryResult - **Return type:** AgentInstanceHistorySearchQueryResult #### Examples **Search agent instance history:** ```python def search_agent_instance_history_example(agent_instance_key: AgentInstanceKey) -> None: client = CamundaClient() result = client.search_agent_instance_history( agent_instance_key=agent_instance_key, data=AgentInstanceHistorySearchQuery(), ) print(f"Found {len(result.items)} history items") ``` ### search_agent_instances() ```python def search_agent_instances(*, data=, consistency=None, **kwargs) ``` Search agent instances > Search for agent instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ------------------------------ | | `data` | `AgentInstanceSearchQuery` \| `Unset` | Agent instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceSearchQueryResult - **Return type:** AgentInstanceSearchQueryResult #### Examples **Search agent instances:** ```python def search_agent_instances_example() -> None: client = CamundaClient() result = client.search_agent_instances(data=AgentInstanceSearchQuery()) if not isinstance(result.items, Unset): for agent_instance in result.items: print(f"Agent instance key: {agent_instance.agent_instance_key}") ``` ### search_audit_logs() ```python def search_audit_logs(*, data=, consistency=None, **kwargs) ``` Search audit logs > Search for audit logs based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | ------------------------- | | `data` | `AuditLogSearchQueryRequest` \| `Unset` | Audit log search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogSearchQueryResult - **Return type:** AuditLogSearchQueryResult #### Examples **Search audit logs:** ```python def search_audit_logs_example() -> None: client = CamundaClient() result = client.search_audit_logs( data=AuditLogSearchQueryRequest(), ) if not isinstance(result.items, Unset): for log in result.items: print(f"Audit log: {log.audit_log_key}") ``` ### search_authorizations() ```python def search_authorizations(*, data=, consistency=None, **kwargs) ``` Search authorizations > Search for authorizations based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ----------- | | `data` | `AuthorizationSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuthorizationSearchResult - **Return type:** AuthorizationSearchResult #### Examples **Search authorizations:** ```python def search_authorizations_example() -> None: client = CamundaClient() result = client.search_authorizations( data=AuthorizationSearchQuery(), ) if not isinstance(result.items, Unset): for auth in result.items: print(f"Authorization: {auth.authorization_key}") ``` ### search_batch_operation_items() ```python def search_batch_operation_items(*, data=, consistency=None, **kwargs) ``` Search batch operation items > Search for batch operation items based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------ | | `data` | `BatchOperationItemSearchQuery` \| `Unset` | Batch operation item search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationItemSearchQueryResult - **Return type:** BatchOperationItemSearchQueryResult #### Examples **Search batch operation items:** ```python def search_batch_operation_items_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() result = client.search_batch_operation_items( batch_operation_key=batch_operation_key, data=BatchOperationItemSearchQuery(), ) if not isinstance(result.items, Unset): for item in result.items: print(f"Item: {item.item_key}") ``` ### search_batch_operations() ```python def search_batch_operations(*, data=, consistency=None, **kwargs) ``` Search batch operations > Search for batch operations based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------------- | ------------------------------- | | `data` | `BatchOperationSearchQuery` \| `Unset` | Batch operation search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationSearchQueryResult - **Return type:** BatchOperationSearchQueryResult #### Examples **Search batch operations:** ```python def search_batch_operations_example() -> None: client = CamundaClient() result = client.search_batch_operations( data=BatchOperationSearchQuery(), ) if not isinstance(result.items, Unset): for op in result.items: print(f"Batch operation: {op.batch_operation_key}") ``` ### search_clients_for_group() ```python def search_clients_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group clients > Search clients assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupClientSearchResult - **Return type:** GroupClientSearchResult #### Examples **Search clients in a group:** ```python def search_clients_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_clients_for_group( group_id=group_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_clients_for_role() ```python def search_clients_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role clients > Search clients with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleClientSearchResult - **Return type:** RoleClientSearchResult #### Examples **Search clients for a role:** ```python def search_clients_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_clients_for_role( role_id=role_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_clients_for_tenant() ```python def search_clients_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search clients for tenant > Retrieves a filtered and sorted list of clients for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantClientSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantClientSearchResult - **Return type:** TenantClientSearchResult #### Examples **Search clients for a tenant:** ```python def search_clients_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_clients_for_tenant( tenant_id=tenant_id, ) if not isinstance(result.items, Unset): for c in result.items: print(f"Client: {c.client_id}") ``` ### search_cluster_variables() ```python def search_cluster_variables(*, data=, truncate_values=, consistency=None, **kwargs) ``` Search for cluster variables based on given criteria. By default, long variable values in the response are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | ---------------------------------------------- | -------------------------------------- | | `truncate_values` | `bool` \| `Unset` | | | `data` | `ClusterVariableSearchQueryRequest` \| `Unset` | Cluster variable search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableSearchQueryResult - **Return type:** ClusterVariableSearchQueryResult #### Examples **Search cluster variables:** ```python def search_cluster_variables_example() -> None: client = CamundaClient() result = client.search_cluster_variables( data=ClusterVariableSearchQueryRequest(), ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_correlated_message_subscriptions() ```python def search_correlated_message_subscriptions(*, data=, consistency=None, **kwargs) ``` Search correlated message subscriptions > Search correlated message subscriptions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------------------- | ----------- | | `data` | `CorrelatedMessageSubscriptionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** CorrelatedMessageSubscriptionSearchQueryResult - **Return type:** CorrelatedMessageSubscriptionSearchQueryResult #### Examples **Search correlated message subscriptions:** ```python def search_correlated_message_subscriptions_example() -> None: client = CamundaClient() result = client.search_correlated_message_subscriptions( data=CorrelatedMessageSubscriptionSearchQuery(), ) if not isinstance(result.items, Unset): for sub in result.items: print(f"Correlated subscription: {sub.message_name}") ``` ### search_decision_definitions() ```python def search_decision_definitions(*, data=, consistency=None, **kwargs) ``` Search decision definitions > Search for decision definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `data` | `DecisionDefinitionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionDefinitionSearchQueryResult - **Return type:** DecisionDefinitionSearchQueryResult #### Examples **Search decision definitions:** ```python def search_decision_definitions_example() -> None: client = CamundaClient() result = client.search_decision_definitions( data=DecisionDefinitionSearchQuery() ) if not isinstance(result.items, Unset): for definition in result.items: print(f"Decision: {definition.decision_definition_id}") ``` ### search_decision_instances() ```python def search_decision_instances(*, data=, consistency=None, **kwargs) ``` Search decision instances > Search for decision instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ----------- | | `data` | `DecisionInstanceSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionInstanceSearchQueryResult - **Return type:** DecisionInstanceSearchQueryResult #### Examples **Search decision instances:** ```python def search_decision_instances_example() -> None: client = CamundaClient() result = client.search_decision_instances( data=DecisionInstanceSearchQuery(), ) if not isinstance(result.items, Unset): for di in result.items: print(f"Decision instance: {di.decision_definition_id}") ``` ### search_decision_requirements() ```python def search_decision_requirements(*, data=, consistency=None, **kwargs) ``` Search decision requirements > Search for decision requirements based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------------------- | ----------- | | `data` | `DecisionRequirementsSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** DecisionRequirementsSearchQueryResult - **Return type:** DecisionRequirementsSearchQueryResult #### Examples **Search decision requirements:** ```python def search_decision_requirements_example() -> None: client = CamundaClient() result = client.search_decision_requirements( data=DecisionRequirementsSearchQuery(), ) if not isinstance(result.items, Unset): for drd in result.items: print(f"DRD: {drd.decision_requirements_name}") ``` ### search_element_instance_incidents() ```python def search_element_instance_incidents(element_instance_key, *, data, consistency=None, **kwargs) ``` Search for incidents of a specific element instance > Search for incidents caused by the specified element instance, including incidents of any child > instances created from this element instance. > > Although the elementInstanceKey is provided as a path parameter to indicate the root element > instance, > you may also include an elementInstanceKey within the filter object to narrow results to specific > child element instances. This is useful, for example, if you want to isolate incidents associated > with > nested or subordinate elements within the given element instance while excluding incidents directly > tied > to the root element itself. **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------- | | `element_instance_key` | `str` | System-generated key for a element instance. Example: 2251799813686789. | | `data` | `IncidentSearchQuery` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The element instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search element instance incidents:** ```python def search_element_instance_incidents_example( element_instance_key: ElementInstanceKey, ) -> None: client = CamundaClient() result = client.search_element_instance_incidents( element_instance_key=element_instance_key, data=IncidentSearchQuery(), ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident: {incident.incident_key}") ``` ### search_element_instance_wait_states() ```python def search_element_instance_wait_states(*, data=, consistency=None, **kwargs) ``` Search element instance wait states > Returns the wait states for element instances matching the given filter. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------ | | `data` | `ElementInstanceWaitStateQuery` \| `Unset` | Element instance inspection request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceWaitStateQueryResult - **Return type:** ElementInstanceWaitStateQueryResult #### Examples **Search element instance wait states:** ```python def search_element_instance_wait_states_example() -> None: client = CamundaClient() result = client.search_element_instance_wait_states( data=ElementInstanceWaitStateQuery(), ) for wait_state in result.items: details = wait_state.details if isinstance(details, JobWaitStateDetails): info = f"waiting on job '{details.job_type}'" elif isinstance(details, MessageWaitStateDetails): info = f"waiting for message '{details.message_name}'" else: info = f"waiting ({details.wait_state_type})" print( f"Element {wait_state.element_id} " f"(instance {wait_state.element_instance_key}) {info}" ) ``` ### search_element_instances() ```python def search_element_instances(*, data=, consistency=None, **kwargs) ``` Search element instances > Search for element instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `ElementInstanceSearchQuery` \| `Unset` | Element instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ElementInstanceSearchQueryResult - **Return type:** ElementInstanceSearchQueryResult #### Examples **Search element instances:** ```python def search_element_instances_example() -> None: client = CamundaClient() result = client.search_element_instances( data=ElementInstanceSearchQuery(), ) if not isinstance(result.items, Unset): for ei in result.items: print(f"Element instance: {ei.element_instance_key}") ``` ### search_global_task_listeners() ```python def search_global_task_listeners(*, data=, consistency=None, **kwargs) ``` Search global user task listeners > Search for global user task listeners based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------------- | ------------------------------------- | | `data` | `GlobalTaskListenerSearchQueryRequest` \| `Unset` | Global listener search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerSearchQueryResult - **Return type:** GlobalTaskListenerSearchQueryResult #### Examples **Search global task listeners:** ```python def search_global_task_listeners_example() -> None: client = CamundaClient() result = client.search_global_task_listeners( data=GlobalTaskListenerSearchQueryRequest(), ) if not isinstance(result.items, Unset): for listener in result.items: print(f"Listener: {listener.id}") ``` ### search_group_ids_for_tenant() ```python def search_group_ids_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search groups for tenant > Retrieves a filtered and sorted list of groups for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantGroupSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantGroupSearchResult - **Return type:** TenantGroupSearchResult #### Examples **Search groups for a tenant:** ```python def search_group_ids_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_group_ids_for_tenant( tenant_id=tenant_id, data=TenantGroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.group_id}") ``` ### search_groups() ```python def search_groups(*, data=, consistency=None, **kwargs) ``` Search groups > Search for groups based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------ | --------------------- | | `data` | `GroupSearchQueryRequest` \| `Unset` | Group search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupSearchQueryResult - **Return type:** GroupSearchQueryResult #### Examples **Search groups:** ```python def search_groups_example() -> None: client = CamundaClient() result = client.search_groups( data=GroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.name}") ``` ### search_groups_for_role() ```python def search_groups_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role groups > Search groups with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleGroupSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleGroupSearchResult - **Return type:** RoleGroupSearchResult #### Examples **Search groups for a role:** ```python def search_groups_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_groups_for_role( role_id=role_id, data=RoleGroupSearchQueryRequest(), ) if not isinstance(result.items, Unset): for group in result.items: print(f"Group: {group.group_id}") ``` ### search_incidents() ```python def search_incidents(*, data=, consistency=None, **kwargs) ``` Search incidents > Search for incidents based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------- | ----------- | | `data` | `IncidentSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search incidents:** ```python def search_incidents_example() -> None: client = CamundaClient() result = client.search_incidents( data=IncidentSearchQuery() ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident key: {incident.incident_key}") ``` ### search_jobs() ```python def search_jobs(*, data=, consistency=None, **kwargs) ``` Search jobs > Search for jobs based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------ | ------------------- | | `data` | `JobSearchQuery` \| `Unset` | Job search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** JobSearchQueryResult - **Return type:** JobSearchQueryResult #### Examples **Search jobs:** ```python def search_jobs_example() -> None: client = CamundaClient() result = client.search_jobs( data=JobSearchQuery(), ) if not isinstance(result.items, Unset): for job in result.items: print(f"Job: {job.job_key}") ``` ### search_mapping_rule() ```python def search_mapping_rule(*, data=, consistency=None, **kwargs) ``` Search mapping rules > Search for mapping rules based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ----------- | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleSearchQueryResult - **Return type:** MappingRuleSearchQueryResult #### Examples **Search mapping rules:** ```python def search_mapping_rule_example() -> None: client = CamundaClient() result = client.search_mapping_rule( data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.name}") ``` ### search_mapping_rules_for_group() ```python def search_mapping_rules_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group mapping rules > Search mapping rules assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupMappingRuleSearchResult - **Return type:** GroupMappingRuleSearchResult #### Examples **Search mapping rules for a group:** ```python def search_mapping_rules_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_group( group_id=group_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_mapping_rules_for_role() ```python def search_mapping_rules_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role mapping rules > Search mapping rules with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleMappingRuleSearchResult - **Return type:** RoleMappingRuleSearchResult #### Examples **Search mapping rules for a role:** ```python def search_mapping_rules_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_role( role_id=role_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_mapping_rules_for_tenant() ```python def search_mapping_rules_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search mapping rules for tenant > Retrieves a filtered and sorted list of MappingRules for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `MappingRuleSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantMappingRuleSearchResult - **Return type:** TenantMappingRuleSearchResult #### Examples **Search mapping rules for a tenant:** ```python def search_mapping_rules_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_mapping_rules_for_tenant( tenant_id=tenant_id, data=MappingRuleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for rule in result.items: print(f"Mapping rule: {rule.mapping_rule_id}") ``` ### search_message_subscriptions() ```python def search_message_subscriptions(*, data=, consistency=None, **kwargs) ``` Search message subscriptions > Search for message subscriptions based on given criteria. > > By default, both start and intermediate event subscriptions are returned. Use the > messageSubscriptionType filter to restrict results to a single type. > > **Version notes:** - Start event subscriptions are only captured for deployments made with 8.10 or later. - The messageSubscriptionType field is only populated for data created > with Camunda 8.10 or later. For pre-8.10 data, intermediate event entries have no > messageSubscriptionType value stored. For convenience, the API returns PROCESS_EVENT > as a default for such search results, though. - Searching for intermediate event subscriptions **including legacy data** can be achieved by filtering for messageSubscriptionType not matching START_EVENT. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------- | ----------- | | `data` | `MessageSubscriptionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MessageSubscriptionSearchQueryResult - **Return type:** MessageSubscriptionSearchQueryResult #### Examples **Search message subscriptions:** ```python def search_message_subscriptions_example() -> None: client = CamundaClient() result = client.search_message_subscriptions( data=MessageSubscriptionSearchQuery(), ) if not isinstance(result.items, Unset): for sub in result.items: print(f"Subscription: {sub.message_name}") ``` ### search_own_authorizations() ```python def search_own_authorizations(*, data=, consistency=None, **kwargs) ``` Search own authorizations > Search for the current authenticated principal’s own authorization records — including > authorizations granted directly to the user or client, as well as those granted via a group, role, > or mapping rule the principal belongs to. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | ----------- | | `data` | `AuthorizationSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** OwnAuthorizationSearchResult - **Return type:** OwnAuthorizationSearchResult #### Examples **Search own authorizations:** ```python def search_own_authorizations_example() -> None: client = CamundaClient() result = client.search_own_authorizations( data=AuthorizationSearchQuery( filter_=AuthorizationSearchQueryFilter( resource_type=AuthorizationSearchQueryFilterResourceType.PROCESS_DEFINITION, ), page=LimitBasedPagination(limit=20), ) ) if not isinstance(result.items, Unset): for auth in result.items: print(f"Resource: {auth.resource_id}, permissions: {auth.permission_types}") ``` ### search_process_definition_variable_names() ```python def search_process_definition_variable_names(process_definition_key, *, data=, consistency=None, **kwargs) ``` Search process definition variable names > Search for distinct variable names defined on a process definition, optionally narrowed by the name > filter. **Parameters:** | Parameter | Type | Description | | ------------------------ | ----------------------------------------------------- | ---------------------------------------------------------------------------------- | | `process_definition_key` | `str` | System-generated key for a deployed process definition. Example: 2251799813686749. | | `data` | `ProcessDefinitionVariableNameSearchQuery` \| `Unset` | Process definition variable name search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionVariableNameSearchQueryResult - **Return type:** ProcessDefinitionVariableNameSearchQueryResult #### Examples **Search process definition variable names:** ```python def search_process_definition_variable_names_example( process_definition_key: ProcessDefinitionKey, ) -> None: client = CamundaClient() result = client.search_process_definition_variable_names( process_definition_key=process_definition_key, data=ProcessDefinitionVariableNameSearchQuery(), ) if not isinstance(result.items, Unset): for variable in result.items: print(f"Variable name: {variable.name}") ``` ### search_process_definitions() ```python def search_process_definitions(*, data=, consistency=None, **kwargs) ``` Search process definitions > Search for process definitions based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | ----------- | | `data` | `ProcessDefinitionSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessDefinitionSearchQueryResult - **Return type:** ProcessDefinitionSearchQueryResult #### Examples **Search process definitions:** ```python def search_process_definitions_example() -> None: client = CamundaClient() result = client.search_process_definitions( data=ProcessDefinitionSearchQuery(), ) if not isinstance(result.items, Unset): for pd in result.items: print(f"Process definition: {pd.name}") ``` ### search_process_instance_incidents() ```python def search_process_instance_incidents(process_instance_key, *, data=, consistency=None, **kwargs) ``` Search related incidents > Search for incidents caused by the process instance or any of its called process or decision > instances. > > Although the processInstanceKey is provided as a path parameter to indicate the root process > instance, > you may also include a processInstanceKey within the filter object to narrow results to specific > child process instances. This is useful, for example, if you want to isolate incidents associated > with > subprocesses or called processes under the root instance while excluding incidents directly tied to > the root. **Parameters:** | Parameter | Type | Description | | ---------------------- | -------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `IncidentSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The process instance with the given key was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** IncidentSearchQueryResult - **Return type:** IncidentSearchQueryResult #### Examples **Search process instance incidents:** ```python def search_process_instance_incidents_example( process_instance_key: ProcessInstanceKey, ) -> None: client = CamundaClient() result = client.search_process_instance_incidents( process_instance_key=process_instance_key, data=IncidentSearchQuery(), ) if not isinstance(result.items, Unset): for incident in result.items: print(f"Incident: {incident.incident_key}") ``` ### search_process_instances() ```python def search_process_instances(*, data=, consistency=None, **kwargs) ``` Search process instances > Search for process instances based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | -------------------------------- | | `data` | `ProcessInstanceSearchQuery` \| `Unset` | Process instance search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ProcessInstanceSearchQueryResult - **Return type:** ProcessInstanceSearchQueryResult #### Examples **Search process instances:** ```python def search_process_instances_example() -> None: client = CamundaClient() result = client.search_process_instances( data=ProcessInstanceSearchQuery( filter_=ProcessInstanceSearchQueryFilter( process_definition_id="order-process", ), sort=[ ProcessInstanceSearchQuerySortRequest( field=ProcessInstanceSearchQuerySortRequestField.STARTDATE, order=SortOrderEnum.DESC, ) ], page=LimitBasedPagination(limit=10), ) ) for instance in result.items: print(f"{instance.process_instance_key}: {instance.state}") print(f"Total: {result.page.total_items}") ``` ### search_resources() ```python def search_resources(*, data=, consistency=None, **kwargs) ``` Search resources > Search for deployed resources based on given criteria. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective search APIs. ::: - **data**: :type data: ResourceSearchQuery | Unset ```` * **Raises:** * **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. * **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. * **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. * **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. * **errors.UnexpectedStatus** – If the response status code is not documented. * **httpx.TimeoutException** – If the request takes longer than Client.timeout. * **Returns:** ResourceSearchQueryResult **Parameters:** | Parameter | Type | Description | | --- | --- | --- | | `data` | `ResourceSearchQuery` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | * **Return type:** ResourceSearchQueryResult #### Examples **Search resources:** ```python def search_resources_example() -> None: client = CamundaClient() result = client.search_resources( data=ResourceSearchQuery(), ) if not isinstance(result.items, Unset): for resource in result.items: print(f"Resource: {resource.resource_name}") ```` ### search_roles() ```python def search_roles(*, data=, consistency=None, **kwargs) ``` Search roles > Search for roles based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | -------------------- | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleSearchQueryResult - **Return type:** RoleSearchQueryResult #### Examples **Search roles:** ```python def search_roles_example() -> None: client = CamundaClient() result = client.search_roles( data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_roles_for_group() ```python def search_roles_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group roles > Search roles assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupRoleSearchResult - **Return type:** GroupRoleSearchResult #### Examples **Search roles for a group:** ```python def search_roles_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_roles_for_group( group_id=group_id, data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_roles_for_tenant() ```python def search_roles_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search roles for tenant > Retrieves a filtered and sorted list of roles for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `RoleSearchQueryRequest` \| `Unset` | Role search request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantRoleSearchResult - **Return type:** TenantRoleSearchResult #### Examples **Search roles for a tenant:** ```python def search_roles_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_roles_for_tenant( tenant_id=tenant_id, data=RoleSearchQueryRequest(), ) if not isinstance(result.items, Unset): for role in result.items: print(f"Role: {role.name}") ``` ### search_tenants() ```python def search_tenants(*, data=, consistency=None, **kwargs) ``` Search tenants > Retrieves a filtered and sorted list of tenants. **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------- | --------------------- | | `data` | `TenantSearchQueryRequest` \| `Unset` | Tenant search request | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantSearchQueryResult - **Return type:** TenantSearchQueryResult #### Examples **Search tenants:** ```python def search_tenants_example() -> None: client = CamundaClient() result = client.search_tenants( data=TenantSearchQueryRequest(), ) if not isinstance(result.items, Unset): for tenant in result.items: print(f"Tenant: {tenant.name}") ``` ### search_user_task_audit_logs() ```python def search_user_task_audit_logs(user_task_key, *, data=, consistency=None, **kwargs) ``` Search user task audit logs > Search for user task audit logs based on given criteria. **Parameters:** | Parameter | Type | Description | | --------------- | ----------------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskAuditLogSearchQueryRequest` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AuditLogSearchQueryResult - **Return type:** AuditLogSearchQueryResult #### Examples **Search user task audit logs:** ```python def search_user_task_audit_logs_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_audit_logs( user_task_key=user_task_key, data=UserTaskAuditLogSearchQueryRequest(), ) if not isinstance(result.items, Unset): for log in result.items: print(f"Audit log: {log.audit_log_key}") ``` ### search_user_task_effective_variables() ```python def search_user_task_effective_variables(user_task_key, *, data=, truncate_values=, consistency=None, **kwargs) ``` Search user task effective variables > Search for the effective variables of a user task. This endpoint returns deduplicated > variables where each variable name appears at most once. When the same variable name exists > at multiple scope levels in the scope hierarchy, the value from the innermost scope (closest > to the user task) takes precedence. This is useful for retrieving the actual runtime state > of variables as seen by the user task. By default, long variable values in the response are > truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `truncate_values` | `bool` \| `Unset` | | | `data` | `UserTaskEffectiveVariableSearchQueryRequest` \| `Unset` | User task effective variable search query request. Uses offset-based pagination only. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search user task effective variables:** ```python def search_user_task_effective_variables_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_effective_variables( user_task_key=user_task_key, ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_user_task_variables() ```python def search_user_task_variables(user_task_key, *, data=, truncate_values=, consistency=None, **kwargs) ``` Search user task variables > Search for user task variables based on given criteria. This endpoint returns all variable > documents visible from the user task’s scope, including variables from parent scopes in the > scope hierarchy. If the same variable name exists at multiple scope levels, each scope’s > variable is returned as a separate result. Use the > /user-tasks/{userTaskKey}/effective-variables/search endpoint to get deduplicated variables > where the innermost scope takes precedence. By default, long variable values in the response > are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | ----------------------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `truncate_values` | `bool` \| `Unset` | | | `data` | `UserTaskVariableSearchQueryRequest` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search user task variables:** ```python def search_user_task_variables_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() result = client.search_user_task_variables( user_task_key=user_task_key, ) if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_user_tasks() ```python def search_user_tasks(*, data=, consistency=None, **kwargs) ``` Search user tasks > Search for user tasks based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | -------------------------------- | ------------------------------- | | `data` | `UserTaskSearchQuery` \| `Unset` | User task search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserTaskSearchQueryResult - **Return type:** UserTaskSearchQueryResult #### Examples **Search user tasks:** ```python def search_user_tasks_example() -> None: client = CamundaClient() result = client.search_user_tasks( data=UserTaskSearchQuery() ) if not isinstance(result.items, Unset): for task in result.items: print(f"Task: {task.user_task_key}") ``` ### search_users() ```python def search_users(*, data=, consistency=None, **kwargs) ``` Search users > Search for users based on given criteria. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------- | ----------- | | `data` | `UserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserSearchResult - **Return type:** UserSearchResult #### Examples **Search users:** ```python def search_users_example() -> None: client = CamundaClient() result = client.search_users( data=UserSearchQueryRequest(), ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_group() ```python def search_users_for_group(group_id, *, data=, consistency=None, **kwargs) ``` Search group users > Search users assigned to a group. **Parameters:** | Parameter | Type | Description | | ------------- | ---------------------------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupUserSearchResult - **Return type:** GroupUserSearchResult #### Examples **Search users in a group:** ```python def search_users_for_group_example(group_id: GroupId) -> None: client = CamundaClient() result = client.search_users_for_group( group_id=group_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_role() ```python def search_users_for_role(role_id, *, data=, consistency=None, **kwargs) ``` Search role users > Search users with assigned role. **Parameters:** | Parameter | Type | Description | | ------------- | --------------------------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleUserSearchResult - **Return type:** RoleUserSearchResult #### Examples **Search users for a role:** ```python def search_users_for_role_example(role_id: RoleId) -> None: client = CamundaClient() result = client.search_users_for_role( role_id=role_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_users_for_tenant() ```python def search_users_for_tenant(tenant_id, *, data=, consistency=None, **kwargs) ``` Search users for tenant > Retrieves a filtered and sorted list of users for a specified tenant. **Parameters:** | Parameter | Type | Description | | ------------- | ----------------------------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantUserSearchQueryRequest` \| `Unset` | | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantUserSearchResult - **Return type:** TenantUserSearchResult #### Examples **Search users for a tenant:** ```python def search_users_for_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() result = client.search_users_for_tenant( tenant_id=tenant_id, ) if not isinstance(result.items, Unset): for user in result.items: print(f"User: {user.username}") ``` ### search_variables() ```python def search_variables(*, data=, truncate_values=, consistency=None, **kwargs) ``` Search variables > Search for variables based on given criteria. > > This endpoint returns variables that exist directly at the specified scopes - it does not > include variables from parent scopes that would be visible through the scope hierarchy. > > Variables can be process-level (scoped to the process instance) or local (scoped to specific > BPMN elements like tasks, subprocesses, etc.). > > By default, long variable values in the response are truncated. **Parameters:** | Parameter | Type | Description | | ----------------- | -------------------------------- | ------------------------------ | | `truncate_values` | `bool` \| `Unset` | | | `data` | `VariableSearchQuery` \| `Unset` | Variable search query request. | | `consistency` | `ConsistencyOptions` \| `None` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** VariableSearchQueryResult - **Return type:** VariableSearchQueryResult #### Examples **Search variables:** ```python def search_variables_example() -> None: client = CamundaClient() result = client.search_variables() if not isinstance(result.items, Unset): for var in result.items: print(f"Variable: {var.name}") ``` ### search_variables_as_dto() ```python def search_variables_as_dto(dto, *, process_instance_key, scope_key=None, tenant_id=None, page_size=100, consistency=None) ``` Fetch the variables declared by a Pydantic model for a process instance. Derives a `name $in [...]` filter from the fields of `dto` (honouring Pydantic aliases), so only the declared variables are fetched — memory is bounded by the model shape, not by the total variable count. The result is a `camunda_orchestration_sdk.runtime.typed_variables.VariableMap`, which offers lenient access via `.get(name)` and strict, fully-typed access via `.validate()` (which constructs `dto` and raises `pydantic.ValidationError` on missing or invalid values). **Parameters:** | Parameter | Type | Description | | ---------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dto` | type [ \_VarDtoT ] | A `pydantic.BaseModel` subclass describing the variables of interest. | | `process_instance_key` | `str` | The process instance whose variables to search. | | `scope_key` | `str` \| `None` | Optional scope key to disambiguate variables that exist at multiple scopes. Required when a variable name collides across scopes. | | `tenant_id` | `str` \| `None` | Optional tenant identifier to filter by. | | `page_size` | `int` | Page size used while paginating to exhaustion. Defaults to 100. | | `consistency` | `ConsistencyOptions` \| `None` | Optional eventual-consistency budget. When supplied, the whole collection is re-read until every declared variable is visible or `wait_up_to_ms` expires (the best snapshot is returned on expiry). Variable indexes update asynchronously, so a freshly written variable may not be visible immediately; without this the variables are read exactly once. | - **Returns:** The parsed variable map keyed by the declared field names. - **Return type:** VariableMap - **Raises:** - **TypeError** – If `dto` is not a pydantic `BaseModel` subclass. - **camunda_orchestration_sdk.runtime.typed_variables.VariableScopeCollisionError** – If a declared variable is found at more than one scope and no `scope_key` was supplied. - **camunda_orchestration_sdk.runtime.typed_variables.VariableDeserializationError** – If a returned variable value is present but not valid JSON. ### suspend_batch_operation() ```python def suspend_batch_operation(batch_operation_key, *, data=, **kwargs) ``` Suspend Batch operation > Suspends a running batch operation. > > This is done asynchronously, the progress can be tracked using the batch operation status endpoint > (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------------------- | ---------------- | ----------------------------------------------------------------------- | | `batch_operation_key` | `str` | System-generated key for an batch operation. Example: 2251799813684321. | | `data` | `Any` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The batch operation was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Suspend a batch operation:** ```python def suspend_batch_operation_example(batch_operation_key: BatchOperationKey) -> None: client = CamundaClient() client.suspend_batch_operation( batch_operation_key=batch_operation_key, ) ``` ### suspend_process_instance() ```python def suspend_process_instance(process_instance_key, *, data=, **kwargs) ``` Suspend process instance > Suspends a running process instance, pausing further processing until it is resumed. > > Only process instances in the ACTIVE state can be suspended. > A child process instance can be suspended independently of its parent or root process > instance; suspension does not cascade to or from related instances. **Parameters:** | Parameter | Type | Description | | ---------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------- | | `process_instance_key` | `str` | System-generated key for a process instance. Example: 2251799813690746. | | `data` | `None` \| `SuspendProcessInstanceRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The process instance is not found. - **errors.ConflictError** – If the response status code is 409. The process instance is not in the ACTIVE state and cannot be suspended. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Suspend a process instance:** ```python def suspend_process_instance_example(process_instance_key: ProcessInstanceKey) -> None: client = CamundaClient() client.suspend_process_instance( process_instance_key=process_instance_key, ) ``` ### suspend_process_instances_batch_operation() ```python def suspend_process_instances_batch_operation(*, data, **kwargs) ``` Suspend process instances (batch) > Suspends multiple running process instances. > > Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only > ACTIVE process instances can be suspended and suspension does not cascade between parent > and child instances, so child instances are suspended independently of their parent or > root instance. > This is done asynchronously, the progress can be tracked using the batchOperationKey from the > response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------------------ | ------------------------------------------------------------------------------------- | | `data` | `ProcessInstanceSuspensionBatchOperationRequest` | The process instance filter that defines which process instances should be suspended. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The process instance batch operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Suspend process instances in batch:** ```python def suspend_process_instances_batch_operation_example() -> None: client = CamundaClient() result = client.suspend_process_instances_batch_operation( data=ProcessInstanceSuspensionBatchOperationRequest( filter_=ProcessInstanceCancellationBatchOperationRequestFilter(), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### sync_runtime_backup_state() ```python def sync_runtime_backup_state(**kwargs) ``` Force-write runtime backup state > Force-writes the checkpoint and backup metadata of every partition of the physical > tenant to the backup store, independent of any backup being taken or confirmed, and > returns the updated state. - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RuntimeBackupState - **Parameters:** **kwargs** (_Any_) - **Return type:** RuntimeBackupState #### Examples **Force-write the runtime backup state:** ```python def sync_runtime_backup_state_example() -> None: client = CamundaClient() # Force-writes the checkpoint and backup metadata of every partition to the # backup store, independent of any backup being taken or confirmed. result = client.sync_runtime_backup_state() print(f"Synced {len(result.backup_states)} partition backup states") ``` ### sync_runtime_backup_state_as_cluster_admin() ```python def sync_runtime_backup_state_as_cluster_admin(*, physical_tenant_id=, **kwargs) ``` Force-write runtime backup state across physical tenants > Force-writes the checkpoint and backup metadata of every partition of every physical tenant of the > cluster, or of the one named by physicalTenantId, to that tenant’s backup store, independent of > any backup being taken or confirmed, and returns the updated state per physical tenant. > > The request is all-or-nothing: a physical tenant whose metadata cannot be written fails the whole > request, and the writes that already succeeded on other tenants are not undone. The operation is > idempotent, so retrying the same call is the correct remedy. Narrow the request with > physicalTenantId to write the tenants that can still be reached. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use POST > /v2/backups/runtime/state/sync to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------- | ----------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out on at least one targeted physical tenant. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterRuntimeBackupState - **Return type:** ClusterRuntimeBackupState #### Examples **Force-write runtime backup state across physical tenants:** ```python def sync_runtime_backup_state_as_cluster_admin_example() -> None: client = CamundaClient() # Force-writes the checkpoint and backup metadata of every partition of # every physical tenant to the backup store, independent of any backup being # taken or confirmed. Use `physical_tenant_id` to narrow to a single tenant. result = client.sync_runtime_backup_state_as_cluster_admin() print(f"Synced {len(result.physical_tenants)} physical tenant backup states") ``` ### take_history_backup() ```python def take_history_backup(*, data, **kwargs) ``` Take a history backup > Triggers a backup of the physical tenant’s history, by scheduling a snapshot of every > secondary storage index it owns. > > Unlike runtime backups, history backups have no generated-id mode: backupId is always > required. > > Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. **Parameters:** | Parameter | Type | Description | | --------- | -------------------------- | ----------------------------------------- | | `data` | `TakeHistoryBackupRequest` | Request body for taking a history backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The request is forbidden for one of three reasons: the authenticated caller lacks the required BACKUP permission; the cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups; or the physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. The problem detail says which applies. The latter two are deployment faults the caller cannot correct by changing its request. - **errors.ConflictError** – If the response status code is 409. A backup with the given id already exists, or another backup is already running. The “already running” check is best-effort and node-local: it only observes backups started by the gateway that serves the request. Two concurrent requests reaching different gateways are narrowed by the duplicate-id check alone. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TakeHistoryBackupResponse - **Return type:** TakeHistoryBackupResponse #### Examples **Take a history backup:** ```python def take_history_backup_example(backup_id: int) -> None: client = CamundaClient() # Backups are logically ordered by id, so each successive backup must use a # higher id than the previous one. result = client.take_history_backup( data=TakeHistoryBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled history backup {result.backup_id}") for snapshot in result.scheduled_snapshots: print(f" {snapshot}") ``` ### take_history_backup_as_cluster_admin() ```python def take_history_backup_as_cluster_admin(*, data, physical_tenant_id=, **kwargs) ``` Take a history backup on one or every physical tenant > Triggers a history backup on every physical tenant of the cluster, or on the one named by > physicalTenantId. Every targeted tenant uses the same caller-supplied backupId, but the backups > are independent: they are neither coordinated nor rolled back together. > > The request is all-or-nothing: the backupId is checked on every targeted tenant before any > snapshot is scheduled, so a tenant that already holds this id, or that cannot be reached, fails the > whole request and no backup is started anywhere. There is no aggregated cluster-level state in the > response. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Only available on clusters > whose secondary storage is Elasticsearch or OpenSearch. Use POST /v2/backups/history to act as a > single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | -------------------------- | ----------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `data` | `TakeHistoryBackupRequest` | Request body for taking a history backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. The cluster’s secondary storage is neither Elasticsearch nor OpenSearch and therefore cannot serve history backups, or a targeted physical tenant’s snapshot repository is absent from the store — configured under a name the store does not have, or not configured at all. Both are deployment faults the caller cannot correct by changing its request; narrow the request with physicalTenantId to work with the tenants whose repository is usable. Unlike the per-physical-tenant backup endpoints, the cluster-admin surface performs no fine-grained authorization, so a missing BACKUP permission is never the reason. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster. - **errors.ConflictError** – If the response status code is 409. At least one targeted physical tenant already holds a backup with this id, or already has another backup running. The check that precedes the fan-out normally rejects the request before anything is scheduled; a tenant that takes the id in between rejects it during the fan-out instead, which can leave snapshots behind on the tenants already reached, so delete this backup id before retrying. - **errors.InternalServerErrorError** – If the response status code is 500. The backup could not be scheduled on every targeted physical tenant, because one of them hit an internal error. The check that precedes the fan-out rejects the request before anything is scheduled, but a failure during the fan-out itself can leave snapshots behind on the tenants already reached, so delete this backup id before retrying. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTakeHistoryBackupResponse - **Return type:** ClusterTakeHistoryBackupResponse #### Examples **Take a history backup on every physical tenant:** ```python def take_history_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Requires the cluster-admin security chain. Triggers the backup on every # physical tenant; the backup id must be higher than any previously used id. # Use `physical_tenant_id` to target a single physical tenant instead. result = client.take_history_backup_as_cluster_admin( data=TakeHistoryBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled history backup {result.backup_id}") for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: scheduled") ``` ### take_runtime_backup() ```python def take_runtime_backup(*, data=, **kwargs) ``` Take a runtime backup > Triggers a backup of runtime data on all partitions of the physical tenant. > > The backupId must be omitted if continuous backups and/or a backup or checkpoint > schedule is enabled for the physical tenant, as the id is generated automatically. > Otherwise, backupId is required. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------- | ----------------------------------------- | | `data` | `TakeRuntimeBackupRequest` \| `Unset` | Request body for taking a runtime backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.ConflictError** – If the response status code is 409. A backup with the same or a higher id already exists. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TakeRuntimeBackupResponse - **Return type:** TakeRuntimeBackupResponse #### Examples **Take a runtime backup:** ```python def take_runtime_backup_example(backup_id: int) -> None: client = CamundaClient() # `backup_id` is optional: leave it unset when continuous backups or a # backup/checkpoint schedule is enabled and an id is generated for you. # Here it is supplied explicitly, which is what a one-off manual backup does. result = client.take_runtime_backup( data=TakeRuntimeBackupRequest( backup_id=backup_id, ) ) print(f"Scheduled backup {result.backup_id}") ``` ### take_runtime_backup_as_cluster_admin() ```python def take_runtime_backup_as_cluster_admin(*, data=, physical_tenant_id=, **kwargs) ``` Take a runtime backup on one or every physical tenant > Triggers a runtime backup on every physical tenant of the cluster, or on the one named by > physicalTenantId. A cluster-wide backup is a set of independent per-tenant backups, not an atomic > snapshot of the cluster: they are neither coordinated nor rolled back together, and each tenant > stores its own, so the same backupId can be used for all of them. > > Every targeted physical tenant must be in the same backup-id mode. backupId must be omitted when > every targeted tenant generates its own ids (because continuous backups and/or a backup or > checkpoint schedule is enabled for it), and is required when none of them does. A cluster whose > targeted tenants mix the two modes is rejected with 400 and has to be driven one tenant at a time > through POST /v2/backups/runtime. In generated-id mode each tenant generates its own id, so the > response reports an id per physical tenant rather than one for the cluster. > > The trigger is all-or-error, and never silent about a partial trigger: if any targeted tenant cannot > be triggered the response carries an error status, but its body still lists every targeted tenant — > which ones were triggered, under which backupId to monitor or delete them, and why the others > failed. Nothing is rolled back, so the backups that were triggered keep running and have to be > deleted explicitly. A request rejected before any tenant was triggered answers with a problem detail > instead, and nothing is running. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. Use POST > /v2/backups/runtime to act as a single physical tenant. **Parameters:** | Parameter | Type | Description | | -------------------- | ------------------------------------- | ----------------------------------------- | | `physical_tenant_id` | `str` \| `Unset` | Example: default. | | `data` | `TakeRuntimeBackupRequest` \| `Unset` | Request body for taking a runtime backup. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The request names a backupId while at least one targeted physical tenant generates its own ids, or omits it while at least one does not, or the id is not a positive number. No tenant was triggered. A targeted tenant that rejects the request as invalid during the fan-out answers with the same status but the cluster body, listing the tenants that were triggered. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The requested physicalTenantId does not exist in this cluster, so no tenant was triggered. - **errors.ConflictError** – If the response status code is 409. At least one targeted physical tenant already holds a backup with this id or a higher one. Backups are triggered without a preceding check, so the tenants that accepted the id are listed in the body and keep running; delete them before retrying. - **errors.InternalServerErrorError** – If the response status code is 500. At least one targeted physical tenant could not be triggered, and the failures do not agree on a single status. The body lists the tenants that were triggered and keep running. - **errors.BadGatewayError** – If the response status code is 502. The connection to the broker was cut mid-flight on at least one targeted physical tenant, which may or may not have accepted the request. Those tenants are reported as UNKNOWN with the id to check them under, and the tenants that were triggered keep running. - **errors.ServiceUnavailableError** – If the response status code is 503. At least one targeted physical tenant could not be reached. The body lists the tenants that were triggered and keep running. - **errors.GatewayTimeoutError** – If the response status code is 504. The request from gateway to broker timed out on at least one targeted physical tenant, which may or may not have accepted it. Those tenants are reported as UNKNOWN with the id to check them under, and the tenants that were triggered keep running. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterTakeRuntimeBackupResponse - **Return type:** ClusterTakeRuntimeBackupResponse #### Examples **Take a runtime backup across physical tenants:** ```python def take_runtime_backup_as_cluster_admin_example(backup_id: int) -> None: client = CamundaClient() # Requires the cluster-admin security chain. Triggers the backup on every # physical tenant; the backup id must be higher than any previously used id. # Use `physical_tenant_id` to target a single physical tenant instead. result = client.take_runtime_backup_as_cluster_admin( data=TakeRuntimeBackupRequest( backup_id=backup_id, ) ) for tenant in result.physical_tenants: print(f" physical tenant {tenant.physical_tenant_id}: backup {tenant.backup_id}") ``` ### throw_job_error() ```python def throw_job_error(job_key, *, data, **kwargs) ``` Throw error for job > Reports a business error (i.e. non-technical) that occurs while processing a job. **Parameters:** | Parameter | Type | Description | | --------- | ----------------- | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobErrorRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the given key was not found or is not activated. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Throw a job error:** ```python def throw_job_error_example(job_key: JobKey) -> None: client = CamundaClient() client.throw_job_error( job_key=job_key, data=JobErrorRequest( error_code="VALIDATION_ERROR", error_message="Input validation failed", ), ) ``` ### trigger_cluster_rebalance() ```python def trigger_cluster_rebalance(*, data=, dry_run=, **kwargs) ``` Trigger a cluster-wide leadership rebalance > Transfers leadership of every partition that is not led by its highest-priority replica towards that > replica, one partition at a time. Returns as soon as the rebalance has been accepted (poll GET > /cluster/v2/rebalance to monitor progress). > > Each rebalance can specify overrides for the configured rebalance settings (e.g. maximum replication > lag to allow). An absent request body means “use the configured settings”. > > Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth > like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user’s > credentials — only the separate cluster-admin credentials are valid here. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dry_run` | `bool` \| `Unset` | | | `data` | `ClusterRebalanceRequest` \| `Unset` | The settings to run a given rebalance with. Every setting is optional; an absent request body is equivalent to a body with every field absent, and means “use the configured settings”. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ConflictError** – If the response status code is 409. A rebalance or cluster configuration change is already in progress, so there is no settled configuration to plan a rebalance against. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.BadGatewayError** – If the response status code is 502. The coordinator was reached, but its response was absent or unusable. - **errors.ServiceUnavailableError** – If the response status code is 503. No coordinator is currently available or reachable. - **errors.GatewayTimeoutError** – If the response status code is 504. The coordinator did not answer before the request timeout. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterBalanceResponse - **Return type:** ClusterBalanceResponse #### Examples **Trigger a cluster-wide leadership rebalance:** ```python def trigger_cluster_rebalance_example() -> None: client = CamundaClient() # Start a dry run first to inspect the plan without transferring any leadership. # Omit dry_run (or set it to False) to execute the rebalance for real. result: ClusterBalanceResponse = client.trigger_cluster_rebalance( data=ClusterRebalanceRequest( replication_lag_threshold=8388608, max_transfer_attempts=3, ), dry_run=True, ) print(f"Cluster balance state: {result.state}") if result.running_rebalance is not None: print(f"Running rebalance: {result.running_rebalance}") for partition in result.partitions: print(f" Partition {partition.partition_id}: {partition.state}") ``` ### unassign_client_from_group() ```python def unassign_client_from_group(group_id, client_id, **kwargs) ``` Unassign a client from a group > Unassigns a client from a group. > > The client is removed as a group member, with associated authorizations, roles, and tenant > assignments no longer applied. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found, or the client is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a client from a group:** ```python def unassign_client_from_group_example(group_id: GroupId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_client_from_group( group_id=group_id, client_id=client_id, ) ``` ### unassign_client_from_tenant() ```python def unassign_client_from_tenant(tenant_id, client_id, **kwargs) ``` Unassign a client from a tenant > Unassigns the client from the specified tenant. > > The client can no longer access tenant data. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The tenant does not exist or the client was not assigned to it. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a client from a tenant:** ```python def unassign_client_from_tenant_example(tenant_id: TenantId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_client_from_tenant( tenant_id=tenant_id, client_id=client_id, ) ``` ### unassign_group_from_tenant() ```python def unassign_group_from_tenant(tenant_id, group_id, **kwargs) ``` Unassign a group from a tenant > Unassigns a group from a specified tenant. > > Members of the group (users, clients) will no longer have access to the tenant’s data - except they > are assigned directly to the tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or group was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a group from a tenant:** ```python def unassign_group_from_tenant_example(tenant_id: TenantId, group_id: GroupId) -> None: client = CamundaClient() client.unassign_group_from_tenant( tenant_id=tenant_id, group_id=group_id, ) ``` ### unassign_mapping_rule_from_group() ```python def unassign_mapping_rule_from_group(group_id, mapping_rule_id, **kwargs) ``` Unassign a mapping rule from a group > Unassigns a mapping rule from a group. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or mapping rule with the given ID was not found, or the mapping rule is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a mapping rule from a group:** ```python def unassign_mapping_rule_from_group_example(group_id: GroupId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_mapping_rule_from_group( group_id=group_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_mapping_rule_from_tenant() ```python def unassign_mapping_rule_from_tenant(tenant_id, mapping_rule_id, **kwargs) ``` Unassign a mapping rule from a tenant > Unassigns a single mapping rule from a specified tenant without deleting the rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or mapping rule was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a mapping rule from a tenant:** ```python def unassign_mapping_rule_from_tenant_example(tenant_id: TenantId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_mapping_rule_from_tenant( tenant_id=tenant_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_role_from_client() ```python def unassign_role_from_client(role_id, client_id, **kwargs) ``` Unassign a role from a client > Unassigns the specified role from the client. The client will no longer inherit the authorizations > associated with this role. **Parameters:** | Parameter | Type | Description | | ----------- | ------ | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `client_id` | str) – | | The unique identifier of an OAuth client. Minted outside the Camunda REST API: in SaaS by Console, in Self-Managed with OIDC by the external identity provider (e.g. EntraID, Keycloak, Okta). In Self-Managed with Basic authentication, machine-to-machine applications are modelled as users instead — see the user identifier. > Example: my-application. - **kwargs** (_Any_) - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or client with the given ID or username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a client:** ```python def unassign_role_from_client_example(role_id: RoleId, client_id: ClientId) -> None: client = CamundaClient() client.unassign_role_from_client( role_id=role_id, client_id=client_id, ) ``` ### unassign_role_from_group() ```python def unassign_role_from_group(role_id, group_id, **kwargs) ``` Unassign a role from a group > Unassigns the specified role from the group. All group members (user or client) no longer inherit > the authorizations associated with this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a group:** ```python def unassign_role_from_group_example(role_id: RoleId, group_id: GroupId) -> None: client = CamundaClient() client.unassign_role_from_group( role_id=role_id, group_id=group_id, ) ``` ### unassign_role_from_mapping_rule() ```python def unassign_role_from_mapping_rule(role_id, mapping_rule_id, **kwargs) ``` Unassign a role from a mapping rule > Unassigns a role from a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ----- | ------------------------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or mapping rule with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a mapping rule:** ```python def unassign_role_from_mapping_rule_example(role_id: RoleId, mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.unassign_role_from_mapping_rule( role_id=role_id, mapping_rule_id=mapping_rule_id, ) ``` ### unassign_role_from_tenant() ```python def unassign_role_from_tenant(tenant_id, role_id, **kwargs) ``` Unassign a role from a tenant > Unassigns a role from a specified tenant. > > Users, Clients or Groups, that have the role assigned, will no longer have access to the > tenant’s data - unless they are assigned directly to the tenant. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or role was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a tenant:** ```python def unassign_role_from_tenant_example(tenant_id: TenantId, role_id: RoleId) -> None: client = CamundaClient() client.unassign_role_from_tenant( tenant_id=tenant_id, role_id=role_id, ) ``` ### unassign_role_from_user() ```python def unassign_role_from_user(role_id, username, **kwargs) ``` Unassign a role from a user > Unassigns a role from a user. The user will no longer inherit the authorizations associated with > this role. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The role or user with the given ID or username was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a role from a user:** ```python def unassign_role_from_user_example(role_id: RoleId, username: Username) -> None: client = CamundaClient() client.unassign_role_from_user( role_id=role_id, username=username, ) ``` ### unassign_user_from_group() ```python def unassign_user_from_group(group_id, username, **kwargs) ``` Unassign a user from a group > Unassigns a user from a group. > > The user is removed as a group member, with associated authorizations, roles, and tenant assignments > no longer applied. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The group or user with the given ID was not found, or the user is not assigned to this group. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user from a group:** ```python def unassign_user_from_group_example(group_id: GroupId, username: Username) -> None: client = CamundaClient() client.unassign_user_from_group( group_id=group_id, username=username, ) ``` ### unassign_user_from_tenant() ```python def unassign_user_from_tenant(tenant_id, username, **kwargs) ``` Unassign a user from a tenant > Unassigns the user from the specified tenant. > > The user can no longer access tenant data. **Parameters:** | Parameter | Type | Description | | ----------- | ----- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `username` | `str` | The unique name of a user. Example: swillis. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant or user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user from a tenant:** ```python def unassign_user_from_tenant_example(tenant_id: TenantId, username: Username) -> None: client = CamundaClient() client.unassign_user_from_tenant( tenant_id=tenant_id, username=username, ) ``` ### unassign_user_task() ```python def unassign_user_task(user_task_key, **kwargs) ``` Unassign user task > Removes the assignee of a task with the given key. Unassignment waits for blocking task listeners on > this lifecycle transition. If listener processing is delayed beyond the request timeout, this > endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and > inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | ----- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Unassign a user task:** ```python def unassign_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.unassign_user_task(user_task_key=user_task_key) ``` ### update_agent_instance() ```python def update_agent_instance(agent_instance_key, *, data, **kwargs) ``` Update agent instance > Updates the status of an agent instance and appends a batch of history items > to its conversation history. Each history item created for this request is > echoed back in the response. **Parameters:** | Parameter | Type | Description | | -------------------- | ---------------------------- | ---------------------------------------------------------------------- | | `agent_instance_key` | `str` | System-generated key for an agent instance. Example: 4503599627370496. | | `data` | `AgentInstanceUpdateRequest` | Request to update the mutable state of an agent instance. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The agent instance with the given key was not found. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** AgentInstanceUpdateResult - **Return type:** AgentInstanceUpdateResult #### Examples **Update an agent instance:** ```python def update_agent_instance_example( agent_instance_key: AgentInstanceKey, element_instance_key: ElementInstanceKey, job_key: JobKey, # Engine-minted: take the token from the job activation response, never build one. job_lease_token: JobLeaseToken, ) -> None: client = CamundaClient() # Appending conversation history is part of an update; there is no separate # history-item endpoint. result = client.update_agent_instance( agent_instance_key=agent_instance_key, data=AgentInstanceUpdateRequest( element_instance_key=element_instance_key, job_key=job_key, job_lease_token=job_lease_token, status=AgentInstanceUpdateRequestStatus.THINKING, history=[ AgentInstanceHistoryItem( history_item_id=HistoryItemId("assistant-1"), loop_iteration=1, role=AgentInstanceHistoryItemRole.ASSISTANT, content=[ TextContent(content_type="TEXT", text="How can I help you today?"), ], produced_at=datetime.datetime.now(datetime.timezone.utc), ), ], ), ) for item in result.created_history: print(f"Appended history item {item.history_item_id}: {item.history_item_key}") ``` ### update_authorization() ```python def update_authorization(authorization_key, *, data, **kwargs) ``` Update authorization > Update the authorization with the given key. **Parameters:** | Parameter | Type | Description | | ------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------- | | `authorization_key` | `str` | System-generated key for an authorization. Example: 2251799813684332. | | `data` | `AuthorizationIdBasedRequest` \| `AuthorizationPropertyBasedRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The authorization with the authorizationKey was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update an authorization:** ```python def update_authorization_example(authorization_key: AuthorizationKey) -> None: client = CamundaClient() client.update_authorization( authorization_key=authorization_key, data=AuthorizationIdBasedRequest( resource_type=AuthorizationIdBasedRequestResourceType.PROCESS_DEFINITION, permission_types=[ AuthorizationIdBasedRequestPermissionTypesItem.READ, AuthorizationIdBasedRequestPermissionTypesItem.UPDATE, AuthorizationIdBasedRequestPermissionTypesItem.DELETE, ], resource_id="my-process", owner_type=OwnerTypeEnum.USER, owner_id="user@example.com", ), ) ``` ### update_global_cluster_variable() ```python def update_global_cluster_variable(name, *, data, **kwargs) ``` Update a global-scoped cluster variable > Updates the value of an existing global cluster variable. > > The variable must exist, otherwise a 404 error is returned. **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `data` | `UpdateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Update a global cluster variable:** ```python def update_global_cluster_variable_example(name: ClusterVariableName) -> None: client = CamundaClient() result = client.update_global_cluster_variable( name=name, data=UpdateClusterVariableRequest( value={"key": "updated-value"}, ), ) print(f"Updated variable: {result.name}") ``` ### update_global_task_listener() ```python def update_global_task_listener(id, *, data, **kwargs) ``` Update global user task listener > Updates a global user task listener. **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ---------------------------------------------------------------------- | | `id` | `str` | The user-defined id for the global listener Example: GlobalListener_1. | | `data` | `UpdateGlobalTaskListenerRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The global user task listener was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GlobalTaskListenerResult - **Return type:** GlobalTaskListenerResult #### Examples **Update a global task listener:** ```python def update_global_task_listener_example(listener_id: GlobalListenerId) -> None: client = CamundaClient() result = client.update_global_task_listener( id=listener_id, data=UpdateGlobalTaskListenerRequest( event_types=[GlobalTaskListenerEventTypeEnum.COMPLETING], type_="updated-task-listener", ), ) print(f"Updated listener: {result.id}") ``` ### update_group() ```python def update_group(group_id, *, data, **kwargs) ``` Update group > Update a group with the given ID. **Parameters:** | Parameter | Type | Description | | ---------- | -------------------- | ------------------------------------------------------- | | `group_id` | `str` | The unique identifier of a group. Example: engineering. | | `data` | `GroupUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The group with the given ID was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** GroupUpdateResult - **Return type:** GroupUpdateResult #### Examples **Update a group:** ```python def update_group_example(group_id: GroupId) -> None: client = CamundaClient() client.update_group( group_id=group_id, data=GroupUpdateRequest(name="engineering-team"), ) ``` ### update_job() ```python def update_job(job_key, *, data, **kwargs) ``` Update job > Update a job with the given key. **Parameters:** | Parameter | Type | Description | | --------- | ------------------ | ---------------------------------------------------------- | | `job_key` | `str` | System-generated key for a job. Example: 2251799813653498. | | `data` | `JobUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The job with the jobKey is not found. - **errors.ConflictError** – If the response status code is 409. The job with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update a job:** ```python def update_job_example(job_key: JobKey) -> None: client = CamundaClient() client.update_job( job_key=job_key, data=JobUpdateRequest( changeset=JobChangeset( retries=3, ), ), ) ``` ### update_jobs_batch_operation() ```python def update_jobs_batch_operation(*, data, **kwargs) ``` Update jobs (batch) > Creates a batch operation to update jobs matching the given filter. At least one changeset field > must be non-null. This is done asynchronously; the progress can be tracked using the > batchOperationKey from the response and the batch operation status endpoint (/batch- > operations/{batchOperationKey}). **Parameters:** | Parameter | Type | Description | | --------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `data` | `JobBatchUpdateRequest` | The filter and changeset for a batch job update operation. The filter defines which jobs are updated; the changeset defines what to update. At least one changeset field must be non-null. | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The job batch update operation failed. More details are provided in the response body. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** BatchOperationCreatedResult - **Return type:** BatchOperationCreatedResult #### Examples **Update jobs in batch:** ```python def update_jobs_batch_operation_example() -> None: client = CamundaClient() result = client.update_jobs_batch_operation( data=JobBatchUpdateRequest( filter_=JobBatchUpdateRequestFilter( type_="my-job-type", ), changeset=JobBatchUpdateRequestChangeset( retries=3, ), ), ) print(f"Batch operation key: {result.batch_operation_key}") ``` ### update_mapping_rule() ```python def update_mapping_rule(mapping_rule_id, *, data=, **kwargs) ``` Update mapping rule > Update a mapping rule. **Parameters:** | Parameter | Type | Description | | ----------------- | ------------------------------------- | ------------------------------------------------------------------ | | `mapping_rule_id` | `str` | The unique identifier of a mapping rule. Example: my-mapping-rule. | | `data` | `MappingRuleUpdateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. The request to update a mapping rule was denied. More details are provided in the response body. - **errors.NotFoundError** – If the response status code is 404. The request to update a mapping rule was denied. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** MappingRuleUpdateResult - **Return type:** MappingRuleUpdateResult #### Examples **Update a mapping rule:** ```python def update_mapping_rule_example(mapping_rule_id: MappingRuleId) -> None: client = CamundaClient() client.update_mapping_rule( mapping_rule_id=mapping_rule_id, data=MappingRuleUpdateRequest( claim_name="groups", claim_value="senior-engineering", name="Senior Engineering Mapping", ), ) ``` ### update_role() ```python def update_role(role_id, *, data, **kwargs) ``` Update role > Update a role with the given ID. **Parameters:** | Parameter | Type | Description | | --------- | ------------------- | ------------------------------------------------ | | `role_id` | `str` | The unique identifier of a role. Example: admin. | | `data` | `RoleUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.NotFoundError** – If the response status code is 404. The role with the ID is not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** RoleUpdateResult - **Return type:** RoleUpdateResult #### Examples **Update a role:** ```python def update_role_example(role_id: RoleId) -> None: client = CamundaClient() client.update_role( role_id=role_id, data=RoleUpdateRequest(name="senior-developer"), ) ``` ### update_tenant() ```python def update_tenant(tenant_id, *, data, **kwargs) ``` Update tenant > Updates an existing tenant. **Parameters:** | Parameter | Type | Description | | ----------- | --------------------- | --------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `data` | `TenantUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Not found. The tenant was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** TenantUpdateResult - **Return type:** TenantUpdateResult #### Examples **Update a tenant:** ```python def update_tenant_example(tenant_id: TenantId) -> None: client = CamundaClient() client.update_tenant( tenant_id=tenant_id, data=TenantUpdateRequest(name="Acme Corp International"), ) ``` ### update_tenant_cluster_variable() ```python def update_tenant_cluster_variable(tenant_id, name, *, data, **kwargs) ``` Update a tenant-scoped cluster variable > Updates the value of an existing tenant-scoped cluster variable. > > The variable must exist, otherwise a 404 error is returned. **Parameters:** | Parameter | Type | Description | | ----------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | | `tenant_id` | `str` | The unique identifier of the tenant. Example: customer-service. | | `name` | `str` | The name of a cluster variable. Unique within its scope (global or tenant- specific). Example: feature-flag-checkout. | | `data` | `UpdateClusterVariableRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.UnauthorizedError** – If the response status code is 401. The request lacks valid authentication credentials. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. Cluster variable not found - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** ClusterVariableResult - **Return type:** ClusterVariableResult #### Examples **Update a tenant cluster variable:** ```python def update_tenant_cluster_variable_example(tenant_id: TenantId, name: ClusterVariableName) -> None: client = CamundaClient() result = client.update_tenant_cluster_variable( tenant_id=tenant_id, name=name, data=UpdateClusterVariableRequest( value={"key": "updated-tenant-value"}, ), ) print(f"Updated variable: {result.name}") ``` ### update_user() ```python def update_user(username, *, data, **kwargs) ``` Update user > Updates a user. **Parameters:** | Parameter | Type | Description | | ---------- | ------------------- | -------------------------------------------- | | `username` | `str` | The unique name of a user. Example: swillis. | | `data` | `UserUpdateRequest` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.ForbiddenError** – If the response status code is 403. Forbidden. The request is not allowed. - **errors.NotFoundError** – If the response status code is 404. The user was not found. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** UserUpdateResult - **Return type:** UserUpdateResult #### Examples **Update a user:** ```python def update_user_example(username: Username) -> None: client = CamundaClient() client.update_user( username=username, data=UserUpdateRequest( name="Jane Smith", email="jsmith@example.com", ), ) ``` ### update_user_task() ```python def update_user_task(user_task_key, *, data=, **kwargs) ``` Update user task > Update a user task with the given key. Updates wait for blocking task listeners on this lifecycle > transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. **Parameters:** | Parameter | Type | Description | | --------------- | ---------------------------------- | ------------------------------------- | | `user_task_key` | `str` | System-generated key for a user task. | | `data` | `UserTaskUpdateRequest` \| `Unset` | | | `kwargs` | `Any` | | - **Raises:** - **errors.BadRequestError** – If the response status code is 400. The provided data is not valid. - **errors.NotFoundError** – If the response status code is 404. The user task with the given key was not found. - **errors.ConflictError** – If the response status code is 409. The user task with the given key is in the wrong state currently. More details are provided in the response body. - **errors.InternalServerErrorError** – If the response status code is 500. An internal error occurred while processing the request. - **errors.ServiceUnavailableError** – If the response status code is 503. The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server’s compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains RESOURCE_EXHAUSTED. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: [internal processing](../../../components/zeebe/technical-concepts/internal-processing.md#handling-backpressure) . - **errors.GatewayTimeoutError** – If the response status code is 504. The request timed out between the gateway and the broker. For these endpoints, this often happens when user task listeners are configured and the corresponding listener job is not completed within the request timeout. Common causes include no available job workers for the listener type, busy or crashed job workers, or delayed job completion. As with any gateway timeout, general timeout causes (for example transient network issues) can also result in a 504 response. Troubleshooting: - verify that job workers for the listener type are running and healthy - check worker logs for crashes, retries, and completion failures - check network connectivity between workers, gateway, and broker - retry with backoff after transient failures - fail without retries if a problem persists - **errors.UnexpectedStatus** – If the response status code is not documented. - **httpx.TimeoutException** – If the request takes longer than Client.timeout. - **Returns:** None - **Return type:** None #### Examples **Update a user task:** ```python def update_user_task_example(user_task_key: UserTaskKey) -> None: client = CamundaClient() client.update_user_task( user_task_key=user_task_key, data=UserTaskUpdateRequest( changeset=Changeset( due_date=datetime.datetime(2025, 12, 31, 23, 59, 59), ), ), ) ``` --- ## Configuration(4) ## Client ```python class Client(base_url, , raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING) ``` Bases: `object` A class for keeping track of data related to the API The following are accepted as keyword arguments and will be used to construct httpx Clients internally: > `base_url`: The base URL for the API, all requests are made to a relative path to this URL > `cookies`: A dictionary of cookies to be sent with every request > `headers`: A dictionary of headers to be sent with every request > `timeout`: The maximum amount of a time a request can take. API functions will raise > httpx.TimeoutException if this is exceeded. > `verify_ssl`: Whether or not to verify the SSL certificate of the API server. This should be True in production, > but can be set to False for testing purposes. > `follow_redirects`: Whether or not to follow redirects. Default value is False. > `httpx_args`: A dictionary of additional arguments to be passed to the `httpx.Client` and `httpx.AsyncClient` constructor. **Parameters:** | Parameter | Type | Description | | ---------------------------- | ----------------------------------- | ----------- | | `base_url` | `str` | | | `raise_on_unexpected_status` | `bool` | | | `cookies` | dict [str , str ] | | | `headers` | dict [str , str ] | | | `timeout` | `httpx.Timeout` \| `None` | | | `verify_ssl` | `str` \| `bool` \| `ssl.SSLContext` | | | `follow_redirects` | `bool` | | | `httpx_args` | dict [str , Any ] | | ### raise_on_unexpected_status Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor. - **Type:** bool ### get_async_httpx_client() ```python def get_async_httpx_client() ``` Get the underlying httpx.AsyncClient, constructing a new one if not previously set - **Return type:** _AsyncClient_ ### get_httpx_client() ```python def get_httpx_client() ``` Get the underlying httpx.Client, constructing a new one if not previously set - **Return type:** _Client_ ### raise_on_unexpected_status ```python raise_on_unexpected_status: bool ``` ### set_async_httpx_client() ```python def set_async_httpx_client(async_client) ``` Manually set the underlying httpx.AsyncClient **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - **Parameters:** **async_client** (_AsyncClient_) - **Return type:** [_Client_](#client) ### set_httpx_client() ```python def set_httpx_client(client) ``` Manually set the underlying httpx.Client **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - **Parameters:** **client** (_Client_) - **Return type:** [_Client_](#client) ### with_cookies() ```python def with_cookies(cookies) ``` Get a new client matching this one with additional cookies - **Parameters:** **cookies** (_dict_ _[__str_ _,_ _str_ _]_) - **Return type:** [_Client_](#client) ### with_headers() ```python def with_headers(headers) ``` Get a new client matching this one with additional headers - **Parameters:** **headers** (_dict_ _[__str_ _,_ _str_ _]_) - **Return type:** [_Client_](#client) ### with_timeout() ```python def with_timeout(timeout) ``` Get a new client matching this one with a new timeout configuration - **Parameters:** **timeout** (_Timeout_) - **Return type:** [_Client_](#client) ## AuthenticatedClient ```python class AuthenticatedClient(base_url, token, prefix='Bearer', auth_header_name='Authorization', , raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING) ``` Bases: `object` A Client which has been authenticated for use on secured endpoints The following are accepted as keyword arguments and will be used to construct httpx Clients internally: > `base_url`: The base URL for the API, all requests are made to a relative path to this URL > `cookies`: A dictionary of cookies to be sent with every request > `headers`: A dictionary of headers to be sent with every request > `timeout`: The maximum amount of a time a request can take. API functions will raise > httpx.TimeoutException if this is exceeded. > `verify_ssl`: Whether or not to verify the SSL certificate of the API server. This should be True in production, > but can be set to False for testing purposes. > `follow_redirects`: Whether or not to follow redirects. Default value is False. > `httpx_args`: A dictionary of additional arguments to be passed to the `httpx.Client` and `httpx.AsyncClient` constructor. **Parameters:** | Parameter | Type | Description | | ---------------------------- | ----------------------------------- | ----------- | | `base_url` | `str` | | | `token` | `str` | | | `prefix` | `str` | | | `auth_header_name` | `str` | | | `raise_on_unexpected_status` | `bool` | | | `cookies` | dict [str , str ] | | | `headers` | dict [str , str ] | | | `timeout` | `httpx.Timeout` \| `None` | | | `verify_ssl` | `str` \| `bool` \| `ssl.SSLContext` | | | `follow_redirects` | `bool` | | | `httpx_args` | dict [str , Any ] | | ### raise_on_unexpected_status Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor. - **Type:** bool ### token The token to use for authentication - **Type:** str ### prefix The prefix to use for the Authorization header - **Type:** str ### auth_header_name The name of the Authorization header - **Type:** str ### auth_header_name ```python auth_header_name: str ``` ### get_async_httpx_client() ```python def get_async_httpx_client() ``` Get the underlying httpx.AsyncClient, constructing a new one if not previously set - **Return type:** _AsyncClient_ ### get_httpx_client() ```python def get_httpx_client() ``` Get the underlying httpx.Client, constructing a new one if not previously set - **Return type:** _Client_ ### prefix ```python prefix: str ``` ### raise_on_unexpected_status ```python raise_on_unexpected_status: bool ``` ### set_async_httpx_client() ```python def set_async_httpx_client(async_client) ``` Manually set the underlying httpx.AsyncClient **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - **Parameters:** **async_client** (_AsyncClient_) - **Return type:** [_AuthenticatedClient_](#authenticatedclient) ### set_httpx_client() ```python def set_httpx_client(client) ``` Manually set the underlying httpx.Client **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - **Parameters:** **client** (_Client_) - **Return type:** [_AuthenticatedClient_](#authenticatedclient) ### token ```python token: str ``` ### with_cookies() ```python def with_cookies(cookies) ``` Get a new client matching this one with additional cookies - **Parameters:** **cookies** (_dict_ _[__str_ _,_ _str_ _]_) - **Return type:** [_AuthenticatedClient_](#authenticatedclient) ### with_headers() ```python def with_headers(headers) ``` Get a new client matching this one with additional headers - **Parameters:** **headers** (_dict_ _[__str_ _,_ _str_ _]_) - **Return type:** [_AuthenticatedClient_](#authenticatedclient) ### with_timeout() ```python def with_timeout(timeout) ``` Get a new client matching this one with a new timeout configuration - **Parameters:** **timeout** (_Timeout_) - **Return type:** [_AuthenticatedClient_](#authenticatedclient) --- ## Python SDK API Reference # API Reference - [CamundaClient](client.md) - [`CamundaClient`](client.md#camunda_orchestration_sdk.CamundaClient) - [CamundaAsyncClient](async-client.md) - [`CamundaAsyncClient`](async-client.md#camunda_orchestration_sdk.CamundaAsyncClient) - [Configuration](configuration.md) - [`Client`](configuration.md#camunda_orchestration_sdk.Client) - [`AuthenticatedClient`](configuration.md#camunda_orchestration_sdk.AuthenticatedClient) - [Runtime](runtime.md) - [Authentication](runtime.md#module-camunda_orchestration_sdk.runtime.auth) - [Logging](runtime.md#module-camunda_orchestration_sdk.runtime.logging) - [Job Worker](runtime.md#module-camunda_orchestration_sdk.runtime.job_worker) - [Configuration Resolver](runtime.md#module-camunda_orchestration_sdk.runtime.configuration_resolver) - [Semantic Types](types.md) - [`AgentDefinitionKey`](types.md#camunda_orchestration_sdk.semantic_types.AgentDefinitionKey) - [`AgentHistoryItemKey`](types.md#camunda_orchestration_sdk.semantic_types.AgentHistoryItemKey) - [`AgentInstanceKey`](types.md#camunda_orchestration_sdk.semantic_types.AgentInstanceKey) - [`AuditLogEntityKey`](types.md#camunda_orchestration_sdk.semantic_types.AuditLogEntityKey) - [`AuditLogKey`](types.md#camunda_orchestration_sdk.semantic_types.AuditLogKey) - [`AuthorizationKey`](types.md#camunda_orchestration_sdk.semantic_types.AuthorizationKey) - [`BatchOperationKey`](types.md#camunda_orchestration_sdk.semantic_types.BatchOperationKey) - [`BusinessId`](types.md#camunda_orchestration_sdk.semantic_types.BusinessId) - [`ClientId`](types.md#camunda_orchestration_sdk.semantic_types.ClientId) - [`ClusterVariableName`](types.md#camunda_orchestration_sdk.semantic_types.ClusterVariableName) - [`ConditionalEvaluationKey`](types.md#camunda_orchestration_sdk.semantic_types.ConditionalEvaluationKey) - [`DecisionDefinitionId`](types.md#camunda_orchestration_sdk.semantic_types.DecisionDefinitionId) - [`DecisionDefinitionKey`](types.md#camunda_orchestration_sdk.semantic_types.DecisionDefinitionKey) - [`DecisionEvaluationInstanceKey`](types.md#camunda_orchestration_sdk.semantic_types.DecisionEvaluationInstanceKey) - [`DecisionEvaluationKey`](types.md#camunda_orchestration_sdk.semantic_types.DecisionEvaluationKey) - [`DecisionInstanceKey`](types.md#camunda_orchestration_sdk.semantic_types.DecisionInstanceKey) - [`DecisionRequirementsKey`](types.md#camunda_orchestration_sdk.semantic_types.DecisionRequirementsKey) - [`DeploymentKey`](types.md#camunda_orchestration_sdk.semantic_types.DeploymentKey) - [`DocumentId`](types.md#camunda_orchestration_sdk.semantic_types.DocumentId) - [`ElementId`](types.md#camunda_orchestration_sdk.semantic_types.ElementId) - [`ElementInstanceKey`](types.md#camunda_orchestration_sdk.semantic_types.ElementInstanceKey) - [`EndCursor`](types.md#camunda_orchestration_sdk.semantic_types.EndCursor) - [`FormId`](types.md#camunda_orchestration_sdk.semantic_types.FormId) - [`FormKey`](types.md#camunda_orchestration_sdk.semantic_types.FormKey) - [`GlobalListenerId`](types.md#camunda_orchestration_sdk.semantic_types.GlobalListenerId) - [`GroupId`](types.md#camunda_orchestration_sdk.semantic_types.GroupId) - [`HistoryItemId`](types.md#camunda_orchestration_sdk.semantic_types.HistoryItemId) - [`IncidentKey`](types.md#camunda_orchestration_sdk.semantic_types.IncidentKey) - [`JobKey`](types.md#camunda_orchestration_sdk.semantic_types.JobKey) - [`JobLeaseToken`](types.md#camunda_orchestration_sdk.semantic_types.JobLeaseToken) - [`MappingRuleId`](types.md#camunda_orchestration_sdk.semantic_types.MappingRuleId) - [`MessageKey`](types.md#camunda_orchestration_sdk.semantic_types.MessageKey) - [`MessageSubscriptionKey`](types.md#camunda_orchestration_sdk.semantic_types.MessageSubscriptionKey) - [`ProcessDefinitionId`](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionId) - [`ProcessDefinitionKey`](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionKey) - [`ProcessInstanceKey`](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) - [`RoleId`](types.md#camunda_orchestration_sdk.semantic_types.RoleId) - [`SignalKey`](types.md#camunda_orchestration_sdk.semantic_types.SignalKey) - [`StartCursor`](types.md#camunda_orchestration_sdk.semantic_types.StartCursor) - [`Tag`](types.md#camunda_orchestration_sdk.semantic_types.Tag) - [`TenantId`](types.md#camunda_orchestration_sdk.semantic_types.TenantId) - [`UserTaskKey`](types.md#camunda_orchestration_sdk.semantic_types.UserTaskKey) - [`Username`](types.md#camunda_orchestration_sdk.semantic_types.Username) - [`VariableKey`](types.md#camunda_orchestration_sdk.semantic_types.VariableKey) - [`lift_resource_key()`](types.md#camunda_orchestration_sdk.semantic_types.lift_resource_key) - [`lift_scope_key()`](types.md#camunda_orchestration_sdk.semantic_types.lift_scope_key) - [`try_lift_resource_key()`](types.md#camunda_orchestration_sdk.semantic_types.try_lift_resource_key) - [`try_lift_scope_key()`](types.md#camunda_orchestration_sdk.semantic_types.try_lift_scope_key) --- ## Runtime(3) ## Authentication ## AsyncAuthProvider ```python class AsyncAuthProvider(*args, **kwargs) ``` Bases: `Protocol` Async auth provider variant. If an auth provider implements this protocol, async clients will prefer it. ### aget_headers() ```python async def aget_headers() ``` - **Return type:** _Mapping_[str, str] ## AsyncOAuthClientCredentialsAuthProvider ```python class AsyncOAuthClientCredentialsAuthProvider(, oauth_url, client_id, client_secret, audience, cache_dir=None, disk_cache_disable=False, saas_401_cooldown_s=30.0, transport=None, timeout=None, logger=None, clock=None) ``` Bases: `object` OAuth 2.0 Client Credentials provider with in-memory caching. This is designed for async clients. **Parameters:** | Parameter | Type | Description | | --------------------- | ------------------------------------ | ----------- | | `oauth_url` | `str` | | | `client_id` | `str` | | | `client_secret` | `str` | | | `audience` | `str` | | | `cache_dir` | `str` \| `None` | | | `disk_cache_disable` | `bool` | | | `saas_401_cooldown_s` | `float` | | | `transport` | `httpx.AsyncBaseTransport` \| `None` | | | `timeout` | `float` \| `None` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | | `clock` | `Clock` \| `None` | | ### aclose() ```python async def aclose() ``` Close the underlying async HTTP client used for token requests. - **Return type:** None ### aget_headers() ```python async def aget_headers() ``` - **Return type:** _Mapping_[str, str] ### get_headers() ```python def get_headers() ``` Sync fallback satisfying the `AuthProvider` protocol. Returns cached token headers if a valid token is already held, otherwise returns empty headers (the next async request hook will call `aget_headers` to fetch a fresh token). - **Return type:** _Mapping_[str, str] ## AuthProvider ```python class AuthProvider(*args, **kwargs) ``` Bases: `Protocol` Provides per-request authentication headers. Implementations are expected to be lightweight and safe to call for every request. ### get_headers() ```python def get_headers() ``` - **Return type:** _Mapping_[str, str] ## BasicAuthProvider ```python class BasicAuthProvider(, username, password) ``` Bases: `object` HTTP Basic auth provider. **Parameters:** | Parameter | Type | Description | | ---------- | ----- | ----------- | | `username` | `str` | | | `password` | `str` | | ### get_headers() ```python def get_headers() ``` - **Return type:** _Mapping_[str, str] ## NullAuthProvider ```python class NullAuthProvider ``` Bases: `object` Default auth provider that adds no headers. ### get_headers() ```python def get_headers() ``` - **Return type:** dict[str, str] ## OAuthClientCredentialsAuthProvider ```python class OAuthClientCredentialsAuthProvider(, oauth_url, client_id, client_secret, audience, cache_dir=None, disk_cache_disable=False, saas_401_cooldown_s=30.0, transport=None, timeout=None, logger=None, clock=None) ``` Bases: `object` OAuth 2.0 Client Credentials provider with in-memory caching. This is designed for sync clients. **Parameters:** | Parameter | Type | Description | | --------------------- | --------------------------------- | ----------- | | `oauth_url` | `str` | | | `client_id` | `str` | | | `client_secret` | `str` | | | `audience` | `str` | | | `cache_dir` | `str` \| `None` | | | `disk_cache_disable` | `bool` | | | `saas_401_cooldown_s` | `float` | | | `transport` | `httpx.BaseTransport` \| `None` | | | `timeout` | `float` \| `None` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | | `clock` | `Clock` \| `None` | | ### close() ```python def close() ``` Close the underlying HTTP client used for token requests. Call this when the application is shutting down if you created a provider instance yourself (or if you want deterministic cleanup in tests). - **Return type:** None ### get_headers() ```python def get_headers() ``` - **Return type:** _Mapping_[str, str] ### inject_auth_event_hooks() ```python def inject_auth_event_hooks(httpx_args, auth_provider, *, async_client=False, log_level=None, logger=None) ``` Return a copy of httpx_args with a request hook that applies auth headers. This uses httpx event hooks so we don’t have to inject headers in every generated API call. **Parameters:** | Parameter | Type | Description | | --------------- | --------------------------------- | ----------- | | `httpx_args` | dict [str , Any ] \| `None` | | | `auth_provider` | `object` | | | `async_client` | `bool` | | | `log_level` | `str` \| `None` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | - **Return type:** dict[str, _Any_] ## Logging Pluggable logger abstraction for the Camunda SDK. Users can inject any logger that implements [`CamundaLogger`](#camundalogger) (stdlib `logging.Logger`, `loguru.logger`, or a custom object with `debug`/`info`/`warning`/`error` methods). When no logger is provided, loguru is used if installed, otherwise logging is silently disabled. ## CamundaLogger ```python class CamundaLogger(*args, **kwargs) ``` Bases: `Protocol` Protocol for a logger injectable into the SDK. Compatible with Python’s `logging.Logger`, `loguru.logger`, or any object that exposes these four methods. ### debug() ```python def debug(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### error() ```python def error(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### info() ```python def info(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### warning() ```python def warning(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ## NullLogger ```python class NullLogger ``` Bases: `object` Logger that silently discards all messages. ### debug() ```python def debug(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### error() ```python def error(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### info() ```python def info(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### trace() ```python def trace(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### warning() ```python def warning(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ## SdkLogger ```python class SdkLogger(logger, prefix='') ``` Bases: `object` Internal wrapper that normalises logger implementations. Adds `trace()` support (falls back to `debug()` on loggers that lack it) and `bind()` support (uses loguru’s native `bind` when available, otherwise prepends a `[key=value ...]` prefix to messages). **Parameters:** | Parameter | Type | Description | | --------- | ------------------------------- | ----------- | | `logger` | [CamundaLogger](#camundalogger) | | | `prefix` | `str` | | ### bind() ```python def bind(**kwargs) ``` Create a child logger with additional context. If the underlying logger supports `bind()` (e.g. loguru), the native method is used. Otherwise context is rendered as a `[k=v ...]` prefix on each message. - **Parameters:** **kwargs** (_str_) - **Return type:** [_SdkLogger_](#sdklogger) ### debug() ```python def debug(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### error() ```python def error(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### info() ```python def info(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### trace() ```python def trace(msg) ``` - **Parameters:** **msg** (_str_) - **Return type:** None ### warning() ```python def warning(msg, *args, **kwargs) ``` **Parameters:** | Parameter | Type | Description | | --------- | ----- | ----------- | | `msg` | `str` | | | `args` | `Any` | | | `kwargs` | `Any` | | - **Return type:** None ### create_logger() ```python def create_logger(logger=None) ``` Create an [`SdkLogger`](#sdklogger). - **Parameters:** **logger** ([_CamundaLogger_](#camundalogger) _|_ _None_) – A user-supplied logger. When `None`, loguru is used if installed, otherwise a [`NullLogger`](#nulllogger) is used. - **Return type:** [_SdkLogger_](#sdklogger) ## Job Worker ### AsyncJobContext alias of [`ConnectedJobContext`](#connectedjobcontext) ## ConnectedJobContext ```python class ConnectedJobContext(type_, process_definition_id, process_definition_version, element_id, custom_headers, worker, retries, deadline, variables, tenant_id, physical_tenant_id, job_key, process_instance_key, process_definition_key, element_instance_key, kind, listener_event_type, user_task, tags, root_process_instance_key, business_id, priority, job_lease_token, log=NOTHING, , client, clock) ``` Bases: [`JobContext`](#jobcontext) Context for **async** handlers — includes an async client reference. Extends [`JobContext`](#jobcontext) with a `client` attribute that provides access to the Camunda API from within an async job handler. Use `await job.client.method(...)` to call API methods. This context is provided when the execution strategy is `"async"`. For `"thread"` handlers, see [`SyncJobContext`](#syncjobcontext). For `"process"` handlers, see [`JobContext`](#jobcontext). **Parameters:** | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- | | `type_` | `str` | | | `process_definition_id` | [ProcessDefinitionId](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionId) | | | `process_definition_version` | `int` | | | `element_id` | [ElementId](types.md#camunda_orchestration_sdk.semantic_types.ElementId) | | | `custom_headers` | `ActivatedJobResultCustomHeaders` | | | `worker` | `str` | | | `retries` | `int` | | | `deadline` | `int` | | | `variables` | `ActivatedJobResultVariables` | | | `tenant_id` | [TenantId](types.md#camunda_orchestration_sdk.semantic_types.TenantId) | | | `physical_tenant_id` | `str` | | | `job_key` | [JobKey](types.md#camunda_orchestration_sdk.semantic_types.JobKey) | | | `process_instance_key` | [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `process_definition_key` | [ProcessDefinitionKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionKey) | | | `element_instance_key` | [ElementInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ElementInstanceKey) | | | `kind` | `JobKindEnum` | | | `listener_event_type` | `JobListenerEventTypeEnum` | | | `user_task` | `ActivatedJobResultUserTask` \| `None` | | | `tags` | list [str ] | | | `root_process_instance_key` | `None` \| [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `business_id` | `None` \| [BusinessId](types.md#camunda_orchestration_sdk.semantic_types.BusinessId) | | | `priority` | `int` | | | `job_lease_token` | `None` \| [JobLeaseToken](types.md#camunda_orchestration_sdk.semantic_types.JobLeaseToken) | | | `log` | [SdkLogger](#sdklogger) | | | `client` | [CamundaAsyncClient](async-client.md#camunda_orchestration_sdk.CamundaAsyncClient) | | | `clock` | `Clock` | | ### clock The worker’s clock. Await `job.clock.sleep(...)` rather than `asyncio.sleep(...)` so a handler that waits follows engine time when the engine’s clock is pinned, instead of stalling on the real one. For short in-handler coordination only – spacing a retry, waiting on a resource to settle. A long or business wait belongs in the process as a BPMN timer event: a handler holding a job for minutes occupies a worker slot, risks the job timeout expiring underneath it, and hides the wait from the process model where it cannot be seen or changed. - **Type:** Clock ### client ```python client: [CamundaAsyncClient](async-client.md#camunda_orchestration_sdk.CamundaAsyncClient) ``` ### clock ```python clock: Clock ``` ### _classmethod_ create(job, client, clock, logger=None) **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `job` | `ActivatedJobResult` | | | `client` | `Any` | | | `clock` | `Clock` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | - **Return type:** [_ConnectedJobContext_](#connectedjobcontext) ## JobContext ```python class JobContext(type_, process_definition_id, process_definition_version, element_id, custom_headers, worker, retries, deadline, variables, tenant_id, physical_tenant_id, job_key, process_instance_key, process_definition_key, element_instance_key, kind, listener_event_type, user_task, tags, root_process_instance_key, business_id, priority, job_lease_token, log=NOTHING) ``` Bases: `ActivatedJobResult` Read-only context for a job execution. Deliberately has no `clock`. This is the context handed to `process` handlers, so it is pickled across a process boundary, and a clock owns a lock (and, once pinned, a live connection to an engine) – neither of which survives the trip. Handlers that need the injected clock run under the `async` or `thread` strategies, whose contexts carry one; see [`ConnectedJobContext`](#connectedjobcontext) and [`SyncJobContext`](#syncjobcontext). **Parameters:** | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- | | `type_` | `str` | | | `process_definition_id` | [ProcessDefinitionId](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionId) | | | `process_definition_version` | `int` | | | `element_id` | [ElementId](types.md#camunda_orchestration_sdk.semantic_types.ElementId) | | | `custom_headers` | `ActivatedJobResultCustomHeaders` | | | `worker` | `str` | | | `retries` | `int` | | | `deadline` | `int` | | | `variables` | `ActivatedJobResultVariables` | | | `tenant_id` | [TenantId](types.md#camunda_orchestration_sdk.semantic_types.TenantId) | | | `physical_tenant_id` | `str` | | | `job_key` | [JobKey](types.md#camunda_orchestration_sdk.semantic_types.JobKey) | | | `process_instance_key` | [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `process_definition_key` | [ProcessDefinitionKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionKey) | | | `element_instance_key` | [ElementInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ElementInstanceKey) | | | `kind` | `JobKindEnum` | | | `listener_event_type` | `JobListenerEventTypeEnum` | | | `user_task` | `ActivatedJobResultUserTask` \| `None` | | | `tags` | list [str ] | | | `root_process_instance_key` | `None` \| [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `business_id` | `None` \| [BusinessId](types.md#camunda_orchestration_sdk.semantic_types.BusinessId) | | | `priority` | `int` | | | `job_lease_token` | `None` \| [JobLeaseToken](types.md#camunda_orchestration_sdk.semantic_types.JobLeaseToken) | | | `log` | [SdkLogger](#sdklogger) | | ### log A scoped logger bound to this job’s context (job type, job key). Use `job.log.info(...)` etc. inside your handler to emit structured log messages. - **Type:** [SdkLogger](#sdklogger) ### _classmethod_ from_job(job, logger=None) **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `job` | `ActivatedJobResult` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | - **Return type:** [_JobContext_](#jobcontext) ### log ```python log: [SdkLogger](#sdklogger) ``` ### _exception_ JobError(error_code, message='', variables=None) Bases: `Exception` Raise this exception to throw a BPMN error. **Parameters:** | Parameter | Type | Description | | ------------ | --------------------------- | ----------- | | `error_code` | `str` | | | `message` | `str` | | | `variables` | dict [str , Any ] \| `None` | | ### _exception_ JobFailure(message, retries=None, retry_back_off=0, variables=None) Bases: `Exception` Raise this exception to explicitly fail a job with custom retries/backoff. **Parameters:** | Parameter | Type | Description | | ---------------- | --------------------------- | ----------- | | `message` | `str` | | | `retries` | `int` \| `None` | | | `retry_back_off` | `int` | | | `variables` | dict [str , Any ] \| `None` | | ## JobWorker ```python class JobWorker(client, callback, config, logger=None, execution_strategy='auto', startup_jitter_max_seconds=0, clock=None, random=None) ``` Bases: `object` **Parameters:** | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------------------------------------------- | ----------- | | `client` | [CamundaAsyncClient](async-client.md#camunda_orchestration_sdk.CamundaAsyncClient) | | | `callback` | `JobHandler` | | | `config` | [WorkerConfig](#workerconfig) | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | | `execution_strategy` | `EXECUTION_STRATEGY` | | | `startup_jitter_max_seconds` | `float` | | | `clock` | `Clock` \| `None` | | | `random` | `RandomSource` \| `None` | | ### aclose() ```python async def aclose() ``` Async-aware teardown. Cancels any in-flight job tasks and awaits their cancellation (bounded by a timeout) before delegating to the synchronous `close()`. Prefer this over `stop()`/`close()` from inside a running event loop — it gives cancelled tasks a chance to propagate before the pools they depend on are shut down, which prevents ‘cannot schedule new futures after shutdown’ (and the post-#150 ‘JobWorker is closed’) errors from surfacing as task exceptions. - **Return type:** None ### close() ```python def close() ``` Release any resources this worker lazily allocated. Safe to call multiple times and from multiple threads concurrently. Use as a context manager (`with JobWorker(...) as worker:`) or in a pytest fixture teardown to avoid leaking file descriptors across many short-lived worker instances (see issue #148). Blocks until pools have finished shutdown so file descriptors and worker processes are reliably released before the references are cleared. If invoked from inside a pool worker thread, falls back to a non-waiting shutdown for that pool to avoid a self-join deadlock. If invoked from the worker loop thread, skips joining the worker thread (same self-join hazard). After `close()` returns, accessing `thread_pool`, `process_pool`, or `worker_loop` raises `RuntimeError`; a closed JobWorker cannot be reused. - **Return type:** None ### poll_loop() ```python async def poll_loop() ``` Background polling loop - always async ### _property_ process_pool _: ProcessPoolExecutor_ ### start() ```python def start() ``` ### stop() ```python def stop() ``` ### _property_ thread_pool _: ThreadPoolExecutor_ ### _property_ worker_loop _: AbstractEventLoop_ ## SyncJobContext ```python class SyncJobContext(type_, process_definition_id, process_definition_version, element_id, custom_headers, worker, retries, deadline, variables, tenant_id, physical_tenant_id, job_key, process_instance_key, process_definition_key, element_instance_key, kind, listener_event_type, user_task, tags, root_process_instance_key, business_id, priority, job_lease_token, log=NOTHING, , client, clock) ``` Bases: [`JobContext`](#jobcontext) Context for **thread** handlers — includes a sync client reference. Extends [`JobContext`](#jobcontext) with a `client` attribute that provides access to the Camunda API from within a synchronous (thread) handler. Call `job.client.method(...)` directly — no `await` needed. This context is provided when the execution strategy is `"thread"`. For `"async"` handlers, see [`ConnectedJobContext`](#connectedjobcontext). For `"process"` handlers, see [`JobContext`](#jobcontext). **Parameters:** | Parameter | Type | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- | | `type_` | `str` | | | `process_definition_id` | [ProcessDefinitionId](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionId) | | | `process_definition_version` | `int` | | | `element_id` | [ElementId](types.md#camunda_orchestration_sdk.semantic_types.ElementId) | | | `custom_headers` | `ActivatedJobResultCustomHeaders` | | | `worker` | `str` | | | `retries` | `int` | | | `deadline` | `int` | | | `variables` | `ActivatedJobResultVariables` | | | `tenant_id` | [TenantId](types.md#camunda_orchestration_sdk.semantic_types.TenantId) | | | `physical_tenant_id` | `str` | | | `job_key` | [JobKey](types.md#camunda_orchestration_sdk.semantic_types.JobKey) | | | `process_instance_key` | [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `process_definition_key` | [ProcessDefinitionKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessDefinitionKey) | | | `element_instance_key` | [ElementInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ElementInstanceKey) | | | `kind` | `JobKindEnum` | | | `listener_event_type` | `JobListenerEventTypeEnum` | | | `user_task` | `ActivatedJobResultUserTask` \| `None` | | | `tags` | list [str ] | | | `root_process_instance_key` | `None` \| [ProcessInstanceKey](types.md#camunda_orchestration_sdk.semantic_types.ProcessInstanceKey) | | | `business_id` | `None` \| [BusinessId](types.md#camunda_orchestration_sdk.semantic_types.BusinessId) | | | `priority` | `int` | | | `job_lease_token` | `None` \| [JobLeaseToken](types.md#camunda_orchestration_sdk.semantic_types.JobLeaseToken) | | | `log` | [SdkLogger](#sdklogger) | | | `client` | [CamundaClient](client.md#camunda_orchestration_sdk.CamundaClient) | | | `clock` | `Clock` | | ### clock The worker’s clock. Call `job.clock.sleep_sync(...)` rather than `time.sleep(...)` so a handler that waits follows engine time when the engine’s clock is pinned, instead of stalling on the real one. For short in-handler coordination only – spacing a retry, waiting on a resource to settle. A long or business wait belongs in the process as a BPMN timer event: a handler holding a job for minutes occupies a worker slot, risks the job timeout expiring underneath it, and hides the wait from the process model where it cannot be seen or changed. - **Type:** Clock ### client ```python client: [CamundaClient](client.md#camunda_orchestration_sdk.CamundaClient) ``` ### clock ```python clock: Clock ``` ### _classmethod_ create(job, client, clock, logger=None) **Parameters:** | Parameter | Type | Description | | --------- | --------------------------------- | ----------- | | `job` | `ActivatedJobResult` | | | `client` | `Any` | | | `clock` | `Clock` | | | `logger` | [SdkLogger](#sdklogger) \| `None` | | - **Return type:** [_SyncJobContext_](#syncjobcontext) ## WorkerConfig ```python class WorkerConfig(job_type, job_timeout_milliseconds=None, request_timeout_milliseconds=None, max_concurrent_jobs=None, fetch_variables=None, worker_name=None, with_lease=False) ``` Bases: `object` User-facing configuration. Fields left as `None` inherit the global default from `CAMUNDA_WORKER_*` environment variables (or the client constructor), falling back to the hardcoded SDK default when neither is set. **Parameters:** | Parameter | Type | Description | | ------------------------------ | --------------------- | ----------- | | `job_type` | `str` | | | `job_timeout_milliseconds` | `int` \| `None` | | | `request_timeout_milliseconds` | `int` \| `None` | | | `max_concurrent_jobs` | `int` \| `None` | | | `fetch_variables` | list [str ] \| `None` | | | `worker_name` | `str` \| `None` | | | `with_lease` | `bool` | | ### fetch_variables ```python fetch_variables: list[str] | None* *= None ``` ### job_timeout_milliseconds ```python job_timeout_milliseconds: int | None* *= None ``` How long the job is reserved for this worker only. Falls back to `CAMUNDA_WORKER_TIMEOUT` env var if not set. ### job_type ```python job_type: str ``` Job type to activate and process. ### max_concurrent_jobs ```python max_concurrent_jobs: int | None* *= None ``` Max jobs executing at once. Falls back to `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` env var, then `10`. ### request_timeout_milliseconds ```python request_timeout_milliseconds: int | None* *= None ``` Long-poll request timeout in milliseconds. Falls back to `CAMUNDA_WORKER_REQUEST_TIMEOUT` env var, then `0`. ### with_lease ```python with_lease: bool* *= False ``` Activate jobs with a lease. Each job then carries a lease token that the worker sends back on complete, fail, and throw-error, so the engine can fence the command against a superseded activation. Off by default, matching the engine. Requires a server that supports job leases: rather than degrade to unfenced commands, a worker that asked for a lease and is handed a job without a token raises `LeaseNotHonoredError`. ### worker_name ```python worker_name: str | None* *= None ``` Worker identifier. Falls back to `CAMUNDA_WORKER_NAME` env var, then `"camunda-python-sdk-worker"`. ### resolve_worker_config() ```python def resolve_worker_config(config, configuration) ``` Return a new WorkerConfig with `None` fields filled from _configuration_. Precedence: explicit field value > `CAMUNDA_WORKER_*` config > hardcoded default. Raises `ValueError` if `job_timeout_milliseconds` is still unset after merging. **Parameters:** | Parameter | Type | Description | | --------------- | ----------------------------- | ----------- | | `config` | [WorkerConfig](#workerconfig) | | | `configuration` | `Any` | | - **Return type:** [_WorkerConfig_](#workerconfig) ## Configuration Resolver ## CamundaSdkConfigPartial ```python class CamundaSdkConfigPartial ``` Bases: `TypedDict` ### CAMUNDA_AUTH_STRATEGY ```python CAMUNDA_AUTH_STRATEGY: Literal['NONE', 'OAUTH', 'BASIC'] ``` ### CAMUNDA_BASIC_AUTH_PASSWORD ```python CAMUNDA_BASIC_AUTH_PASSWORD: str ``` ### CAMUNDA_BASIC_AUTH_USERNAME ```python CAMUNDA_BASIC_AUTH_USERNAME: str ``` ### CAMUNDA_CLIENT_AUTH_CLIENTID ```python CAMUNDA_CLIENT_AUTH_CLIENTID: str ``` ### CAMUNDA_CLIENT_AUTH_CLIENTSECRET ```python CAMUNDA_CLIENT_AUTH_CLIENTSECRET: str ``` ### CAMUNDA_CLIENT_ID ```python CAMUNDA_CLIENT_ID: str ``` ### CAMUNDA_CLIENT_SECRET ```python CAMUNDA_CLIENT_SECRET: str ``` ### CAMUNDA_LOAD_ENVFILE ```python CAMUNDA_LOAD_ENVFILE: str ``` ### CAMUNDA_MTLS_CA ```python CAMUNDA_MTLS_CA: str ``` ### CAMUNDA_MTLS_CA_PATH ```python CAMUNDA_MTLS_CA_PATH: str ``` ### CAMUNDA_MTLS_CERT ```python CAMUNDA_MTLS_CERT: str ``` ### CAMUNDA_MTLS_CERT_PATH ```python CAMUNDA_MTLS_CERT_PATH: str ``` ### CAMUNDA_MTLS_KEY ```python CAMUNDA_MTLS_KEY: str ``` ### CAMUNDA_MTLS_KEY_PASSPHRASE ```python CAMUNDA_MTLS_KEY_PASSPHRASE: str ``` ### CAMUNDA_MTLS_KEY_PATH ```python CAMUNDA_MTLS_KEY_PATH: str ``` ### CAMUNDA_OAUTH_URL ```python CAMUNDA_OAUTH_URL: str ``` ### CAMUNDA_REST_ADDRESS ```python CAMUNDA_REST_ADDRESS: str ``` ### CAMUNDA_REST_ADDRESS_EXACT ```python CAMUNDA_REST_ADDRESS_EXACT: str | bool ``` ### CAMUNDA_SDK_BACKPRESSURE_PROFILE ```python CAMUNDA_SDK_BACKPRESSURE_PROFILE: str ``` ### CAMUNDA_SDK_LOG_LEVEL ```python CAMUNDA_SDK_LOG_LEVEL: Literal['silent', 'error', 'warn', 'info', 'debug', 'trace', 'silly'] ``` ### CAMUNDA_TENANT_ID ```python CAMUNDA_TENANT_ID: str ``` ### CAMUNDA_TENANT_IDS ```python CAMUNDA_TENANT_IDS: str | list[str] ``` ### CAMUNDA_TOKEN_AUDIENCE ```python CAMUNDA_TOKEN_AUDIENCE: str ``` ### CAMUNDA_TOKEN_CACHE_DIR ```python CAMUNDA_TOKEN_CACHE_DIR: str ``` ### CAMUNDA_TOKEN_DISK_CACHE_DISABLE ```python CAMUNDA_TOKEN_DISK_CACHE_DISABLE: str ``` ### CAMUNDA_WORKER_MAX_CONCURRENT_JOBS ```python CAMUNDA_WORKER_MAX_CONCURRENT_JOBS: str ``` ### CAMUNDA_WORKER_NAME ```python CAMUNDA_WORKER_NAME: str ``` ### CAMUNDA_WORKER_REQUEST_TIMEOUT ```python CAMUNDA_WORKER_REQUEST_TIMEOUT: str ``` ### CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS ```python CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS: str ``` ### CAMUNDA_WORKER_TIMEOUT ```python CAMUNDA_WORKER_TIMEOUT: str ``` ### ZEEBE_REST_ADDRESS ```python ZEEBE_REST_ADDRESS: str ``` ## CamundaSdkConfiguration ```python class CamundaSdkConfiguration(, ZEEBE_REST_ADDRESS='http://localhost:8080/v2', CAMUNDA_REST_ADDRESS='http://localhost:8080/v2', CAMUNDA_REST_ADDRESS_EXACT=False, CAMUNDA_TOKEN_AUDIENCE='zeebe.camunda.io', CAMUNDA_OAUTH_URL='https://login.cloud.camunda.io/oauth/token', CAMUNDA_CLIENT_ID=None, CAMUNDA_CLIENT_SECRET=None, CAMUNDA_CLIENT_AUTH_CLIENTID=None, CAMUNDA_CLIENT_AUTH_CLIENTSECRET=None, CAMUNDA_AUTH_STRATEGY='NONE', CAMUNDA_BASIC_AUTH_USERNAME=None, CAMUNDA_BASIC_AUTH_PASSWORD=None, CAMUNDA_SDK_LOG_LEVEL='error', CAMUNDA_TOKEN_CACHE_DIR=None, CAMUNDA_TOKEN_DISK_CACHE_DISABLE=False, CAMUNDA_SDK_BACKPRESSURE_PROFILE='BALANCED', CAMUNDA_TENANT_ID=None, CAMUNDA_TENANT_IDS=None, CAMUNDA_WORKER_TIMEOUT=None, CAMUNDA_WORKER_MAX_CONCURRENT_JOBS=None, CAMUNDA_WORKER_REQUEST_TIMEOUT=None, CAMUNDA_WORKER_NAME=None, CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS=None, CAMUNDA_MTLS_CERT_PATH=None, CAMUNDA_MTLS_KEY_PATH=None, CAMUNDA_MTLS_CA_PATH=None, CAMUNDA_MTLS_CERT=None, CAMUNDA_MTLS_KEY=None, CAMUNDA_MTLS_CA=None, CAMUNDA_MTLS_KEY_PASSPHRASE=None) ``` Bases: `BaseModel` **Parameters:** | Parameter | Type | Description | | ------------------------------------------- | ------------------------------------------------------------------------------ | ----------- | | `ZEEBE_REST_ADDRESS` | `str` | | | `CAMUNDA_REST_ADDRESS` | `str` | | | `CAMUNDA_REST_ADDRESS_EXACT` | `bool` | | | `CAMUNDA_TOKEN_AUDIENCE` | `str` | | | `CAMUNDA_OAUTH_URL` | `str` | | | `CAMUNDA_CLIENT_ID` | `str` \| `None` | | | `CAMUNDA_CLIENT_SECRET` | `str` \| `None` | | | `CAMUNDA_CLIENT_AUTH_CLIENTID` | `str` \| `None` | | | `CAMUNDA_CLIENT_AUTH_CLIENTSECRET` | `str` \| `None` | | | `CAMUNDA_AUTH_STRATEGY` | Literal [ 'NONE' , 'OAUTH' , 'BASIC' ] | | | `CAMUNDA_BASIC_AUTH_USERNAME` | `str` \| `None` | | | `CAMUNDA_BASIC_AUTH_PASSWORD` | `str` \| `None` | | | `CAMUNDA_SDK_LOG_LEVEL` | Literal [ 'silent' , 'error' , 'warn' , 'info' , 'debug' , 'trace' , 'silly' ] | | | `CAMUNDA_TOKEN_CACHE_DIR` | `str` \| `None` | | | `CAMUNDA_TOKEN_DISK_CACHE_DISABLE` | `bool` | | | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | Literal [ 'BALANCED' , 'LEGACY' ] | | | `CAMUNDA_TENANT_ID` | `str` \| `None` | | | `CAMUNDA_TENANT_IDS` | list [str ] \| `None` | | | `CAMUNDA_WORKER_TIMEOUT` | `int` \| `None` | | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | `int` \| `None` | | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | `int` \| `None` | | | `CAMUNDA_WORKER_NAME` | `str` \| `None` | | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | `float` \| `None` | | | `CAMUNDA_MTLS_CERT_PATH` | `str` \| `None` | | | `CAMUNDA_MTLS_KEY_PATH` | `str` \| `None` | | | `CAMUNDA_MTLS_CA_PATH` | `str` \| `None` | | | `CAMUNDA_MTLS_CERT` | `str` \| `None` | | | `CAMUNDA_MTLS_KEY` | `str` \| `None` | | | `CAMUNDA_MTLS_CA` | `str` \| `None` | | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | `str` \| `None` | | ### CAMUNDA_AUTH_STRATEGY ```python CAMUNDA_AUTH_STRATEGY: CamundaAuthStrategy ``` ### CAMUNDA_BASIC_AUTH_PASSWORD ```python CAMUNDA_BASIC_AUTH_PASSWORD: str | None ``` ### CAMUNDA_BASIC_AUTH_USERNAME ```python CAMUNDA_BASIC_AUTH_USERNAME: str | None ``` ### CAMUNDA_CLIENT_AUTH_CLIENTID ```python CAMUNDA_CLIENT_AUTH_CLIENTID: str | None ``` ### CAMUNDA_CLIENT_AUTH_CLIENTSECRET ```python CAMUNDA_CLIENT_AUTH_CLIENTSECRET: str | None ``` ### CAMUNDA_CLIENT_ID ```python CAMUNDA_CLIENT_ID: str | None ``` ### CAMUNDA_CLIENT_SECRET ```python CAMUNDA_CLIENT_SECRET: str | None ``` ### CAMUNDA_MTLS_CA ```python CAMUNDA_MTLS_CA: str | None ``` ### CAMUNDA_MTLS_CA_PATH ```python CAMUNDA_MTLS_CA_PATH: str | None ``` ### CAMUNDA_MTLS_CERT ```python CAMUNDA_MTLS_CERT: str | None ``` ### CAMUNDA_MTLS_CERT_PATH ```python CAMUNDA_MTLS_CERT_PATH: str | None ``` ### CAMUNDA_MTLS_KEY ```python CAMUNDA_MTLS_KEY: str | None ``` ### CAMUNDA_MTLS_KEY_PASSPHRASE ```python CAMUNDA_MTLS_KEY_PASSPHRASE: str | None ``` ### CAMUNDA_MTLS_KEY_PATH ```python CAMUNDA_MTLS_KEY_PATH: str | None ``` ### CAMUNDA_OAUTH_URL ```python CAMUNDA_OAUTH_URL: str ``` ### CAMUNDA_REST_ADDRESS ```python CAMUNDA_REST_ADDRESS: str ``` ### CAMUNDA_REST_ADDRESS_EXACT ```python CAMUNDA_REST_ADDRESS_EXACT: bool ``` ### CAMUNDA_SDK_BACKPRESSURE_PROFILE ```python CAMUNDA_SDK_BACKPRESSURE_PROFILE: CamundaBackpressureProfile ``` ### CAMUNDA_SDK_LOG_LEVEL ```python CAMUNDA_SDK_LOG_LEVEL: CamundaSdkLogLevel ``` ### CAMUNDA_TENANT_ID ```python CAMUNDA_TENANT_ID: str | None ``` ### CAMUNDA_TENANT_IDS ```python CAMUNDA_TENANT_IDS: list[str] | None ``` ### CAMUNDA_TOKEN_AUDIENCE ```python CAMUNDA_TOKEN_AUDIENCE: str ``` ### CAMUNDA_TOKEN_CACHE_DIR ```python CAMUNDA_TOKEN_CACHE_DIR: str | None ``` ### CAMUNDA_TOKEN_DISK_CACHE_DISABLE ```python CAMUNDA_TOKEN_DISK_CACHE_DISABLE: bool ``` ### CAMUNDA_WORKER_MAX_CONCURRENT_JOBS ```python CAMUNDA_WORKER_MAX_CONCURRENT_JOBS: int | None ``` ### CAMUNDA_WORKER_NAME ```python CAMUNDA_WORKER_NAME: str | None ``` ### CAMUNDA_WORKER_REQUEST_TIMEOUT ```python CAMUNDA_WORKER_REQUEST_TIMEOUT: int | None ``` ### CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS ```python CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS: float | None ``` ### CAMUNDA_WORKER_TIMEOUT ```python CAMUNDA_WORKER_TIMEOUT: int | None ``` ### ZEEBE_REST_ADDRESS ```python ZEEBE_REST_ADDRESS: str ``` ### model_config _= {'extra': 'forbid'}_ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. ## ConfigurationResolver ```python class ConfigurationResolver(environment, explicit_configuration=None) ``` Bases: `object` Resolves an effective configuration from environment + explicit overrides. **Parameters:** | Parameter | Type | Description | | ------------------------ | ------------------------------------------------------------------------------------- | ----------- | | `environment` | [CamundaSdkConfigPartial](#camundasdkconfigpartial) \| Mapping [str , Any ] | | | `explicit_configuration` | [CamundaSdkConfigPartial](#camundasdkconfigpartial) \| Mapping [str , Any ] \| `None` | | ### resolve() ```python def resolve() ``` - **Return type:** [_ResolvedCamundaSdkConfiguration_](#resolvedcamundasdkconfiguration) ## ResolvedCamundaSdkConfiguration ```python class ResolvedCamundaSdkConfiguration(effective: 'CamundaSdkConfiguration', environment: 'CamundaSdkConfigPartial', explicit: 'CamundaSdkConfigPartial | None') ``` Bases: `object` **Parameters:** | Parameter | Type | Description | | ------------- | ------------------------------------------------------------- | ----------- | | `effective` | [CamundaSdkConfiguration](#camundasdkconfiguration) | | | `environment` | [CamundaSdkConfigPartial](#camundasdkconfigpartial) | | | `explicit` | [CamundaSdkConfigPartial](#camundasdkconfigpartial) \| `None` | | ### effective ```python effective: [CamundaSdkConfiguration](#camundasdkconfiguration) ``` ### environment ```python environment: [CamundaSdkConfigPartial](#camundasdkconfigpartial) ``` ### explicit ```python explicit: [CamundaSdkConfigPartial](#camundasdkconfigpartial) | None ``` ### read_environment() ```python def read_environment(environ=None) ``` - **Parameters:** **environ** (_Mapping_ _[__str_ _,_ _str_ _]_ _|_ _None_) - **Return type:** [_CamundaSdkConfigPartial_](#camundasdkconfigpartial) --- ## Semantic Types(Api-reference) ## AgentDefinitionKey ```python class AgentDefinitionKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AgentDefinitionKey](#agentdefinitionkey) ## AgentHistoryItemKey ```python class AgentHistoryItemKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AgentHistoryItemKey](#agenthistoryitemkey) ## AgentInstanceKey ```python class AgentInstanceKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AgentInstanceKey](#agentinstancekey) ## AuditLogEntityKey ```python class AuditLogEntityKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AuditLogEntityKey](#auditlogentitykey) ## AuditLogKey ```python class AuditLogKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AuditLogKey](#auditlogkey) ## AuthorizationKey ```python class AuthorizationKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [AuthorizationKey](#authorizationkey) ## BatchOperationKey ```python class BatchOperationKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [BatchOperationKey](#batchoperationkey) ## BusinessId ```python class BusinessId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [BusinessId](#businessid) ## ClientId ```python class ClientId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ClientId](#clientid) ## ClusterVariableName ```python class ClusterVariableName(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ClusterVariableName](#clustervariablename) ## ConditionalEvaluationKey ```python class ConditionalEvaluationKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ConditionalEvaluationKey](#conditionalevaluationkey) ## DecisionDefinitionId ```python class DecisionDefinitionId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionDefinitionId](#decisiondefinitionid) ## DecisionDefinitionKey ```python class DecisionDefinitionKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionDefinitionKey](#decisiondefinitionkey) ## DecisionEvaluationInstanceKey ```python class DecisionEvaluationInstanceKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionEvaluationInstanceKey](#decisionevaluationinstancekey) ## DecisionEvaluationKey ```python class DecisionEvaluationKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionEvaluationKey](#decisionevaluationkey) ## DecisionInstanceKey ```python class DecisionInstanceKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionInstanceKey](#decisioninstancekey) ## DecisionRequirementsKey ```python class DecisionRequirementsKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DecisionRequirementsKey](#decisionrequirementskey) ## DeploymentKey ```python class DeploymentKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DeploymentKey](#deploymentkey) ## DocumentId ```python class DocumentId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [DocumentId](#documentid) ## ElementId ```python class ElementId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ElementId](#elementid) ## ElementInstanceKey ```python class ElementInstanceKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ElementInstanceKey](#elementinstancekey) ## EndCursor ```python class EndCursor(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [EndCursor](#endcursor) ## FormId ```python class FormId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [FormId](#formid) ## FormKey ```python class FormKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [FormKey](#formkey) ## GlobalListenerId ```python class GlobalListenerId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [GlobalListenerId](#globallistenerid) ## GroupId ```python class GroupId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [GroupId](#groupid) ## HistoryItemId ```python class HistoryItemId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [HistoryItemId](#historyitemid) ## IncidentKey ```python class IncidentKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [IncidentKey](#incidentkey) ## JobKey ```python class JobKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [JobKey](#jobkey) ## JobLeaseToken ```python class JobLeaseToken(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [JobLeaseToken](#jobleasetoken) ## MappingRuleId ```python class MappingRuleId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [MappingRuleId](#mappingruleid) ## MessageKey ```python class MessageKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [MessageKey](#messagekey) ## MessageSubscriptionKey ```python class MessageSubscriptionKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [MessageSubscriptionKey](#messagesubscriptionkey) ## ProcessDefinitionId ```python class ProcessDefinitionId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ProcessDefinitionId](#processdefinitionid) ## ProcessDefinitionKey ```python class ProcessDefinitionKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ProcessDefinitionKey](#processdefinitionkey) ## ProcessInstanceKey ```python class ProcessInstanceKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [ProcessInstanceKey](#processinstancekey) ## RoleId ```python class RoleId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [RoleId](#roleid) ## SignalKey ```python class SignalKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [SignalKey](#signalkey) ## StartCursor ```python class StartCursor(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [StartCursor](#startcursor) ## Tag ```python class Tag(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [Tag](#tag) ## TenantId ```python class TenantId(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [TenantId](#tenantid) ## UserTaskKey ```python class UserTaskKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [UserTaskKey](#usertaskkey) ## Username ```python class Username(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [Username](#username) ## VariableKey ```python class VariableKey(value) ``` Bases: `str` - **Parameters:** **value** (_str_) - **Return type:** [VariableKey](#variablekey) ### lift_resource_key() ```python def lift_resource_key(value) ``` - **Parameters:** **value** (_Any_) - **Return type:** [_ProcessDefinitionKey_](#processdefinitionkey) | [_DecisionRequirementsKey_](#decisionrequirementskey) | [_FormKey_](#formkey) | [_DecisionDefinitionKey_](#decisiondefinitionkey) ### lift_scope_key() ```python def lift_scope_key(value) ``` - **Parameters:** **value** (_Any_) - **Return type:** [_ProcessInstanceKey_](#processinstancekey) | [_ElementInstanceKey_](#elementinstancekey) ### try_lift_resource_key() ```python def try_lift_resource_key(value) ``` - **Parameters:** **value** (_Any_) - **Return type:** _Tuple_[bool, [_ProcessDefinitionKey_](#processdefinitionkey) | [_DecisionRequirementsKey_](#decisionrequirementskey) | [_FormKey_](#formkey) | [_DecisionDefinitionKey_](#decisiondefinitionkey) | Exception] ### try_lift_scope_key() ```python def try_lift_scope_key(value) ``` - **Parameters:** **value** (_Any_) - **Return type:** _Tuple_[bool, [_ProcessInstanceKey_](#processinstancekey) | [_ElementInstanceKey_](#elementinstancekey) | Exception] --- ## Authentication(Python-sdk) The SDK supports three authentication strategies, controlled by `CAMUNDA_AUTH_STRATEGY`: | Strategy | When to use | | -------- | --------------------------------------------------------- | | `NONE` | Local development with unauthenticated Camunda (default) | | `OAUTH` | Camunda SaaS or any OAuth 2.0 Client Credentials endpoint | | `BASIC` | Self-Managed Camunda with Basic auth (username/password) | ## Auto-detection If you omit `CAMUNDA_AUTH_STRATEGY`, the SDK infers it from the credentials you provide: - Only `CAMUNDA_CLIENT_ID` + `CAMUNDA_CLIENT_SECRET` → **OAUTH** - Only `CAMUNDA_BASIC_AUTH_USERNAME` + `CAMUNDA_BASIC_AUTH_PASSWORD` → **BASIC** - No credentials → **NONE** - Both OAuth and Basic credentials present → **error** (set `CAMUNDA_AUTH_STRATEGY` explicitly) ## OAuth 2.0 ```bash CAMUNDA_REST_ADDRESS=https://cluster.example/v2 CAMUNDA_AUTH_STRATEGY=OAUTH CAMUNDA_CLIENT_ID=your-client-id CAMUNDA_CLIENT_SECRET=your-client-secret # Optional: # CAMUNDA_OAUTH_URL=https://login.cloud.camunda.io/oauth/token # CAMUNDA_TOKEN_AUDIENCE=zeebe.camunda.io ``` ## Basic authentication ```bash CAMUNDA_REST_ADDRESS=http://localhost:8080/v2 CAMUNDA_AUTH_STRATEGY=BASIC CAMUNDA_BASIC_AUTH_USERNAME=your-username CAMUNDA_BASIC_AUTH_PASSWORD=your-password ``` Or programmatically: ```python from camunda_orchestration_sdk import CamundaClient client = CamundaClient( configuration={ "CAMUNDA_REST_ADDRESS": "http://localhost:8080/v2", "CAMUNDA_AUTH_STRATEGY": "BASIC", "CAMUNDA_BASIC_AUTH_USERNAME": "your-username", "CAMUNDA_BASIC_AUTH_PASSWORD": "your-password", } ) ``` --- ## Backpressure(Python-sdk) The SDK includes built-in adaptive backpressure management that protects the Camunda cluster from overload. When the cluster returns backpressure signals (HTTP 429, 503, or `RESOURCE_EXHAUSTED`), the SDK automatically reduces outbound concurrency. When conditions improve, it gradually recovers — returning to full throughput with no manual intervention. This is enabled by default with the `BALANCED` profile and requires no configuration. Operations that drain work from the cluster (completing jobs, failing jobs) are never throttled. | Profile | Behavior | | -------------------- | ----------------------------------------------------------------------------------------------- | | `BALANCED` (default) | Adaptive concurrency gating with AIMD-style permit management and exponential backoff at floor. | | `LEGACY` | Observe-only — records severity but never gates or queues requests. | Set the profile via the `CAMUNDA_SDK_BACKPRESSURE_PROFILE` environment variable. --- ## Configuration reference(Python-sdk) All `CAMUNDA_*` environment variables recognised by the SDK. These can also be passed as keys in the `configuration={...}` dict. | Variable | Default | Description | | ------------------------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ZEEBE_REST_ADDRESS` | `http://localhost:8080/v2` | REST API base URL (alias for CAMUNDA_REST_ADDRESS). | | `CAMUNDA_REST_ADDRESS` | `http://localhost:8080/v2` | REST API base URL. `/v2` is appended automatically if missing, unless CAMUNDA_REST_ADDRESS_EXACT is true. | | `CAMUNDA_REST_ADDRESS_EXACT` | `false` | Use CAMUNDA_REST_ADDRESS / ZEEBE_REST_ADDRESS exactly as provided, without appending the `/v2` suffix. Useful for gateway- or proxy-fronted deployments whose base path does not follow the `.../v2` convention. | | `CAMUNDA_TOKEN_AUDIENCE` | `zeebe.camunda.io` | OAuth token audience. | | `CAMUNDA_OAUTH_URL` | `https://login.cloud.camunda.io/oauth/token` | OAuth token endpoint URL. | | `CAMUNDA_CLIENT_ID` | — | OAuth client ID. | | `CAMUNDA_CLIENT_SECRET` | — | OAuth client secret. | | `CAMUNDA_CLIENT_AUTH_CLIENTID` | — | Alias for CAMUNDA_CLIENT_ID. | | `CAMUNDA_CLIENT_AUTH_CLIENTSECRET` | — | Alias for CAMUNDA_CLIENT_SECRET. | | `CAMUNDA_AUTH_STRATEGY` | `NONE` | Authentication strategy: NONE, OAUTH, or BASIC. Auto-inferred from credentials if omitted. | | `CAMUNDA_BASIC_AUTH_USERNAME` | — | Basic auth username. Required when CAMUNDA_AUTH_STRATEGY=BASIC. | | `CAMUNDA_BASIC_AUTH_PASSWORD` | — | Basic auth password. Required when CAMUNDA_AUTH_STRATEGY=BASIC. | | `CAMUNDA_SDK_LOG_LEVEL` | `error` | SDK log level: silent, error, warn, info, debug, trace, or silly. | | `CAMUNDA_TOKEN_CACHE_DIR` | — | Directory for OAuth token disk cache. Disabled if unset. | | `CAMUNDA_TOKEN_DISK_CACHE_DISABLE` | `false` | Disable OAuth token disk caching. | | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | `BALANCED` | Backpressure profile: BALANCED (adaptive gating, default) or LEGACY (observe-only, no gating). | | `CAMUNDA_TENANT_ID` | — | Default tenant ID applied to all operations that accept a tenant_id parameter. | | `CAMUNDA_TENANT_IDS` | — | Default tenant IDs applied to operations whose request body accepts a plural `tenantIds` array (currently job activation). Accepts a comma-separated list when supplied via environment variable. Falls back to `[CAMUNDA_TENANT_ID]` when only the singular form is set. | | `CAMUNDA_WORKER_TIMEOUT` | — | Default job timeout in milliseconds for all workers. | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | — | Default maximum concurrent jobs per worker. | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | — | Default long-poll request timeout in milliseconds for all workers. | | `CAMUNDA_WORKER_NAME` | — | Default worker name for all workers. | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | — | Default maximum startup jitter in seconds for all workers. | | `CAMUNDA_MTLS_CERT_PATH` | — | Path to client certificate (PEM) for mTLS. | | `CAMUNDA_MTLS_KEY_PATH` | — | Path to client private key (PEM) for mTLS. | | `CAMUNDA_MTLS_CA_PATH` | — | Path to CA certificate bundle (PEM) for mTLS. Optional. | | `CAMUNDA_MTLS_CERT` | — | Inline PEM client certificate. Overrides CAMUNDA_MTLS_CERT_PATH. | | `CAMUNDA_MTLS_KEY` | — | Inline PEM client private key. Overrides CAMUNDA_MTLS_KEY_PATH. | | `CAMUNDA_MTLS_CA` | — | Inline PEM CA bundle. Overrides CAMUNDA_MTLS_CA_PATH. | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | — | Passphrase for encrypted private key. | | `CAMUNDA_LOAD_ENVFILE` | — | Load configuration from a `.env` file. Set to `true` (or a file path). | --- ## Controlling time Every wait inside the SDK -- worker poll intervals, retry backoff, backpressure decay, eventual-consistency polling -- resolves through an injected clock rather than `asyncio.sleep` or `time.sleep`. Pass your own to make that cadence yours: | Clock | Use | | ------------- | ------------------------------------------------------------------------------------ | | `LiveClock` | the default; real time, with backward wall-clock jumps absorbed rather than reported | | `ManualClock` | tests; virtual time, so a poll loop settles without waiting | | `EngineClock` | drives the Camunda engine's clock and the client's together | ## Waiting inside a handler `ConnectedJobContext` and `SyncJobContext` carry the worker's clock, so a handler that needs to wait can do it on the same clock as everything else: ```python from camunda_orchestration_sdk import ConnectedJobContext async def handle_job(job: ConnectedJobContext) -> dict[str, object]: # Short coordination only -- a business wait belongs in the process as a BPMN timer. await job.clock.sleep(0.5) return {"result": "processed"} ``` Keep those waits short -- spacing a retry, letting a resource settle. **A long or business wait belongs in the process as a BPMN timer event, not in a handler.** A handler that sleeps for minutes holds a worker slot for the duration, risks the job timeout expiring underneath it, and hides the delay from the process model, where it would otherwise be visible and changeable without a redeploy. `process`-strategy handlers get a plain `JobContext` with no clock: that context is pickled across a process boundary, which a clock cannot cross. Handlers that need one should use the `async` or `thread` strategy. ## Driving the engine's clock A process that only completes after a BPMN timer fires has two clocks to satisfy: the engine's and your client's. Moving either alone does not help -- pin the engine and your worker keeps waiting on real time; drive the worker and the engine never reaches the timer. `EngineClock` moves both. Each wait pins the engine forward to that wait's wake instant, so a process spanning a minute of engine time finishes in real milliseconds. > [!WARNING] > Pinning stops time for **everything on that cluster**, not just your client. Use it only > against a cluster you own -- a local one, or a disposable test instance -- never a shared > or production environment. Always `reset()` in a `finally`, after the client and any > workers using the clock have stopped; leaving without it leaves the engine frozen for > whoever comes next. ```python from camunda_orchestration_sdk import ( CamundaAsyncClient, ConnectedJobContext, EngineClock, WorkerConfig, ) async def handle_job(job_context: ConnectedJobContext) -> dict[str, object]: # Waiting here moves the engine's clock too, so a BPMN timer downstream fires # without anyone waiting out the real duration. await job_context.clock.sleep(60) return {"result": "processed"} # Drive the engine from a separate client: pinning issues a request, and that request's # own backoff must not wait on the clock issuing it. async with CamundaAsyncClient() as driver: # Pins on entry and resets on exit -- including when the client below fails to # build, or fails to shut down. Written by hand as a single `finally`, either of # those leaves the cluster frozen. async with EngineClock(driver) as engine: async with CamundaAsyncClient(clock=engine) as client: client.create_job_worker( config=WorkerConfig(job_type="payment", job_timeout_milliseconds=30_000), callback=handle_job, ) await client.run_workers() ``` Overlapping waits settle at a shared wake instant rather than accumulating, so ten handlers each waiting a second advance the engine by a second -- as real sleeps would. `pin(at)` and `reset()` are control operations and may move time backwards; waits never do. Because `PUT /clock` is write-only, the clock mirrors what it last pinned. That mirror is accurate only while nothing else pins the same engine: use one `EngineClock` per engine. ## Reproducible jitter A pinned clock makes the SDK's timing virtual, but not repeatable: worker startup jitter is still drawn at random, so two runs can schedule differently. Pass a `SeededRandom` as `random=` alongside the clock to fix that jitter too. Omit it and the live, unseeded `live_random` is used, which is what production wants -- jitter exists so a fleet of workers does not start in lockstep. ```python from camunda_orchestration_sdk import CamundaAsyncClient, ManualClock, SeededRandom # Seeded from CAMUNDA_TEST_SEED when it is set, otherwise from a fresh random seed. random = SeededRandom.from_env() print(f"jitter source: {random!r}") # names the seed to replay on failure async with CamundaAsyncClient(clock=ManualClock(), random=random) as client: ... # worker startup jitter is now exact and repeatable ``` `SeededRandom.from_env()` reads `CAMUNDA_TEST_SEED`. Log the source's `repr()` -- it names the seed -- and when a run fails, set `CAMUNDA_TEST_SEED` to that seed to replay the same draws. Only an unset variable means "pick a fresh seed"; any other value that is not an unsigned 64-bit integer raises, so a typo cannot silently replay the wrong run. The same seed produces the same draws in every Camunda SDK. --- ## Creating a Process Instance(Python-sdk) The recommended pattern is to obtain keys from a prior API response (e.g. a deployment) and pass them directly — no manual lifting needed: ```python from camunda_orchestration_sdk import CamundaClient, ProcessCreationByKey with CamundaClient() as client: # Deploy and capture the typed key deployment = client.deploy_resources_from_files(["process.bpmn"]) process_key = deployment.processes[0].process_definition_key # Use it directly — the type flows through without conversion result = client.create_process_instance( data=ProcessCreationByKey(process_definition_key=process_key) ) print(f"Process instance key: {result.process_instance_key}") ``` If you need to restore a key from external storage (database, message queue, config file), use the semantic type constructor. Validation runs automatically: ```python from camunda_orchestration_sdk import CamundaClient, ProcessCreationByKey, ProcessDefinitionKey with CamundaClient() as client: stored_key = "2251799813685249" # from a DB row or config result = client.create_process_instance( data=ProcessCreationByKey(process_definition_key=ProcessDefinitionKey(stored_key)) ) print(f"Process instance key: {result.process_instance_key}") ``` **Migrating from pre-release versions:** Early pre-release builds exported `lift_*` helper functions (e.g., `lift_process_definition_key`). These have been removed — use the type constructor directly instead: `ProcessDefinitionKey(value)`. The constructor performs the same validation and is the single API surface for semantic types. --- ## Deploying Resources(Python-sdk) Deploy BPMN, DMN, or Form files from disk: ```python from camunda_orchestration_sdk import CamundaClient with CamundaClient() as client: result = client.deploy_resources_from_files(["process.bpmn", "decision.dmn"]) print(f"Deployment key: {result.deployment_key}") for process in result.processes: print(f" Process: {process.process_definition_id} (key: {process.process_definition_key})") ``` --- ## Error Handling(Python-sdk) The SDK raises typed exceptions for API errors. Each HTTP error status code has a corresponding exception class (e.g. `BadRequestError` for 400, `NotFoundError` for 404). Every exception carries the `operation_id` of the method that raised it: ```python from camunda_orchestration_sdk import CamundaClient, ProcessCreationByKey, ProcessDefinitionKey from camunda_orchestration_sdk.errors import BadRequestError process_definition_key = ProcessDefinitionKey("2251799813685249") with CamundaClient() as client: try: result = client.create_process_instance( data=ProcessCreationByKey(process_definition_key=process_definition_key) ) except BadRequestError as e: print(f"Bad request ({e.operation_id}): {e}") ``` --- ## Eventual Consistency(Python-sdk) Some Camunda endpoints — particularly search and "get by key" operations — are eventually consistent: data written via one API call may not be immediately visible to a follow-up read. Endpoints flagged as eventually consistent in the OpenAPI spec accept an optional `consistency` parameter that transparently polls until the data is visible (or a timeout is reached). The `consistency` parameter is fully optional and defaults to `None`, so existing call sites continue to work unchanged. ```python from camunda_orchestration_sdk import CamundaClient from camunda_orchestration_sdk.models import ( ProcessInstanceSearchQuery, ProcessInstanceSearchQueryFilter, ) from camunda_orchestration_sdk.runtime.eventual import ( ConsistencyOptions, EventualConsistencyTimeoutError, ) with CamundaClient() as client: try: result = client.search_process_instances( data=ProcessInstanceSearchQuery( filter_=ProcessInstanceSearchQueryFilter( process_definition_id="order-process", ), ), # Opt in to transparent polling. Default predicate accepts the # first response whose `items` list is non-empty. consistency=ConsistencyOptions( wait_up_to_ms=5000, poll_interval_ms=200, ), ) for instance in result.items: print(instance.process_instance_key) except EventualConsistencyTimeoutError as exc: print(f"Timed out after {exc.elapsed_ms}ms ({exc.attempts} attempts)") ``` For non-GET endpoints (search/list) the default predicate succeeds on the first response whose `items` list is non-empty. For GET endpoints it succeeds on any non-`None` result and transparently retries `404 Not Found` while waiting. Pass a custom `predicate` to wait for a more specific condition: ```python from camunda_orchestration_sdk import CamundaClient from camunda_orchestration_sdk.models import ( ProcessInstanceSearchQuery, ProcessInstanceSearchQueryFilter, ) from camunda_orchestration_sdk.runtime.eventual import ConsistencyOptions with CamundaClient() as client: # Wait until at least 3 instances are visible. result = client.search_process_instances( data=ProcessInstanceSearchQuery( filter_=ProcessInstanceSearchQueryFilter( process_definition_id="order-process", ), ), consistency=ConsistencyOptions( wait_up_to_ms=10_000, poll_interval_ms=250, predicate=lambda r: len(r.items) >= 3, ), ) print(f"Got {len(result.items)} instances") ``` `ConsistencyOptions` fields: | Field | Type | Default | Description | | ------------------ | ----------------------------- | ---------- | -------------------------------------------------- | | `wait_up_to_ms` | `int` | _required_ | Maximum time to wait. `0` skips polling entirely. | | `poll_interval_ms` | `int` | `500` | Delay between polling attempts (minimum 10ms). | | `predicate` | `Callable[[T], bool] \| None` | `None` | Custom success check. Defaults as described above. | Polling aborts immediately on `400`, `401`, `403`, `409`, `422`, and `5xx` responses. `429` responses are retried with backoff. On timeout the SDK raises `EventualConsistencyTimeoutError`, which exposes `attempts`, `elapsed_ms`, `last_status`, and `operation_id`. The same parameter is available on `CamundaAsyncClient` and behaves identically using `asyncio.sleep` for the polling delay. --- ## Installing the SDK to your project(Python-sdk) ## Requirements - Python 3.10 or later ## Stable release (recommended for production) The stable version tracks the latest supported Camunda server release. The first stable release will be **8.9.0**. ```bash pip install camunda-orchestration-sdk ``` ## Pre-release / dev channel Pre-release versions (e.g. `8.9.0.dev2`) are published from the `main` branch and contain the latest changes targeting the next server minor version. Use these to preview upcoming features or validate your integration ahead of a stable release. ```bash # pip pip install --pre camunda-orchestration-sdk # pin to a specific pre-release pip install camunda-orchestration-sdk==8.9.0.dev2 ``` In a `requirements.txt`: ```text camunda-orchestration-sdk>=8.9.0.dev1 ``` > **Note:** Pre-release versions may contain breaking changes between builds. Pin to a specific version if you need reproducible builds. ## Versioning This SDK has a different release cadence from the Camunda server. Features and fixes land in the SDK during a server release. The major version of the SDK signals a 1:1 type coherence with the server API for a Camunda minor release. SDK version `n.y.z` -> server version `8.n`, so the type surface of SDK version 9.y.z matches the API surface of Camunda 8.9. Using a later SDK version, for example: SDK version 10.y.z with Camunda 8.9, means that the SDK contains additive surfaces that are not guaranteed at runtime, and the compiler cannot warn of unsupported operations. Using an earlier SDK version, for example: SDK version 9.y.z with Camunda 8.10, results in slightly degraded compiler reasoning: exhaustiveness checks cannot be guaranteed by the compiler for any extended surfaces (principally, enums with added members). In the vast majority of use-cases, this will not be an issue; but you should be aware that using the matching SDK major version for the server minor version provides the strongest compiler guarantees about runtime reliability. **Recommended approach**: - Check the [CHANGELOG](https://github.com/camunda/orchestration-cluster-api-python/releases). - As a sanity check during server version upgrade, rebuild applications with the matching SDK major version to identify any affected runtime surfaces. --- ## Job Workers(Python-sdk) Job workers long-poll for available jobs, execute a callback, and automatically complete or fail the job based on the return value. Workers are available on `CamundaAsyncClient`. Handlers receive a context object that includes a `client` reference, so your handler can make API calls during job execution. The context type depends on the execution strategy: - **Async handlers** → `ConnectedJobContext` with `client: CamundaAsyncClient` (use `await`) - **Thread handlers** → `SyncJobContext` with `client: CamundaClient` (call directly) - **Process handlers** → plain `JobContext` (no client — cannot be pickled across process boundaries) ```python from camunda_orchestration_sdk import CamundaAsyncClient, ConnectedJobContext, WorkerConfig async def handle_job(job_context: ConnectedJobContext) -> dict[str, object]: variables = job_context.variables.to_dict() job_context.log.info(f"Processing job {job_context.job_key}: {variables}") return {"result": "processed"} async def main() -> None: async with CamundaAsyncClient() as client: config = WorkerConfig( job_type="my-service-task", job_timeout_milliseconds=30_000, ) client.create_job_worker(config=config, callback=handle_job) # Keep workers running until cancelled await client.run_workers() asyncio.run(main()) ``` ## Using the Client in a Job Handler Because `ConnectedJobContext` and `SyncJobContext` include a `client` reference, your handler can make API calls during job execution — for example, publishing a message to trigger another part of the process. **Async handlers** (`execution_strategy="async"`) — `await` the client method directly: ```python from camunda_orchestration_sdk import ConnectedJobContext, MessagePublicationRequest, MessagePublicationRequestVariables async def handle_order(job: ConnectedJobContext) -> dict[str, object]: variables = job.variables.to_dict() order_id = variables["orderId"] await job.client.publish_message( data=MessagePublicationRequest( name="order-processed", correlation_key=order_id, time_to_live=60000, variables=MessagePublicationRequestVariables.from_dict({"orderId": order_id, "status": "completed"}), ) ) job.log.info(f"Published order-processed message for order {order_id}") return {"status": "done"} ``` **Sync (thread) handlers** (`execution_strategy="thread"`) — `job.client` is a sync `CamundaClient`, so call methods directly: ```python from camunda_orchestration_sdk import MessagePublicationRequest, MessagePublicationRequestVariables, SyncJobContext def handle_order(job: SyncJobContext) -> dict[str, object]: variables = job.variables.to_dict() order_id = variables["orderId"] job.client.publish_message( data=MessagePublicationRequest( name="order-processed", correlation_key=order_id, time_to_live=60000, variables=MessagePublicationRequestVariables.from_dict({"orderId": order_id, "status": "completed"}), ) ) job.log.info(f"Published order-processed message for order {order_id}") return {"status": "done"} ``` > **Note:** The SDK automatically provides the right client type for each strategy — async handlers get `CamundaAsyncClient` (use `await`), thread handlers get `CamundaClient` (call directly). You don't need to create or manage these clients yourself. ## Job Logger Each `JobContext` exposes a `log` property — a scoped logger automatically bound with the job's context (job type, worker name, and job key). Use it inside your handler for structured, per-job log output: ```python async def handler(job: ConnectedJobContext) -> dict[str, object]: job.log.info(f"Starting work on {job.job_key}") # ... do work ... job.log.debug("Work completed successfully") return {"done": True} ``` The job logger inherits the SDK's logger configuration (loguru by default, or whatever you passed via `logger=`). If you injected a custom logger into the client, job handlers will use a child of that same logger. > **Note:** When using the `"process"` execution strategy, the job logger silently degrades to a no-op (`NullLogger`) because loggers cannot be pickled across process boundaries. The worker's main-process logger still records all job lifecycle events (activation, completion, failure, errors). If you need per-job logging from a process-isolated handler, configure a logger inside the handler itself. ## Execution Strategies Job workers support multiple execution strategies to match your workload type. Pass `execution_strategy` as a keyword argument to `create_job_worker`, or let the SDK auto-detect. | Strategy | How it runs your handler | Context type | Best for | | ------------------ | ------------------------------------------------------------------------------ | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `"auto"` (default) | Auto-detects: `"async"` for `async def` handlers, `"thread"` for sync handlers | `ConnectedJobContext` or `SyncJobContext` | Most use cases — sensible defaults without configuration | | `"async"` | Runs on the main `asyncio` event loop | `ConnectedJobContext` (async client) | I/O-bound async work (HTTP calls, database queries). Best throughput for handlers that call remote systems over HTTP | | `"thread"` | Runs in a `ThreadPoolExecutor` | `SyncJobContext` (sync client) | CPU-bound work, blocking I/O (file system, synchronous HTTP libraries) | | `"process"` | Runs in a `ProcessPoolExecutor` | `JobContext` (no client) | Heavy CPU-bound work that needs to escape the GIL (image processing, ML inference) | > **Choosing between `"async"` and `"thread"`:** If your job handler makes HTTP calls to remote systems (APIs, databases, microservices), `"async"` delivers the best performance — it can multiplex many concurrent jobs on a single thread without blocking. Use `"thread"` when your handler performs CPU-bound computation or calls synchronous libraries that would block the event loop. **Auto-detection logic:** If your handler is an `async def`, the strategy defaults to `"async"`. If it's a regular `def`, the strategy defaults to `"thread"`. You can override this explicitly: ```python from camunda_orchestration_sdk import SyncJobContext, JobContext # Force thread pool for a sync handler (receives SyncJobContext) def io_handler(job: SyncJobContext) -> dict[str, object]: return {"done": True} client.create_job_worker( config=WorkerConfig(job_type="io-bound-task", job_timeout_milliseconds=30_000), callback=io_handler, execution_strategy="thread", ) # Force process pool for CPU-heavy work (receives plain JobContext) def cpu_handler(job: JobContext) -> dict[str, object]: return {"computed": True} client.create_job_worker( config=WorkerConfig(job_type="image-processing", job_timeout_milliseconds=120_000), callback=cpu_handler, execution_strategy="process", ) ``` **Process strategy caveats:** The `"process"` strategy serialises (pickles) your handler and its context to send them to a worker process. Because the SDK client cannot be pickled, handlers running under this strategy receive a plain `JobContext` (without a `client` attribute) instead of `ConnectedJobContext`/`SyncJobContext`. This means: - Your handler function and its closure must be picklable (top-level functions work; lambdas and closures over unpicklable objects do not). - Your handler must accept `JobContext`, not `ConnectedJobContext` or `SyncJobContext` — the type checker enforces this via overloaded signatures on `create_job_worker`. - `job.log` degrades to a silent no-op logger in the child process (see [Job Logger](#job-logger)). - There is additional overhead per job from serialisation and inter-process communication. ## Worker Configuration `WorkerConfig` supports: | Parameter | Default | Description | | ------------------------------ | ----------------------------------- | ---------------------------------------------- | | `job_type` | _(required)_ | The BPMN service task type to poll for | | `job_timeout_milliseconds` | env / _(required)_ | How long the worker has to complete the job | | `request_timeout_milliseconds` | env / `0` | Long-poll request timeout (0 = server default) | | `max_concurrent_jobs` | env / `10` | Maximum jobs executing concurrently | | `fetch_variables` | `None` | List of variable names to fetch (None = all) | | `worker_name` | env / `"camunda-python-sdk-worker"` | Identifier for this worker in Camunda | The following are keyword-only arguments on `create_job_worker`, not part of `WorkerConfig`: | Parameter | Default | Description | | ---------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `execution_strategy` | `"auto"` | `"auto"`, `"async"`, `"thread"`, or `"process"`. Controls how the handler is invoked and which context type it receives. | | `startup_jitter_max_seconds` | env / `0` | Maximum random delay (in seconds) before the worker starts polling. When multiple application instances restart simultaneously, this spreads out initial activation requests to avoid saturating the server. A value of `0` (the default) means no delay. | ### Heritable Worker Defaults Worker configuration fields marked "env" in the table above can be set globally via environment variables or the client constructor. Individual `WorkerConfig` values take precedence. | Environment variable | Maps to | | ------------------------------------------- | ------------------------------ | | `CAMUNDA_WORKER_TIMEOUT` | `job_timeout_milliseconds` | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | `max_concurrent_jobs` | | `CAMUNDA_WORKER_REQUEST_TIMEOUT` | `request_timeout_milliseconds` | | `CAMUNDA_WORKER_NAME` | `worker_name` | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | `startup_jitter_max_seconds` | **Precedence:** explicit `WorkerConfig` value > environment variable / client constructor > hardcoded default. Example — set defaults via environment variables: ```bash export CAMUNDA_WORKER_TIMEOUT=30000 export CAMUNDA_WORKER_MAX_CONCURRENT_JOBS=32 ``` ```python # No need to set job_timeout_milliseconds on every worker — inherited from env client.create_job_worker( config=WorkerConfig(job_type="payment-service"), callback=handle_payment, ) client.create_job_worker( config=WorkerConfig(job_type="notification-service"), callback=handle_notification, ) ``` Example — set defaults via client constructor: ```python client = CamundaAsyncClient(configuration={ "CAMUNDA_WORKER_TIMEOUT": "30000", "CAMUNDA_WORKER_MAX_CONCURRENT_JOBS": "16", "CAMUNDA_WORKER_NAME": "my-app", }) # Both workers inherit timeout, concurrency, and name client.create_job_worker( config=WorkerConfig(job_type="payment-service"), callback=handle_payment, ) client.create_job_worker( config=WorkerConfig(job_type="shipping-service"), callback=handle_shipping, ) ``` ## Failing a Job To explicitly fail a job with a custom error message, retry count, and backoff, raise `JobFailure` in your handler: ```python from camunda_orchestration_sdk import ConnectedJobContext, JobFailure async def handle_job(job: ConnectedJobContext) -> dict[str, object]: if not job.variables.to_dict().get("required_field"): raise JobFailure( message="Missing required field", retries=2, retry_back_off=5000, # milliseconds ) return {"result": "ok"} ``` | Parameter | Default | Description | | ---------------- | ------------ | ----------------------------------------------------------------- | | `message` | _(required)_ | Error message attached to the failure | | `retries` | `None` | Remaining retries. `None` decrements the current retry count by 1 | | `retry_back_off` | `0` | Backoff before the next retry, in milliseconds | If an unhandled exception escapes your handler, the job is automatically failed with the exception message and the retry count decremented by 1. ## Throwing a BPMN Error To throw a [BPMN error](../../components/modeler/bpmn/error-events/error-events.md) from a job handler — for example, to trigger an error boundary event — raise `JobError`: ```python from camunda_orchestration_sdk import ConnectedJobContext, JobError async def handle_payment(job: ConnectedJobContext) -> dict[str, object]: variables = job.variables.to_dict() if variables.get("amount", 0) > 10_000: raise JobError(error_code="AMOUNT_TOO_HIGH", message="Payment exceeds limit") return {"status": "approved"} ``` | Parameter | Default | Description | | ------------ | ------------ | -------------------------------------------------------------- | | `error_code` | _(required)_ | The error code that is matched against BPMN error catch events | | `message` | `""` | An optional error message for logging/diagnostics | The `error_code` must match the error code defined on a BPMN error catch event in your process model. If no catch event matches, the job becomes an incident. ## Job Corrections (User Task Listeners) When a job worker handles a [user task listener](../../components/concepts/user-task-listeners.md), it can correct task properties (assignee, due date, candidate groups, etc.) as part of the completion. Return a `JobCompletionRequest` with a `result` containing `JobResultCorrections`: ```python from camunda_orchestration_sdk import ConnectedJobContext from camunda_orchestration_sdk.models import ( JobCompletionRequest, JobResultUserTask, JobResultCorrections, ) async def validate_task(job: ConnectedJobContext) -> JobCompletionRequest: return JobCompletionRequest( result=JobResultUserTask( type_="userTask", corrections=JobResultCorrections( assignee="corrected-user", priority=80, ), ), ) ``` To deny a task completion (reject the work), set `denied=True`: ```python async def review_task(job: ConnectedJobContext) -> JobCompletionRequest: return JobCompletionRequest( result=JobResultUserTask( type_="userTask", denied=True, denied_reason="Insufficient documentation", ), ) ``` | Correctable attribute | Type | Clear value | | --------------------- | ------------- | ----------------- | | `assignee` | `str` | Empty string `""` | | `due_date` | `datetime` | Empty string `""` | | `follow_up_date` | `datetime` | Empty string `""` | | `candidate_users` | `list[str]` | Empty list `[]` | | `candidate_groups` | `list[str]` | Empty list `[]` | | `priority` | `int` (0–100) | — | Omitting an attribute or passing `None` preserves the persisted value. This works with all handler types (async, thread, and process). --- ## Logging(Python-sdk) By default the SDK logs via [loguru](https://github.com/Delgan/loguru). You can inject any logger that exposes `debug`, `info`, `warning`, and `error` methods — including Python's built-in `logging.Logger`. ## Using the default logger (loguru) No configuration needed. Control verbosity with `CAMUNDA_SDK_LOG_LEVEL` or loguru's own `LOGURU_LEVEL` environment variable: ```bash CAMUNDA_SDK_LOG_LEVEL=debug python your_script.py ``` ## Injecting a custom logger Pass a `logger=` argument to `CamundaClient` or `CamundaAsyncClient`. The logger is forwarded to all internal components (auth providers, HTTP hooks, job workers). **stdlib `logging`:** ```python from camunda_orchestration_sdk import CamundaClient my_logger = logging.getLogger("my_app.camunda") my_logger.setLevel(logging.DEBUG) client = CamundaClient(logger=my_logger) ``` **Custom logger object:** ```python from camunda_orchestration_sdk import CamundaClient class MyLogger: def debug(self, msg: object, *args: object, **kwargs: object) -> None: print(f"[DEBUG] {msg}") def info(self, msg: object, *args: object, **kwargs: object) -> None: print(f"[INFO] {msg}") def warning(self, msg: object, *args: object, **kwargs: object) -> None: print(f"[WARN] {msg}") def error(self, msg: object, *args: object, **kwargs: object) -> None: print(f"[ERROR] {msg}") client = CamundaClient(logger=MyLogger()) ``` ## Disabling logging Pass an instance of `NullLogger` to silence all SDK output: ```python from camunda_orchestration_sdk import CamundaClient, NullLogger client = CamundaClient(logger=NullLogger()) ``` --- ## Migrating from v9 to v10 v10 tracks Camunda 8.10. Identifier arguments moved from plain `str` to **semantic types**, `get_resource_content` now returns an object instead of a `str`, and 26 model classes were renamed (the old names still work, with a deprecation warning). No client method or model class was removed. **→ See [MIGRATION.md](https://github.com/camunda/orchestration-cluster-api-python/blob/main/MIGRATION.md) for the full guide**, including the complete list of affected methods. The common case is wrapping an identifier at the boundary: ```python from camunda_orchestration_sdk import CamundaClient, GroupId, RoleId with CamundaClient() as client: # v9 — plain strings were accepted: # client.assign_role_to_group(role_id="developer", group_id="engineering") # v10 — wrap with the branded type constructor at the boundary client.assign_role_to_group( role_id=RoleId("developer"), group_id=GroupId("engineering"), ) ``` The brand constructors are subclasses of `str`, so the wrapped values remain valid where a `str` is expected (f-strings, logging, JSON serialisation). The wrap exists to enforce the upstream pattern and length constraints once, at the boundary, so a malformed identifier fails fast with `ValueError` instead of producing an HTTP 400 from the cluster. See [`semantic_types.py`](https://github.com/camunda/orchestration-cluster-api-python/blob/main/generated/camunda_orchestration_sdk/semantic_types.py) for the canonical list of brands and their constraints. --- ## Programmatic configuration (use sparingly) Only use `configuration={...}` when you must supply or mutate configuration dynamically (e.g. tests, multi-tenant routing, or ephemeral preview environments). Keys mirror their `CAMUNDA_*` environment names. ```python from camunda_orchestration_sdk import CamundaClient client = CamundaClient( configuration={ "CAMUNDA_REST_ADDRESS": "http://localhost:8080/v2", "CAMUNDA_AUTH_STRATEGY": "NONE", } ) ``` --- ## Quick start (Zero-config – recommended) Keep configuration out of application code. Let the client read `CAMUNDA_*` variables from the environment (12-factor style). This makes secret rotation, environment promotion (dev → staging → prod), and operational tooling (vaults / secret managers) safer and simpler. If no configuration is present, the SDK defaults to a local Camunda 8 Run-style endpoint at `http://localhost:8080/v2`. ```python from camunda_orchestration_sdk import CamundaAsyncClient, CamundaClient # Zero-config construction: reads CAMUNDA_* from the environment client = CamundaClient() async_client = CamundaAsyncClient() ``` Typical `.env` (example): ```bash CAMUNDA_REST_ADDRESS=https://cluster.example/v2 CAMUNDA_AUTH_STRATEGY=OAUTH CAMUNDA_CLIENT_ID=*** CAMUNDA_CLIENT_SECRET=*** ``` ### Loading configuration from a `.env` file (`CAMUNDA_LOAD_ENVFILE`) The SDK can optionally load configuration values from a dotenv file. - Set `CAMUNDA_LOAD_ENVFILE=true` (or `1` / `yes`) to load `.env` from the current working directory. - Set `CAMUNDA_LOAD_ENVFILE=/path/to/file.env` to load from an explicit path. - If the file does not exist, it is silently ignored. - Precedence is: `.env` < environment variables < explicit `configuration={...}` passed to the client. - The resolver reads dotenv values without mutating `os.environ`. Example `.env`: ```bash CAMUNDA_REST_ADDRESS=http://localhost:8080/v2 CAMUNDA_CLIENT_ID=your-client-id CAMUNDA_CLIENT_SECRET=your-client-secret ``` Enable loading from the current directory: ```bash export CAMUNDA_LOAD_ENVFILE=true python your_script.py ``` Or enable loading from a specific file: ```bash export CAMUNDA_LOAD_ENVFILE=~/camunda/dev.env python your_script.py ``` You can also enable it via the explicit configuration dict: ```python from camunda_orchestration_sdk import CamundaClient client = CamundaClient(configuration={"CAMUNDA_LOAD_ENVFILE": "true"}) ``` --- ## Self-signed TLS / mTLS(Python-sdk) The SDK supports custom TLS certificates via environment variables. This is useful for: - **Self-signed server certificates** — trust a CA that signed your server's certificate, without presenting a client identity. - **Mutual TLS (mTLS)** — present a client certificate and key to prove the client's identity. - **Both** — trust a custom CA _and_ present client credentials. ## Trusting a self-signed server certificate Set only the CA certificate to trust the server's self-signed certificate: ```bash # Path to PEM file: CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem # Or inline PEM: CAMUNDA_MTLS_CA="-----BEGIN CERTIFICATE-----\n..." ``` ## Mutual TLS (client certificate) To present a client certificate for mutual TLS, provide both the certificate and private key: ```bash CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt CAMUNDA_MTLS_KEY_PATH=/path/to/client.key # Optional — passphrase if the key is encrypted: # CAMUNDA_MTLS_KEY_PASSPHRASE=secret ``` ## Full mTLS with custom CA Combine a custom CA with client credentials: ```bash CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt CAMUNDA_MTLS_KEY_PATH=/path/to/client.key ``` Inline PEM values (`CAMUNDA_MTLS_CERT`, `CAMUNDA_MTLS_KEY`, `CAMUNDA_MTLS_CA`) take precedence over their `_PATH` counterparts. No code changes are needed — the SDK picks up TLS configuration from environment variables automatically: ```python from camunda_orchestration_sdk import CamundaClient client = CamundaClient() # TLS configured from env vars ``` --- ## Semantic Types(Python-sdk) The SDK uses distinct types for identifiers like `ProcessDefinitionKey`, `ProcessInstanceKey`, `JobKey`, `TenantId`, etc., defined in `camunda_orchestration_sdk.semantic_types` and re-exported from the top-level package. These types inherit from `str`, so they serialize transparently to/from JSON and are compatible with any code expecting a string. ## Why they exist Camunda's API has many operations that accept string keys — process definition keys, process instance keys, incident keys, job keys, and so on. Without semantic types, it is easy to accidentally pass a process instance key where a process definition key is expected, or mix up a job key with an incident key. The type checker cannot help you if everything is `str`. Semantic types make these identifiers **distinct at the type level**. Pyright (and other type checkers) will flag an error if you pass a `ProcessInstanceKey` where a `ProcessDefinitionKey` is expected, catching bugs before runtime. ## How to use them Treat semantic types as **opaque identifiers** — receive them from API responses and pass them to subsequent API calls without inspecting or transforming the underlying value: ```python from camunda_orchestration_sdk import CamundaClient, ProcessCreationByKey client = CamundaClient() # Deploy → the response already carries typed keys deployment = client.deploy_resources_from_files(["process.bpmn"]) process_key = deployment.processes[0].process_definition_key # ProcessDefinitionKey # Pass it directly to another call — no conversion needed result = client.create_process_instance( data=ProcessCreationByKey(process_definition_key=process_key) ) # The result also carries typed keys instance_key = result.process_instance_key # ProcessInstanceKey client.cancel_process_instance(process_instance_key=instance_key) ``` ## Serialising in and out of the type system Semantic types inherit from `str` and validate on construction, so they work transparently: ```python from camunda_orchestration_sdk import ProcessDefinitionKey, ProcessInstanceKey # --- Serialising out (to storage / JSON / message queue) --- # A semantic type IS a str, so it works directly with any str API: process_key: ProcessDefinitionKey = deployment.processes[0].process_definition_key db.save("process_key", process_key) # stores the raw string json.dumps({"key": process_key}) # "2251799813685249" # --- Deserialising in (from storage / external input) --- # Wrap the raw string with the type constructor (validates automatically): raw = db.load("process_key") # returns a plain str typed_key = ProcessDefinitionKey(raw) # validates and wraps the value result = client.create_process_instance( data=ProcessCreationByKey(process_definition_key=typed_key) ) ``` The available semantic types include: `ProcessDefinitionKey`, `ProcessDefinitionId`, `ProcessInstanceKey`, `JobKey`, `IncidentKey`, `DecisionDefinitionKey`, `DecisionDefinitionId`, `DeploymentKey`, `UserTaskKey`, `MessageKey`, `SignalKey`, `TenantId`, `ElementId`, `FormKey`, and others. All are importable from `camunda_orchestration_sdk` or `camunda_orchestration_sdk.semantic_types`. --- ## Using the SDK(Python-sdk) The SDK provides two clients with identical API surfaces: - **`CamundaClient`** — synchronous. Every method blocks until the response arrives. Use this in scripts, CLI tools, Django views, Flask handlers, or anywhere you don't have an async event loop. - **`CamundaAsyncClient`** — asynchronous (`async`/`await`). Every method is a coroutine. Use this in FastAPI, aiohttp, or any `asyncio`-based application. **Job workers require `CamundaAsyncClient`** because they use `asyncio` for long-polling and concurrent job execution. Both clients share the same method names and parameters — the only difference is calling convention: ```python # Sync from camunda_orchestration_sdk import CamundaClient with CamundaClient() as client: topology = client.get_topology() ``` ```python # Async from camunda_orchestration_sdk import CamundaAsyncClient async def main() -> None: async with CamundaAsyncClient() as client: topology = await client.get_topology() asyncio.run(main()) ``` > **Which one should I use?** If your application already uses `asyncio` (FastAPI, aiohttp, etc.) or you need job workers, use `CamundaAsyncClient`. Otherwise, `CamundaClient` is simpler and works everywhere. --- ## Python SDK # Camunda Orchestration Cluster API – Python SDK A fully typed Python client for the [Camunda 8 Orchestration Cluster REST API](../apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). Fully compliant with the Camunda OpenAPI spec with hand-written runtime infrastructure for authentication, configuration, and job workers. - **Sync and async** — `CamundaClient` (synchronous) and `CamundaAsyncClient` (async/await) - **Strict typing** — ty + pyright compatible with PEP 561 `py.typed` marker - **Zero-config** — reads `CAMUNDA_*` environment variables (12-factor style) - **Job workers** — long-poll workers with thread, process, or async execution strategies - **OAuth & Basic auth** — pluggable authentication with automatic token management - **Pluggable logging** — inject your own logger (stdlib `logging`, loguru, or custom) --- ## CamundaClient(4) The primary entry point of the SDK. A `CamundaClient` is cheap to clone — clones share the same configuration, HTTP client, OAuth token cache, and worker registry. `CamundaClient` exposes **262** methods covering the full Orchestration Cluster REST API surface, with authentication, retries, and backpressure applied automatically. ## Methods | Method | Description | | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [`activate_ad_hoc_sub_process_activities`](#activate_ad_hoc_sub_process_activities) | Activate activities within an ad-hoc sub-process (`POST /element-instances/ad-hoc-activities/{adHocSubProcessInstanceKey}/activation`). | | [`activate_jobs`](#activate_jobs) | Activate jobs of a given type. Prefer `CamundaClient::create_job_worker` for continuous polling. | | [`assign_client_to_group`](#assign_client_to_group) | Assign a client to a group (`PUT /groups/{groupId}/clients/{clientId}`). | | [`assign_client_to_tenant`](#assign_client_to_tenant) | Assign a client to a tenant (`PUT /tenants/{tenantId}/clients/{clientId}`). | | [`assign_group_to_tenant`](#assign_group_to_tenant) | Assign a group to a tenant (`PUT /tenants/{tenantId}/groups/{groupId}`). | | [`assign_mapping_rule_to_group`](#assign_mapping_rule_to_group) | Assign a mapping rule to a group (`PUT /groups/{groupId}/mapping-rules/{mappingRuleId}`). | | [`assign_mapping_rule_to_tenant`](#assign_mapping_rule_to_tenant) | Assign a mapping rule to a tenant (`PUT /tenants/{tenantId}/mapping-rules/{mappingRuleId}`). | | [`assign_process_instance_business_id`](#assign_process_instance_business_id) | Assign business id to process instance (`POST /process-instances/{processInstanceKey}/business-id-assignment`). | | [`assign_role_to_client`](#assign_role_to_client) | Assign a role to a client (`PUT /roles/{roleId}/clients/{clientId}`). | | [`assign_role_to_group`](#assign_role_to_group) | Assign a role to a group (`PUT /roles/{roleId}/groups/{groupId}`). | | [`assign_role_to_mapping_rule`](#assign_role_to_mapping_rule) | Assign a role to a mapping rule (`PUT /roles/{roleId}/mapping-rules/{mappingRuleId}`). | | [`assign_role_to_tenant`](#assign_role_to_tenant) | Assign a role to a tenant (`PUT /tenants/{tenantId}/roles/{roleId}`). | | [`assign_role_to_user`](#assign_role_to_user) | Assign a role to a user (`PUT /roles/{roleId}/users/{username}`). | | [`assign_user_task`](#assign_user_task) | Assign user task (`POST /user-tasks/{userTaskKey}/assignment`). | | [`assign_user_to_group`](#assign_user_to_group) | Assign a user to a group (`PUT /groups/{groupId}/users/{username}`). | | [`assign_user_to_tenant`](#assign_user_to_tenant) | Assign a user to a tenant (`PUT /tenants/{tenantId}/users/{username}`). | | [`auth`](#auth) | The authentication handler. | | [`backpressure_state`](#backpressure_state) | A snapshot of the adaptive backpressure controller's state, for observability. | | [`broadcast_signal`](#broadcast_signal) | Broadcast a signal. The configured default tenant id is applied when unset. | | [`cancel_batch_operation`](#cancel_batch_operation) | Cancel Batch operation (`POST /batch-operations/{batchOperationKey}/cancellation`). | | [`cancel_cluster_rebalance`](#cancel_cluster_rebalance) | Stop the running rebalance (`DELETE /cluster/v2/rebalance`). | | [`cancel_process_instance`](#cancel_process_instance) | Cancel a running process instance by key. | | [`cancel_process_instances_batch_operation`](#cancel_process_instances_batch_operation) | Cancel process instances (batch) (`POST /process-instances/cancellation`). | | [`change_cluster_mode`](#change_cluster_mode) | Change cluster mode (`PATCH /mode`). | | [`change_cluster_mode_as_cluster_admin`](#change_cluster_mode_as_cluster_admin) | Change the cluster mode of one or every physical tenant (`PATCH /cluster/v2/mode`). | | [`clock`](#clock) | The clock this client's cadence resolves through. | | [`complete_job`](#complete_job) | Complete a job, optionally with output variables. | | [`complete_user_task`](#complete_user_task) | Complete user task (`POST /user-tasks/{userTaskKey}/completion`). | | [`config`](#config) | The resolved configuration. | | [`configuration`](#configuration) | Build a generated-client `Configuration` with the base URL set and the current authentication applied (refreshing the OAuth token if needed). | | [`correlate_message`](#correlate_message) | Correlate a message to a waiting process instance. The configured default tenant id is applied when unset. | | [`create_admin_user`](#create_admin_user) | Create admin user (`POST /setup/user`). | | [`create_agent_instance`](#create_agent_instance) | Create agent instance (`POST /agent-instances`). | | [`create_authorization`](#create_authorization) | Create authorization (`POST /authorizations`). | | [`create_deployment`](#create_deployment) | Deploy resources (`POST /deployments`). | | [`create_document`](#create_document) | Upload document (`POST /documents`). | | [`create_document_link`](#create_document_link) | Create document link (`POST /documents/{documentId}/links`). | | [`create_documents`](#create_documents) | Upload multiple documents (`POST /documents/batch`). | | [`create_element_instance_variables`](#create_element_instance_variables) | Update element instance variables (`PUT /element-instances/{elementInstanceKey}/variables`). | | [`create_global_cluster_variable`](#create_global_cluster_variable) | Create a global-scoped cluster variable (`POST /cluster-variables/global`). | | [`create_global_task_listener`](#create_global_task_listener) | Create global user task listener (`POST /global-task-listeners`). | | [`create_group`](#create_group) | Create group (`POST /groups`). | | [`create_job_worker`](#create_job_worker) | Create a `JobWorker` that continuously polls for and processes jobs of the configured type. Call `JobWorker::run` (or `JobWorker::start` / `JobWorker::spawn`) to begin. | | [`create_mapping_rule`](#create_mapping_rule) | Create mapping rule (`POST /mapping-rules`). | | [`create_process_instance`](#create_process_instance) | Create (start) a process instance. The configured default tenant id is applied when the instruction does not already specify one. | | [`create_role`](#create_role) | Create role (`POST /roles`). | | [`create_tenant`](#create_tenant) | Create tenant (`POST /tenants`). | | [`create_tenant_cluster_variable`](#create_tenant_cluster_variable) | Create a tenant-scoped cluster variable (`POST /cluster-variables/tenants/{tenantId}`). | | [`create_user`](#create_user) | Create user (`POST /users`). | | [`delete_authorization`](#delete_authorization) | Delete authorization (`DELETE /authorizations/{authorizationKey}`). | | [`delete_decision_instance`](#delete_decision_instance) | Delete decision instance (`POST /decision-instances/{decisionEvaluationKey}/deletion`). | | [`delete_decision_instances_batch_operation`](#delete_decision_instances_batch_operation) | Delete decision instances (batch) (`POST /decision-instances/deletion`). | | [`delete_document`](#delete_document) | Delete document (`DELETE /documents/{documentId}`). | | [`delete_global_cluster_variable`](#delete_global_cluster_variable) | Delete a global-scoped cluster variable (`DELETE /cluster-variables/global/{name}`). | | [`delete_global_task_listener`](#delete_global_task_listener) | Delete global user task listener (`DELETE /global-task-listeners/{id}`). | | [`delete_group`](#delete_group) | Delete group (`DELETE /groups/{groupId}`). | | [`delete_history_backup`](#delete_history_backup) | Delete history backup (`DELETE /backups/history/{backupId}`). | | [`delete_history_backup_as_cluster_admin`](#delete_history_backup_as_cluster_admin) | Delete a history backup across physical tenants (`DELETE /cluster/v2/backups/history/{backupId}`). | | [`delete_mapping_rule`](#delete_mapping_rule) | Delete a mapping rule (`DELETE /mapping-rules/{mappingRuleId}`). | | [`delete_process_instance`](#delete_process_instance) | Delete process instance (`POST /process-instances/{processInstanceKey}/deletion`). | | [`delete_process_instances_batch_operation`](#delete_process_instances_batch_operation) | Delete process instances (batch) (`POST /process-instances/deletion`). | | [`delete_resource`](#delete_resource) | Delete resource (`POST /resources/{resourceKey}/deletion`). | | [`delete_role`](#delete_role) | Delete role (`DELETE /roles/{roleId}`). | | [`delete_runtime_backup`](#delete_runtime_backup) | Delete runtime backup (`DELETE /backups/runtime/{backupId}`). | | [`delete_runtime_backup_as_cluster_admin`](#delete_runtime_backup_as_cluster_admin) | Delete a runtime backup across physical tenants (`DELETE /cluster/v2/backups/runtime/{backupId}`). | | [`delete_runtime_backup_state`](#delete_runtime_backup_state) | Delete runtime backup state (`DELETE /backups/runtime/state`). | | [`delete_runtime_backup_state_as_cluster_admin`](#delete_runtime_backup_state_as_cluster_admin) | Delete runtime backup state across physical tenants (`DELETE /cluster/v2/backups/runtime/state`). | | [`delete_tenant`](#delete_tenant) | Delete tenant (`DELETE /tenants/{tenantId}`). | | [`delete_tenant_cluster_variable`](#delete_tenant_cluster_variable) | Delete a tenant-scoped cluster variable (`DELETE /cluster-variables/tenants/{tenantId}/{name}`). | | [`delete_user`](#delete_user) | Delete user (`DELETE /users/{username}`). | | [`deploy_resources`](#deploy_resources) | Deploy one or more resources (BPMN, DMN, forms) from local file paths. The configured default tenant id is applied when `tenant_id` is `None`. | | [`evaluate_conditionals`](#evaluate_conditionals) | Evaluate root level conditional start events (`POST /conditionals/evaluation`). | | [`evaluate_decision`](#evaluate_decision) | Evaluate a decision (DMN). The configured default tenant id is applied when unset. | | [`evaluate_expression`](#evaluate_expression) | Evaluate an expression (`POST /expression/evaluation`). | | [`eventual`](#eventual) | Poll a read operation until it returns `Ok`, retrying `404 Not Found` (the typical symptom of a not-yet-replicated read) until the eventual-consistency window elapses. | | [`eventual_until`](#eventual_until) | Poll a read operation until `predicate` is satisfied by its result, retrying `404` and ignoring consistent-but-not-yet-matching reads, until the eventual-consistency window elapses. | | [`fail_job`](#fail_job) | Fail a job, decrementing retries. | | [`from_env`](#from_env) | Construct a client from environment variables only. | | [`get_agent_definition`](#get_agent_definition) | Get agent definition (`GET /agent-definitions/{agentDefinitionKey}`). | | [`get_agent_instance`](#get_agent_instance) | Get agent instance (`GET /agent-instances/{agentInstanceKey}`). | | [`get_audit_log`](#get_audit_log) | Get audit log (`GET /audit-logs/{auditLogKey}`). | | [`get_authentication`](#get_authentication) | Get current user (`GET /authentication/me`). | | [`get_authorization`](#get_authorization) | Get authorization (`GET /authorizations/{authorizationKey}`). | | [`get_batch_operation`](#get_batch_operation) | Get batch operation (`GET /batch-operations/{batchOperationKey}`). | | [`get_cluster_exporting_status`](#get_cluster_exporting_status) | Get exporting status of the whole cluster (`GET /cluster/v2/exporting`). | | [`get_cluster_rebalance`](#get_cluster_rebalance) | Report the cluster's current leadership balance (`GET /cluster/v2/rebalance`). | | [`get_cluster_status`](#get_cluster_status) | Get the status of the whole cluster (`GET /cluster/v2/status`). | | [`get_cluster_topology`](#get_cluster_topology) | Get the topology of the whole cluster (`GET /cluster/v2/topology`). | | [`get_cluster_upgrade_status`](#get_cluster_upgrade_status) | Get the upgrade-readiness status of the whole cluster (`GET /cluster/v2/status/upgrade`). | | [`get_decision_definition`](#get_decision_definition) | Get decision definition (`GET /decision-definitions/{decisionDefinitionKey}`). | | [`get_decision_definition_xml`](#get_decision_definition_xml) | Get decision definition XML (`GET /decision-definitions/{decisionDefinitionKey}/xml`). | | [`get_decision_instance`](#get_decision_instance) | Get decision instance (`GET /decision-instances/{decisionEvaluationInstanceKey}`). | | [`get_decision_requirements`](#get_decision_requirements) | Get decision requirements (`GET /decision-requirements/{decisionRequirementsKey}`). | | [`get_decision_requirements_xml`](#get_decision_requirements_xml) | Get decision requirements XML (`GET /decision-requirements/{decisionRequirementsKey}/xml`). | | [`get_document`](#get_document) | Download document (`GET /documents/{documentId}`). | | [`get_element_instance`](#get_element_instance) | Get element instance (`GET /element-instances/{elementInstanceKey}`). | | [`get_exporting_status`](#get_exporting_status) | Get exporting status (`GET /exporting`). | | [`get_form_by_key`](#get_form_by_key) | Get form by key (`GET /forms/{formKey}`). | | [`get_global_cluster_variable`](#get_global_cluster_variable) | Get a global-scoped cluster variable (`GET /cluster-variables/global/{name}`). | | [`get_global_job_statistics`](#get_global_job_statistics) | Global job statistics (`GET /jobs/statistics/global`). | | [`get_global_task_listener`](#get_global_task_listener) | Get global user task listener (`GET /global-task-listeners/{id}`). | | [`get_group`](#get_group) | Get group (`GET /groups/{groupId}`). | | [`get_history_backup`](#get_history_backup) | Get history backup (`GET /backups/history/{backupId}`). | | [`get_history_backup_as_cluster_admin`](#get_history_backup_as_cluster_admin) | Get a history backup across physical tenants (`GET /cluster/v2/backups/history/{backupId}`). | | [`get_incident`](#get_incident) | Get incident (`GET /incidents/{incidentKey}`). | | [`get_job_error_statistics`](#get_job_error_statistics) | Get error metrics for a job type (`POST /jobs/statistics/errors`). | | [`get_job_time_series_statistics`](#get_job_time_series_statistics) | Get time-series metrics for a job type (`POST /jobs/statistics/time-series`). | | [`get_job_type_statistics`](#get_job_type_statistics) | Get job statistics by type (`POST /jobs/statistics/by-types`). | | [`get_job_worker_statistics`](#get_job_worker_statistics) | Get job statistics by worker (`POST /jobs/statistics/by-workers`). | | [`get_license`](#get_license) | Get license status (`GET /license`). | | [`get_mapping_rule`](#get_mapping_rule) | Get a mapping rule (`GET /mapping-rules/{mappingRuleId}`). | | [`get_process_definition`](#get_process_definition) | Get process definition (`GET /process-definitions/{processDefinitionKey}`). | | [`get_process_definition_instance_statistics`](#get_process_definition_instance_statistics) | Get process instance statistics (`POST /process-definitions/statistics/process-instances`). | | [`get_process_definition_instance_version_statistics`](#get_process_definition_instance_version_statistics) | Get process instance statistics by version (`POST /process-definitions/statistics/process-instances-by-version`). | | [`get_process_definition_message_subscription_statistics`](#get_process_definition_message_subscription_statistics) | Get message subscription statistics (`POST /process-definitions/statistics/message-subscriptions`). | | [`get_process_definition_statistics`](#get_process_definition_statistics) | Get process definition statistics (`POST /process-definitions/{processDefinitionKey}/statistics/element-instances`). | | [`get_process_definition_xml`](#get_process_definition_xml) | Get process definition XML (`GET /process-definitions/{processDefinitionKey}/xml`). | | [`get_process_instance`](#get_process_instance) | Fetch a process instance by key (a read; not subject to backpressure). Returns a `404` `CamundaError::Api` if not yet visible — compose with `CamundaClient::eventual` to wait through replication lag. | | [`get_process_instance_call_hierarchy`](#get_process_instance_call_hierarchy) | Get call hierarchy (`GET /process-instances/{processInstanceKey}/call-hierarchy`). | | [`get_process_instance_sequence_flows`](#get_process_instance_sequence_flows) | Get sequence flows (`GET /process-instances/{processInstanceKey}/sequence-flows`). | | [`get_process_instance_statistics`](#get_process_instance_statistics) | Get element instance statistics (`GET /process-instances/{processInstanceKey}/statistics/element-instances`). | | [`get_process_instance_statistics_by_definition`](#get_process_instance_statistics_by_definition) | Get process instance statistics by definition (`POST /incidents/statistics/process-instances-by-definition`). | | [`get_process_instance_statistics_by_error`](#get_process_instance_statistics_by_error) | Get process instance statistics by error (`POST /incidents/statistics/process-instances-by-error`). | | [`get_process_instance_wait_state_statistics`](#get_process_instance_wait_state_statistics) | Get wait state statistics (`GET /process-instances/{processInstanceKey}/statistics/wait-states`). | | [`get_resource`](#get_resource) | Get resource (`GET /resources/{resourceKey}`). | | [`get_resource_content`](#get_resource_content) | Get RPA resource content (deprecated) (`GET /resources/{resourceKey}/content`). | | [`get_resource_content_binary`](#get_resource_content_binary) | Get resource content as binary (`GET /resources/{resourceKey}/content/binary`). | | [`get_restore_status`](#get_restore_status) | Get the status of the restore that is currently in progress (`GET /restore`). | | [`get_role`](#get_role) | Get role (`GET /roles/{roleId}`). | | [`get_runtime_backup`](#get_runtime_backup) | Get runtime backup (`GET /backups/runtime/{backupId}`). | | [`get_runtime_backup_as_cluster_admin`](#get_runtime_backup_as_cluster_admin) | Get a runtime backup across physical tenants (`GET /cluster/v2/backups/runtime/{backupId}`). | | [`get_runtime_backup_state`](#get_runtime_backup_state) | Get runtime backup state (`GET /backups/runtime/state`). | | [`get_runtime_backup_state_as_cluster_admin`](#get_runtime_backup_state_as_cluster_admin) | Get runtime backup state across physical tenants (`GET /cluster/v2/backups/runtime/state`). | | [`get_start_process_form`](#get_start_process_form) | Get process start form (`GET /process-definitions/{processDefinitionKey}/form`). | | [`get_status`](#get_status) | Get physical tenant status (`GET /status`). | | [`get_system_configuration`](#get_system_configuration) | System configuration (alpha) (`GET /system/configuration`). | | [`get_tenant`](#get_tenant) | Get tenant (`GET /tenants/{tenantId}`). | | [`get_tenant_cluster_variable`](#get_tenant_cluster_variable) | Get a tenant-scoped cluster variable (`GET /cluster-variables/tenants/{tenantId}/{name}`). | | [`get_usage_metrics`](#get_usage_metrics) | Get usage metrics (`GET /system/usage-metrics`). | | [`get_user`](#get_user) | Get user (`GET /users/{username}`). | | [`get_user_task`](#get_user_task) | Get user task (`GET /user-tasks/{userTaskKey}`). | | [`get_user_task_form`](#get_user_task_form) | Get user task form (`GET /user-tasks/{userTaskKey}/form`). | | [`get_variable`](#get_variable) | Get variable (`GET /variables/{variableKey}`). | | [`init_logging`](#init_logging) | Install a formatting `tracing` subscriber filtered to the configured `CAMUNDA_SDK_LOG_LEVEL`. No-op if a global subscriber is already set or logging is off. Returns `true` if this call installed the subscriber. | | [`list_history_backups`](#list_history_backups) | List history backups (`GET /backups/history`). | | [`list_history_backups_as_cluster_admin`](#list_history_backups_as_cluster_admin) | List history backups across physical tenants (`GET /cluster/v2/backups/history`). | | [`list_runtime_backups`](#list_runtime_backups) | List runtime backups (`GET /backups/runtime`). | | [`list_runtime_backups_as_cluster_admin`](#list_runtime_backups_as_cluster_admin) | List runtime backups across physical tenants (`GET /cluster/v2/backups/runtime`). | | [`list_secrets`](#list_secrets) | List secrets (`POST /secrets/list`). | | [`migrate_process_instance`](#migrate_process_instance) | Migrate process instance (`POST /process-instances/{processInstanceKey}/migration`). | | [`migrate_process_instances_batch_operation`](#migrate_process_instances_batch_operation) | Migrate process instances (batch) (`POST /process-instances/migration`). | | [`modify_process_instance`](#modify_process_instance) | Modify process instance (`POST /process-instances/{processInstanceKey}/modification`). | | [`modify_process_instances_batch_operation`](#modify_process_instances_batch_operation) | Modify process instances (batch) (`POST /process-instances/modification`). | | [`new`](#new) | Construct a client from `CamundaOptions` (environment + overrides). | | [`pause_cluster_exporting`](#pause_cluster_exporting) | Pause exporting across the whole cluster (`POST /cluster/v2/exporting/pause`). | | [`pause_exporting`](#pause_exporting) | Pause exporting (`POST /exporting/pause`). | | [`pin_clock`](#pin_clock) | Pin internal clock (alpha) (`PUT /clock`). | | [`publish_message`](#publish_message) | Publish a message (no correlation key matching against active subscriptions only — buffered). The configured default tenant id is applied when unset. | | [`random`](#random) | The source this client draws jitter from. | | [`reset_clock`](#reset_clock) | Reset internal clock (alpha) (`POST /clock/reset`). | | [`resolve_incident`](#resolve_incident) | Resolve incident (`POST /incidents/{incidentKey}/resolution`). | | [`resolve_incidents_batch_operation`](#resolve_incidents_batch_operation) | Resolve related incidents (batch) (`POST /process-instances/incident-resolution`). | | [`resolve_process_instance_incidents`](#resolve_process_instance_incidents) | Resolve related incidents (`POST /process-instances/{processInstanceKey}/incident-resolution`). | | [`resolve_secrets`](#resolve_secrets) | Resolve secrets (`POST /secrets/resolve`). | | [`restore`](#restore) | Restore from a backup (`POST /restore`). | | [`restore_as_cluster_admin`](#restore_as_cluster_admin) | Restore one or every physical tenant from a backup (`POST /cluster/v2/restore`). | | [`resume_batch_operation`](#resume_batch_operation) | Resume Batch operation (`POST /batch-operations/{batchOperationKey}/resumption`). | | [`resume_cluster_exporting`](#resume_cluster_exporting) | Resume exporting across the whole cluster (`POST /cluster/v2/exporting/resume`). | | [`resume_exporting`](#resume_exporting) | Resume exporting (`POST /exporting/resume`). | | [`resume_process_instance`](#resume_process_instance) | Resume process instance (`POST /process-instances/{processInstanceKey}/resumption`). | | [`resume_process_instances_batch_operation`](#resume_process_instances_batch_operation) | Resume process instances (batch) (`POST /process-instances/resumption`). | | [`running_workers`](#running_workers) | The job types of all currently-registered workers that are still running. | | [`search_agent_definitions`](#search_agent_definitions) | Search agent definitions (`POST /agent-definitions/search`). | | [`search_agent_instance_history`](#search_agent_instance_history) | Search agent instance history (`POST /agent-instances/{agentInstanceKey}/history/search`). | | [`search_agent_instances`](#search_agent_instances) | Search agent instances (`POST /agent-instances/search`). | | [`search_audit_logs`](#search_audit_logs) | Search audit logs (`POST /audit-logs/search`). | | [`search_authorizations`](#search_authorizations) | Search authorizations (`POST /authorizations/search`). | | [`search_batch_operation_items`](#search_batch_operation_items) | Search batch operation items (`POST /batch-operation-items/search`). | | [`search_batch_operations`](#search_batch_operations) | Search batch operations (`POST /batch-operations/search`). | | [`search_clients_for_group`](#search_clients_for_group) | Search group clients (`POST /groups/{groupId}/clients/search`). | | [`search_clients_for_role`](#search_clients_for_role) | Search role clients (`POST /roles/{roleId}/clients/search`). | | [`search_clients_for_tenant`](#search_clients_for_tenant) | Search clients for tenant (`POST /tenants/{tenantId}/clients/search`). | | [`search_cluster_variables`](#search_cluster_variables) | Search for cluster variables based on given criteria (`POST /cluster-variables/search`). | | [`search_correlated_message_subscriptions`](#search_correlated_message_subscriptions) | Search correlated message subscriptions (`POST /correlated-message-subscriptions/search`). | | [`search_decision_definitions`](#search_decision_definitions) | Search decision definitions (`POST /decision-definitions/search`). | | [`search_decision_instances`](#search_decision_instances) | Search decision instances (`POST /decision-instances/search`). | | [`search_decision_requirements`](#search_decision_requirements) | Search decision requirements (`POST /decision-requirements/search`). | | [`search_element_instance_incidents`](#search_element_instance_incidents) | Search for incidents of a specific element instance (`POST /element-instances/{elementInstanceKey}/incidents/search`). | | [`search_element_instance_wait_states`](#search_element_instance_wait_states) | Search element instance wait states (`POST /element-instances/wait-states/search`). | | [`search_element_instances`](#search_element_instances) | Search element instances (`POST /element-instances/search`). | | [`search_global_task_listeners`](#search_global_task_listeners) | Search global user task listeners (`POST /global-task-listeners/search`). | | [`search_group_ids_for_tenant`](#search_group_ids_for_tenant) | Search groups for tenant (`POST /tenants/{tenantId}/groups/search`). | | [`search_groups`](#search_groups) | Search groups (`POST /groups/search`). | | [`search_groups_for_role`](#search_groups_for_role) | Search role groups (`POST /roles/{roleId}/groups/search`). | | [`search_incidents`](#search_incidents) | Search incidents (`POST /incidents/search`). | | [`search_jobs`](#search_jobs) | Search jobs (`POST /jobs/search`). | | [`search_mapping_rule`](#search_mapping_rule) | Search mapping rules (`POST /mapping-rules/search`). | | [`search_mapping_rules_for_group`](#search_mapping_rules_for_group) | Search group mapping rules (`POST /groups/{groupId}/mapping-rules/search`). | | [`search_mapping_rules_for_role`](#search_mapping_rules_for_role) | Search role mapping rules (`POST /roles/{roleId}/mapping-rules/search`). | | [`search_mapping_rules_for_tenant`](#search_mapping_rules_for_tenant) | Search mapping rules for tenant (`POST /tenants/{tenantId}/mapping-rules/search`). | | [`search_message_subscriptions`](#search_message_subscriptions) | Search message subscriptions (`POST /message-subscriptions/search`). | | [`search_own_authorizations`](#search_own_authorizations) | Search own authorizations (`POST /authentication/me/authorizations/search`). | | [`search_process_definition_variable_names`](#search_process_definition_variable_names) | Search process definition variable names (`POST /process-definitions/{processDefinitionKey}/variable-names/search`). | | [`search_process_definitions`](#search_process_definitions) | Search process definitions (`POST /process-definitions/search`). | | [`search_process_instance_incidents`](#search_process_instance_incidents) | Search related incidents (`POST /process-instances/{processInstanceKey}/incidents/search`). | | [`search_process_instances`](#search_process_instances) | Search process instances (`POST /process-instances/search`). | | [`search_resources`](#search_resources) | Search resources (`POST /resources/search`). | | [`search_roles`](#search_roles) | Search roles (`POST /roles/search`). | | [`search_roles_for_group`](#search_roles_for_group) | Search group roles (`POST /groups/{groupId}/roles/search`). | | [`search_roles_for_tenant`](#search_roles_for_tenant) | Search roles for tenant (`POST /tenants/{tenantId}/roles/search`). | | [`search_tenants`](#search_tenants) | Search tenants (`POST /tenants/search`). | | [`search_user_task_audit_logs`](#search_user_task_audit_logs) | Search user task audit logs (`POST /user-tasks/{userTaskKey}/audit-logs/search`). | | [`search_user_task_effective_variables`](#search_user_task_effective_variables) | Search user task effective variables (`POST /user-tasks/{userTaskKey}/effective-variables/search`). | | [`search_user_task_variables`](#search_user_task_variables) | Search user task variables (`POST /user-tasks/{userTaskKey}/variables/search`). | | [`search_user_tasks`](#search_user_tasks) | Search user tasks (`POST /user-tasks/search`). | | [`search_users`](#search_users) | Search users (`POST /users/search`). | | [`search_users_for_group`](#search_users_for_group) | Search group users (`POST /groups/{groupId}/users/search`). | | [`search_users_for_role`](#search_users_for_role) | Search role users (`POST /roles/{roleId}/users/search`). | | [`search_users_for_tenant`](#search_users_for_tenant) | Search users for tenant (`POST /tenants/{tenantId}/users/search`). | | [`search_variables`](#search_variables) | Search variables, returning the raw generated result. | | [`search_variables_as`](#search_variables_as) | Search variables and deserialize each variable's JSON `value` into a typed `T`. | | [`spawn_worker`](#spawn_worker) | Spawn a managed job worker and register it for lifecycle control. The returned handle can stop the individual worker; `CamundaClient::stop_all_workers` stops every registered worker. The worker is also retained by the client so it keeps running even if the returned handle is dropped. | | [`stop_all_workers`](#stop_all_workers) | Gracefully stop every registered worker, letting in-flight jobs drain, and await their completion. Clears the registry. | | [`suspend_batch_operation`](#suspend_batch_operation) | Suspend Batch operation (`POST /batch-operations/{batchOperationKey}/suspension`). | | [`suspend_process_instance`](#suspend_process_instance) | Suspend process instance (`POST /process-instances/{processInstanceKey}/suspension`). | | [`suspend_process_instances_batch_operation`](#suspend_process_instances_batch_operation) | Suspend process instances (batch) (`POST /process-instances/suspension`). | | [`sync_runtime_backup_state`](#sync_runtime_backup_state) | Force-write runtime backup state (`POST /backups/runtime/state/sync`). | | [`sync_runtime_backup_state_as_cluster_admin`](#sync_runtime_backup_state_as_cluster_admin) | Force-write runtime backup state across physical tenants (`POST /cluster/v2/backups/runtime/state/sync`). | | [`take_history_backup`](#take_history_backup) | Take a history backup (`POST /backups/history`). | | [`take_history_backup_as_cluster_admin`](#take_history_backup_as_cluster_admin) | Take a history backup on one or every physical tenant (`POST /cluster/v2/backups/history`). | | [`take_runtime_backup`](#take_runtime_backup) | Take a runtime backup (`POST /backups/runtime`). | | [`take_runtime_backup_as_cluster_admin`](#take_runtime_backup_as_cluster_admin) | Take a runtime backup on one or every physical tenant (`POST /cluster/v2/backups/runtime`). | | [`throw_job_error`](#throw_job_error) | Throw a BPMN error from a job. | | [`topology`](#topology) | Fetch the cluster topology. | | [`trigger_cluster_rebalance`](#trigger_cluster_rebalance) | Trigger a cluster-wide leadership rebalance (`POST /cluster/v2/rebalance`). | | [`unassign_client_from_group`](#unassign_client_from_group) | Unassign a client from a group (`DELETE /groups/{groupId}/clients/{clientId}`). | | [`unassign_client_from_tenant`](#unassign_client_from_tenant) | Unassign a client from a tenant (`DELETE /tenants/{tenantId}/clients/{clientId}`). | | [`unassign_group_from_tenant`](#unassign_group_from_tenant) | Unassign a group from a tenant (`DELETE /tenants/{tenantId}/groups/{groupId}`). | | [`unassign_mapping_rule_from_group`](#unassign_mapping_rule_from_group) | Unassign a mapping rule from a group (`DELETE /groups/{groupId}/mapping-rules/{mappingRuleId}`). | | [`unassign_mapping_rule_from_tenant`](#unassign_mapping_rule_from_tenant) | Unassign a mapping rule from a tenant (`DELETE /tenants/{tenantId}/mapping-rules/{mappingRuleId}`). | | [`unassign_role_from_client`](#unassign_role_from_client) | Unassign a role from a client (`DELETE /roles/{roleId}/clients/{clientId}`). | | [`unassign_role_from_group`](#unassign_role_from_group) | Unassign a role from a group (`DELETE /roles/{roleId}/groups/{groupId}`). | | [`unassign_role_from_mapping_rule`](#unassign_role_from_mapping_rule) | Unassign a role from a mapping rule (`DELETE /roles/{roleId}/mapping-rules/{mappingRuleId}`). | | [`unassign_role_from_tenant`](#unassign_role_from_tenant) | Unassign a role from a tenant (`DELETE /tenants/{tenantId}/roles/{roleId}`). | | [`unassign_role_from_user`](#unassign_role_from_user) | Unassign a role from a user (`DELETE /roles/{roleId}/users/{username}`). | | [`unassign_user_from_group`](#unassign_user_from_group) | Unassign a user from a group (`DELETE /groups/{groupId}/users/{username}`). | | [`unassign_user_from_tenant`](#unassign_user_from_tenant) | Unassign a user from a tenant (`DELETE /tenants/{tenantId}/users/{username}`). | | [`unassign_user_task`](#unassign_user_task) | Unassign user task (`DELETE /user-tasks/{userTaskKey}/assignee`). | | [`update_agent_instance`](#update_agent_instance) | Update agent instance (`PATCH /agent-instances/{agentInstanceKey}`). | | [`update_authorization`](#update_authorization) | Update authorization (`PUT /authorizations/{authorizationKey}`). | | [`update_global_cluster_variable`](#update_global_cluster_variable) | Update a global-scoped cluster variable (`PUT /cluster-variables/global/{name}`). | | [`update_global_task_listener`](#update_global_task_listener) | Update global user task listener (`PUT /global-task-listeners/{id}`). | | [`update_group`](#update_group) | Update group (`PUT /groups/{groupId}`). | | [`update_job`](#update_job) | Update job (`PATCH /jobs/{jobKey}`). | | [`update_jobs_batch_operation`](#update_jobs_batch_operation) | Update jobs (batch) (`POST /jobs/batch-update`). | | [`update_mapping_rule`](#update_mapping_rule) | Update mapping rule (`PUT /mapping-rules/{mappingRuleId}`). | | [`update_role`](#update_role) | Update role (`PUT /roles/{roleId}`). | | [`update_tenant`](#update_tenant) | Update tenant (`PUT /tenants/{tenantId}`). | | [`update_tenant_cluster_variable`](#update_tenant_cluster_variable) | Update a tenant-scoped cluster variable (`PUT /cluster-variables/tenants/{tenantId}/{name}`). | | [`update_user`](#update_user) | Update user (`PUT /users/{username}`). | | [`update_user_task`](#update_user_task) | Update user task (`PATCH /user-tasks/{userTaskKey}`). | | [`worker_config`](#worker_config) | Build a `JobWorkerConfig` for `job_type` pre-seeded from the SDK's resolved worker defaults (env-driven: `CAMUNDA_WORKER_*`). Builder methods override fields. | ## Method details ### activate_ad_hoc_sub_process_activities ```rust pub async fn activate_ad_hoc_sub_process_activities(&self, params: ActivateAdHocSubProcessActivitiesParams) -> Result<()> ``` Activate activities within an ad-hoc sub-process (`POST /element-instances/ad-hoc-activities/{adHocSubProcessInstanceKey}/activation`). **Example** ```rust async fn activate_ad_hoc_sub_process_activities( ad_hoc_sub_process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .activate_ad_hoc_sub_process_activities(ActivateAdHocSubProcessActivitiesParams { ad_hoc_sub_process_instance_key, ad_hoc_sub_process_activate_activities_instruction: AdHocSubProcessActivateActivitiesInstruction { elements: vec![AdHocSubProcessActivateActivityReference { element_id: ElementId::assume_exists("my-element"), ..Default::default() }], ..Default::default() }, }) .await?; println!("Activate activities within an ad-hoc sub-process: done"); Ok(()) } ``` ### activate_jobs ```rust pub async fn activate_jobs(&self, request: models::JobActivationRequest) -> Result ``` Activate jobs of a given type. Prefer `CamundaClient::create_job_worker` for continuous polling. **Example** ```rust async fn activate_jobs() -> Result<(), Box> { let client = CamundaClient::from_env()?; // For long-running workers prefer `client.create_job_worker(..)`, which handles // polling, back-off, and concurrency for you. let activated = client .activate_jobs(JobActivationRequest { r#type: "payment-service".to_string(), timeout: 60_000, max_jobs_to_activate: 10, worker: Some("payment-worker".to_string()), ..Default::default() }) .await?; for job in activated.jobs { println!("Activated job {} for {}", job.job_key, job.element_id); } Ok(()) } ``` ### assign_client_to_group ```rust pub async fn assign_client_to_group(&self, params: AssignClientToGroupParams) -> Result<()> ``` Assign a client to a group (`PUT /groups/{groupId}/clients/{clientId}`). **Example** ```rust async fn assign_client_to_group( group_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_client_to_group(AssignClientToGroupParams { group_id, client_id, }) .await?; println!("Assign a client to a group: done"); Ok(()) } ``` ### assign_client_to_tenant ```rust pub async fn assign_client_to_tenant(&self, params: AssignClientToTenantParams) -> Result<()> ``` Assign a client to a tenant (`PUT /tenants/{tenantId}/clients/{clientId}`). **Example** ```rust async fn assign_client_to_tenant( tenant_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_client_to_tenant(AssignClientToTenantParams { tenant_id, client_id, }) .await?; println!("Assign a client to a tenant: done"); Ok(()) } ``` ### assign_group_to_tenant ```rust pub async fn assign_group_to_tenant(&self, params: AssignGroupToTenantParams) -> Result<()> ``` Assign a group to a tenant (`PUT /tenants/{tenantId}/groups/{groupId}`). **Example** ```rust async fn assign_group_to_tenant( tenant_id: String, group_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_group_to_tenant(AssignGroupToTenantParams { tenant_id, group_id, }) .await?; println!("Assign a group to a tenant: done"); Ok(()) } ``` ### assign_mapping_rule_to_group ```rust pub async fn assign_mapping_rule_to_group(&self, params: AssignMappingRuleToGroupParams) -> Result<()> ``` Assign a mapping rule to a group (`PUT /groups/{groupId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn assign_mapping_rule_to_group( group_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_mapping_rule_to_group(AssignMappingRuleToGroupParams { group_id, mapping_rule_id, }) .await?; println!("Assign a mapping rule to a group: done"); Ok(()) } ``` ### assign_mapping_rule_to_tenant ```rust pub async fn assign_mapping_rule_to_tenant(&self, params: AssignMappingRuleToTenantParams) -> Result<()> ``` Assign a mapping rule to a tenant (`PUT /tenants/{tenantId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn assign_mapping_rule_to_tenant( tenant_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_mapping_rule_to_tenant(AssignMappingRuleToTenantParams { tenant_id, mapping_rule_id, }) .await?; println!("Assign a mapping rule to a tenant: done"); Ok(()) } ``` ### assign_process_instance_business_id ```rust pub async fn assign_process_instance_business_id(&self, params: AssignProcessInstanceBusinessIdParams) -> Result<()> ``` Assign business id to process instance (`POST /process-instances/{processInstanceKey}/business-id-assignment`). **Example** ```rust async fn assign_process_instance_business_id( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_process_instance_business_id(AssignProcessInstanceBusinessIdParams { process_instance_key, process_instance_business_id_assignment_instruction: ProcessInstanceBusinessIdAssignmentInstruction { business_id: BusinessId::assume_exists("my-business-id"), }, }) .await?; println!("Assign business id to process instance: done"); Ok(()) } ``` ### assign_role_to_client ```rust pub async fn assign_role_to_client(&self, params: AssignRoleToClientParams) -> Result<()> ``` Assign a role to a client (`PUT /roles/{roleId}/clients/{clientId}`). **Example** ```rust async fn assign_role_to_client( role_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_role_to_client(AssignRoleToClientParams { role_id, client_id }) .await?; println!("Assign a role to a client: done"); Ok(()) } ``` ### assign_role_to_group ```rust pub async fn assign_role_to_group(&self, params: AssignRoleToGroupParams) -> Result<()> ``` Assign a role to a group (`PUT /roles/{roleId}/groups/{groupId}`). **Example** ```rust async fn assign_role_to_group( role_id: String, group_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_role_to_group(AssignRoleToGroupParams { role_id, group_id }) .await?; println!("Assign a role to a group: done"); Ok(()) } ``` ### assign_role_to_mapping_rule ```rust pub async fn assign_role_to_mapping_rule(&self, params: AssignRoleToMappingRuleParams) -> Result<()> ``` Assign a role to a mapping rule (`PUT /roles/{roleId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn assign_role_to_mapping_rule( role_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_role_to_mapping_rule(AssignRoleToMappingRuleParams { role_id, mapping_rule_id, }) .await?; println!("Assign a role to a mapping rule: done"); Ok(()) } ``` ### assign_role_to_tenant ```rust pub async fn assign_role_to_tenant(&self, params: AssignRoleToTenantParams) -> Result<()> ``` Assign a role to a tenant (`PUT /tenants/{tenantId}/roles/{roleId}`). **Example** ```rust async fn assign_role_to_tenant( tenant_id: String, role_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_role_to_tenant(AssignRoleToTenantParams { tenant_id, role_id }) .await?; println!("Assign a role to a tenant: done"); Ok(()) } ``` ### assign_role_to_user ```rust pub async fn assign_role_to_user(&self, params: AssignRoleToUserParams) -> Result<()> ``` Assign a role to a user (`PUT /roles/{roleId}/users/{username}`). **Example** ```rust async fn assign_role_to_user( role_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_role_to_user(AssignRoleToUserParams { role_id, username }) .await?; println!("Assign a role to a user: done"); Ok(()) } ``` ### assign_user_task ```rust pub async fn assign_user_task(&self, params: AssignUserTaskParams) -> Result<()> ``` Assign user task (`POST /user-tasks/{userTaskKey}/assignment`). **Example** ```rust async fn assign_user_task(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_user_task(AssignUserTaskParams { user_task_key, user_task_assignment_request: UserTaskAssignmentRequest::default(), }) .await?; println!("Assign user task: done"); Ok(()) } ``` ### assign_user_to_group ```rust pub async fn assign_user_to_group(&self, params: AssignUserToGroupParams) -> Result<()> ``` Assign a user to a group (`PUT /groups/{groupId}/users/{username}`). **Example** ```rust async fn assign_user_to_group( group_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_user_to_group(AssignUserToGroupParams { group_id, username }) .await?; println!("Assign a user to a group: done"); Ok(()) } ``` ### assign_user_to_tenant ```rust pub async fn assign_user_to_tenant(&self, params: AssignUserToTenantParams) -> Result<()> ``` Assign a user to a tenant (`PUT /tenants/{tenantId}/users/{username}`). **Example** ```rust async fn assign_user_to_tenant( tenant_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .assign_user_to_tenant(AssignUserToTenantParams { tenant_id, username, }) .await?; println!("Assign a user to a tenant: done"); Ok(()) } ``` ### auth ```rust pub fn auth(&self) -> &Authentication ``` The authentication handler. ### backpressure_state ```rust pub fn backpressure_state(&self) -> BackpressureState ``` A snapshot of the adaptive backpressure controller's state, for observability. ### broadcast_signal ```rust pub async fn broadcast_signal(&self, request: models::SignalBroadcastRequest) -> Result ``` Broadcast a signal. The configured default tenant id is applied when unset. **Example** ```rust async fn broadcast_signal() -> Result<(), Box> { let client = CamundaClient::from_env()?; let broadcast = client .broadcast_signal(SignalBroadcastRequest { signal_name: "cancel-all-orders".to_string(), variables: Some( [("reason".to_string(), serde_json::json!("stock outage"))] .into_iter() .collect(), ), ..Default::default() }) .await?; println!("Broadcast signal {}", broadcast.signal_key); Ok(()) } ``` ### cancel_batch_operation ```rust pub async fn cancel_batch_operation(&self, params: CancelBatchOperationParams) -> Result<()> ``` Cancel Batch operation (`POST /batch-operations/{batchOperationKey}/cancellation`). **Example** ```rust async fn cancel_batch_operation( batch_operation_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .cancel_batch_operation(CancelBatchOperationParams { batch_operation_key, }) .await?; println!("Cancel Batch operation: done"); Ok(()) } ``` ### cancel_cluster_rebalance ```rust pub async fn cancel_cluster_rebalance(&self) -> Result ``` Stop the running rebalance (`DELETE /cluster/v2/rebalance`). **Example** ```rust async fn cancel_cluster_rebalance() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.cancel_cluster_rebalance().await?; println!("{result:#?}"); Ok(()) } ``` ### cancel_process_instance ```rust pub async fn cancel_process_instance(&self, process_instance_key: &str, request: Option) -> Result<()> ``` Cancel a running process instance by key. **Example** ```rust async fn cancel_process_instance( process_instance_key: &str, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; // Pass `Some(CancelProcessInstanceRequest { .. })` to supply an operation reference. client .cancel_process_instance(process_instance_key, None) .await?; println!("Cancelled process instance {process_instance_key}"); Ok(()) } ``` ### cancel_process_instances_batch_operation ```rust pub async fn cancel_process_instances_batch_operation(&self, params: CancelProcessInstancesBatchOperationParams) -> Result ``` Cancel process instances (batch) (`POST /process-instances/cancellation`). **Example** ```rust async fn cancel_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .cancel_process_instances_batch_operation(CancelProcessInstancesBatchOperationParams { process_instance_cancellation_batch_operation_request: ProcessInstanceCancellationBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### change_cluster_mode ```rust pub async fn change_cluster_mode(&self, params: ChangeClusterModeParams) -> Result ``` Change cluster mode (`PATCH /mode`). **Example** ```rust async fn change_cluster_mode() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .change_cluster_mode(ChangeClusterModeParams { mode: Mode::Recovering, dry_run: None, }) .await?; println!("{}", result.change_id); Ok(()) } ``` ### change_cluster_mode_as_cluster_admin ```rust pub async fn change_cluster_mode_as_cluster_admin(&self, params: ChangeClusterModeAsClusterAdminParams) -> Result ``` Change the cluster mode of one or every physical tenant (`PATCH /cluster/v2/mode`). **Example** ```rust async fn change_cluster_mode_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Omit `physical_tenant_id` to apply the change to every physical tenant. let result = client .change_cluster_mode_as_cluster_admin(ChangeClusterModeAsClusterAdminParams { mode: Mode::Recovering, physical_tenant_id: Some("default".to_string()), dry_run: Some(true), }) .await?; println!("{}", result.change_id); Ok(()) } ``` ### clock ```rust pub fn clock(&self) -> &Arc ``` The clock this client's cadence resolves through. ### complete_job ```rust pub async fn complete_job(&self, job_key: &str, request: Option) -> Result<()> ``` Complete a job, optionally with output variables. Job completion is a _drain_ operation and intentionally bypasses the backpressure gate so in-flight work can always be drained, even while new load is being shed. **Example** ```rust async fn complete_job(job_key: &str) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .complete_job( job_key, Some(JobCompletionRequest { variables: Some(Some( [("paymentStatus".to_string(), serde_json::json!("SETTLED"))] .into_iter() .collect(), )), ..Default::default() }), ) .await?; println!("Completed job {job_key}"); Ok(()) } ``` ### complete_user_task ```rust pub async fn complete_user_task(&self, params: CompleteUserTaskParams) -> Result<()> ``` Complete user task (`POST /user-tasks/{userTaskKey}/completion`). **Example** ```rust async fn complete_user_task(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .complete_user_task(CompleteUserTaskParams { user_task_key, user_task_completion_request: Some(UserTaskCompletionRequest::default()), }) .await?; println!("Complete user task: done"); Ok(()) } ``` ### config ```rust pub fn config(&self) -> &CamundaConfig ``` The resolved configuration. ### configuration ```rust pub async fn configuration(&self) -> Result ``` Build a generated-client `Configuration` with the base URL set and the current authentication applied (refreshing the OAuth token if needed). Use this to call generated operations that the facade does not yet wrap: ```rust use camunda_orchestration_sdk::client::apis::authentication_api; let client = CamundaClient::from_env()?; let cfg = client.configuration().await?; let me = authentication_api::get_authentication(&cfg).await?; ``` ### correlate_message ```rust pub async fn correlate_message(&self, request: models::MessageCorrelationRequest) -> Result ``` Correlate a message to a waiting process instance. The configured default tenant id is applied when unset. **Example** ```rust async fn correlate_message() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Unlike `publish_message`, this blocks until the message is correlated and // returns the process instance it was correlated with. let correlated = client .correlate_message(MessageCorrelationRequest { name: "order-received".to_string(), correlation_key: Some("ORD-4711".to_string()), variables: Some( [("total".to_string(), serde_json::json!(99.5))] .into_iter() .collect(), ), ..Default::default() }) .await?; println!( "Correlated message {} with process instance {}", correlated.message_key, correlated.process_instance_key ); Ok(()) } ``` ### create_admin_user ```rust pub async fn create_admin_user(&self, params: CreateAdminUserParams) -> Result ``` Create admin user (`POST /setup/user`). **Example** ```rust async fn create_admin_user() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_admin_user(CreateAdminUserParams { user_request: UserRequest { password: "my-password".to_string(), username: Username::assume_exists("my-user"), ..Default::default() }, }) .await?; println!("{}", result.username); Ok(()) } ``` ### create_agent_instance ```rust pub async fn create_agent_instance(&self, params: CreateAgentInstanceParams) -> Result ``` Create agent instance (`POST /agent-instances`). **Example** ```rust async fn create_agent_instance() -> Result<(), Box> { let client = CamundaClient::from_env()?; // The batch must open with a CONFIGURATION item; it establishes the model, // provider and system prompt for the instance. let result = client .create_agent_instance(CreateAgentInstanceParams { agent_instance_creation_request: AgentInstanceCreationRequest { element_instance_key: Box::new(ElementInstanceKey::assume_exists( "my-element-instance", )), job_key: Box::new(JobKey::assume_exists("my-job")), job_lease_token: JobLeaseToken::assume_exists("my-job-lease"), history: vec![AgentInstanceHistoryItem { history_item_id: HistoryItemId::assume_exists("configuration-1"), loop_iteration: 0, role: AgentInstanceHistoryRoleEnum::Configuration, content: Vec::new(), produced_at: Default::default(), model: Some("my-model".to_string()), provider: Some("my-provider".to_string()), system_prompt: Some(Some(vec![AgentInstanceMessageContent::Text(Box::new( AgentInstanceTextContent { text: "my-system-prompt".to_string(), }, ))])), ..Default::default() }], }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### create_authorization ```rust pub async fn create_authorization(&self, params: CreateAuthorizationParams) -> Result ``` Create authorization (`POST /authorizations`). **Example** ```rust async fn create_authorization() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_authorization(CreateAuthorizationParams { authorization_request: AuthorizationRequest::AuthorizationIdBasedRequest(Box::new( AuthorizationIdBasedRequest { owner_id: "my-owner".to_string(), owner_type: OwnerTypeEnum::User, resource_id: "my-resource".to_string(), resource_type: ResourceTypeEnum::AuditLog, permission_types: vec![PermissionTypeEnum::Access], }, )), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### create_deployment ```rust pub async fn create_deployment(&self, params: CreateDeploymentParams) -> Result ``` Deploy resources (`POST /deployments`). **Example** ```rust async fn create_deployment() -> Result<(), Box> { let client = CamundaClient::from_env()?; // `deploy_resources` reads the files and builds the multipart request for you. // BPMN, DMN, and form resources can be deployed together in one atomic call. let deployment = client .deploy_resources( vec![ PathBuf::from("resources/order-process.bpmn"), PathBuf::from("resources/approval.dmn"), ], None, // tenant id; `None` uses the default tenant ) .await?; println!("Deployment {}", deployment.deployment_key); for item in deployment.deployments { if let Some(process) = item.process_definition { println!(" deployed process {}", process.process_definition_id); } } Ok(()) } ``` ### create_document ```rust pub async fn create_document(&self, params: CreateDocumentParams) -> Result ``` Upload document (`POST /documents`). **Example** ```rust async fn create_document() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_document(CreateDocumentParams { file: Default::default(), store_id: None, document_id: None, metadata: Some(DocumentMetadata::default()), }) .await?; println!("{}", result.document_id); Ok(()) } ``` ### create_document_link ```rust pub async fn create_document_link(&self, params: CreateDocumentLinkParams) -> Result ``` Create document link (`POST /documents/{documentId}/links`). **Example** ```rust async fn create_document_link(document_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_document_link(CreateDocumentLinkParams { document_id, store_id: None, content_hash: None, document_link_request: DocumentLinkRequest::default(), }) .await?; println!("{}", result.url); Ok(()) } ``` ### create_documents ```rust pub async fn create_documents(&self, params: CreateDocumentsParams) -> Result ``` Upload multiple documents (`POST /documents/batch`). **Example** ```rust async fn create_documents() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_documents(CreateDocumentsParams { files: vec![Default::default()], store_id: None, metadata_list: None, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### create_element_instance_variables ```rust pub async fn create_element_instance_variables(&self, params: CreateElementInstanceVariablesParams) -> Result<()> ``` Update element instance variables (`PUT /element-instances/{elementInstanceKey}/variables`). **Example** ```rust async fn create_element_instance_variables( element_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .create_element_instance_variables(CreateElementInstanceVariablesParams { element_instance_key, set_variable_request: SetVariableRequest { variables: [("key".to_string(), serde_json::json!({"key": "value"}))] .into_iter() .collect(), ..Default::default() }, }) .await?; println!("Update element instance variables: done"); Ok(()) } ``` ### create_global_cluster_variable ```rust pub async fn create_global_cluster_variable(&self, params: CreateGlobalClusterVariableParams) -> Result ``` Create a global-scoped cluster variable (`POST /cluster-variables/global`). **Example** ```rust async fn create_global_cluster_variable() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_global_cluster_variable(CreateGlobalClusterVariableParams { create_cluster_variable_request: CreateClusterVariableRequest { name: ClusterVariableName::assume_exists("my-variable"), value: Some(serde_json::json!({"key": "value"})), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### create_global_task_listener ```rust pub async fn create_global_task_listener(&self, params: CreateGlobalTaskListenerParams) -> Result ``` Create global user task listener (`POST /global-task-listeners`). **Example** ```rust async fn create_global_task_listener() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_global_task_listener(CreateGlobalTaskListenerParams { create_global_task_listener_request: CreateGlobalTaskListenerRequest { id: GlobalListenerId::assume_exists("my-id"), ..Default::default() }, }) .await?; println!("{}", result.id); Ok(()) } ``` ### create_group ```rust pub async fn create_group(&self, params: CreateGroupParams) -> Result ``` Create group (`POST /groups`). **Example** ```rust async fn create_group() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_group(CreateGroupParams { group_create_request: Some(GroupCreateRequest { group_id: GroupId::assume_exists("my-group"), name: "my-variable".to_string(), ..Default::default() }), }) .await?; println!("{}", result.group_id); Ok(()) } ``` ### create_job_worker ```rust pub fn create_job_worker(&self, config: JobWorkerConfig) -> JobWorker ``` Create a `JobWorker` that continuously polls for and processes jobs of the configured type. Call `JobWorker::run` (or `JobWorker::start` / `JobWorker::spawn`) to begin. ### create_mapping_rule ```rust pub async fn create_mapping_rule(&self, params: CreateMappingRuleParams) -> Result ``` Create mapping rule (`POST /mapping-rules`). **Example** ```rust async fn create_mapping_rule() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_mapping_rule(CreateMappingRuleParams { mapping_rule_create_request: Some(MappingRuleCreateRequest { claim_name: "my-claim-name".to_string(), claim_value: "my-claim-value".to_string(), name: "my-variable".to_string(), mapping_rule_id: MappingRuleId::assume_exists("my-mapping-rule"), }), }) .await?; println!("{}", result.mapping_rule_id); Ok(()) } ``` ### create_process_instance ```rust pub async fn create_process_instance(&self, instruction: models::ProcessInstanceCreationInstruction) -> Result ``` Create (start) a process instance. The configured default tenant id is applied when the instruction does not already specify one. **Example** ```rust async fn create_process_instance() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Start by BPMN process id. Use `ProcessInstanceCreationInstructionByKey` to // pin a specific deployed version instead. let instruction = ProcessInstanceCreationInstruction::ProcessInstanceCreationInstructionById( Box::new(ProcessInstanceCreationInstructionById { process_definition_id: ProcessDefinitionId::assume_exists("order-process"), variables: Some( [ ("orderId".to_string(), serde_json::json!("ORD-4711")), ("amount".to_string(), serde_json::json!(42)), ] .into_iter() .collect(), ), ..Default::default() }), ); let created = client.create_process_instance(instruction).await?; println!("Started process instance {}", created.process_instance_key); Ok(()) } ``` ### create_role ```rust pub async fn create_role(&self, params: CreateRoleParams) -> Result ``` Create role (`POST /roles`). **Example** ```rust async fn create_role() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_role(CreateRoleParams { role_create_request: Some(RoleCreateRequest { role_id: RoleId::assume_exists("my-role"), name: "my-variable".to_string(), ..Default::default() }), }) .await?; println!("{}", result.role_id); Ok(()) } ``` ### create_tenant ```rust pub async fn create_tenant(&self, params: CreateTenantParams) -> Result ``` Create tenant (`POST /tenants`). **Example** ```rust async fn create_tenant() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_tenant(CreateTenantParams { tenant_create_request: TenantCreateRequest { tenant_id: TenantId::assume_exists("my-tenant"), name: "my-variable".to_string(), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### create_tenant_cluster_variable ```rust pub async fn create_tenant_cluster_variable(&self, params: CreateTenantClusterVariableParams) -> Result ``` Create a tenant-scoped cluster variable (`POST /cluster-variables/tenants/{tenantId}`). **Example** ```rust async fn create_tenant_cluster_variable( tenant_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_tenant_cluster_variable(CreateTenantClusterVariableParams { tenant_id, create_cluster_variable_request: CreateClusterVariableRequest { name: ClusterVariableName::assume_exists("my-variable"), value: Some(serde_json::json!({"key": "value"})), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### create_user ```rust pub async fn create_user(&self, params: CreateUserParams) -> Result ``` Create user (`POST /users`). **Example** ```rust async fn create_user() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .create_user(CreateUserParams { user_request: UserRequest { password: "my-password".to_string(), username: Username::assume_exists("my-user"), ..Default::default() }, }) .await?; println!("{}", result.username); Ok(()) } ``` ### delete_authorization ```rust pub async fn delete_authorization(&self, params: DeleteAuthorizationParams) -> Result<()> ``` Delete authorization (`DELETE /authorizations/{authorizationKey}`). **Example** ```rust async fn delete_authorization(authorization_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_authorization(DeleteAuthorizationParams { authorization_key }) .await?; println!("Delete authorization: done"); Ok(()) } ``` ### delete_decision_instance ```rust pub async fn delete_decision_instance(&self, params: DeleteDecisionInstanceParams) -> Result<()> ``` Delete decision instance (`POST /decision-instances/{decisionEvaluationKey}/deletion`). **Example** ```rust async fn delete_decision_instance( decision_evaluation_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_decision_instance(DeleteDecisionInstanceParams { decision_evaluation_key, delete_decision_instance_request: Some(DeleteDecisionInstanceRequest::default()), }) .await?; println!("Delete decision instance: done"); Ok(()) } ``` ### delete_decision_instances_batch_operation ```rust pub async fn delete_decision_instances_batch_operation(&self, params: DeleteDecisionInstancesBatchOperationParams) -> Result ``` Delete decision instances (batch) (`POST /decision-instances/deletion`). **Example** ```rust async fn delete_decision_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .delete_decision_instances_batch_operation(DeleteDecisionInstancesBatchOperationParams { decision_instance_deletion_batch_operation_request: DecisionInstanceDeletionBatchOperationRequest { filter: Box::new(DecisionInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### delete_document ```rust pub async fn delete_document(&self, params: DeleteDocumentParams) -> Result<()> ``` Delete document (`DELETE /documents/{documentId}`). **Example** ```rust async fn delete_document(document_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_document(DeleteDocumentParams { document_id, store_id: None, }) .await?; println!("Delete document: done"); Ok(()) } ``` ### delete_global_cluster_variable ```rust pub async fn delete_global_cluster_variable(&self, params: DeleteGlobalClusterVariableParams) -> Result<()> ``` Delete a global-scoped cluster variable (`DELETE /cluster-variables/global/{name}`). **Example** ```rust async fn delete_global_cluster_variable(name: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_global_cluster_variable(DeleteGlobalClusterVariableParams { name }) .await?; println!("Delete a global-scoped cluster variable: done"); Ok(()) } ``` ### delete_global_task_listener ```rust pub async fn delete_global_task_listener(&self, params: DeleteGlobalTaskListenerParams) -> Result<()> ``` Delete global user task listener (`DELETE /global-task-listeners/{id}`). **Example** ```rust async fn delete_global_task_listener(id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_global_task_listener(DeleteGlobalTaskListenerParams { id }) .await?; println!("Delete global user task listener: done"); Ok(()) } ``` ### delete_group ```rust pub async fn delete_group(&self, params: DeleteGroupParams) -> Result<()> ``` Delete group (`DELETE /groups/{groupId}`). **Example** ```rust async fn delete_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client.delete_group(DeleteGroupParams { group_id }).await?; println!("Delete group: done"); Ok(()) } ``` ### delete_history_backup ```rust pub async fn delete_history_backup(&self, params: DeleteHistoryBackupParams) -> Result<()> ``` Delete history backup (`DELETE /backups/history/{backupId}`). **Example** ```rust async fn delete_history_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_history_backup(DeleteHistoryBackupParams { backup_id: 1 }) .await?; println!("Delete history backup: done"); Ok(()) } ``` ### delete_history_backup_as_cluster_admin ```rust pub async fn delete_history_backup_as_cluster_admin(&self, params: DeleteHistoryBackupAsClusterAdminParams) -> Result<()> ``` Delete a history backup across physical tenants (`DELETE /cluster/v2/backups/history/{backupId}`). **Example** ```rust async fn delete_history_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_history_backup_as_cluster_admin(DeleteHistoryBackupAsClusterAdminParams { backup_id: 1, physical_tenant_id: None, }) .await?; println!("Delete history backup as cluster admin: done"); Ok(()) } ``` ### delete_mapping_rule ```rust pub async fn delete_mapping_rule(&self, params: DeleteMappingRuleParams) -> Result<()> ``` Delete a mapping rule (`DELETE /mapping-rules/{mappingRuleId}`). **Example** ```rust async fn delete_mapping_rule(mapping_rule_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_mapping_rule(DeleteMappingRuleParams { mapping_rule_id }) .await?; println!("Delete a mapping rule: done"); Ok(()) } ``` ### delete_process_instance ```rust pub async fn delete_process_instance(&self, params: DeleteProcessInstanceParams) -> Result<()> ``` Delete process instance (`POST /process-instances/{processInstanceKey}/deletion`). **Example** ```rust async fn delete_process_instance( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_process_instance(DeleteProcessInstanceParams { process_instance_key, delete_process_instance_request: Some(DeleteProcessInstanceRequest::default()), }) .await?; println!("Delete process instance: done"); Ok(()) } ``` ### delete_process_instances_batch_operation ```rust pub async fn delete_process_instances_batch_operation(&self, params: DeleteProcessInstancesBatchOperationParams) -> Result ``` Delete process instances (batch) (`POST /process-instances/deletion`). **Example** ```rust async fn delete_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .delete_process_instances_batch_operation(DeleteProcessInstancesBatchOperationParams { process_instance_deletion_batch_operation_request: ProcessInstanceDeletionBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### delete_resource ```rust pub async fn delete_resource(&self, params: DeleteResourceParams) -> Result ``` Delete resource (`POST /resources/{resourceKey}/deletion`). **Example** ```rust async fn delete_resource(resource_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .delete_resource(DeleteResourceParams { resource_key, delete_resource_request: Some(DeleteResourceRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### delete_role ```rust pub async fn delete_role(&self, params: DeleteRoleParams) -> Result<()> ``` Delete role (`DELETE /roles/{roleId}`). **Example** ```rust async fn delete_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client.delete_role(DeleteRoleParams { role_id }).await?; println!("Delete role: done"); Ok(()) } ``` ### delete_runtime_backup ```rust pub async fn delete_runtime_backup(&self, params: DeleteRuntimeBackupParams) -> Result<()> ``` Delete runtime backup (`DELETE /backups/runtime/{backupId}`). **Example** ```rust async fn delete_runtime_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_runtime_backup(DeleteRuntimeBackupParams { backup_id: 1 }) .await?; println!("Delete runtime backup: done"); Ok(()) } ``` ### delete_runtime_backup_as_cluster_admin ```rust pub async fn delete_runtime_backup_as_cluster_admin(&self, params: DeleteRuntimeBackupAsClusterAdminParams) -> Result<()> ``` Delete a runtime backup across physical tenants (`DELETE /cluster/v2/backups/runtime/{backupId}`). **Example** ```rust async fn delete_runtime_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_runtime_backup_as_cluster_admin(DeleteRuntimeBackupAsClusterAdminParams { backup_id: 1, physical_tenant_id: None, }) .await?; println!("Delete runtime backup as cluster admin: done"); Ok(()) } ``` ### delete_runtime_backup_state ```rust pub async fn delete_runtime_backup_state(&self) -> Result<()> ``` Delete runtime backup state (`DELETE /backups/runtime/state`). **Example** ```rust async fn delete_runtime_backup_state() -> Result<(), Box> { let client = CamundaClient::from_env()?; client.delete_runtime_backup_state().await?; println!("Delete runtime backup state: done"); Ok(()) } ``` ### delete_runtime_backup_state_as_cluster_admin ```rust pub async fn delete_runtime_backup_state_as_cluster_admin(&self, params: DeleteRuntimeBackupStateAsClusterAdminParams) -> Result<()> ``` Delete runtime backup state across physical tenants (`DELETE /cluster/v2/backups/runtime/state`). **Example** ```rust async fn delete_runtime_backup_state_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_runtime_backup_state_as_cluster_admin( DeleteRuntimeBackupStateAsClusterAdminParams { physical_tenant_id: None, }, ) .await?; println!("Delete runtime backup state as cluster admin: done"); Ok(()) } ``` ### delete_tenant ```rust pub async fn delete_tenant(&self, params: DeleteTenantParams) -> Result<()> ``` Delete tenant (`DELETE /tenants/{tenantId}`). **Example** ```rust async fn delete_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_tenant(DeleteTenantParams { tenant_id }) .await?; println!("Delete tenant: done"); Ok(()) } ``` ### delete_tenant_cluster_variable ```rust pub async fn delete_tenant_cluster_variable(&self, params: DeleteTenantClusterVariableParams) -> Result<()> ``` Delete a tenant-scoped cluster variable (`DELETE /cluster-variables/tenants/{tenantId}/{name}`). **Example** ```rust async fn delete_tenant_cluster_variable( tenant_id: String, name: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .delete_tenant_cluster_variable(DeleteTenantClusterVariableParams { tenant_id, name }) .await?; println!("Delete a tenant-scoped cluster variable: done"); Ok(()) } ``` ### delete_user ```rust pub async fn delete_user(&self, params: DeleteUserParams) -> Result<()> ``` Delete user (`DELETE /users/{username}`). **Example** ```rust async fn delete_user(username: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client.delete_user(DeleteUserParams { username }).await?; println!("Delete user: done"); Ok(()) } ``` ### deploy_resources ```rust pub async fn deploy_resources(&self, resources: Vec, tenant_id: Option) -> Result ``` Deploy one or more resources (BPMN, DMN, forms) from local file paths. The configured default tenant id is applied when `tenant_id` is `None`. ### evaluate_conditionals ```rust pub async fn evaluate_conditionals(&self, params: EvaluateConditionalsParams) -> Result ``` Evaluate root level conditional start events (`POST /conditionals/evaluation`). **Example** ```rust async fn evaluate_conditionals() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .evaluate_conditionals(EvaluateConditionalsParams { conditional_evaluation_instruction: ConditionalEvaluationInstruction { variables: [("key".to_string(), serde_json::json!({"key": "value"}))] .into_iter() .collect(), ..Default::default() }, }) .await?; println!("{}", result.tenant_id); Ok(()) } ``` ### evaluate_decision ```rust pub async fn evaluate_decision(&self, instruction: models::DecisionEvaluationInstruction) -> Result ``` Evaluate a decision (DMN). The configured default tenant id is applied when unset. **Example** ```rust async fn evaluate_decision() -> Result<(), Box> { let client = CamundaClient::from_env()?; let instruction = DecisionEvaluationInstruction::DecisionEvaluationById(Box::new(DecisionEvaluationById { decision_definition_id: DecisionDefinitionId::assume_exists("approval-decision"), variables: Some( [("amount".to_string(), serde_json::json!(500))] .into_iter() .collect(), ), ..Default::default() })); let evaluated = client.evaluate_decision(instruction).await?; println!("Decision output: {}", evaluated.output); Ok(()) } ``` ### evaluate_expression ```rust pub async fn evaluate_expression(&self, params: EvaluateExpressionParams) -> Result ``` Evaluate an expression (`POST /expression/evaluation`). **Example** ```rust async fn evaluate_expression() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .evaluate_expression(EvaluateExpressionParams { expression_evaluation_request: ExpressionEvaluationRequest { expression: "my-expression".to_string(), ..Default::default() }, }) .await?; println!("{}", result.expression); Ok(()) } ``` ### eventual ```rust pub async fn eventual(&self, options: ConsistencyOptions, op: F) -> Result ``` Poll a read operation until it returns `Ok`, retrying `404 Not Found` (the typical symptom of a not-yet-replicated read) until the eventual-consistency window elapses. The default timeout is `CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS`; override per-call with `ConsistencyOptions`. ### eventual_until ```rust pub async fn eventual_until(&self, options: ConsistencyOptions, op: F, predicate: P) -> Result ``` Poll a read operation until `predicate` is satisfied by its result, retrying `404` and ignoring consistent-but-not-yet-matching reads, until the eventual-consistency window elapses. ### fail_job ```rust pub async fn fail_job(&self, job_key: &str, request: Option) -> Result<()> ``` Fail a job, decrementing retries. **Example** ```rust async fn fail_job(job_key: &str) -> Result<(), Box> { let client = CamundaClient::from_env()?; // Setting `retries` to 0 raises an incident instead of retrying. client .fail_job( job_key, Some(JobFailRequest { retries: Some(2), error_message: Some("payment gateway timed out".to_string()), retry_back_off: Some(10_000), ..Default::default() }), ) .await?; println!("Failed job {job_key}"); Ok(()) } ``` ### from_env ```rust pub fn from_env() -> Result ``` Construct a client from environment variables only. ### get_agent_definition ```rust pub async fn get_agent_definition(&self, params: GetAgentDefinitionParams) -> Result ``` Get agent definition (`GET /agent-definitions/{agentDefinitionKey}`). **Example** ```rust async fn get_agent_definition() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_agent_definition(GetAgentDefinitionParams { agent_definition_key: "2251799813691958".to_string(), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_agent_instance ```rust pub async fn get_agent_instance(&self, params: GetAgentInstanceParams) -> Result ``` Get agent instance (`GET /agent-instances/{agentInstanceKey}`). **Example** ```rust async fn get_agent_instance(agent_instance_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_agent_instance(GetAgentInstanceParams { agent_instance_key }) .await?; println!("{}", result.element_id); Ok(()) } ``` ### get_audit_log ```rust pub async fn get_audit_log(&self, params: GetAuditLogParams) -> Result ``` Get audit log (`GET /audit-logs/{auditLogKey}`). **Example** ```rust async fn get_audit_log(audit_log_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_audit_log(GetAuditLogParams { audit_log_key }) .await?; println!("{}", result.entity_key); Ok(()) } ``` ### get_authentication ```rust pub async fn get_authentication(&self) -> Result ``` Get current user (`GET /authentication/me`). **Example** ```rust async fn get_authentication() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_authentication().await?; println!("{}", result.username); Ok(()) } ``` ### get_authorization ```rust pub async fn get_authorization(&self, params: GetAuthorizationParams) -> Result ``` Get authorization (`GET /authorizations/{authorizationKey}`). **Example** ```rust async fn get_authorization(authorization_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_authorization(GetAuthorizationParams { authorization_key }) .await?; println!("{}", result.owner_id); Ok(()) } ``` ### get_batch_operation ```rust pub async fn get_batch_operation(&self, params: GetBatchOperationParams) -> Result ``` Get batch operation (`GET /batch-operations/{batchOperationKey}`). **Example** ```rust async fn get_batch_operation( batch_operation_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_batch_operation(GetBatchOperationParams { batch_operation_key, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### get_cluster_exporting_status ```rust pub async fn get_cluster_exporting_status(&self) -> Result ``` Get exporting status of the whole cluster (`GET /cluster/v2/exporting`). **Example** ```rust async fn get_cluster_exporting_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; let status = client.get_cluster_exporting_status().await?; println!("{status:#?}"); Ok(()) } ``` ### get_cluster_rebalance ```rust pub async fn get_cluster_rebalance(&self) -> Result ``` Report the cluster's current leadership balance (`GET /cluster/v2/rebalance`). **Example** ```rust async fn get_cluster_rebalance() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_cluster_rebalance().await?; println!("{result:#?}"); Ok(()) } ``` ### get_cluster_status ```rust pub async fn get_cluster_status(&self) -> Result ``` Get the status of the whole cluster (`GET /cluster/v2/status`). **Example** ```rust async fn get_cluster_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; let status = client.get_cluster_status().await?; println!("{status:#?}"); Ok(()) } ``` ### get_cluster_topology ```rust pub async fn get_cluster_topology(&self) -> Result ``` Get the topology of the whole cluster (`GET /cluster/v2/topology`). **Example** ```rust async fn get_cluster_topology() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Unlike `topology`, this reports the brokers of every physical tenant. let topology = client.get_cluster_topology().await?; println!("Cluster id: {:?}", topology.cluster_id); println!("Cluster size: {}", topology.cluster_size); for tenant in topology.physical_tenants { println!("{tenant:#?}"); } Ok(()) } ``` ### get_cluster_upgrade_status ```rust pub async fn get_cluster_upgrade_status(&self) -> Result ``` Get the upgrade-readiness status of the whole cluster (`GET /cluster/v2/status/upgrade`). **Example** ```rust async fn get_cluster_upgrade_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_cluster_upgrade_status().await?; println!("Upgrade-readiness status: {:?}", result.status); Ok(()) } ``` ### get_decision_definition ```rust pub async fn get_decision_definition(&self, params: GetDecisionDefinitionParams) -> Result ``` Get decision definition (`GET /decision-definitions/{decisionDefinitionKey}`). **Example** ```rust async fn get_decision_definition( decision_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_decision_definition(GetDecisionDefinitionParams { decision_definition_key, }) .await?; println!("{}", result.decision_definition_id); Ok(()) } ``` ### get_decision_definition_xml ```rust pub async fn get_decision_definition_xml(&self, params: GetDecisionDefinitionXmlParams) -> Result ``` Get decision definition XML (`GET /decision-definitions/{decisionDefinitionKey}/xml`). **Example** ```rust async fn get_decision_definition_xml( decision_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let xml = client .get_decision_definition_xml(GetDecisionDefinitionXmlParams { decision_definition_key, }) .await?; println!("{xml}"); Ok(()) } ``` ### get_decision_instance ```rust pub async fn get_decision_instance(&self, params: GetDecisionInstanceParams) -> Result ``` Get decision instance (`GET /decision-instances/{decisionEvaluationInstanceKey}`). **Example** ```rust async fn get_decision_instance( decision_evaluation_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_decision_instance(GetDecisionInstanceParams { decision_evaluation_instance_key, }) .await?; println!("{}", result.decision_evaluation_instance_key); Ok(()) } ``` ### get_decision_requirements ```rust pub async fn get_decision_requirements(&self, params: GetDecisionRequirementsParams) -> Result ``` Get decision requirements (`GET /decision-requirements/{decisionRequirementsKey}`). **Example** ```rust async fn get_decision_requirements( decision_requirements_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_decision_requirements(GetDecisionRequirementsParams { decision_requirements_key, }) .await?; println!("{}", result.decision_requirements_id); Ok(()) } ``` ### get_decision_requirements_xml ```rust pub async fn get_decision_requirements_xml(&self, params: GetDecisionRequirementsXmlParams) -> Result ``` Get decision requirements XML (`GET /decision-requirements/{decisionRequirementsKey}/xml`). **Example** ```rust async fn get_decision_requirements_xml( decision_requirements_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let xml = client .get_decision_requirements_xml(GetDecisionRequirementsXmlParams { decision_requirements_key, }) .await?; println!("{xml}"); Ok(()) } ``` ### get_document ```rust pub async fn get_document(&self, params: GetDocumentParams) -> Result ``` Download document (`GET /documents/{documentId}`). **Example** ```rust async fn get_document(document_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_document(GetDocumentParams { document_id, store_id: None, content_hash: None, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_element_instance ```rust pub async fn get_element_instance(&self, params: GetElementInstanceParams) -> Result ``` Get element instance (`GET /element-instances/{elementInstanceKey}`). **Example** ```rust async fn get_element_instance( element_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_element_instance(GetElementInstanceParams { element_instance_key, }) .await?; println!("{}", result.element_id); Ok(()) } ``` ### get_exporting_status ```rust pub async fn get_exporting_status(&self) -> Result ``` Get exporting status (`GET /exporting`). **Example** ```rust async fn get_exporting_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; let status = client.get_exporting_status().await?; println!("{status:#?}"); Ok(()) } ``` ### get_form_by_key ```rust pub async fn get_form_by_key(&self, params: GetFormByKeyParams) -> Result ``` Get form by key (`GET /forms/{formKey}`). **Example** ```rust async fn get_form_by_key(form_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_form_by_key(GetFormByKeyParams { form_key }) .await?; println!("{}", result.form_id); Ok(()) } ``` ### get_global_cluster_variable ```rust pub async fn get_global_cluster_variable(&self, params: GetGlobalClusterVariableParams) -> Result ``` Get a global-scoped cluster variable (`GET /cluster-variables/global/{name}`). **Example** ```rust async fn get_global_cluster_variable(name: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_global_cluster_variable(GetGlobalClusterVariableParams { name }) .await?; println!("{}", result.name); Ok(()) } ``` ### get_global_job_statistics ```rust pub async fn get_global_job_statistics(&self, params: GetGlobalJobStatisticsParams) -> Result ``` Global job statistics (`GET /jobs/statistics/global`). **Example** ```rust async fn get_global_job_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_global_job_statistics(GetGlobalJobStatisticsParams { from: Default::default(), to: Default::default(), job_type: None, }) .await?; println!("{}", result.is_incomplete); Ok(()) } ``` ### get_global_task_listener ```rust pub async fn get_global_task_listener(&self, params: GetGlobalTaskListenerParams) -> Result ``` Get global user task listener (`GET /global-task-listeners/{id}`). **Example** ```rust async fn get_global_task_listener(id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_global_task_listener(GetGlobalTaskListenerParams { id }) .await?; println!("{}", result.id); Ok(()) } ``` ### get_group ```rust pub async fn get_group(&self, params: GetGroupParams) -> Result ``` Get group (`GET /groups/{groupId}`). **Example** ```rust async fn get_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_group(GetGroupParams { group_id }).await?; println!("{}", result.group_id); Ok(()) } ``` ### get_history_backup ```rust pub async fn get_history_backup(&self, params: GetHistoryBackupParams) -> Result ``` Get history backup (`GET /backups/history/{backupId}`). **Example** ```rust async fn get_history_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_history_backup(GetHistoryBackupParams { backup_id: 1 }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_history_backup_as_cluster_admin ```rust pub async fn get_history_backup_as_cluster_admin(&self, params: GetHistoryBackupAsClusterAdminParams) -> Result ``` Get a history backup across physical tenants (`GET /cluster/v2/backups/history/{backupId}`). **Example** ```rust async fn get_history_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_history_backup_as_cluster_admin(GetHistoryBackupAsClusterAdminParams { backup_id: 1, physical_tenant_id: None, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_incident ```rust pub async fn get_incident(&self, params: GetIncidentParams) -> Result ``` Get incident (`GET /incidents/{incidentKey}`). **Example** ```rust async fn get_incident(incident_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_incident(GetIncidentParams { incident_key }) .await?; println!("{}", result.element_id); Ok(()) } ``` ### get_job_error_statistics ```rust pub async fn get_job_error_statistics(&self, params: GetJobErrorStatisticsParams) -> Result ``` Get error metrics for a job type (`POST /jobs/statistics/errors`). **Example** ```rust async fn get_job_error_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_job_error_statistics(GetJobErrorStatisticsParams { job_error_statistics_query: JobErrorStatisticsQuery { filter: Box::new(JobErrorStatisticsFilter { from: Default::default(), to: Default::default(), job_type: "payment-service".to_string(), ..Default::default() }), ..Default::default() }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_job_time_series_statistics ```rust pub async fn get_job_time_series_statistics(&self, params: GetJobTimeSeriesStatisticsParams) -> Result ``` Get time-series metrics for a job type (`POST /jobs/statistics/time-series`). **Example** ```rust async fn get_job_time_series_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_job_time_series_statistics(GetJobTimeSeriesStatisticsParams { job_time_series_statistics_query: JobTimeSeriesStatisticsQuery { filter: Box::new(JobTimeSeriesStatisticsFilter { from: Default::default(), to: Default::default(), job_type: "payment-service".to_string(), ..Default::default() }), ..Default::default() }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_job_type_statistics ```rust pub async fn get_job_type_statistics(&self, params: GetJobTypeStatisticsParams) -> Result ``` Get job statistics by type (`POST /jobs/statistics/by-types`). **Example** ```rust async fn get_job_type_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_job_type_statistics(GetJobTypeStatisticsParams { job_type_statistics_query: JobTypeStatisticsQuery::default(), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_job_worker_statistics ```rust pub async fn get_job_worker_statistics(&self, params: GetJobWorkerStatisticsParams) -> Result ``` Get job statistics by worker (`POST /jobs/statistics/by-workers`). **Example** ```rust async fn get_job_worker_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_job_worker_statistics(GetJobWorkerStatisticsParams { job_worker_statistics_query: JobWorkerStatisticsQuery { filter: Box::new(JobWorkerStatisticsFilter { from: Default::default(), to: Default::default(), job_type: "payment-service".to_string(), }), ..Default::default() }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_license ```rust pub async fn get_license(&self) -> Result ``` Get license status (`GET /license`). **Example** ```rust async fn get_license() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_license().await?; println!("{}", result.license_type); Ok(()) } ``` ### get_mapping_rule ```rust pub async fn get_mapping_rule(&self, params: GetMappingRuleParams) -> Result ``` Get a mapping rule (`GET /mapping-rules/{mappingRuleId}`). **Example** ```rust async fn get_mapping_rule(mapping_rule_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_mapping_rule(GetMappingRuleParams { mapping_rule_id }) .await?; println!("{}", result.mapping_rule_id); Ok(()) } ``` ### get_process_definition ```rust pub async fn get_process_definition(&self, params: GetProcessDefinitionParams) -> Result ``` Get process definition (`GET /process-definitions/{processDefinitionKey}`). **Example** ```rust async fn get_process_definition( process_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_definition(GetProcessDefinitionParams { process_definition_key, }) .await?; println!("{}", result.process_definition_id); Ok(()) } ``` ### get_process_definition_instance_statistics ```rust pub async fn get_process_definition_instance_statistics(&self, params: GetProcessDefinitionInstanceStatisticsParams) -> Result ``` Get process instance statistics (`POST /process-definitions/statistics/process-instances`). **Example** ```rust async fn get_process_definition_instance_statistics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_definition_instance_statistics(GetProcessDefinitionInstanceStatisticsParams { process_definition_instance_statistics_query: Some( ProcessDefinitionInstanceStatisticsQuery::default(), ), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_definition_instance_version_statistics ```rust pub async fn get_process_definition_instance_version_statistics(&self, params: GetProcessDefinitionInstanceVersionStatisticsParams) -> Result ``` Get process instance statistics by version (`POST /process-definitions/statistics/process-instances-by-version`). **Example** ```rust async fn get_process_definition_instance_version_statistics( ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_definition_instance_version_statistics( GetProcessDefinitionInstanceVersionStatisticsParams { process_definition_instance_version_statistics_query: ProcessDefinitionInstanceVersionStatisticsQuery { filter: Box::new(ProcessDefinitionInstanceVersionStatisticsFilter { process_definition_id: ProcessDefinitionId::assume_exists("my-process"), ..Default::default() }), ..Default::default() }, }, ) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_definition_message_subscription_statistics ```rust pub async fn get_process_definition_message_subscription_statistics(&self, params: GetProcessDefinitionMessageSubscriptionStatisticsParams) -> Result ``` Get message subscription statistics (`POST /process-definitions/statistics/message-subscriptions`). **Example** ```rust async fn get_process_definition_message_subscription_statistics( ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_definition_message_subscription_statistics( GetProcessDefinitionMessageSubscriptionStatisticsParams { process_definition_message_subscription_statistics_query: Some( ProcessDefinitionMessageSubscriptionStatisticsQuery::default(), ), }, ) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_definition_statistics ```rust pub async fn get_process_definition_statistics(&self, params: GetProcessDefinitionStatisticsParams) -> Result ``` Get process definition statistics (`POST /process-definitions/{processDefinitionKey}/statistics/element-instances`). **Example** ```rust async fn get_process_definition_statistics( process_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_definition_statistics(GetProcessDefinitionStatisticsParams { process_definition_key, process_definition_element_statistics_query: Some( ProcessDefinitionElementStatisticsQuery::default(), ), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_definition_xml ```rust pub async fn get_process_definition_xml(&self, params: GetProcessDefinitionXmlParams) -> Result ``` Get process definition XML (`GET /process-definitions/{processDefinitionKey}/xml`). **Example** ```rust async fn get_process_definition_xml( process_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let xml = client .get_process_definition_xml(GetProcessDefinitionXmlParams { process_definition_key, }) .await?; println!("{xml}"); Ok(()) } ``` ### get_process_instance ```rust pub async fn get_process_instance(&self, process_instance_key: &str) -> Result ``` Fetch a process instance by key (a read; not subject to backpressure). Returns a `404` `CamundaError::Api` if not yet visible — compose with `CamundaClient::eventual` to wait through replication lag. **Example** ```rust async fn get_process_instance( process_instance_key: &str, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let instance = client.get_process_instance(process_instance_key).await?; println!("Process: {}", instance.process_definition_id); println!("State: {:?}", instance.state); println!("Incident: {}", instance.has_incident); Ok(()) } ``` ### get_process_instance_call_hierarchy ```rust pub async fn get_process_instance_call_hierarchy(&self, params: GetProcessInstanceCallHierarchyParams) -> Result> ``` Get call hierarchy (`GET /process-instances/{processInstanceKey}/call-hierarchy`). **Example** ```rust async fn get_process_instance_call_hierarchy( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_call_hierarchy(GetProcessInstanceCallHierarchyParams { process_instance_key, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_instance_sequence_flows ```rust pub async fn get_process_instance_sequence_flows(&self, params: GetProcessInstanceSequenceFlowsParams) -> Result ``` Get sequence flows (`GET /process-instances/{processInstanceKey}/sequence-flows`). **Example** ```rust async fn get_process_instance_sequence_flows( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_sequence_flows(GetProcessInstanceSequenceFlowsParams { process_instance_key, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_instance_statistics ```rust pub async fn get_process_instance_statistics(&self, params: GetProcessInstanceStatisticsParams) -> Result ``` Get element instance statistics (`GET /process-instances/{processInstanceKey}/statistics/element-instances`). **Example** ```rust async fn get_process_instance_statistics( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_statistics(GetProcessInstanceStatisticsParams { process_instance_key, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_instance_statistics_by_definition ```rust pub async fn get_process_instance_statistics_by_definition(&self, params: GetProcessInstanceStatisticsByDefinitionParams) -> Result ``` Get process instance statistics by definition (`POST /incidents/statistics/process-instances-by-definition`). **Example** ```rust async fn get_process_instance_statistics_by_definition() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_statistics_by_definition( GetProcessInstanceStatisticsByDefinitionParams { incident_process_instance_statistics_by_definition_query: IncidentProcessInstanceStatisticsByDefinitionQuery { filter: Box::new(IncidentProcessInstanceStatisticsByDefinitionFilter { error_hash_code: 1, }), ..Default::default() }, }, ) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_instance_statistics_by_error ```rust pub async fn get_process_instance_statistics_by_error(&self, params: GetProcessInstanceStatisticsByErrorParams) -> Result ``` Get process instance statistics by error (`POST /incidents/statistics/process-instances-by-error`). **Example** ```rust async fn get_process_instance_statistics_by_error() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_statistics_by_error(GetProcessInstanceStatisticsByErrorParams { incident_process_instance_statistics_by_error_query: Some( IncidentProcessInstanceStatisticsByErrorQuery::default(), ), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_process_instance_wait_state_statistics ```rust pub async fn get_process_instance_wait_state_statistics(&self, params: GetProcessInstanceWaitStateStatisticsParams) -> Result ``` Get wait state statistics (`GET /process-instances/{processInstanceKey}/statistics/wait-states`). **Example** ```rust async fn get_process_instance_wait_state_statistics( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_process_instance_wait_state_statistics(GetProcessInstanceWaitStateStatisticsParams { process_instance_key, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_resource ```rust pub async fn get_resource(&self, params: GetResourceParams) -> Result ``` Get resource (`GET /resources/{resourceKey}`). **Example** ```rust async fn get_resource(resource_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_resource(GetResourceParams { resource_key }) .await?; println!("{}", result.resource_id); Ok(()) } ``` ### get_resource_content ```rust pub async fn get_resource_content(&self, params: GetResourceContentParams) -> Result> ``` Get RPA resource content (deprecated) (`GET /resources/{resourceKey}/content`). **Example** ```rust async fn get_resource_content(resource_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_resource_content(GetResourceContentParams { resource_key }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_resource_content_binary ```rust pub async fn get_resource_content_binary(&self, params: GetResourceContentBinaryParams) -> Result ``` Get resource content as binary (`GET /resources/{resourceKey}/content/binary`). **Example** ```rust async fn get_resource_content_binary( resource_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_resource_content_binary(GetResourceContentBinaryParams { resource_key }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_restore_status ```rust pub async fn get_restore_status(&self) -> Result ``` Get the status of the restore that is currently in progress (`GET /restore`). **Example** ```rust async fn get_restore_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; let status = client.get_restore_status().await?; println!("{status:#?}"); Ok(()) } ``` ### get_role ```rust pub async fn get_role(&self, params: GetRoleParams) -> Result ``` Get role (`GET /roles/{roleId}`). **Example** ```rust async fn get_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_role(GetRoleParams { role_id }).await?; println!("{}", result.role_id); Ok(()) } ``` ### get_runtime_backup ```rust pub async fn get_runtime_backup(&self, params: GetRuntimeBackupParams) -> Result ``` Get runtime backup (`GET /backups/runtime/{backupId}`). **Example** ```rust async fn get_runtime_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_runtime_backup(GetRuntimeBackupParams { backup_id: 1 }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_runtime_backup_as_cluster_admin ```rust pub async fn get_runtime_backup_as_cluster_admin(&self, params: GetRuntimeBackupAsClusterAdminParams) -> Result ``` Get a runtime backup across physical tenants (`GET /cluster/v2/backups/runtime/{backupId}`). **Example** ```rust async fn get_runtime_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_runtime_backup_as_cluster_admin(GetRuntimeBackupAsClusterAdminParams { backup_id: 1, physical_tenant_id: None, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### get_runtime_backup_state ```rust pub async fn get_runtime_backup_state(&self) -> Result ``` Get runtime backup state (`GET /backups/runtime/state`). **Example** ```rust async fn get_runtime_backup_state() -> Result<(), Box> { let client = CamundaClient::from_env()?; let state = client.get_runtime_backup_state().await?; println!("{state:#?}"); Ok(()) } ``` ### get_runtime_backup_state_as_cluster_admin ```rust pub async fn get_runtime_backup_state_as_cluster_admin(&self, params: GetRuntimeBackupStateAsClusterAdminParams) -> Result ``` Get runtime backup state across physical tenants (`GET /cluster/v2/backups/runtime/state`). **Example** ```rust async fn get_runtime_backup_state_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let state = client .get_runtime_backup_state_as_cluster_admin(GetRuntimeBackupStateAsClusterAdminParams { physical_tenant_id: None, }) .await?; println!("{state:#?}"); Ok(()) } ``` ### get_start_process_form ```rust pub async fn get_start_process_form(&self, params: GetStartProcessFormParams) -> Result ``` Get process start form (`GET /process-definitions/{processDefinitionKey}/form`). **Example** ```rust async fn get_start_process_form( process_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_start_process_form(GetStartProcessFormParams { process_definition_key, }) .await?; println!("{}", result.form_id); Ok(()) } ``` ### get_status ```rust pub async fn get_status(&self) -> Result<()> ``` Get physical tenant status (`GET /status`). **Example** ```rust async fn get_status() -> Result<(), Box> { let client = CamundaClient::from_env()?; client.get_status().await?; println!("Get cluster status: done"); Ok(()) } ``` ### get_system_configuration ```rust pub async fn get_system_configuration(&self) -> Result ``` System configuration (alpha) (`GET /system/configuration`). **Example** ```rust async fn get_system_configuration() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_system_configuration().await?; println!("{result:#?}"); Ok(()) } ``` ### get_tenant ```rust pub async fn get_tenant(&self, params: GetTenantParams) -> Result ``` Get tenant (`GET /tenants/{tenantId}`). **Example** ```rust async fn get_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_tenant(GetTenantParams { tenant_id }).await?; println!("{}", result.name); Ok(()) } ``` ### get_tenant_cluster_variable ```rust pub async fn get_tenant_cluster_variable(&self, params: GetTenantClusterVariableParams) -> Result ``` Get a tenant-scoped cluster variable (`GET /cluster-variables/tenants/{tenantId}/{name}`). **Example** ```rust async fn get_tenant_cluster_variable( tenant_id: String, name: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_tenant_cluster_variable(GetTenantClusterVariableParams { tenant_id, name }) .await?; println!("{}", result.name); Ok(()) } ``` ### get_usage_metrics ```rust pub async fn get_usage_metrics(&self, params: GetUsageMetricsParams) -> Result ``` Get usage metrics (`GET /system/usage-metrics`). **Example** ```rust async fn get_usage_metrics() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_usage_metrics(GetUsageMetricsParams { start_time: Default::default(), end_time: Default::default(), tenant_id: None, with_tenants: None, }) .await?; println!("{}", result.active_tenants); Ok(()) } ``` ### get_user ```rust pub async fn get_user(&self, params: GetUserParams) -> Result ``` Get user (`GET /users/{username}`). **Example** ```rust async fn get_user(username: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client.get_user(GetUserParams { username }).await?; println!("{}", result.username); Ok(()) } ``` ### get_user_task ```rust pub async fn get_user_task(&self, params: GetUserTaskParams) -> Result ``` Get user task (`GET /user-tasks/{userTaskKey}`). **Example** ```rust async fn get_user_task(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_user_task(GetUserTaskParams { user_task_key }) .await?; println!("{}", result.element_id); Ok(()) } ``` ### get_user_task_form ```rust pub async fn get_user_task_form(&self, params: GetUserTaskFormParams) -> Result ``` Get user task form (`GET /user-tasks/{userTaskKey}/form`). **Example** ```rust async fn get_user_task_form(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_user_task_form(GetUserTaskFormParams { user_task_key }) .await?; println!("{}", result.form_id); Ok(()) } ``` ### get_variable ```rust pub async fn get_variable(&self, params: GetVariableParams) -> Result ``` Get variable (`GET /variables/{variableKey}`). **Example** ```rust async fn get_variable(variable_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .get_variable(GetVariableParams { variable_key }) .await?; println!("{}", result.name); Ok(()) } ``` ### init_logging ```rust pub fn init_logging(&self) -> bool ``` Install a formatting `tracing` subscriber filtered to the configured `CAMUNDA_SDK_LOG_LEVEL`. No-op if a global subscriber is already set or logging is off. Returns `true` if this call installed the subscriber. ### list_history_backups ```rust pub async fn list_history_backups(&self, params: ListHistoryBackupsParams) -> Result> ``` List history backups (`GET /backups/history`). **Example** ```rust async fn list_history_backups() -> Result<(), Box> { let client = CamundaClient::from_env()?; // `prefix` must end in a single '*'. Setting `verbose` to false makes the // query cheaper, at the cost of snapshot-level detail. let backups = client .list_history_backups(ListHistoryBackupsParams { prefix: None, verbose: None, }) .await?; for backup in backups { println!("{backup:#?}"); } Ok(()) } ``` ### list_history_backups_as_cluster_admin ```rust pub async fn list_history_backups_as_cluster_admin(&self, params: ListHistoryBackupsAsClusterAdminParams) -> Result> ``` List history backups across physical tenants (`GET /cluster/v2/backups/history`). **Example** ```rust async fn list_history_backups_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; // `prefix` must end in a single '*'. Setting `verbose` to false makes the // query cheaper, at the cost of snapshot-level detail. let backups = client .list_history_backups_as_cluster_admin(ListHistoryBackupsAsClusterAdminParams { physical_tenant_id: None, prefix: None, verbose: None, }) .await?; for backup in backups { println!("{backup:#?}"); } Ok(()) } ``` ### list_runtime_backups ```rust pub async fn list_runtime_backups(&self, params: ListRuntimeBackupsParams) -> Result> ``` List runtime backups (`GET /backups/runtime`). **Example** ```rust async fn list_runtime_backups() -> Result<(), Box> { let client = CamundaClient::from_env()?; let backups = client .list_runtime_backups(ListRuntimeBackupsParams { prefix: None }) .await?; for backup in backups { println!("{backup:#?}"); } Ok(()) } ``` ### list_runtime_backups_as_cluster_admin ```rust pub async fn list_runtime_backups_as_cluster_admin(&self, params: ListRuntimeBackupsAsClusterAdminParams) -> Result> ``` List runtime backups across physical tenants (`GET /cluster/v2/backups/runtime`). **Example** ```rust async fn list_runtime_backups_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let backups = client .list_runtime_backups_as_cluster_admin(ListRuntimeBackupsAsClusterAdminParams { physical_tenant_id: None, prefix: None, }) .await?; for backup in backups { println!("{backup:#?}"); } Ok(()) } ``` ### list_secrets ```rust pub async fn list_secrets(&self, params: ListSecretsParams) -> Result ``` List secrets (`POST /secrets/list`). **Example** ```rust async fn list_secrets() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .list_secrets(ListSecretsParams { body: None }) .await?; println!("{result:#?}"); Ok(()) } ``` ### migrate_process_instance ```rust pub async fn migrate_process_instance(&self, params: MigrateProcessInstanceParams) -> Result<()> ``` Migrate process instance (`POST /process-instances/{processInstanceKey}/migration`). **Example** ```rust async fn migrate_process_instance( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .migrate_process_instance(MigrateProcessInstanceParams { process_instance_key, process_instance_migration_instruction: ProcessInstanceMigrationInstruction { target_process_definition_key: Box::new(ProcessDefinitionKey::assume_exists( "my-target-process-definition", )), mapping_instructions: vec![MigrateProcessInstanceMappingInstruction { source_element_id: ElementId::assume_exists("my-source-element"), target_element_id: ElementId::assume_exists("my-target-element"), }], ..Default::default() }, }) .await?; println!("Migrate process instance: done"); Ok(()) } ``` ### migrate_process_instances_batch_operation ```rust pub async fn migrate_process_instances_batch_operation(&self, params: MigrateProcessInstancesBatchOperationParams) -> Result ``` Migrate process instances (batch) (`POST /process-instances/migration`). **Example** ```rust async fn migrate_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .migrate_process_instances_batch_operation(MigrateProcessInstancesBatchOperationParams { process_instance_migration_batch_operation_request: ProcessInstanceMigrationBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), migration_plan: Box::new(ProcessInstanceMigrationBatchOperationPlan { target_process_definition_key: Box::new( ProcessDefinitionKey::assume_exists("my-target-process-definition"), ), mapping_instructions: vec![Default::default()], }), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### modify_process_instance ```rust pub async fn modify_process_instance(&self, params: ModifyProcessInstanceParams) -> Result<()> ``` Modify process instance (`POST /process-instances/{processInstanceKey}/modification`). **Example** ```rust async fn modify_process_instance( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .modify_process_instance(ModifyProcessInstanceParams { process_instance_key, process_instance_modification_instruction: ProcessInstanceModificationInstruction::default(), }) .await?; println!("Modify process instance: done"); Ok(()) } ``` ### modify_process_instances_batch_operation ```rust pub async fn modify_process_instances_batch_operation(&self, params: ModifyProcessInstancesBatchOperationParams) -> Result ``` Modify process instances (batch) (`POST /process-instances/modification`). **Example** ```rust async fn modify_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .modify_process_instances_batch_operation(ModifyProcessInstancesBatchOperationParams { process_instance_modification_batch_operation_request: ProcessInstanceModificationBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), move_instructions: vec![ ProcessInstanceModificationMoveBatchOperationInstruction { source_element_id: ElementId::assume_exists("my-source-element"), target_element_id: ElementId::assume_exists("my-target-element"), }, ], ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### new ```rust pub fn new(options: CamundaOptions) -> Result ``` Construct a client from `CamundaOptions` (environment + overrides). ### pause_cluster_exporting ```rust pub async fn pause_cluster_exporting(&self, params: PauseClusterExportingParams) -> Result<()> ``` Pause exporting across the whole cluster (`POST /cluster/v2/exporting/pause`). **Example** ```rust async fn pause_cluster_exporting() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .pause_cluster_exporting(PauseClusterExportingParams { soft: Some(true) }) .await?; println!("Pause cluster exporting: done"); Ok(()) } ``` ### pause_exporting ```rust pub async fn pause_exporting(&self, params: PauseExportingParams) -> Result<()> ``` Pause exporting (`POST /exporting/pause`). **Example** ```rust async fn pause_exporting() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .pause_exporting(PauseExportingParams { soft: Some(true) }) .await?; println!("Pause exporting: done"); Ok(()) } ``` ### pin_clock ```rust pub async fn pin_clock(&self, params: PinClockParams) -> Result<()> ``` Pin internal clock (alpha) (`PUT /clock`). **Example** ```rust async fn pin_clock() -> Result<(), Box> { let client = CamundaClient::from_env()?; client .pin_clock(PinClockParams { clock_pin_request: ClockPinRequest { timestamp: 1 }, }) .await?; println!("Pin internal clock (alpha): done"); Ok(()) } ``` ### publish_message ```rust pub async fn publish_message(&self, request: models::MessagePublicationRequest) -> Result ``` Publish a message (no correlation key matching against active subscriptions only — buffered). The configured default tenant id is applied when unset. **Example** ```rust async fn publish_message() -> Result<(), Box> { let client = CamundaClient::from_env()?; let published = client .publish_message(MessagePublicationRequest { name: "order-received".to_string(), correlation_key: Some("ORD-4711".to_string()), time_to_live: Some(60_000), variables: Some( [("total".to_string(), serde_json::json!(99.5))] .into_iter() .collect(), ), ..Default::default() }) .await?; println!("Published message {}", published.message_key); Ok(()) } ``` ### random ```rust pub fn random(&self) -> &Arc ``` The source this client draws jitter from. ### reset_clock ```rust pub async fn reset_clock(&self) -> Result<()> ``` Reset internal clock (alpha) (`POST /clock/reset`). **Example** ```rust async fn reset_clock() -> Result<(), Box> { let client = CamundaClient::from_env()?; client.reset_clock().await?; println!("Reset internal clock (alpha): done"); Ok(()) } ``` ### resolve_incident ```rust pub async fn resolve_incident(&self, params: ResolveIncidentParams) -> Result<()> ``` Resolve incident (`POST /incidents/{incidentKey}/resolution`). **Example** ```rust async fn resolve_incident(incident_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .resolve_incident(ResolveIncidentParams { incident_key, incident_resolution_request: Some(IncidentResolutionRequest::default()), }) .await?; println!("Resolve incident: done"); Ok(()) } ``` ### resolve_incidents_batch_operation ```rust pub async fn resolve_incidents_batch_operation(&self, params: ResolveIncidentsBatchOperationParams) -> Result ``` Resolve related incidents (batch) (`POST /process-instances/incident-resolution`). **Example** ```rust async fn resolve_incidents_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .resolve_incidents_batch_operation(ResolveIncidentsBatchOperationParams { process_instance_incident_resolution_batch_operation_request: ProcessInstanceIncidentResolutionBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### resolve_process_instance_incidents ```rust pub async fn resolve_process_instance_incidents(&self, params: ResolveProcessInstanceIncidentsParams) -> Result ``` Resolve related incidents (`POST /process-instances/{processInstanceKey}/incident-resolution`). **Example** ```rust async fn resolve_process_instance_incidents( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .resolve_process_instance_incidents(ResolveProcessInstanceIncidentsParams { process_instance_key, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### resolve_secrets ```rust pub async fn resolve_secrets(&self, params: ResolveSecretsParams) -> Result ``` Resolve secrets (`POST /secrets/resolve`). **Example** ```rust async fn resolve_secrets() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .resolve_secrets(ResolveSecretsParams { secret_resolve_request: SecretResolveRequest { references: vec!["camunda.secrets.my-secret".to_string()], }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### restore ```rust pub async fn restore(&self, params: RestoreParams) -> Result ``` Restore from a backup (`POST /restore`). **Example** ```rust async fn restore() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .restore(RestoreParams { restore_request: RestoreRequest::default(), dry_run: None, }) .await?; println!("{}", result.change_id); Ok(()) } ``` ### restore_as_cluster_admin ```rust pub async fn restore_as_cluster_admin(&self, params: RestoreAsClusterAdminParams) -> Result ``` Restore one or every physical tenant from a backup (`POST /cluster/v2/restore`). **Example** ```rust async fn restore_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Omitting `physical_tenant_id` restores the whole cluster. A cluster-wide // restore may also set `overrides` to pick a different backup per physical // tenant. let result = client .restore_as_cluster_admin(RestoreAsClusterAdminParams { cluster_restore_request: ClusterRestoreRequest { backup_ids: Some(Some(vec![1])), ..Default::default() }, physical_tenant_id: None, dry_run: Some(true), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### resume_batch_operation ```rust pub async fn resume_batch_operation(&self, params: ResumeBatchOperationParams) -> Result<()> ``` Resume Batch operation (`POST /batch-operations/{batchOperationKey}/resumption`). **Example** ```rust async fn resume_batch_operation( batch_operation_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .resume_batch_operation(ResumeBatchOperationParams { batch_operation_key, }) .await?; println!("Resume Batch operation: done"); Ok(()) } ``` ### resume_cluster_exporting ```rust pub async fn resume_cluster_exporting(&self) -> Result<()> ``` Resume exporting across the whole cluster (`POST /cluster/v2/exporting/resume`). **Example** ```rust async fn resume_cluster_exporting() -> Result<(), Box> { let client = CamundaClient::from_env()?; client.resume_cluster_exporting().await?; println!("Resume cluster exporting: done"); Ok(()) } ``` ### resume_exporting ```rust pub async fn resume_exporting(&self) -> Result<()> ``` Resume exporting (`POST /exporting/resume`). **Example** ```rust async fn resume_exporting() -> Result<(), Box> { let client = CamundaClient::from_env()?; client.resume_exporting().await?; println!("Resume exporting: done"); Ok(()) } ``` ### resume_process_instance ```rust pub async fn resume_process_instance(&self, params: ResumeProcessInstanceParams) -> Result<()> ``` Resume process instance (`POST /process-instances/{processInstanceKey}/resumption`). **Example** ```rust async fn resume_process_instance( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .resume_process_instance(ResumeProcessInstanceParams { process_instance_key, resume_process_instance_request: Some(ResumeProcessInstanceRequest::default()), }) .await?; println!("Resume process instance: done"); Ok(()) } ``` ### resume_process_instances_batch_operation ```rust pub async fn resume_process_instances_batch_operation(&self, params: ResumeProcessInstancesBatchOperationParams) -> Result ``` Resume process instances (batch) (`POST /process-instances/resumption`). **Example** ```rust async fn resume_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .resume_process_instances_batch_operation(ResumeProcessInstancesBatchOperationParams { process_instance_resumption_batch_operation_request: ProcessInstanceResumptionBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### running_workers ```rust pub fn running_workers(&self) -> Vec ``` The job types of all currently-registered workers that are still running. ### search_agent_definitions ```rust pub async fn search_agent_definitions(&self, params: SearchAgentDefinitionsParams) -> Result ``` Search agent definitions (`POST /agent-definitions/search`). **Example** ```rust async fn search_agent_definitions() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_agent_definitions(SearchAgentDefinitionsParams { agent_definition_search_query: Some(AgentDefinitionSearchQuery::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_agent_instance_history ```rust pub async fn search_agent_instance_history(&self, params: SearchAgentInstanceHistoryParams) -> Result ``` Search agent instance history (`POST /agent-instances/{agentInstanceKey}/history/search`). **Example** ```rust async fn search_agent_instance_history( agent_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_agent_instance_history(SearchAgentInstanceHistoryParams { agent_instance_key, agent_instance_history_search_query: Some(AgentInstanceHistorySearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.job_lease_token); } Ok(()) } ``` ### search_agent_instances ```rust pub async fn search_agent_instances(&self, params: SearchAgentInstancesParams) -> Result ``` Search agent instances (`POST /agent-instances/search`). **Example** ```rust async fn search_agent_instances() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_agent_instances(SearchAgentInstancesParams { agent_instance_search_query: Some(AgentInstanceSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_audit_logs ```rust pub async fn search_audit_logs(&self, params: SearchAuditLogsParams) -> Result ``` Search audit logs (`POST /audit-logs/search`). **Example** ```rust async fn search_audit_logs() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_audit_logs(SearchAuditLogsParams { audit_log_search_query_request: Some(AuditLogSearchQueryRequest::default()), }) .await?; for item in result.items { println!("{}", item.entity_key); } Ok(()) } ``` ### search_authorizations ```rust pub async fn search_authorizations(&self, params: SearchAuthorizationsParams) -> Result ``` Search authorizations (`POST /authorizations/search`). **Example** ```rust async fn search_authorizations() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_authorizations(SearchAuthorizationsParams { authorization_search_query: Some(AuthorizationSearchQuery::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_batch_operation_items ```rust pub async fn search_batch_operation_items(&self, params: SearchBatchOperationItemsParams) -> Result ``` Search batch operation items (`POST /batch-operation-items/search`). **Example** ```rust async fn search_batch_operation_items() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_batch_operation_items(SearchBatchOperationItemsParams { batch_operation_item_search_query: Some(BatchOperationItemSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.batch_operation_key); } Ok(()) } ``` ### search_batch_operations ```rust pub async fn search_batch_operations(&self, params: SearchBatchOperationsParams) -> Result ``` Search batch operations (`POST /batch-operations/search`). **Example** ```rust async fn search_batch_operations() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_batch_operations(SearchBatchOperationsParams { batch_operation_search_query: Some(BatchOperationSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.batch_operation_key); } Ok(()) } ``` ### search_clients_for_group ```rust pub async fn search_clients_for_group(&self, params: SearchClientsForGroupParams) -> Result ``` Search group clients (`POST /groups/{groupId}/clients/search`). **Example** ```rust async fn search_clients_for_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_clients_for_group(SearchClientsForGroupParams { group_id, group_client_search_query_request: Some(GroupClientSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_clients_for_role ```rust pub async fn search_clients_for_role(&self, params: SearchClientsForRoleParams) -> Result ``` Search role clients (`POST /roles/{roleId}/clients/search`). **Example** ```rust async fn search_clients_for_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_clients_for_role(SearchClientsForRoleParams { role_id, role_client_search_query_request: Some(RoleClientSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_clients_for_tenant ```rust pub async fn search_clients_for_tenant(&self, params: SearchClientsForTenantParams) -> Result ``` Search clients for tenant (`POST /tenants/{tenantId}/clients/search`). **Example** ```rust async fn search_clients_for_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_clients_for_tenant(SearchClientsForTenantParams { tenant_id, tenant_client_search_query_request: Some(TenantClientSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_cluster_variables ```rust pub async fn search_cluster_variables(&self, params: SearchClusterVariablesParams) -> Result ``` Search for cluster variables based on given criteria (`POST /cluster-variables/search`). **Example** ```rust async fn search_cluster_variables() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_cluster_variables(SearchClusterVariablesParams { truncate_values: None, cluster_variable_search_query_request: Some( ClusterVariableSearchQueryRequest::default(), ), }) .await?; for item in result.items { println!("{}", item.name); } Ok(()) } ``` ### search_correlated_message_subscriptions ```rust pub async fn search_correlated_message_subscriptions(&self, params: SearchCorrelatedMessageSubscriptionsParams) -> Result ``` Search correlated message subscriptions (`POST /correlated-message-subscriptions/search`). **Example** ```rust async fn search_correlated_message_subscriptions() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_correlated_message_subscriptions(SearchCorrelatedMessageSubscriptionsParams { correlated_message_subscription_search_query: Some( CorrelatedMessageSubscriptionSearchQuery::default(), ), }) .await?; for item in result.items { println!("{}", item.process_definition_id); } Ok(()) } ``` ### search_decision_definitions ```rust pub async fn search_decision_definitions(&self, params: SearchDecisionDefinitionsParams) -> Result ``` Search decision definitions (`POST /decision-definitions/search`). **Example** ```rust async fn search_decision_definitions() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_decision_definitions(SearchDecisionDefinitionsParams { decision_definition_search_query: Some(DecisionDefinitionSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.decision_definition_id); } Ok(()) } ``` ### search_decision_instances ```rust pub async fn search_decision_instances(&self, params: SearchDecisionInstancesParams) -> Result ``` Search decision instances (`POST /decision-instances/search`). **Example** ```rust async fn search_decision_instances() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_decision_instances(SearchDecisionInstancesParams { decision_instance_search_query: Some(DecisionInstanceSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.decision_evaluation_instance_key); } Ok(()) } ``` ### search_decision_requirements ```rust pub async fn search_decision_requirements(&self, params: SearchDecisionRequirementsParams) -> Result ``` Search decision requirements (`POST /decision-requirements/search`). **Example** ```rust async fn search_decision_requirements() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_decision_requirements(SearchDecisionRequirementsParams { decision_requirements_search_query: Some(DecisionRequirementsSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.decision_requirements_id); } Ok(()) } ``` ### search_element_instance_incidents ```rust pub async fn search_element_instance_incidents(&self, params: SearchElementInstanceIncidentsParams) -> Result ``` Search for incidents of a specific element instance (`POST /element-instances/{elementInstanceKey}/incidents/search`). **Example** ```rust async fn search_element_instance_incidents( element_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_element_instance_incidents(SearchElementInstanceIncidentsParams { element_instance_key, incident_search_query: IncidentSearchQuery::default(), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_element_instance_wait_states ```rust pub async fn search_element_instance_wait_states(&self, params: SearchElementInstanceWaitStatesParams) -> Result ``` Search element instance wait states (`POST /element-instances/wait-states/search`). **Example** ```rust async fn search_element_instance_wait_states() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_element_instance_wait_states(SearchElementInstanceWaitStatesParams { element_instance_wait_state_query: Some(ElementInstanceWaitStateQuery::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_element_instances ```rust pub async fn search_element_instances(&self, params: SearchElementInstancesParams) -> Result ``` Search element instances (`POST /element-instances/search`). **Example** ```rust async fn search_element_instances() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_element_instances(SearchElementInstancesParams { element_instance_search_query: Some(ElementInstanceSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_global_task_listeners ```rust pub async fn search_global_task_listeners(&self, params: SearchGlobalTaskListenersParams) -> Result ``` Search global user task listeners (`POST /global-task-listeners/search`). **Example** ```rust async fn search_global_task_listeners() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_global_task_listeners(SearchGlobalTaskListenersParams { global_task_listener_search_query_request: Some( GlobalTaskListenerSearchQueryRequest::default(), ), }) .await?; for item in result.items { println!("{}", item.id); } Ok(()) } ``` ### search_group_ids_for_tenant ```rust pub async fn search_group_ids_for_tenant(&self, params: SearchGroupIdsForTenantParams) -> Result ``` Search groups for tenant (`POST /tenants/{tenantId}/groups/search`). **Example** ```rust async fn search_group_ids_for_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_group_ids_for_tenant(SearchGroupIdsForTenantParams { tenant_id, tenant_group_search_query_request: Some(TenantGroupSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_groups ```rust pub async fn search_groups(&self, params: SearchGroupsParams) -> Result ``` Search groups (`POST /groups/search`). **Example** ```rust async fn search_groups() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_groups(SearchGroupsParams { group_search_query_request: Some(GroupSearchQueryRequest::default()), }) .await?; for item in result.items { println!("{}", item.group_id); } Ok(()) } ``` ### search_groups_for_role ```rust pub async fn search_groups_for_role(&self, params: SearchGroupsForRoleParams) -> Result ``` Search role groups (`POST /roles/{roleId}/groups/search`). **Example** ```rust async fn search_groups_for_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_groups_for_role(SearchGroupsForRoleParams { role_id, role_group_search_query_request: Some(RoleGroupSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_incidents ```rust pub async fn search_incidents(&self, params: SearchIncidentsParams) -> Result ``` Search incidents (`POST /incidents/search`). **Example** ```rust async fn search_incidents() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_incidents(SearchIncidentsParams { incident_search_query: Some(IncidentSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_jobs ```rust pub async fn search_jobs(&self, params: SearchJobsParams) -> Result ``` Search jobs (`POST /jobs/search`). **Example** ```rust async fn search_jobs() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_jobs(SearchJobsParams { job_search_query: Some(JobSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.process_definition_id); } Ok(()) } ``` ### search_mapping_rule ```rust pub async fn search_mapping_rule(&self, params: SearchMappingRuleParams) -> Result ``` Search mapping rules (`POST /mapping-rules/search`). **Example** ```rust async fn search_mapping_rule() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_mapping_rule(SearchMappingRuleParams { mapping_rule_search_query_request: Some(MappingRuleSearchQueryRequest::default()), }) .await?; for item in result.items { println!("{}", item.mapping_rule_id); } Ok(()) } ``` ### search_mapping_rules_for_group ```rust pub async fn search_mapping_rules_for_group(&self, params: SearchMappingRulesForGroupParams) -> Result ``` Search group mapping rules (`POST /groups/{groupId}/mapping-rules/search`). **Example** ```rust async fn search_mapping_rules_for_group( group_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_mapping_rules_for_group(SearchMappingRulesForGroupParams { group_id, mapping_rule_search_query_request: Some(MappingRuleSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_mapping_rules_for_role ```rust pub async fn search_mapping_rules_for_role(&self, params: SearchMappingRulesForRoleParams) -> Result ``` Search role mapping rules (`POST /roles/{roleId}/mapping-rules/search`). **Example** ```rust async fn search_mapping_rules_for_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_mapping_rules_for_role(SearchMappingRulesForRoleParams { role_id, mapping_rule_search_query_request: Some(MappingRuleSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_mapping_rules_for_tenant ```rust pub async fn search_mapping_rules_for_tenant(&self, params: SearchMappingRulesForTenantParams) -> Result ``` Search mapping rules for tenant (`POST /tenants/{tenantId}/mapping-rules/search`). **Example** ```rust async fn search_mapping_rules_for_tenant( tenant_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_mapping_rules_for_tenant(SearchMappingRulesForTenantParams { tenant_id, mapping_rule_search_query_request: Some(MappingRuleSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_message_subscriptions ```rust pub async fn search_message_subscriptions(&self, params: SearchMessageSubscriptionsParams) -> Result ``` Search message subscriptions (`POST /message-subscriptions/search`). **Example** ```rust async fn search_message_subscriptions() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_message_subscriptions(SearchMessageSubscriptionsParams { message_subscription_search_query: Some(MessageSubscriptionSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_own_authorizations ```rust pub async fn search_own_authorizations(&self, params: SearchOwnAuthorizationsParams) -> Result ``` Search own authorizations (`POST /authentication/me/authorizations/search`). **Example** ```rust async fn search_own_authorizations() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_own_authorizations(SearchOwnAuthorizationsParams { authorization_search_query: Some(AuthorizationSearchQuery::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_process_definition_variable_names ```rust pub async fn search_process_definition_variable_names(&self, params: SearchProcessDefinitionVariableNamesParams) -> Result ``` Search process definition variable names (`POST /process-definitions/{processDefinitionKey}/variable-names/search`). **Example** ```rust async fn search_process_definition_variable_names( process_definition_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_process_definition_variable_names(SearchProcessDefinitionVariableNamesParams { process_definition_key, process_definition_variable_name_search_query: Some( ProcessDefinitionVariableNameSearchQuery::default(), ), }) .await?; for item in result.items { println!("{}", item.name); } Ok(()) } ``` ### search_process_definitions ```rust pub async fn search_process_definitions(&self, params: SearchProcessDefinitionsParams) -> Result ``` Search process definitions (`POST /process-definitions/search`). **Example** ```rust async fn search_process_definitions() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_process_definitions(SearchProcessDefinitionsParams { process_definition_search_query: Some(ProcessDefinitionSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.process_definition_id); } Ok(()) } ``` ### search_process_instance_incidents ```rust pub async fn search_process_instance_incidents(&self, params: SearchProcessInstanceIncidentsParams) -> Result ``` Search related incidents (`POST /process-instances/{processInstanceKey}/incidents/search`). **Example** ```rust async fn search_process_instance_incidents( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_process_instance_incidents(SearchProcessInstanceIncidentsParams { process_instance_key, incident_search_query: Some(IncidentSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_process_instances ```rust pub async fn search_process_instances(&self, params: SearchProcessInstancesParams) -> Result ``` Search process instances (`POST /process-instances/search`). **Example** ```rust async fn search_process_instances() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_process_instances(SearchProcessInstancesParams { process_instance_search_query: Some(ProcessInstanceSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.process_definition_id); } Ok(()) } ``` ### search_resources ```rust pub async fn search_resources(&self, params: SearchResourcesParams) -> Result ``` Search resources (`POST /resources/search`). **Example** ```rust async fn search_resources() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_resources(SearchResourcesParams { resource_search_query: Some(ResourceSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.resource_id); } Ok(()) } ``` ### search_roles ```rust pub async fn search_roles(&self, params: SearchRolesParams) -> Result ``` Search roles (`POST /roles/search`). **Example** ```rust async fn search_roles() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_roles(SearchRolesParams { role_search_query_request: Some(RoleSearchQueryRequest::default()), }) .await?; for item in result.items { println!("{}", item.role_id); } Ok(()) } ``` ### search_roles_for_group ```rust pub async fn search_roles_for_group(&self, params: SearchRolesForGroupParams) -> Result ``` Search group roles (`POST /groups/{groupId}/roles/search`). **Example** ```rust async fn search_roles_for_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_roles_for_group(SearchRolesForGroupParams { group_id, role_search_query_request: Some(RoleSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_roles_for_tenant ```rust pub async fn search_roles_for_tenant(&self, params: SearchRolesForTenantParams) -> Result ``` Search roles for tenant (`POST /tenants/{tenantId}/roles/search`). **Example** ```rust async fn search_roles_for_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_roles_for_tenant(SearchRolesForTenantParams { tenant_id, role_search_query_request: Some(RoleSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_tenants ```rust pub async fn search_tenants(&self, params: SearchTenantsParams) -> Result ``` Search tenants (`POST /tenants/search`). **Example** ```rust async fn search_tenants() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_tenants(SearchTenantsParams { tenant_search_query_request: Some(TenantSearchQueryRequest::default()), }) .await?; for item in result.items { println!("{}", item.name); } Ok(()) } ``` ### search_user_task_audit_logs ```rust pub async fn search_user_task_audit_logs(&self, params: SearchUserTaskAuditLogsParams) -> Result ``` Search user task audit logs (`POST /user-tasks/{userTaskKey}/audit-logs/search`). **Example** ```rust async fn search_user_task_audit_logs( user_task_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_user_task_audit_logs(SearchUserTaskAuditLogsParams { user_task_key, user_task_audit_log_search_query_request: Some( UserTaskAuditLogSearchQueryRequest::default(), ), }) .await?; for item in result.items { println!("{}", item.entity_key); } Ok(()) } ``` ### search_user_task_effective_variables ```rust pub async fn search_user_task_effective_variables(&self, params: SearchUserTaskEffectiveVariablesParams) -> Result ``` Search user task effective variables (`POST /user-tasks/{userTaskKey}/effective-variables/search`). **Example** ```rust async fn search_user_task_effective_variables( user_task_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_user_task_effective_variables(SearchUserTaskEffectiveVariablesParams { user_task_key, truncate_values: None, user_task_effective_variable_search_query_request: Some( UserTaskEffectiveVariableSearchQueryRequest::default(), ), }) .await?; for item in result.items { println!("{}", item.name); } Ok(()) } ``` ### search_user_task_variables ```rust pub async fn search_user_task_variables(&self, params: SearchUserTaskVariablesParams) -> Result ``` Search user task variables (`POST /user-tasks/{userTaskKey}/variables/search`). **Example** ```rust async fn search_user_task_variables( user_task_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_user_task_variables(SearchUserTaskVariablesParams { user_task_key, truncate_values: None, user_task_variable_search_query_request: Some( UserTaskVariableSearchQueryRequest::default(), ), }) .await?; for item in result.items { println!("{}", item.name); } Ok(()) } ``` ### search_user_tasks ```rust pub async fn search_user_tasks(&self, params: SearchUserTasksParams) -> Result ``` Search user tasks (`POST /user-tasks/search`). **Example** ```rust async fn search_user_tasks() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_user_tasks(SearchUserTasksParams { user_task_search_query: Some(UserTaskSearchQuery::default()), }) .await?; for item in result.items { println!("{}", item.element_id); } Ok(()) } ``` ### search_users ```rust pub async fn search_users(&self, params: SearchUsersParams) -> Result ``` Search users (`POST /users/search`). **Example** ```rust async fn search_users() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_users(SearchUsersParams { user_search_query_request: Some(UserSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_users_for_group ```rust pub async fn search_users_for_group(&self, params: SearchUsersForGroupParams) -> Result ``` Search group users (`POST /groups/{groupId}/users/search`). **Example** ```rust async fn search_users_for_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_users_for_group(SearchUsersForGroupParams { group_id, group_user_search_query_request: Some(GroupUserSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_users_for_role ```rust pub async fn search_users_for_role(&self, params: SearchUsersForRoleParams) -> Result ``` Search role users (`POST /roles/{roleId}/users/search`). **Example** ```rust async fn search_users_for_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_users_for_role(SearchUsersForRoleParams { role_id, role_user_search_query_request: Some(RoleUserSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_users_for_tenant ```rust pub async fn search_users_for_tenant(&self, params: SearchUsersForTenantParams) -> Result ``` Search users for tenant (`POST /tenants/{tenantId}/users/search`). **Example** ```rust async fn search_users_for_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .search_users_for_tenant(SearchUsersForTenantParams { tenant_id, tenant_user_search_query_request: Some(TenantUserSearchQueryRequest::default()), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### search_variables ```rust pub async fn search_variables(&self, request: models::VariableSearchQuery) -> Result ``` Search variables, returning the raw generated result. **Example** ```rust async fn search_variables() -> Result<(), Box> { let client = CamundaClient::from_env()?; // An empty query returns the first page of all variables. Set `filter` to narrow // by process instance, scope, name, or value. let results = client .search_variables(VariableSearchQuery::default()) .await?; for variable in results.items { println!("{} = {}", variable.name, variable.value); } Ok(()) } ``` ### search_variables_as ```rust pub async fn search_variables_as(&self, request: models::VariableSearchQuery) -> Result> ``` Search variables and deserialize each variable's JSON `value` into a typed `T`. Returns the deserialized values in result order; variables whose `value` is absent are skipped. ### spawn_worker ```rust pub fn spawn_worker(&self, config: JobWorkerConfig, handler: F) ``` Spawn a managed job worker and register it for lifecycle control. The returned handle can stop the individual worker; `CamundaClient::stop_all_workers` stops every registered worker. The worker is also retained by the client so it keeps running even if the returned handle is dropped. ### stop_all_workers ```rust pub async fn stop_all_workers(&self) -> Result<()> ``` Gracefully stop every registered worker, letting in-flight jobs drain, and await their completion. Clears the registry. ### suspend_batch_operation ```rust pub async fn suspend_batch_operation(&self, params: SuspendBatchOperationParams) -> Result<()> ``` Suspend Batch operation (`POST /batch-operations/{batchOperationKey}/suspension`). **Example** ```rust async fn suspend_batch_operation( batch_operation_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .suspend_batch_operation(SuspendBatchOperationParams { batch_operation_key, }) .await?; println!("Suspend Batch operation: done"); Ok(()) } ``` ### suspend_process_instance ```rust pub async fn suspend_process_instance(&self, params: SuspendProcessInstanceParams) -> Result<()> ``` Suspend process instance (`POST /process-instances/{processInstanceKey}/suspension`). **Example** ```rust async fn suspend_process_instance( process_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .suspend_process_instance(SuspendProcessInstanceParams { process_instance_key, suspend_process_instance_request: Some(SuspendProcessInstanceRequest::default()), }) .await?; println!("Suspend process instance: done"); Ok(()) } ``` ### suspend_process_instances_batch_operation ```rust pub async fn suspend_process_instances_batch_operation(&self, params: SuspendProcessInstancesBatchOperationParams) -> Result ``` Suspend process instances (batch) (`POST /process-instances/suspension`). **Example** ```rust async fn suspend_process_instances_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .suspend_process_instances_batch_operation(SuspendProcessInstancesBatchOperationParams { process_instance_suspension_batch_operation_request: ProcessInstanceSuspensionBatchOperationRequest { filter: Box::new(ProcessInstanceFilter::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### sync_runtime_backup_state ```rust pub async fn sync_runtime_backup_state(&self) -> Result ``` Force-write runtime backup state (`POST /backups/runtime/state/sync`). **Example** ```rust async fn sync_runtime_backup_state() -> Result<(), Box> { let client = CamundaClient::from_env()?; let state = client.sync_runtime_backup_state().await?; println!("{state:#?}"); Ok(()) } ``` ### sync_runtime_backup_state_as_cluster_admin ```rust pub async fn sync_runtime_backup_state_as_cluster_admin(&self, params: SyncRuntimeBackupStateAsClusterAdminParams) -> Result ``` Force-write runtime backup state across physical tenants (`POST /cluster/v2/backups/runtime/state/sync`). **Example** ```rust async fn sync_runtime_backup_state_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let state = client .sync_runtime_backup_state_as_cluster_admin(SyncRuntimeBackupStateAsClusterAdminParams { physical_tenant_id: None, }) .await?; println!("{state:#?}"); Ok(()) } ``` ### take_history_backup ```rust pub async fn take_history_backup(&self, params: TakeHistoryBackupParams) -> Result ``` Take a history backup (`POST /backups/history`). **Example** ```rust async fn take_history_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .take_history_backup(TakeHistoryBackupParams { take_history_backup_request: TakeHistoryBackupRequest { backup_id: 1 }, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### take_history_backup_as_cluster_admin ```rust pub async fn take_history_backup_as_cluster_admin(&self, params: TakeHistoryBackupAsClusterAdminParams) -> Result ``` Take a history backup on one or every physical tenant (`POST /cluster/v2/backups/history`). **Example** ```rust async fn take_history_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .take_history_backup_as_cluster_admin(TakeHistoryBackupAsClusterAdminParams { take_history_backup_request: TakeHistoryBackupRequest { backup_id: 1 }, physical_tenant_id: None, }) .await?; println!("{result:#?}"); Ok(()) } ``` ### take_runtime_backup ```rust pub async fn take_runtime_backup(&self, params: TakeRuntimeBackupParams) -> Result ``` Take a runtime backup (`POST /backups/runtime`). **Example** ```rust async fn take_runtime_backup() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .take_runtime_backup(TakeRuntimeBackupParams { take_runtime_backup_request: Some(TakeRuntimeBackupRequest { backup_id: Some(Some(1)), }), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### take_runtime_backup_as_cluster_admin ```rust pub async fn take_runtime_backup_as_cluster_admin(&self, params: TakeRuntimeBackupAsClusterAdminParams) -> Result ``` Take a runtime backup on one or every physical tenant (`POST /cluster/v2/backups/runtime`). **Example** ```rust async fn take_runtime_backup_as_cluster_admin() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Setting `physical_tenant_id` scopes the backup to one physical tenant; omit // it to back up every physical tenant of the cluster. let result = client .take_runtime_backup_as_cluster_admin(TakeRuntimeBackupAsClusterAdminParams { physical_tenant_id: Some("default".to_string()), take_runtime_backup_request: Some(TakeRuntimeBackupRequest { backup_id: Some(Some(1)), }), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### throw_job_error ```rust pub async fn throw_job_error(&self, job_key: &str, request: models::JobErrorRequest) -> Result<()> ``` Throw a BPMN error from a job. **Example** ```rust async fn throw_job_error(job_key: &str) -> Result<(), Box> { let client = CamundaClient::from_env()?; // Routes the token to a matching BPMN error boundary event, rather than // failing the job technically. client .throw_job_error( job_key, JobErrorRequest { error_code: "PAYMENT_DECLINED".to_string(), error_message: Some(Some("card declined by issuer".to_string())), ..Default::default() }, ) .await?; println!("Threw BPMN error for job {job_key}"); Ok(()) } ``` ### topology ```rust pub async fn topology(&self) -> Result ``` Fetch the cluster topology. **Example** ```rust async fn get_topology() -> Result<(), Box> { let client = CamundaClient::from_env()?; let topology = client.topology().await?; println!("Gateway version: {}", topology.gateway_version); println!("Cluster size: {}", topology.cluster_size); println!("Partitions: {}", topology.partitions_count); println!("Replication factor: {}", topology.replication_factor); for broker in topology.brokers { println!( " broker {} at {}:{}", broker.node_id, broker.host, broker.port ); } Ok(()) } ``` ### trigger_cluster_rebalance ```rust pub async fn trigger_cluster_rebalance(&self, params: TriggerClusterRebalanceParams) -> Result ``` Trigger a cluster-wide leadership rebalance (`POST /cluster/v2/rebalance`). **Example** ```rust async fn trigger_cluster_rebalance() -> Result<(), Box> { let client = CamundaClient::from_env()?; // Every setting is optional; an absent request body means "use the configured // settings". Set `dry_run` to report the plan without moving any leadership. let result = client .trigger_cluster_rebalance(TriggerClusterRebalanceParams { dry_run: Some(true), cluster_rebalance_request: Some(ClusterRebalanceRequest { replication_timeout: Some("PT30S".to_string()), ..Default::default() }), }) .await?; println!("{result:#?}"); Ok(()) } ``` ### unassign_client_from_group ```rust pub async fn unassign_client_from_group(&self, params: UnassignClientFromGroupParams) -> Result<()> ``` Unassign a client from a group (`DELETE /groups/{groupId}/clients/{clientId}`). **Example** ```rust async fn unassign_client_from_group( group_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_client_from_group(UnassignClientFromGroupParams { group_id, client_id, }) .await?; println!("Unassign a client from a group: done"); Ok(()) } ``` ### unassign_client_from_tenant ```rust pub async fn unassign_client_from_tenant(&self, params: UnassignClientFromTenantParams) -> Result<()> ``` Unassign a client from a tenant (`DELETE /tenants/{tenantId}/clients/{clientId}`). **Example** ```rust async fn unassign_client_from_tenant( tenant_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_client_from_tenant(UnassignClientFromTenantParams { tenant_id, client_id, }) .await?; println!("Unassign a client from a tenant: done"); Ok(()) } ``` ### unassign_group_from_tenant ```rust pub async fn unassign_group_from_tenant(&self, params: UnassignGroupFromTenantParams) -> Result<()> ``` Unassign a group from a tenant (`DELETE /tenants/{tenantId}/groups/{groupId}`). **Example** ```rust async fn unassign_group_from_tenant( tenant_id: String, group_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_group_from_tenant(UnassignGroupFromTenantParams { tenant_id, group_id, }) .await?; println!("Unassign a group from a tenant: done"); Ok(()) } ``` ### unassign_mapping_rule_from_group ```rust pub async fn unassign_mapping_rule_from_group(&self, params: UnassignMappingRuleFromGroupParams) -> Result<()> ``` Unassign a mapping rule from a group (`DELETE /groups/{groupId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn unassign_mapping_rule_from_group( group_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_mapping_rule_from_group(UnassignMappingRuleFromGroupParams { group_id, mapping_rule_id, }) .await?; println!("Unassign a mapping rule from a group: done"); Ok(()) } ``` ### unassign_mapping_rule_from_tenant ```rust pub async fn unassign_mapping_rule_from_tenant(&self, params: UnassignMappingRuleFromTenantParams) -> Result<()> ``` Unassign a mapping rule from a tenant (`DELETE /tenants/{tenantId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn unassign_mapping_rule_from_tenant( tenant_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_mapping_rule_from_tenant(UnassignMappingRuleFromTenantParams { tenant_id, mapping_rule_id, }) .await?; println!("Unassign a mapping rule from a tenant: done"); Ok(()) } ``` ### unassign_role_from_client ```rust pub async fn unassign_role_from_client(&self, params: UnassignRoleFromClientParams) -> Result<()> ``` Unassign a role from a client (`DELETE /roles/{roleId}/clients/{clientId}`). **Example** ```rust async fn unassign_role_from_client( role_id: String, client_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_role_from_client(UnassignRoleFromClientParams { role_id, client_id }) .await?; println!("Unassign a role from a client: done"); Ok(()) } ``` ### unassign_role_from_group ```rust pub async fn unassign_role_from_group(&self, params: UnassignRoleFromGroupParams) -> Result<()> ``` Unassign a role from a group (`DELETE /roles/{roleId}/groups/{groupId}`). **Example** ```rust async fn unassign_role_from_group( role_id: String, group_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_role_from_group(UnassignRoleFromGroupParams { role_id, group_id }) .await?; println!("Unassign a role from a group: done"); Ok(()) } ``` ### unassign_role_from_mapping_rule ```rust pub async fn unassign_role_from_mapping_rule(&self, params: UnassignRoleFromMappingRuleParams) -> Result<()> ``` Unassign a role from a mapping rule (`DELETE /roles/{roleId}/mapping-rules/{mappingRuleId}`). **Example** ```rust async fn unassign_role_from_mapping_rule( role_id: String, mapping_rule_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_role_from_mapping_rule(UnassignRoleFromMappingRuleParams { role_id, mapping_rule_id, }) .await?; println!("Unassign a role from a mapping rule: done"); Ok(()) } ``` ### unassign_role_from_tenant ```rust pub async fn unassign_role_from_tenant(&self, params: UnassignRoleFromTenantParams) -> Result<()> ``` Unassign a role from a tenant (`DELETE /tenants/{tenantId}/roles/{roleId}`). **Example** ```rust async fn unassign_role_from_tenant( tenant_id: String, role_id: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_role_from_tenant(UnassignRoleFromTenantParams { tenant_id, role_id }) .await?; println!("Unassign a role from a tenant: done"); Ok(()) } ``` ### unassign_role_from_user ```rust pub async fn unassign_role_from_user(&self, params: UnassignRoleFromUserParams) -> Result<()> ``` Unassign a role from a user (`DELETE /roles/{roleId}/users/{username}`). **Example** ```rust async fn unassign_role_from_user( role_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_role_from_user(UnassignRoleFromUserParams { role_id, username }) .await?; println!("Unassign a role from a user: done"); Ok(()) } ``` ### unassign_user_from_group ```rust pub async fn unassign_user_from_group(&self, params: UnassignUserFromGroupParams) -> Result<()> ``` Unassign a user from a group (`DELETE /groups/{groupId}/users/{username}`). **Example** ```rust async fn unassign_user_from_group( group_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_user_from_group(UnassignUserFromGroupParams { group_id, username }) .await?; println!("Unassign a user from a group: done"); Ok(()) } ``` ### unassign_user_from_tenant ```rust pub async fn unassign_user_from_tenant(&self, params: UnassignUserFromTenantParams) -> Result<()> ``` Unassign a user from a tenant (`DELETE /tenants/{tenantId}/users/{username}`). **Example** ```rust async fn unassign_user_from_tenant( tenant_id: String, username: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_user_from_tenant(UnassignUserFromTenantParams { tenant_id, username, }) .await?; println!("Unassign a user from a tenant: done"); Ok(()) } ``` ### unassign_user_task ```rust pub async fn unassign_user_task(&self, params: UnassignUserTaskParams) -> Result<()> ``` Unassign user task (`DELETE /user-tasks/{userTaskKey}/assignee`). **Example** ```rust async fn unassign_user_task(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .unassign_user_task(UnassignUserTaskParams { user_task_key }) .await?; println!("Unassign user task: done"); Ok(()) } ``` ### update_agent_instance ```rust pub async fn update_agent_instance(&self, params: UpdateAgentInstanceParams) -> Result ``` Update agent instance (`PATCH /agent-instances/{agentInstanceKey}`). **Example** ```rust async fn update_agent_instance( agent_instance_key: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .update_agent_instance(UpdateAgentInstanceParams { agent_instance_key, agent_instance_update_request: AgentInstanceUpdateRequest { element_instance_key: Box::new(ElementInstanceKey::assume_exists( "my-element-instance", )), job_key: Box::new(JobKey::assume_exists("my-job")), job_lease_token: JobLeaseToken::assume_exists("my-job-lease"), ..Default::default() }, }) .await?; println!("Update agent instance: done"); Ok(()) } ``` ### update_authorization ```rust pub async fn update_authorization(&self, params: UpdateAuthorizationParams) -> Result<()> ``` Update authorization (`PUT /authorizations/{authorizationKey}`). **Example** ```rust async fn update_authorization(authorization_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .update_authorization(UpdateAuthorizationParams { authorization_key, authorization_request: AuthorizationRequest::AuthorizationIdBasedRequest(Box::new( AuthorizationIdBasedRequest { owner_id: "my-owner".to_string(), owner_type: OwnerTypeEnum::User, resource_id: "my-resource".to_string(), resource_type: ResourceTypeEnum::AuditLog, permission_types: vec![PermissionTypeEnum::Access], }, )), }) .await?; println!("Update authorization: done"); Ok(()) } ``` ### update_global_cluster_variable ```rust pub async fn update_global_cluster_variable(&self, params: UpdateGlobalClusterVariableParams) -> Result ``` Update a global-scoped cluster variable (`PUT /cluster-variables/global/{name}`). **Example** ```rust async fn update_global_cluster_variable(name: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_global_cluster_variable(UpdateGlobalClusterVariableParams { name, update_cluster_variable_request: UpdateClusterVariableRequest { value: Some(serde_json::json!({"key": "value"})), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### update_global_task_listener ```rust pub async fn update_global_task_listener(&self, params: UpdateGlobalTaskListenerParams) -> Result ``` Update global user task listener (`PUT /global-task-listeners/{id}`). **Example** ```rust async fn update_global_task_listener(id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_global_task_listener(UpdateGlobalTaskListenerParams { id, update_global_task_listener_request: UpdateGlobalTaskListenerRequest { r#type: "my-type".to_string(), event_types: vec![GlobalTaskListenerEventTypeEnum::All], ..Default::default() }, }) .await?; println!("{}", result.id); Ok(()) } ``` ### update_group ```rust pub async fn update_group(&self, params: UpdateGroupParams) -> Result ``` Update group (`PUT /groups/{groupId}`). **Example** ```rust async fn update_group(group_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_group(UpdateGroupParams { group_id, group_update_request: GroupUpdateRequest { name: "my-variable".to_string(), ..Default::default() }, }) .await?; println!("{}", result.group_id); Ok(()) } ``` ### update_job ```rust pub async fn update_job(&self, params: UpdateJobParams) -> Result<()> ``` Update job (`PATCH /jobs/{jobKey}`). **Example** ```rust async fn update_job(job_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .update_job(UpdateJobParams { job_key, job_update_request: JobUpdateRequest { changeset: Box::new(JobChangeset::default()), ..Default::default() }, }) .await?; println!("Update job: done"); Ok(()) } ``` ### update_jobs_batch_operation ```rust pub async fn update_jobs_batch_operation(&self, params: UpdateJobsBatchOperationParams) -> Result ``` Update jobs (batch) (`POST /jobs/batch-update`). **Example** ```rust async fn update_jobs_batch_operation() -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_jobs_batch_operation(UpdateJobsBatchOperationParams { job_batch_update_request: JobBatchUpdateRequest { filter: Box::new(JobFilter::default()), changeset: Box::new(JobChangeset::default()), ..Default::default() }, }) .await?; println!("{}", result.batch_operation_key); Ok(()) } ``` ### update_mapping_rule ```rust pub async fn update_mapping_rule(&self, params: UpdateMappingRuleParams) -> Result ``` Update mapping rule (`PUT /mapping-rules/{mappingRuleId}`). **Example** ```rust async fn update_mapping_rule(mapping_rule_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_mapping_rule(UpdateMappingRuleParams { mapping_rule_id, mapping_rule_update_request: Some(MappingRuleUpdateRequest { claim_name: "my-claim-name".to_string(), claim_value: "my-claim-value".to_string(), name: "my-variable".to_string(), }), }) .await?; println!("{}", result.mapping_rule_id); Ok(()) } ``` ### update_role ```rust pub async fn update_role(&self, params: UpdateRoleParams) -> Result ``` Update role (`PUT /roles/{roleId}`). **Example** ```rust async fn update_role(role_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_role(UpdateRoleParams { role_id, role_update_request: RoleUpdateRequest { name: "my-variable".to_string(), ..Default::default() }, }) .await?; println!("{}", result.role_id); Ok(()) } ``` ### update_tenant ```rust pub async fn update_tenant(&self, params: UpdateTenantParams) -> Result ``` Update tenant (`PUT /tenants/{tenantId}`). **Example** ```rust async fn update_tenant(tenant_id: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_tenant(UpdateTenantParams { tenant_id, tenant_update_request: TenantUpdateRequest { name: "my-variable".to_string(), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### update_tenant_cluster_variable ```rust pub async fn update_tenant_cluster_variable(&self, params: UpdateTenantClusterVariableParams) -> Result ``` Update a tenant-scoped cluster variable (`PUT /cluster-variables/tenants/{tenantId}/{name}`). **Example** ```rust async fn update_tenant_cluster_variable( tenant_id: String, name: String, ) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_tenant_cluster_variable(UpdateTenantClusterVariableParams { tenant_id, name, update_cluster_variable_request: UpdateClusterVariableRequest { value: Some(serde_json::json!({"key": "value"})), ..Default::default() }, }) .await?; println!("{}", result.name); Ok(()) } ``` ### update_user ```rust pub async fn update_user(&self, params: UpdateUserParams) -> Result ``` Update user (`PUT /users/{username}`). **Example** ```rust async fn update_user(username: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; let result = client .update_user(UpdateUserParams { username, user_update_request: UserUpdateRequest::default(), }) .await?; println!("{}", result.username); Ok(()) } ``` ### update_user_task ```rust pub async fn update_user_task(&self, params: UpdateUserTaskParams) -> Result<()> ``` Update user task (`PATCH /user-tasks/{userTaskKey}`). **Example** ```rust async fn update_user_task(user_task_key: String) -> Result<(), Box> { let client = CamundaClient::from_env()?; client .update_user_task(UpdateUserTaskParams { user_task_key, user_task_update_request: Some(UserTaskUpdateRequest::default()), }) .await?; println!("Update user task: done"); Ok(()) } ``` ### worker_config ```rust pub fn worker_config(&self, job_type: impl Into) -> JobWorkerConfig ``` Build a `JobWorkerConfig` for `job_type` pre-seeded from the SDK's resolved worker defaults (env-driven: `CAMUNDA_WORKER_*`). Builder methods override fields. ## CamundaOptions Options for constructing a `CamundaClient`. Non-exhaustive: construct with `CamundaOptions::new` and the `with_*` builders, so that later additions here are not breaking changes for callers. ### Fields | Field | Type | Description | | ------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `config` | `HashMap` | Programmatic overrides for `CAMUNDA_*` configuration keys. These take precedence over environment variables. | | `http_client` | `Option` | A pre-built `reqwest::Client` to use for all requests (including OAuth token fetches). When `None`, a default client is created. | | `clock` | `Option>` | The clock the client's cadence resolves through. When `None`, real time is used. | | `random` | `Option>` | The source jitter is drawn from. When `None`, `LiveRandom` is used. | ### Methods | Method | Description | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `new` | Create empty options. | | `with` | Add a single `CAMUNDA_*` configuration override. | | `with_clock` | Resolve the client's cadence through `clock` instead of real time. | | `with_http_client` | Use a custom `reqwest::Client`. | | `with_random` | Draw jitter (retry backoff, worker startup delay, FALCON endpoint selection) from `random`. Pass a `SeededRandom` to make it reproducible. | --- ## Configuration(5) Configuration is resolved from explicit options first, then environment variables, then built-in defaults. ## AuthStrategy Authentication strategy. ### Variants | Variant | Payload | Description | | ------- | ------- | ----------------------------------- | | `OAuth` | — | OAuth 2.0 client-credentials grant. | | `Basic` | — | HTTP Basic authentication. | | `None` | — | No authentication. | ## Authentication Resolves and applies authentication to outgoing requests. Cloning an `Authentication` shares the same underlying OAuth token cache. ### Methods | Method | Description | | ------------- | ---------------------------------------------------------------------------------------------------- | | `apply` | Apply authentication to a generated-client `Configuration`, refreshing the OAuth token if necessary. | | `from_config` | Build an `Authentication` from resolved configuration. | | `strategy` | The configured strategy. | ## CamundaConfig Resolved SDK configuration. ### Fields | Field | Type | Description | | -------------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `rest_address` | `String` | Base REST address of the Orchestration Cluster, including the `/v2` suffix (unless `CAMUNDA_REST_ADDRESS_EXACT` is truthy, in which case the configured address is used as-is, with only trailing slashes trimmed — no `/v2` appended). | | `rest_address_exact` | `bool` | Whether `CAMUNDA_REST_ADDRESS_EXACT` opted the REST address out of the `/v2` suffix. Threaded into Falcon command-stream URL construction so an exact base path is reduced to the bare origin — even when that path itself ends in `/v2`. | | `auth_strategy` | `AuthStrategy` | Authentication strategy. | | `client_id` | `Option` | OAuth 2.0 client id (client-credentials grant). | | `client_secret` | `Option` | OAuth 2.0 client secret. | | `oauth_url` | `Option` | OAuth 2.0 token endpoint URL. | | `token_audience` | `Option` | OAuth token audience (sent as the `audience` form parameter). | | `oauth_scope` | `Option` | OAuth scope (optional). | | `oauth_cache_dir` | `Option` | Directory for the on-disk OAuth token cache (`CAMUNDA_OAUTH_CACHE_DIR`). When set, fetched tokens are persisted so they survive process restarts. | | `basic_auth_username` | `Option` | Basic-auth username. | | `basic_auth_password` | `Option` | Basic-auth password. | | `default_tenant_id` | `Option` | Default tenant id applied to operations that accept one. | | `backpressure_profile` | `BackpressureProfile` | Adaptive backpressure profile (`CAMUNDA_SDK_BACKPRESSURE_PROFILE`). | | `log_level` | `LogLevel` | SDK log level (`CAMUNDA_SDK_LOG_LEVEL`). | | `eventual_poll_default_ms` | `u64` | Default per-operation timeout, in milliseconds, for eventual-consistency polling helpers (`CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS`). | | `retry` | `RetryConfig` | Transient-error HTTP retry policy. | | `tls` | `TlsConfig` | TLS / mutual-TLS configuration. | | `worker_defaults` | `WorkerDefaults` | Default job-worker settings sourced from `CAMUNDA_WORKER_*`. | | `falcon` | `bool` | Whether to upgrade to the nanobpmn command-stream transport when the gateway advertises it (`CAMUNDA_FALCON`, default on). When off, the SDK stays on pure REST even against a nanobpmn gateway. | ### Methods | Method | Description | | ------------------------- | ------------------------------------------------------------------------------------- | | `from_env` | Resolve configuration from process environment variables. | | `from_env_with_overrides` | Resolve configuration from environment variables, with `overrides` taking precedence. | ## ConsistencyOptions Options controlling an eventual-consistency poll. ### Fields | Field | Type | Description | | ----------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | | `timeout` | `Option` | Maximum time to keep polling before giving up. `None` uses the SDK default (`CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS`). | | `interval` | `Duration` | Delay between polling attempts. | | `retry_not_found` | `bool` | Treat a `404` (not-found) result as "not yet consistent" and keep polling, rather than failing. Useful right after creating an entity. | ### Methods | Method | Description | | ----------------- | ---------------------------------------------------------------- | | `interval` | Set the delay between polling attempts. | | `retry_not_found` | Whether to treat `404` as "not yet consistent" (default `true`). | | `timeout` | Set an explicit overall timeout. | ## LogLevel SDK log level, controlling the verbosity of the SDK's structured logging. ### Variants | Variant | Payload | Description | | ------- | ------- | ------------------------- | | `Off` | — | Suppress all SDK logging. | | `Error` | — | | | `Warn` | — | | | `Info` | — | | | `Debug` | — | | | `Trace` | — | | ### Methods | Method | Description | | ------------ | ------------------------------------------------------------- | | `to_tracing` | The matching `tracing::Level`, or `None` when logging is off. | ## RetryConfig Transient-error HTTP retry policy (`CAMUNDA_SDK_HTTP_RETRY_*`). Initiating operations that fail with a retryable signal (HTTP 429/503, or a network error) are retried with exponential backoff and full jitter. ### Fields | Field | Type | Description | | --------------- | ----- | ------------------------------------------------ | | `max_attempts` | `u32` | Maximum number of attempts (1 disables retries). | | `base_delay_ms` | `u64` | Base backoff delay, in milliseconds. | | `max_delay_ms` | `u64` | Maximum backoff delay, in milliseconds. | ## TlsConfig TLS / mutual-TLS configuration (`CAMUNDA_MTLS_*`). A client certificate (`cert` + `key`) enables mutual TLS; a `ca` enables trusting a private certificate authority. Inline PEM values take precedence over the `*_path` file locations. ### Fields | Field | Type | Description | | ---------------- | ---------------- | ----------------------------------------------------------------------- | | `cert` | `Option` | Inline client-certificate PEM (`CAMUNDA_MTLS_CERT`). | | `key` | `Option` | Inline client-key PEM (`CAMUNDA_MTLS_KEY`). | | `ca` | `Option` | Inline CA-certificate PEM (`CAMUNDA_MTLS_CA`). | | `cert_path` | `Option` | Path to a client-certificate PEM (`CAMUNDA_MTLS_CERT_PATH`). | | `key_path` | `Option` | Path to a client-key PEM (`CAMUNDA_MTLS_KEY_PATH`). | | `ca_path` | `Option` | Path to a CA-certificate PEM (`CAMUNDA_MTLS_CA_PATH`). | | `key_passphrase` | `Option` | Passphrase for an encrypted client key (`CAMUNDA_MTLS_KEY_PASSPHRASE`). | ### Methods | Method | Description | | --------------- | --------------------------------------------- | | `is_configured` | Whether any TLS material has been configured. | ## WorkerDefaults Default job-worker settings sourced from `CAMUNDA_WORKER_*`. Used to seed `JobWorkerConfig` defaults. ### Fields | Field | Type | Description | | ---------------------------- | -------- | --------------------------------------------------------------------------------------- | | `timeout_ms` | `i64` | Job activation timeout, in milliseconds (`CAMUNDA_WORKER_TIMEOUT`). | | `max_concurrent_jobs` | `i32` | Maximum concurrent jobs per worker (`CAMUNDA_WORKER_MAX_CONCURRENT_JOBS`). | | `request_timeout_ms` | `i64` | Long-poll request timeout, in milliseconds (`CAMUNDA_WORKER_REQUEST_TIMEOUT`). | | `name` | `String` | Worker name reported to the engine (`CAMUNDA_WORKER_NAME`). | | `startup_jitter_max_seconds` | `u64` | Maximum random startup delay, in seconds (`CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS`). | --- ## Domain keys(Api-reference) The Camunda Domain Type System replaces the bare `String` identifiers emitted by the OpenAPI generator with validated newtypes. Passing a `ProcessInstanceKey` where a `JobKey` is expected is a compile error, so whole classes of identifier mix-ups are caught before the request is sent. Every key type exposes the same methods: | Method | Description | | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `assume_exists(value: impl Into) -> Self` | Construct without validation. Use when side-loading values not received from an API call. | | `into_value(self) -> String` | Consume the newtype and return the underlying string value. | | `is_valid(value: &str) -> bool` | Returns true if the value satisfies this type's constraints. | | `try_new(value: impl Into) -> Result` | Construct with constraint validation. | | `value(&self) -> &str` | The underlying string value. | ## Key types | Key type | Description | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AgentDefinitionKey` | Identifier for an agent definition. | | `AgentHistoryItemKey` | Identifier for an agent history item. | | `AgentInstanceKey` | Identifier for an agent instance. | | `AuditLogEntityKey` | System-generated entity key for an audit log entry. | | `AuditLogKey` | Identifier for an audit log. | | `AuthorizationKey` | Identifier for an authorization. | | `BatchOperationKey` | System-generated key for an batch operation. | | `BusinessId` | An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account. | | `CamundaKey` | Shared behaviour for every Camunda Domain Type (semantic key newtype). | | `CamundaKeyError` | Error returned when a value does not satisfy a Camunda Domain Type's constraints. | | `ClientId` | Validated identifier newtype. | | `ClusterVariableName` | Validated identifier newtype. | | `ConditionalEvaluationKey` | Identifier for a conditional evaluation. | | `DecisionDefinitionId` | Validated identifier newtype. | | `DecisionDefinitionKey` | Identifier for a decision definition. | | `DecisionEvaluationInstanceKey` | Identifier for a decision evaluation instance. | | `DecisionEvaluationKey` | Identifier for a decision evaluation. | | `DecisionInstanceKey` | Identifier for a decision instance. | | `DecisionRequirementsKey` | Identifier for a decision requirements. | | `DeploymentKey` | Identifier for a deployment. | | `DocumentId` | Document Id that uniquely identifies a document. | | `ElementId` | The model-defined id of an element. | | `ElementInstanceKey` | Identifier for an element instance. | | `EndCursor` | Validated identifier newtype. | | `FormId` | The user-defined id for the form | | `FormKey` | Identifier for a form. | | `GlobalListenerId` | Validated identifier newtype. | | `GroupId` | The unique identifier of a group. | | `HistoryItemId` | The client-supplied identifier this item was created with. | | `IncidentKey` | Identifier for an incident. | | `JobKey` | Identifier for a job. | | `JobLeaseToken` | An opaque, engine-minted fencing token identifying a single activation of a job. Returned by Activate Jobs as `ActivatedJobResult.jobLeaseToken` when the job is activated with a lease, and passed back under the same name on fenced job commands and on agent-instance creation/updates, to prove the caller holds the current lease. The token is opaque: clients may rely on its presence and equality only, and must never construct, parse, or otherwise interpret it beyond equality checks. It cannot be minted client-side; only the engine produces it, exactly once per leased activation, and clients must not depend on any particular internal format. | | `MappingRuleId` | Validated identifier newtype. | | `MessageKey` | Identifier for a message. | | `MessageSubscriptionKey` | Identifier for a message subscription. | | `ProcessDefinitionId` | Validated identifier newtype. | | `ProcessDefinitionKey` | Identifier for a process definition. | | `ProcessInstanceKey` | Identifier for a process instance. | | `RoleId` | Validated identifier newtype. | | `ScopeKey` | System-generated key for a scope. A scope can hold variables and represents either an element instance in a BPMN process or the process instance itself. | | `SignalKey` | Identifier for a signal. | | `StartCursor` | Validated identifier newtype. | | `Tag` | Validated identifier newtype. | | `TenantId` | Validated identifier newtype. | | `UserTaskKey` | Identifier for an user task. | | `Username` | Validated identifier newtype. | | `VariableKey` | Identifier for a variable. | Each key also has a matching `ExactMatch` wrapper used by the search filter models to express an exact-value match. --- ## API reference(Api-reference) This reference covers the hand-written ergonomic surface of the Rust SDK: the client, its configuration, the job worker, and the error and backpressure types. | Page | Contents | | ---------------------------------- | ------------------------------------------------------------ | | [CamundaClient](camunda-client.md) | The client and its 262 API methods. | | [Configuration](configuration.md) | Client configuration, authentication, TLS, and retry policy. | | [Job workers](job-workers.md) | Job worker configuration, handlers, and lifecycle. | | [Runtime](runtime.md) | Error types and adaptive backpressure. | | [Domain keys](domain-keys.md) | 47 validated identifier newtypes. | The generated request and response models are not reproduced here — there are several hundred of them. Browse them on [docs.rs](https://docs.rs/camunda-orchestration-api-client/latest/camunda_orchestration_api_client/models/index.html), or use your editor's go-to-definition on any method signature. --- ## Job workers(3) Job workers poll for jobs of a given type, run a handler, and report the outcome back to the cluster. ## Job A job delivered to a worker handler. Wraps the activated job with convenient accessors for variables and custom headers. ### Methods | Method | Description | | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clock` | The clock this job's worker resolves cadence through. Handlers that need to wait must use this rather than `tokio::time::sleep`, so an injected clock controls them. | | `custom_headers` | The job custom headers. | | `element_id` | The BPMN element id that created this job. | | `job_type` | The job type. | | `key` | The job key, as a string. | | `lease_token` | The lease token for this job, or `None` if it was not activated with a lease. | | `process_instance_key` | The process instance key, as a string. | | `raw` | The underlying generated activated-job model. | | `retries` | Remaining retries for this job. | | `variables` | The job variables as a JSON map. | | `variables_as` | Deserialize the job variables into a typed value. | ## JobAction The action a handler asks the worker to take after processing a job. ### Variants | Variant | Payload | Description | | ---------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | `Complete` | `{ variables: Option }` | Complete the job, optionally with output variables. | | `Fail` | `{ error_message: String, retries: Option, retry_backoff_ms: Option, variables: Option }` | Fail the job, decrementing retries (unless `retries` is set explicitly). | | `Error` | `{ error_code: String, error_message: Option, variables: Option }` | Throw a BPMN error to be caught by an error boundary event. | | `Leave` | — | Take no action; the job remains activated until its timeout elapses. | ### Methods | Method | Description | | --------------- | --------------------------------------------------------------------------- | | `complete` | Complete the job with no output variables. | | `complete_with` | Complete the job with output variables. | | `error` | Throw a BPMN error with the given error code. | | `fail` | Fail the job with an error message (retries are decremented by the engine). | | `leave` | Leave the job activated (take no action). | ## JobHandler Boxed, shareable job handler. You normally pass a closure to `JobWorker::run` rather than constructing this directly. ```rust pub type JobHandler = Arc Pin + Send>> + Send + Sync>; ``` ## JobWorker A continuously-polling job worker. Build one via `CamundaClient::create_job_worker`. ### Methods | Method | Description | | ------- | --------------------------------------------------------------------------------------------------- | | `run` | Run the worker loop, processing jobs with `handler` until stopped or an unrecoverable error occurs. | | `spawn` | Spawn the worker loop and return a `JobWorkerHandle` for graceful shutdown. | | `start` | Spawn the worker loop on the Tokio runtime, returning a `tokio::task::JoinHandle`. | ## JobWorkerConfig Configuration for a `JobWorker`. Build with `JobWorkerConfig::new` and the builder methods rather than a struct literal: the type is `#[non_exhaustive]`, so new fields are added without breaking callers. ### Fields | Field | Type | Description | | ---------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `job_type` | `String` | The job type to poll for (required). | | `max_jobs_to_activate` | `i32` | Maximum number of jobs to activate per poll. Also bounds in-flight concurrency. | | `job_timeout_ms` | `i64` | How long the engine reserves an activated job for this worker, in milliseconds. | | `request_timeout_ms` | `i64` | Long-poll timeout for the activate-jobs request, in milliseconds. | | `poll_interval_ms` | `u64` | Delay between polls when the last poll returned no jobs, in milliseconds. | | `worker_name` | `String` | Worker name reported to the engine. | | `fetch_variables` | `Option>` | Variable names to fetch with each job. `None` fetches all variables. | | `tenant_ids` | `Option>` | Tenant ids to activate jobs for. | | `startup_jitter_max_seconds` | `u64` | Maximum random startup delay before the first poll, in seconds. Spreads the initial activate-jobs stampede when many workers start at once. | | `with_lease` | `bool` | Activate jobs with a lease. Each job then carries a lease token that the worker sends back on complete, fail, and throw-error, so the engine can fence the command against a superseded activation (for example after the job timed out and another worker picked it up). Off by default, matching the engine. | | `on_ready` | `Option` | Optional callback fired once when the worker becomes ready to receive jobs (Falcon subscription established, or REST poll loop entered). Set via `JobWorkerConfig::on_ready`. Excluded from `Debug` output. | ### Methods | Method | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `fetch_variables` | Restrict fetched variables to the given names. | | `from_defaults` | Create a config seeded from the SDK's resolved `WorkerDefaults` (env-driven), for the given job type. Builder methods can still override individual fields. | | `job_timeout_ms` | Set the job activation timeout, in milliseconds. | | `max_jobs_to_activate` | Set the maximum number of jobs activated per poll. | | `new` | Create a config for the given job type with sensible defaults. | | `on_ready` | Register a callback fired once when this worker becomes ready to receive jobs (its Falcon subscription is established, or it has entered the REST poll loop). | | `startup_jitter_max_seconds` | Set the maximum random startup delay (seconds) applied before the first poll. | | `tenant_ids` | Set the tenant ids to activate jobs for. | | `with_lease` | Activate jobs with a lease (off by default). Each job then carries a lease token the worker sends back on complete, fail, and throw-error, so the engine can fence the command against a superseded activation. Requires a server that supports job leases; see `JobWorkerConfig::with_lease` for the fail-loud behaviour against one that does not. | | `worker_name` | Set the worker name. | ## JobWorkerHandle A handle to a spawned `JobWorker`, used to stop it and await its completion. Dropping the handle does **not** stop the worker; call `JobWorkerHandle::stop` (or `CamundaClient::stop_all_workers`) for a graceful shutdown that lets in-flight jobs drain. ### Methods | Method | Description | | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `is_finished` | Whether the worker task has finished. | | `job_type` | The job type this worker polls for. | | `shutdown` | Signal the worker to stop and await its graceful shutdown. | | `stop` | Signal the worker to stop. It finishes draining any in-flight jobs from the current batch, then exits before the next poll. Non-blocking. | | `worker_name` | The worker name reported to the engine. | ## ReadyCallback Callback invoked once, when a worker becomes ready to receive jobs — i.e. its Falcon command-stream subscription has been established, or (when Falcon is unavailable) its REST poll loop has been entered. Useful for readiness gates and probes; the SDK guarantees it fires at most once per worker run. ```rust pub type ReadyCallback = Arc; ``` --- ## Runtime(4) Error types returned by every SDK call, and the adaptive backpressure manager that paces requests when the cluster pushes back. ## BackpressureManager Adaptive backpressure manager shared (via `Arc`) by an SDK client and all its clones. Initiating operations call `acquire` before issuing a request and `release` afterwards, recording the outcome with `record_healthy_hint` on success or `record_backpressure` on a backpressure signal. Drain operations (job completion / failure) bypass the gate entirely. ### Methods | Method | Description | | --------------------- | ------------------------------------------------------------------------------- | | `acquire` | Acquire a permit, awaiting until one is available. | | `new` | Create a manager for the given profile, resolving its cadence through `clock`. | | `record_backpressure` | Record a backpressure signal from the server. | | `record_healthy_hint` | Record a successful (non-backpressure) completion, triggering passive recovery. | | `release` | Release a permit and wake one waiter. In the `Legacy` profile this is a no-op. | | `severity` | The current severity level. | | `state` | A snapshot of the manager's internal state, for observability. | ## BackpressureProfile Backpressure tuning profile, configured via `CAMUNDA_SDK_BACKPRESSURE_PROFILE`. ### Variants | Variant | Payload | Description | | ---------- | ------- | ----------------------------------------------------- | | `Balanced` | — | Adaptive global concurrency control (default). | | `Legacy` | — | Observe-only: record signals but never gate requests. | ## BackpressureSeverity Backpressure severity level reported by the manager. ### Variants | Variant | Payload | Description | | --------- | ------- | ---------------------------------------------- | | `Healthy` | — | No recent backpressure. | | `Soft` | — | Backpressure observed; mild throttling. | | `Severe` | — | Sustained backpressure; aggressive throttling. | ## BackpressureState A point-in-time snapshot of the manager's internal state, for observability. ### Fields | Field | Type | Description | | ----------------- | ---------------------- | -------------------------------------------------------------- | | `severity` | `BackpressureSeverity` | Current severity level. | | `consecutive` | `u32` | Consecutive backpressure signals since the last healthy decay. | | `permits_max` | `Option` | Current permit cap, or `None` when unlimited. | | `permits_current` | `u32` | Permits currently held. | | `waiters` | `u32` | Number of callers queued waiting for a permit. | | `backoff_ms` | `u64` | Current backoff-at-floor delay in milliseconds. | ## CamundaError Errors returned by the Camunda SDK. Non-exhaustive: match with a wildcard arm. New variants are added as the SDK grows and are not a breaking change. ### Variants | Variant | Payload | Description | | ---------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `Config` | `(String)` | Configuration was invalid or incomplete (e.g. missing OAuth credentials). | | `Auth` | `(String)` | Failed to obtain or refresh an authentication token. | | `Network` | `(Error)` | A network-level failure occurred (connection, TLS, timeout). | | `Io` | `(Error)` | An I/O failure occurred (e.g. while streaming a multipart upload). | | `Api` | `{ status: u16, body: Option }` | The server returned a non-success HTTP status. | | `Serialization` | `(Error)` | A response payload could not be (de)serialized. | | `Validation` | `(String)` | A domain-type or input constraint was violated before sending the request. | | `Backpressure` | `(String)` | The client-side backpressure controller rejected the request to avoid unbounded memory growth (waiter queue at capacity). | | `EventualConsistencyTimeout` | `{ elapsed_ms: u64 }` | An eventual-consistency polling helper timed out before its predicate was met. | | `LeaseNotHonored` | `{ job_key: String, request_flag: &'static str }` | A worker activated jobs with a lease but the server returned a job carrying no lease token. | ### Methods | Method | Description | | -------- | ------------------------------------------------------------- | | `status` | The HTTP status code, if this is a `CamundaError::Api` error. | ## Clock Time and waiting, as the SDK runtime sees them. Implementations must be cheap to clone behind an `Arc` and safe to share across tasks and threads. ### Methods | Method | Description | | ---------- | ---------------------------------------------------------------- | | `now` | A monotonic reading, for deadlines and elapsed-time measurement. | | `now_wall` | A wall-clock reading, for state that outlives the process. | | `sleep` | Wait for `duration`. | ## ClockController The engine-side clock an `EngineClock` drives. Implemented for `CamundaClient` in terms of the `PUT /clock` and `POST /clock/reset` endpoints. It exists as a trait so the pin semantics can be tested without a running engine. ### Methods | Method | Description | | ------- | ------------------------------------------------------------------- | | `pin` | Pin the engine clock to an absolute instant, in epoch milliseconds. | | `reset` | Return the engine clock to real time. | ## EngineClock A clock bound to the engine's own clock. A wait does not pass time locally -- it moves the _engine_ forward and reports the new instant. Process instances, timers and the SDK therefore agree on what time it is, which a purely local test clock cannot achieve. ```rust let control = CamundaClient::from_env()?; let clock: Arc = Arc::new(EngineClock::new(Arc::new(control))); // Anything the SDK waits on now advances the engine instead of real time. let client = CamundaClient::new(CamundaOptions::new().with_clock(clock))?; ``` A wait resolves against an instant read before the engine is contacted, so waits that overlap -- those that read the clock before any of them lands -- settle at a single instant instead of summing. A wait that begins after an earlier one has landed reads the new time and composes from it, which is the intended behaviour: it really did start later. ### Methods | Method | Description | | ----------- | ---------------------------------------------------------------------------------------------------------------------------- | | `is_pinned` | Whether the engine clock is currently pinned by this clock. | | `new` | Bind to an engine. The clock starts unpinned, following real time until the first wait or `pin_to`. | | `pin_to` | Move the engine clock to an absolute instant, in epoch milliseconds. | | `reset` | Return the engine to real time. Readings follow live time again afterwards, rather than freezing at the last pinned instant. | ## LiveClock Real time. `now` and `sleep` are both tokio's, so they share one timeline: under `#[tokio::test(start_paused = true)]` this clock is already virtual, and a poll loop settles without waiting. That covers cadence in tests; it does not bind the engine's clock, which is what an engine-bound implementation is for. ## LiveRandom The default source: a process-wide generator seeded once from OS entropy. Rust's standard library has no random-number API, so this seeds the same generator as `SeededRandom` from `std::hash::RandomState`, the only entropy std exposes. ## Random A source of uniformly distributed values in `[0, 1)`. Implementations must be safe to share across tasks and threads. ### Methods | Method | Description | | ---------- | ------------------------------------------ | | `next_f64` | A uniformly distributed value in `[0, 1)`. | ## Result Convenience alias used throughout the SDK. ```rust pub type Result = std::result::Result; ``` ## SeededRandom A deterministic `Random`. Two sources with the same seed produce the same sequence, so a test can assert the exact delays the SDK schedules and replay a failure. The generator is SplitMix64, taking the top 53 bits of each output. It is specified across the Camunda SDKs, so one seed yields the same sequence in every language. It is lock-free and safe to share; concurrent callers then share one sequence in nondeterministic order. ### Methods | Method | Description | | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `from_env` | Seeds from `CAMUNDA_TEST_SEED` when it is set, otherwise from a fresh seed. Either way the source reports its seed through `seed` and its `Display` form, so a failing test can be replayed. | | `new` | A source that replays the sequence for `seed`. | | `seed` | The seed this source was created with. | --- ## Authentication(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The strategy is chosen by `CAMUNDA_AUTH_STRATEGY` (or inferred from the presence of OAuth credentials): | Strategy | Required configuration | | -------- | --------------------------------------------------------------------------------------------------------------------------- | | `OAUTH` | `CAMUNDA_CLIENT_ID`, `CAMUNDA_CLIENT_SECRET`, `CAMUNDA_OAUTH_URL`, optional `CAMUNDA_TOKEN_AUDIENCE`, `CAMUNDA_OAUTH_SCOPE` | | `BASIC` | `CAMUNDA_BASIC_AUTH_USERNAME`, `CAMUNDA_BASIC_AUTH_PASSWORD` | | `NONE` | — (local development) | OAuth uses the client-credentials grant. Tokens are cached in memory and refreshed shortly before expiry. --- ## Backpressure(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The client includes an adaptive global backpressure controller, mirroring the JS/Python SDKs. Initiating operations (`create_process_instance`, `activate_jobs`, `deploy_resources`, `topology`) pass through an AIMD-style concurrency gate that reacts to cluster backpressure signals (HTTP `429` / `503` / `RESOURCE_EXHAUSTED`): - Starts **unlimited**; on the first backpressure signal it boots to an initial permit cap and shrinks multiplicatively (soft ×0.70, severe ×0.50 after 3 consecutive signals) down to a floor of 1, with an escalating 25 ms → 2 s backoff while stuck at the floor. - Recovers when quiet: additive growth while unhealthy, then multiplicative growth while healthy, returning to unlimited after a sustained-healthy period. - **Drain operations** (`complete_job`, `fail_job`, `throw_job_error`) bypass the gate so in-flight work always drains, even while new load is being shed. Set `CAMUNDA_SDK_BACKPRESSURE_PROFILE=LEGACY` to observe signals without gating. Inspect the live state via `CamundaClient::backpressure_state`. --- ## Clocks(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Every wait and every elapsed-time measurement in the runtime -- retry backoff, the backpressure gate, token refresh, job-worker polling, eventual-consistency polling -- resolves through an injected clock rather than ambient time. | Clock | Use | | ------------------------------------- | -------------------------------------------------------------------------- | | `LiveClock` | real time; the default when nothing is injected | | `#[tokio::test(start_paused = true)]` | tests; tokio virtualises its own timer, so cadence settles without waiting | | `EngineClock` | drives the Camunda engine's clock and the SDK's together | `start_paused` is the lighter-weight option, but it only virtualises _tokio's_ timer -- the engine carries on in real time. A test whose process only completes once a BPMN timer fires needs `EngineClock`. ## Waiting inside a handler A `Job` carries its worker's clock, so a handler that needs to wait can do it on the same clock as everything else: ```rust use camunda_orchestration_sdk::{CamundaClient, JobAction, JobWorkerConfig}; use std::time::Duration; let client = CamundaClient::from_env()?; client .create_job_worker(JobWorkerConfig::new("payment")) .run(|job| async move { // Short coordination only -- a business wait belongs in the process // as a BPMN timer event. job.clock().sleep(Duration::from_millis(500)).await; JobAction::complete() }) .await?; ``` Keep those waits short -- spacing a retry, letting a resource settle. **A long or business wait belongs in the process as a BPMN timer event, not in a handler.** A handler that sleeps for minutes holds a worker slot for the duration, risks the job timeout expiring underneath it, and hides the delay from the process model, where it would otherwise be visible and changeable without a redeploy. ## Driving the engine's clock `EngineClock` pins the engine's clock instead of passing time locally: ```rust use camunda_orchestration_sdk::{CamundaClient, CamundaOptions, Clock, EngineClock}; use std::sync::Arc; // The control client issues the pin requests, and keeps real time itself. let control = CamundaClient::from_env()?; let clock: Arc = Arc::new(EngineClock::new(Arc::new(control))); // Anything this client waits on now advances the engine instead of real time. let client = CamundaClient::new(CamundaOptions::new().with_clock(clock))?; ``` A wait now moves the engine forward and reports the new instant, so the SDK and the engine agree on what time it is. Overlapping waits settle at a single instant rather than summing: ten concurrent one-second waits advance the engine by one second, not ten. `pin_to` and `reset` are available directly for tests that need to move the engine without waiting. Clock pinning is an alpha engine endpoint, intended for tests rather than production clusters. Pass the control client the pin requests should travel on -- it keeps real time, so the requests themselves are unaffected by the pinning. ## Writing your own `Clock` is a public trait (`now`, `now_wall`, `sleep`); implement it and pass it to `CamundaOptions::with_clock`. `ClockController` is the engine-side half, if you want `EngineClock` to drive something other than a `CamundaClient`. Ambient time is banned in the runtime by `clippy.toml` -- `Instant::now`, `SystemTime::now`, `tokio::time::sleep` and friends -- so cadence cannot quietly drift back onto real time. --- ## Configuration reference(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: | Variable | Purpose | | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `CAMUNDA_REST_ADDRESS` | Base cluster address. `/v2` is appended automatically. | | `CAMUNDA_REST_ADDRESS_EXACT` | When truthy (`true`/`1`/`yes`/`on`), use `CAMUNDA_REST_ADDRESS` as-is — no `/v2` suffix appended (only trailing slashes are trimmed). For gateway/reverse-proxy setups. | | `ZEEBE_REST_ADDRESS` | Alias for `CAMUNDA_REST_ADDRESS`. | | `CAMUNDA_AUTH_STRATEGY` | `OAUTH` \| `BASIC` \| `NONE`. | | `CAMUNDA_CLIENT_ID` / `CAMUNDA_CLIENT_SECRET` | OAuth client credentials. | | `CAMUNDA_OAUTH_URL` | OAuth token endpoint. | | `CAMUNDA_TOKEN_AUDIENCE` | OAuth `audience` parameter. | | `CAMUNDA_OAUTH_SCOPE` | OAuth `scope` parameter. | | `CAMUNDA_BASIC_AUTH_USERNAME` / `CAMUNDA_BASIC_AUTH_PASSWORD` | Basic-auth credentials. | | `CAMUNDA_DEFAULT_TENANT_ID` | Default tenant id (alias `CAMUNDA_TENANT_ID`). Injected into deploys, instance creation, messages, signals, decisions, and worker activation when none is set. | | `CAMUNDA_SDK_BACKPRESSURE_PROFILE` | Adaptive backpressure profile: `BALANCED` (default, adaptive gating) or `LEGACY` (observe-only, no gating). | | `CAMUNDA_OAUTH_CACHE_DIR` | Directory for the cross-process OAuth token cache. Unset disables disk caching (in-memory only). | | `CAMUNDA_SDK_LOG_LEVEL` | SDK log level for `CamundaClient::init_logging`: `OFF` \| `ERROR` \| `WARN` \| `INFO` (default) \| `DEBUG` \| `TRACE`. | | `CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS` | Default timeout for `CamundaClient::eventual` consistency polling (default `10000`). | | `CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS` | Max attempts for transient-error retry of initiating operations (default `4`; `1` disables retry). | | `CAMUNDA_SDK_HTTP_RETRY_BASE_DELAY_MS` / `CAMUNDA_SDK_HTTP_RETRY_MAX_DELAY_MS` | Full-jitter backoff bounds for HTTP retry (defaults `250` / `5000`). | | `CAMUNDA_MTLS_CERT` / `CAMUNDA_MTLS_CERT_PATH` | Client certificate (inline PEM or file path) for mutual TLS. | | `CAMUNDA_MTLS_KEY` / `CAMUNDA_MTLS_KEY_PATH` | Client private key (inline PEM or file path) for mutual TLS. | | `CAMUNDA_MTLS_CA` / `CAMUNDA_MTLS_CA_PATH` | Additional CA root (inline PEM or file path) to trust. | | `CAMUNDA_MTLS_KEY_PASSPHRASE` | Passphrase for an encrypted client key (not supported by the default `native-tls` backend; errors clearly if set). | | `CAMUNDA_WORKER_NAME` | Default worker name for `CamundaClient::worker_config`. | | `CAMUNDA_WORKER_MAX_CONCURRENT_JOBS` | Default max concurrent jobs per worker. | | `CAMUNDA_WORKER_TIMEOUT` / `CAMUNDA_WORKER_REQUEST_TIMEOUT` | Default job-activation and long-poll timeouts (ms). | | `CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS` | Max random startup delay before a worker's first poll, to spread activation stampedes. | --- ## Eventual consistency(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Camunda's read APIs are eventually consistent. Wrap a read in `eventual` to poll through replication lag, transparently retrying `404`s: ```rust use camunda_orchestration_sdk::ConsistencyOptions; // Reads are eventually consistent: poll until the instance is visible, retrying 404s. let instance = client .eventual(ConsistencyOptions::default(), || { let client = client.clone(); let key = process_instance_key.clone(); async move { client.get_process_instance(&key).await } }) .await?; ``` --- ## Installation(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Add the SDK from crates.io: ```bash cargo add camunda-orchestration-sdk cargo add tokio --features full ``` Or add it to `Cargo.toml` directly: ```toml [dependencies] camunda-orchestration-sdk = "11" tokio = { version = "1", features = ["full"] } ``` The async API requires a Tokio runtime. The low-level generated client is also published as [`camunda-orchestration-api-client`](https://crates.io/crates/camunda-orchestration-api-client), but most users only need the `camunda-orchestration-sdk` facade. --- ## Job workers(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ```rust use camunda_orchestration_sdk::{JobAction, JobWorkerConfig}; let worker = client.create_job_worker( JobWorkerConfig::new("payment-service") .max_jobs_to_activate(20) .worker_name("payment-worker"), ); worker .run(|job| async move { println!("handling job {}", job.key()); JobAction::complete_with(serde_json::json!({ "paid": true })) }) .await?; ``` A handler returns a `JobAction`: - `JobAction::complete()` / `JobAction::complete_with(vars)` — complete the job. - `JobAction::fail("message")` — fail the job (retries decremented by the engine). - `JobAction::error("ERROR_CODE")` — throw a catchable BPMN error. - `JobAction::leave()` — take no action; the job remains activated until timeout. The `Job` exposes `key()`, `job_type()`, `process_instance_key()`, `variables()`, and `variables_as::()` for typed deserialization. Enable **job leasing** with `JobWorkerConfig::new("...").with_lease(true)`. Each activated job then carries a lease token that the worker sends back on complete, fail, and throw-error, so the engine fences the command against a superseded activation (for example after the job timed out and another worker picked it up). Leasing is off by default and needs a server that supports it: rather than silently sending unfenced commands, a worker that asked for a lease and is handed a job without a token stops with `CamundaError::LeaseNotHonored`. For managed lifecycle, register workers on the client and stop them all gracefully: ```rust // Spawn managed workers; the client retains them in its registry. client.spawn_worker(client.worker_config("payment-service"), |job| async move { JobAction::complete_with(serde_json::json!({ "paid": true })) }); // ... later, on shutdown: drain in-flight jobs and stop every worker gracefully. client.stop_all_workers().await?; ``` > For complete, runnable programs see > [`examples/worker.rs`](https://github.com/camunda/orchestration-cluster-api-rust/blob/main/examples/worker.rs) > and > [`examples/deploy_start_and_work.rs`](https://github.com/camunda/orchestration-cluster-api-rust/blob/main/examples/deploy_start_and_work.rs). --- ## License(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: This SDK is licensed under the [Apache License, Version 2.0](https://github.com/camunda/orchestration-cluster-api-rust/blob/main/LICENSE). The Camunda OpenAPI specification from which the low-level client is generated is subject to the [Camunda License Version 1.0](https://github.com/camunda/camunda/blob/main/licenses/CAMUNDA-LICENSE-1.0.txt). --- ## Quick start(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: ```rust use camunda_orchestration_sdk::CamundaClient; // Reads CAMUNDA_REST_ADDRESS, CAMUNDA_AUTH_STRATEGY, CAMUNDA_CLIENT_ID, ... from the env. let client = CamundaClient::from_env()?; let topology = client.topology().await?; println!("Gateway version: {}", topology.gateway_version); ``` Programmatic configuration overrides take precedence over the environment: ```rust use camunda_orchestration_sdk::{CamundaClient, CamundaOptions}; let client = CamundaClient::new( CamundaOptions::new() .with("CAMUNDA_REST_ADDRESS", "https://my-cluster.camunda.io") .with("CAMUNDA_AUTH_STRATEGY", "OAUTH") .with("CAMUNDA_CLIENT_ID", "my-client-id") .with("CAMUNDA_CLIENT_SECRET", "my-secret") .with( "CAMUNDA_OAUTH_URL", "https://login.cloud.camunda.io/oauth/token", ) .with("CAMUNDA_TOKEN_AUDIENCE", "zeebe.camunda.io"), )?; ``` > For a complete, runnable program see > [`examples/topology.rs`](https://github.com/camunda/orchestration-cluster-api-rust/blob/main/examples/topology.rs). --- ## Reliability & convenience features :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The runtime mirrors the JS/Python/C# SDKs: - **Transient HTTP retry** — initiating operations retry `429`/`502`/`503`/`504` and network errors with full-jitter backoff (`CAMUNDA_SDK_HTTP_RETRY_*`). Drain operations are never retried blindly. - **Eventual-consistency polling** — `client.eventual(opts, op)` / `eventual_until(opts, op, predicate)` retry `404` reads (the symptom of replication lag) until consistent or the window elapses. - **Mutual TLS** — client cert/key/CA from `CAMUNDA_MTLS_*` (inline PEM or file path). - **OAuth disk token cache** — set `CAMUNDA_OAUTH_CACHE_DIR` to share tokens across processes (atomic write, namespaced per client/audience). - **Default-tenant injection** — `CAMUNDA_DEFAULT_TENANT_ID` is applied automatically wherever a tenant is accepted. - **Configurable logging** — `client.init_logging()` installs a `tracing` subscriber filtered to `CAMUNDA_SDK_LOG_LEVEL`. - **Facade convenience methods** — `cancel_process_instance`, `get_process_instance`, `publish_message`, `correlate_message`, `broadcast_signal`, `evaluate_decision`, `search_variables` / `search_variables_as::()`. - **Worker lifecycle** — `client.spawn_worker(..)` registers managed workers; `running_workers()` lists them and `stop_all_workers().await` drains and stops them all gracefully. Per-worker control via the `JobWorkerHandle` returned from `JobWorker::spawn`. --- ## Reproducible jitter(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Retry backoff, worker startup delay (`CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS`) and FALCON endpoint selection draw from an injected `Random` rather than an ambient generator. The default, `LiveRandom`, is seeded once per process from OS entropy. A `SeededRandom` replays the same sequence for the same seed, so a test can assert the exact delays the SDK schedules instead of a range: ```rust use camunda_orchestration_sdk::{CamundaClient, CamundaOptions, SeededRandom}; use std::sync::Arc; // Seeds from CAMUNDA_TEST_SEED when it is set, otherwise from a fresh seed. let random = Arc::new(SeededRandom::from_env()?); // Log the source: it names the seed and how to replay this run. println!("{random}"); // SeededRandom(seed=...; replay with CAMUNDA_TEST_SEED=...) let client = CamundaClient::new(CamundaOptions::new().with_random(random))?; ``` The seeded generator is specified across the Camunda SDKs, so one seed produces the same draws in every language. A worker draws its startup delay when it is started (`run`, `start` or `spawn`), not when its task first runs, so workers started in sequence draw in that order however the runtime schedules them. `std::hash::RandomState`, the only entropy std exposes, is banned in the runtime by `clippy.toml` outside the `LiveRandom` adapter. --- ## Support status(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: This is a **Technical Preview** of the Rust client for the Camunda 8 Orchestration Cluster API, provided for evaluation and feedback. It gives you a stable foundation to build on now, with a clear path to full support: we do not intend to make breaking changes to the application integration surface, but we do not guarantee that we will not. The SDK will become fully supported with an SLA in a future release. We don't anticipate major changes — and [your feedback](https://github.com/camunda/orchestration-cluster-api-rust/issues) is what helps close that gap. > As a Technical Preview, the API surface may still evolve before it is declared fully > supported. Pin a specific version if you need stability. --- ## The Camunda Domain Type System :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Camunda's spec marks identifier schemas with `x-semantic-type` (e.g. `JobKey`, `ProcessInstanceKey`, and `*ExactMatch` filter variants). The SDK models each as a nominal newtype over its string value, serialized transparently: ```rust use camunda_orchestration_sdk::models::{CamundaKey, JobKey}; let key = JobKey::try_new("2251799813653498")?; // validates pattern & length assert_eq!(key.value(), "2251799813653498"); // Side-load without validation: let loose = JobKey::assume_exists("123"); ``` These types are **generated by post-processing**, because `openapi-generator` does not handle the semantic-key schemas correctly (it emits broken empty structs or drops them). --- ## The full API surface(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The ergonomic facade is **flat and complete**: every REST operation has a method directly on `CamundaClient` (mirroring the JavaScript, Python, and C# SDKs). Each method builds an authenticated request, runs under the adaptive backpressure gate and transient-retry policy, and maps failures to a typed `CamundaError`. Parameter types are re-exported under `camunda_orchestration_sdk::apis::_api`, so everything imports from one crate: ```rust // Every REST operation has a flat, ergonomic method on the client. Parameter types // are imported from `camunda_orchestration_sdk::apis::_api`. use camunda_orchestration_sdk::apis::process_instance_api::SearchProcessInstancesParams; let page = client .search_process_instances(SearchProcessInstancesParams { process_instance_search_query: None, }) .await?; println!("found {} process instance(s)", page.items.len()); ``` A curated set of hot-path operations (`topology`, `create_process_instance`, `deploy_resources`, job operations, messages, decisions, variables) have hand-written wrappers with extra ergonomics — semantic key arguments, typed variables, and default tenant injection. The remaining ~180 methods are **generated** from the operation list by a post-processing hook, so the facade tracks the upstream spec automatically. ## Raw client access If you ever need to drop below the facade, build a generated `Configuration` (base URL + auth applied) and call the generated API directly: ```rust use camunda_orchestration_sdk::client::apis::authentication_api; use camunda_orchestration_sdk::CamundaClient; let client = CamundaClient::from_env()?; let cfg = client.configuration().await?; // base URL + auth applied let me = authentication_api::get_authentication(&cfg).await?; ``` --- ## Versioning(Rust-sdk) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: The SDK major version tracks the Camunda server minor version: use the SDK line that matches your server. | Camunda server | SDK version | Branch | | --------------------- | ----------- | ----------- | | 8.10 | `10.x` | `stable/10` | | 8.11 (in development) | `11.x` | `main` | Releases before 10.0.0 (`0.x`) predate this scheme. --- ## Rust SDK (Technical Preview) :::caution Technical Preview The Rust SDK is a **technical preview**. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability. ::: Ergonomic Rust SDK for the [Camunda 8 Orchestration Cluster REST API](../apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md). This SDK follows the same architecture as the official [JavaScript](https://github.com/camunda/orchestration-cluster-api-js), [Python](https://github.com/camunda/orchestration-cluster-api-python), and [C#](https://github.com/camunda/orchestration-cluster-api-csharp) SDKs: - A **generated low-level client** (`camunda-orchestration-api-client`) produced from the upstream OpenAPI spec (sourced and bundled with [`camunda-schema-bundler`](https://github.com/camunda/camunda-schema-bundler)). - A **hand-written runtime** (`camunda-orchestration-sdk`) on top: environment-driven configuration, authentication, typed errors, and **job workers**. - The **Camunda Domain Type System**: semantic keys such as `JobKey` and `ProcessInstanceKey` are nominal newtypes with validation, not bare strings. Target API version: **8.11** (`main`). --- ## Migrate from the removed Tasklist API :::warning The Tasklist API was removed in Camunda 8.10 and is no longer part of the current documentation set. ::: For the release-level summary of this removal, see the [8.10 release announcement](/reference/announcements-release-notes/8100/8100-announcements.md#removal-of-legacy-apis-tasklist-v1-dependent-features-and-zeebe-process-test). Use the [Orchestration Cluster REST API](/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview.md) to build current task applications, and review [migrating to the Orchestration Cluster REST API](/apis-tools/migration-manuals/migrate-to-camunda-api.md) if you still have clients that call the removed Tasklist API. For current Tasklist behavior, see [Tasklist API changes](/components/tasklist/api-versions.md) and [user task authorization](/components/tasklist/user-task-authorization.md). --- ## Assertions The class `CamundaAssert` is the entry point for all assertions. It is based on [AssertJ](https://github.com/assertj/assertj) and [Awaitility](http://www.awaitility.org/). The assertions follow the style: `assertThat(object_to_test)` + expected property. Use the assertions by adding the following static import in your test class: ```java ``` :::info Assertions are blocking Camunda executes BPMN processes asynchronously. For testing, this means that there might be a delay between creating a process instance and reaching the expected state. The assertions handle the asynchronous behavior and wait until the expected property is fulfilled. Only if the property is not fulfilled within the given time, the assertion fails. ::: :::tip CPT provides the most common assertions. However, if you miss an assertion you can implement a [custom assertion](#custom-assertions) yourself. ::: ## Configuration You can configure the behavior of the assertions in the following ways. ### Assertion timeout By default, assertions wait 10 seconds for the expected property to be fulfilled and wait 100 milliseconds between two attempts. You can change these defaults globally in the configuration or per assertion. Configure the assertions globally in your `application.yml` (or `application.properties`): ```yaml camunda: process-test: assertion: # Set the assertion timeout to 1 minute timeout: PT1M # Set the assertion interval to 100 milliseconds interval: PT0.1S ``` Configure the assertions globally in your `/camunda-container-runtime.properties` file: ```properties # Set the assertion timeout to 1 minute assertion.timeout=PT1M # Set the assertion interval to 100 milliseconds assertion.interval=PT0.1S ``` Alternatively, you can configure the assertions within your test class using `CamundaAssert`. ```java @BeforeAll static void configureAssertions() { // Set the assertion timeout to 1 minute CamundaAssert.setAssertionTimeout(Duration.ofMinutes(1)); // Set the assertion interval to 100 milliseconds CamundaAssert.setAssertionInterval(Duration.ofMillis(100)); } ``` You can override the global timeout for an assertion using `withAssertionTimeout()`. The given timeout applies only to subsequent assertions in the calling chain. ```java assertThat(processInstance) .withAssertionTimeout(Duration.ofMinutes(1)) .isCompleted(); ``` ### Element selector By default, the element instance assertions identify the BPMN elements by their ID. You can change the [ElementSelector](utilities.md#element-selector) globally in your test class using `CamundaAssert`. ```java @BeforeAll static void configureAssertions() { // Identify the BPMN elements by their name CamundaAssert.setElementSelector(ElementSelectors::byName); } ``` ### Judge configuration Override the global [judge configuration](configuration.md#judge-configuration) for a single assertion chain using `withJudgeConfig`. ```java assertThat(processInstance) .withJudgeConfig(config -> config.withThreshold(0.9)) .hasVariableSatisfiesJudge("result", "Contains a valid JSON response with status OK."); ``` ### Semantic similarity configuration Override the global [semantic similarity configuration](configuration.md#semantic-similarity-configuration) for a single assertion chain using `withSemanticSimilarityConfig`. ```java assertThat(processInstance) .withSemanticSimilarityConfig(config -> config.withThreshold(0.9)) .hasVariableSimilarTo("greeting", "Hello, how can I help you today?"); ``` ## Process instance assertions You can verify the process instance state and other properties using `CamundaAssert.assertThat()` or `CamundaAssert.assertThatProcessInstance()`. Use the process instance creation event or a [ProcessInstanceSelector](utilities.md#process-instance-selector) to identify the process instance. ### With process instance event Use the creation event of the create instance command to identify the process instance: ```java // given/when ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // then assertThat(processInstance).isActive(); ``` ### With process instance result Use the result event of the create instance command to identify the process instance: ```java // given/when ProcessInstanceResult processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .withResult() .send() .join(); // then assertThat(processInstance).isActive(); ``` ### With process instance selector Use a [ProcessInstanceSelector](utilities.md#process-instance-selector) to identify the process instance. ```java // by process instance key assertThatProcessInstance(ProcessInstanceSelectors.byKey(processInstanceKey)).isActive(); // by process ID assertThatProcessInstance(ProcessInstanceSelectors.byProcessId("my-process")).isActive(); ``` ### isActive Assert that the process instance is active. The assertion fails if the process instance is completed, terminated, or not created. ```java assertThat(processInstance).isActive(); ``` ### isCompleted Assert that the process instance is completed. The assertion fails if the process instance is active, terminated, or not created. ```java assertThat(processInstance).isCompleted(); ``` ### isTerminated Assert that the process instance is terminated. The assertion fails if the process instance is active, completed, or not created. ```java assertThat(processInstance).isTerminated(); ``` ### isCreated Assert that the process instance is created and either active, completed, or terminated. The assertion fails if the process instance is not created. ```java assertThat(processInstance).isCreated(); ``` ### hasActiveIncidents Assert that the process instance has at least one active incident. The assertion fails if there is no active incident. ```java assertThat(processInstance).hasActiveIncidents(); ``` ### hasNoActiveIncidents Assert that the process instance has no active incidents. The assertion fails if there is any active incident. ```java assertThat(processInstance).hasNoActiveIncidents(); ``` ## Element instance assertions You can verify the element instance states and other properties using `CamundaAssert.assertThat(processInstance)`. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the elements. ### With BPMN element ID Use the BPMN element ID to identify the elements: ```java assertThat(processInstance).hasActiveElements("task_A"); ``` You can customize how the elements are identified in the [configuration](#element-selector). ### With element selector Use a [ElementSelector](utilities.md#element-selector) to identify the elements: ```java // by BPMN element ID assertThat(processInstance).hasActiveElements(ElementSelectors.byId("task_A")); // by BPMN element name assertThat(processInstance).hasActiveElements(ElementSelectors.byName("A")); ``` ### hasActiveElements Assert that the given BPMN elements of the process instance are active. The assertion fails if at least one element is completed, terminated, or not entered. ```java assertThat(processInstance).hasActiveElements("task_A", "task_B"); ``` ### hasActiveElement Assert that the BPMN element of the process instance is active the given amount of times. The assertion fails if the element is not active or not exactly the given amount of times. ```java assertThat(processInstance).hasActiveElement("task_A", 2); ``` ### hasActiveElementsExactly Assert that only the given BPMN elements are active. The assertion fails if at least one element is not active, or other elements are active. ```java assertThat(processInstance).hasActiveElementsExactly("task_A", "task_B"); ``` ### hasNoActiveElements Assert that the given BPMN elements are not active. The assertion fails if at least one element is active. ```java assertThat(processInstance).hasNoActiveElements("task_A", "task_B"); ``` ### hasNotActivatedElements Assert that the given BPMN elements are not activated (i.e. not entered). The assertion fails if at least one element is active, completed, or terminated. This assertion does not wait for the given activities. ```java assertThat(processInstance).hasNotActivatedElements("task_A", "task_B"); ``` ### hasCompletedElements Assert that the given BPMN elements of the process instance are completed. The assertion fails if at least one element is active, terminated, or not entered. ```java assertThat(processInstance).hasCompletedElements("task_A", "task_B"); ``` ### hasCompletedElement Assert that the BPMN element of the process instance is completed the given amount of times. The assertion fails if the element is not completed or not exactly the given amount of times. ```java assertThat(processInstance).hasCompletedElement("task_A", 2); ``` ### hasCompletedElementsInOrder Assert that the given BPMN elements are completed in order. Elements that do not match any of the given element IDs are ignored. The assertion fails if at least one of the elements is not completed, or the order is not correct. ```java assertThat(processInstance).hasCompletedElementsInOrder("task_A", "task_B"); ``` ### hasTerminatedElements Assert that the given BPMN elements of the process instance are terminated. The assertion fails if at least one element is active, completed, or not entered. ```java assertThat(processInstance).hasTerminatedElements("task_A", "task_B"); ``` ### hasTerminatedElement Assert that the BPMN element of the process instance is terminated the given amount of times. The assertion fails if the element is not terminated or not exactly the given amount of times. ```java assertThat(processInstance).hasTerminatedElement("task_A", 2); ``` ## Variable assertions You can verify the process variables using `CamundaAssert.assertThat(processInstance)`. Use the variable name or a [VariableSelector](utilities.md#variable-selector) to identify the variable. ### With variable name Use the variable name to identify the variable: ```java assertThat(processInstance).hasVariable("approved", true); ``` ### With variable selector Use a [VariableSelector](utilities.md#variable-selector) to identify the variable: ```java // by variable name assertThat(processInstance).hasVariable(VariableSelectors.byName("approved"), true); // by partial variable value assertThat(processInstance).hasVariableSatisfies( VariableSelectors.byValueContains("order-123"), Order.class, order -> { }); ``` ### hasVariableNames Assert that the process instance has the given variables. The assertion fails if at least one variable doesn't exist. ```java assertThat(processInstance).hasVariableNames("var1", "var2"); ``` ### hasVariable Assert that the process instance has the variable with the given value. The assertion fails if the variable doesn't exist or has a different value. ```java assertThat(processInstance).hasVariable("var1", 100); ``` ### hasVariables Assert that the process instance has the given variables. The assertion fails if at least one variable doesn't exist or has a different value. ```java Map expectedVariables = // assertThat(processInstance).hasVariables(expectedVariables); ``` ### hasVariableSatisfies Assert that the process instance has a variable with a value that satisfies the given requirements. The assertion transforms the value into the given type. In the consumer, you can use [AssertJ](https://github.com/assertj/assertj) to verify the value. The assertion fails if the variable doesn't exist, the value is of a different type, or the value doesn't satisfy the requirements. ```java assertThat(processInstance).hasVariableSatisfies("order", Order.class, order -> { Assertions.assertThat(order.status()).isEqualTo("approved"); Assertions.assertThat(order.items()) .hasSize(3) .extracting("name", "quantity") .containsExactlyInAnyOrder( tuple("Helmet", 1), tuple("Flag", 1), tuple("Oxygen tank", 3) ); }); ``` ### hasVariableSatisfiesExpression Assert that the process instance has a variable with a value that satisfies the given FEEL expression. The expression is evaluated with a context containing the variable under its name. The expression should access the variable in a Boolean expression, for example, with comparisons. Learn more in the [FEEL expressions introduction](/components/modeler/feel/language-guide/feel-expressions-introduction.md). The assertion fails if the variable doesn't exist or the expression doesn't evaluate to `true`. ```java assertThat(processInstance) .hasVariableSatisfiesExpression( "order", "order.status = \"approved\" and list contains(order.items.name, \"Oxygen tank\")"); ``` ### hasVariableSatisfiesJudge Assert that a process variable satisfies a natural language expectation using a configured LLM judge. The expectation is evaluated only once. The assertion fails if the LLM score is below the configured threshold (default: 0.5). It requires [judge configuration](configuration.md#judge-configuration). When [document attachment](configuration.md#document-attachment) is enabled, Camunda document references found in the variable value are resolved and their content is passed to the judge. ```java assertThat(processInstance) .hasVariableSatisfiesJudge("result", "Contains a valid JSON response with status OK."); ``` ### hasVariableSimilarTo Assert that a process variable is semantically similar to an expected string using a configured embedding model. The variable value and the expected value are converted to embeddings, and the cosine similarity is compared against the configured threshold. The assertion fails if the variable doesn't exist or the similarity score is below the configured threshold (default: 0.5). It requires [semantic similarity configuration](configuration.md#semantic-similarity-configuration). ```java assertThat(processInstance) .hasVariableSimilarTo("greeting", "Hello, how can I help you today?"); ``` ### hasLocalVariableNames Assert that the process instance has the local variables in the scope of the given element. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the element. The assertion fails if at least one variable doesn't exist. ```java assertThat(processInstance).hasLocalVariableNames(ElementSelectors.byId("task_A"), "var1", "var2"); ``` ### hasLocalVariable Assert that the process instance has the local variable with the value in the scope of the given element. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the element. The assertion fails if the variable doesn't exist or has a different value. ```java assertThat(processInstance).hasLocalVariable(ElementSelectors.byId("task_A"), "var1", 100); ``` ### hasLocalVariables Assert that the process instance has the local variables in the scope of the given element. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the element. The assertion fails if at least one variable doesn't exist or has a different value. ```java Map expectedVariables = // assertThat(processInstance).hasLocalVariables(ElementSelectors.byId("task_A"), expectedVariables); ``` ### hasLocalVariableSatisfies Assert that the process instance has a local variable in the scope of the given element with a value that satisfies the given requirements. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the element. The assertion transforms the value into the given type. In the consumer, you can use [AssertJ](https://github.com/assertj/assertj) to verify the value. The assertion fails if the variable doesn't exist, the value is of a different type, or the value doesn't satisfy the requirements. ```java assertThat(processInstance).hasLocalVariableSatisfies( ElementSelectors.byId("send-email"), "to", EmailTo.class, emailTo -> { Assertions.assertThat(emailTo.name()).isEqualTo("Zee"); Assertions.assertThat(emailTo.email()).isEqualTo("zee@camunda.com"); }); ``` ### hasLocalVariableSatisfiesExpression Assert that the process instance has a local variable in the scope of the given element with a value that satisfies the given FEEL expression. Use the BPMN element ID or a [ElementSelector](utilities.md#element-selector) to identify the element. The expression is evaluated with a context containing the variable under its name. The expression should access the variable in a Boolean expression, for example, with comparisons. Learn more in the [FEEL expressions introduction](/components/modeler/feel/language-guide/feel-expressions-introduction.md). The assertion fails if the variable doesn't exist or the expression doesn't evaluate to `true`. ```java assertThat(processInstance) .hasLocalVariableSatisfiesExpression( ElementSelectors.byId("review-order"), "order", "order.status = \"approved\" and list contains(order.items.name, \"Oxygen tank\")"); ``` ### hasLocalVariableSatisfiesJudge Assert that a local variable in the scope of a given element satisfies a natural language expectation using a configured LLM judge. Use the BPMN element ID or an [element selector](utilities.md#element-selector) to identify the element. The expectation is evaluated only once. The assertion fails if the LLM score is below the configured threshold (default: 0.5). It requires [judge configuration](configuration.md#judge-configuration). When [document attachment](configuration.md#document-attachment) is enabled, Camunda document references found in the variable value are resolved and their content is passed to the judge. ```java assertThat(processInstance) .hasLocalVariableSatisfiesJudge( ElementSelectors.byName("Greet Customer"), "output", "Contains a polite greeting addressed to the customer."); ``` ### hasLocalVariableSimilarTo Assert that a local variable in the scope of a given element is semantically similar to an expected string using a configured embedding model. Use the BPMN element ID or an [element selector](utilities.md#element-selector) to identify the element. The assertion fails if the variable doesn't exist or the similarity score is below the configured threshold (default: 0.5). It requires [semantic similarity configuration](configuration.md#semantic-similarity-configuration). ```java assertThat(processInstance) .hasLocalVariableSimilarTo( ElementSelectors.byName("Greet Customer"), "output", "Hello, how can I help you today?"); ``` ## Process instance message assertions You can verify the message subscriptions of a process instance using `CamundaAssert.assertThat(processInstance)`. ### isWaitingForMessage Assert that the process instance is waiting for the given message. The assertion fails if the process instance has no active message subscription for the given message name and optional correlation key. ```java // 1) By message name assertThat(processInstance).isWaitingForMessage("message-name"); // 2) By message name and correlation key assertThat(processInstance).isWaitingForMessage("message-name", "correlation-key"); ``` ### isNotWaitingForMessage Assert that the process instance is not waiting for the given message. The assertion fails if the process instance has an active message subscription for the given message name and optional correlation key. ```java // 1) By message name assertThat(processInstance).isNotWaitingForMessage("message-name"); // 2) By message name and correlation key assertThat(processInstance).isNotWaitingForMessage("message-name", "correlation-key"); ``` ### hasCorrelatedMessage Assert that the given message was correlated to the process instance. The assertion fails if the process instance has no correlated message subscription for the given message name and optional correlation key. ```java // 1) By message name assertThat(processInstance).hasCorrelatedMessage("message-name"); // 2) By message name and correlation key assertThat(processInstance).hasCorrelatedMessage("message-name", "correlation-key"); ``` ## User task assertions You can verify the user task states and other properties using `CamundaAssert.assertThat()` or `CamundaAssert.assertThatUserTask()`. Use a [UserTaskSelector](utilities.md#user-task-selector) to identify the user task. ### With user task selector Use a [UserTaskSelector](utilities.md#user-task-selector) to identify the user task: ```java // by BPMN element ID assertThatUserTask(UserTaskSelectors.byElementId("user-task-id")).isCompleted(); // by user task name assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).isCompleted(); // by process instance key assertThatUserTask(UserTaskSelectors.byProcessInstanceKey(processInstanceKey)).isCompleted(); ``` ### isCreated Asserts that the user task is created. The assertion fails if the task is in any other state. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).isCreated(); ``` ### isCompleted Asserts that the user task is completed. The assertion fails if the task is in any other state. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).isCompleted(); ``` ### isCanceled Asserts that the user task is canceled. The assertion fails if the task is in any other state. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).isCanceled(); ``` ### isFailed Asserts that the user task is failed. The assertion fails if the task is in any other state. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).isFailed(); ``` ### hasAssignee Asserts that the user task has the expected assignee. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasAssignee("John Doe"); ``` ### hasPriority Asserts that the user task has the expected priority. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasPriority(100); ``` ### hasElementId Asserts that the user task has the expected BPMN element ID. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasElementId("user-task-id"); ``` ### hasName Asserts that the user task has the expected name. ```java assertThatUserTask(UserTaskSelectors.byElementId("user-task-id")).hasName("User Task"); ``` ### hasProcessInstanceKey Asserts that the user task has the expected process instance key. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasProcessInstanceKey(processInstanceKey); ``` ### hasDueDate Asserts that the user task has the expected due date. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasDueDate("2023-10-01T00:00:00Z"); ``` ### hasCompletionDate Asserts that the user task has the expected completion date. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasCompletionDate("2023-10-01T00:00:00Z"); ``` ### hasFollowUpDate Asserts that the user task has the expected follow-up date. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasFollowUpDate("2023-10-01T00:00:00Z"); ``` ### hasCreationDate Asserts that the user task has the expected creation date. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasCreationDate("2023-10-01T00:00:00Z"); ``` ### hasCandidateGroup Asserts that the user task has the expected candidate group. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasCandidateGroup("groupA"); ``` ### hasCandidateGroups Asserts that the user task has the expected candidate groups. ```java assertThatUserTask(UserTaskSelectors.byTaskName("User Task")).hasCandidateGroups("groupA", "groupB", "groupC"); ``` ## Decision assertions You can verify the decision evaluation state and other properties using `CamundaAssert.assertThat()` or `CamundaAssert.assertThatDecision()`. Use the evaluate decision response or a [DecisionSelector](utilities.md#decision-selector) to identify the decision instance. ### With evaluate decision response Use the response of the evaluate decision command to identify the decision instance: ```java // given/when EvaluateDecisionResponse response = client .newEvaluateDecisionCommand() .decisionId(decisionId) .variables(variables) .send() .join(); // then assertThat(response).isEvaluated(); ``` ### With decision selector Use a [DecisionSelector](utilities.md#decision-selector) to identify the decision instance: ```java // by decision ID assertThatDecision(DecisionSelectors.byId("decision-id")).isEvaluated(); // by decision name assertThatDecision(DecisionSelectors.byName("Decision Name")).isEvaluated(); // by process instance key assertThatDecision(DecisionSelectors.byProcessInstanceKey(processInstanceKey)).isEvaluated(); ``` ### isEvaluated Asserts that the decision is evaluated. The assertion fails if the evaluation failed and outputs the evaluation failure message. ```java assertThatDecision(DecisionSelectors.byId("decision-id")).isEvaluated(); ``` ### hasOutput Asserts that the decision is evaluated with the expected output. The verification fails if the decision evaluation failed or the output does not match. ```java // With primitive value assertThatDecision(DecisionSelectors.byId("decision-id")).hasOutput("output"); // With a map of values Map expectedOutput = // assertThatDecision(DecisionSelectors.byId("decision-id")).hasOutput(expectedOutput); // With a list of values List expectedOutput = // assertThatDecision(DecisionSelectors.byId("decision-id")).hasOutput(expectedOutput); ``` ### hasMatchedRules Asserts that the decision table has matched the given rule indices. The evaluation fails if the decision evaluation failed or at least one of the expected matched rules didn't match. The assertion will pass if the expected indexes are a subset of the total matches, e.g. `hasMatchedRules(1, 2)` will pass if rules [1, 2, 3] matched. ```java // Single rule assertThatDecision(DecisionSelectors.byId("decision-id")).hasMatchedRules(1); // Multiple rules assertThatDecision(DecisionSelectors.byId("decision-id")).hasMatchedRules(1, 3); ``` ### hasNotMatchedRules Asserts that the decision table has not matched the given rule indices. The assertion will fail if the decision evaluation has failed or at least one of the rules indexes has matched. ```java // Single rule assertThatDecision(DecisionSelectors.byId("decision-id")).hasNotMatchedRules(2); // Multiple rules assertThatDecision(DecisionSelectors.byId("decision-id")).hasNotMatchedRules(2, 4); ``` ### hasNoMatchedRules Asserts that the decision table matched no rules. The assertion will fail if the decision evaluation has failed or at least one rule matched. ```java assertThatDecision(DecisionSelectors.byId("decision-id")).hasNoMatchedRules(); ``` ## Value assertions You can verify arbitrary string values, independent of a process instance, using `CamundaAssert.assertThatValue()`. This is useful for evaluating values produced outside of a running process. For example, a single property of a variable object, with the same LLM judge and embedding-based similarity checks used for process variables. ### satisfiesJudge Assert that the given value satisfies a natural language expectation using a configured LLM judge. The expectation is evaluated only once. The assertion fails if the LLM score is below the configured threshold (default: 0.5). It requires [judge configuration](configuration.md#judge-configuration). [Document attachment](configuration.md#document-attachment) is not supported for value assertions. To evaluate document content, use [hasVariableSatisfiesJudge](#hasvariablesatisfiesjudge) or [hasLocalVariableSatisfiesJudge](#haslocalvariablesatisfiesjudge) instead. ```java assertThatValue("The order has been shipped and will arrive tomorrow.") .satisfiesJudge("Confirms that the order is on its way to the customer."); ``` Override the global judge configuration for a single assertion chain using `withJudgeConfig`. ```java assertThatValue(response) .withJudgeConfig(config -> config.withThreshold(0.9)) .satisfiesJudge("Contains a valid JSON response with status OK."); ``` ### isSimilarTo Assert that the given value is semantically similar to an expected string using a configured embedding model. Both values are converted to embeddings, and the cosine similarity is compared against the configured threshold. The assertion fails if the similarity score is below the configured threshold (default: 0.5). It requires [semantic similarity configuration](configuration.md#semantic-similarity-configuration). ```java assertThatValue("Hi there, what can I do for you?") .isSimilarTo("Hello, how can I help you today?"); ``` Override the global semantic similarity configuration for a single assertion chain using `withSemanticSimilarityConfig`. ```java assertThatValue(response) .withSemanticSimilarityConfig(config -> config.withThreshold(0.9)) .isSimilarTo("Hello, how can I help you today?"); ``` ## Custom assertions You can build your own assertions similar to the assertions from CPT. - Use the preconfigured Camunda client to retrieve the process data. - Use [AssertJ](https://github.com/assertj/assertj)'s assertions to verify the expected properties. - Use [Awaitility](http://www.awaitility.org/) around verifications to compensate delays until the data is available. ```java @Test void shouldCreateUserTask() { // given: the process is deployed // when: create a process instance // then Awaitility.await() .ignoreException(ClientException.class) .untilAsserted( () -> { final List userTasks = getUserTasks(processInstanceKey); assertThat(userTasks).hasSize(1); final UserTask userTask = userTasks.getFirst(); assertThat(userTask) .returns("task", UserTask::getName) .returns("me", UserTask::getAssignee); }); } // helper method private List getUserTasks(final long processInstanceKey) { return client .newUserTaskSearchRequest() .filter(filter -> filter.processInstanceKey(processInstanceKey).state(UserTaskState.CREATED)) .send() .join() .items(); } ``` --- ## Configuration(Testing) By default, CPT uses a runtime based on [Testcontainers](#testcontainers-runtime). You can customize the runtime to your needs, or replace it with a [Remote runtime](#remote-runtime), for example, if you can't install a Docker runtime. ## Configuration files CPT properties can be set directly in a configuration file or resolved from environment variables. The file location and resolution mechanism depend on your setup: Configure CPT in your `application.yml` (or `application.properties`). Properties also support [Spring's external configuration](https://docs.spring.io/spring-boot/reference/features/external-config.html), so you can set them through environment variables, system properties, or additional profiles. Configure CPT in a `camunda-container-runtime.properties` file. Properties support automatic environment variable resolution. If a property is not explicitly set, it is resolved from an environment variable by prepending `CAMUNDA_PROCESSTEST_`, replacing dots with underscores, removing hyphens, and converting to uppercase. For example, `judge.chatModel.apiKey` resolves to `CAMUNDA_PROCESSTEST_JUDGE_CHATMODEL_APIKEY`. ## Testcontainers runtime The default runtime of CPT is based on [Testcontainers](https://java.testcontainers.org/). It uses the Camunda Docker image and includes the following components: - Camunda - Connectors :::note Why Testcontainers? CPT follows a common practice by using Testcontainers to provide an isolated, reproducible, and easily configurable environment using Docker containers. This ensures consistent test results, simplifies setup across different platforms, and allows integration with Camunda and other components without manual installation or complex dependencies. ::: :::tip Shared runtime If you use the same runtime configuration for all test classes, then you can use a [shared runtime](#shared-runtime) to speed up the test execution. ::: ### Prerequisites - A Docker-API compatible container runtime, such as Docker on Linux or Docker Desktop on Mac and Windows. If you're experiencing issues with your Docker runtime, have a look at the [Testcontainers documentation](https://java.testcontainers.org/supported_docker_environment/). ### Usage By default, the runtime uses the same version of the Camunda Docker image as the Maven module. The Connectors Docker image doesn't follow the Camunda version. The runtime uses a fixed, published Connectors version for each CPT release. To use another version, set `connectors-docker-image-version`. You can change the Docker images and other runtime properties in the following way. If you change the version of the Camunda Docker image, use the same version as CPT or later. CPT doesn't support older Camunda runtimes. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Change the version of the Camunda Docker image camunda-docker-image-version: 8.11.0 # Change the Camunda Docker image camunda-docker-image-name: camunda/camunda # Set additional Camunda environment variables camunda-env-vars: env_1: value_1 # Expose additional Camunda ports camunda-exposed-ports: - 9000 # Change the Camunda logger name camunda-logger-name: tc.camunda # Enable Connectors connectors-enabled: true # Change the Connectors Docker image connectors-docker-image-name: camunda/connectors # Change version of the Connectors Docker image connectors-docker-image-version: 8.8.0 # Set additional Connectors environment variables connectors-env-vars: env_1: value_1 # Set cluster secrets cluster-secrets: secret_1: value_1 # Set legacy Connectors secrets connectors-secrets: secret_1: value_1 # Expose additional Connectors ports connectors-exposed-ports: - 9010 # Change the Connectors logger name connectors-logger-name: tc.connectors ``` In your `/camunda-container-runtime.properties` file: ```properties # Change the version of the Camunda Docker image camundaDockerImageVersion=8.11.0 # Change the Camunda Docker image camundaDockerImageName=camunda/camunda # Set additional Camunda environment variables camundaEnvVars.env_1=value_1 camundaEnvVars.env_2=value_2 # Expose additional Camunda ports camundaExposedPorts[0]=9000 camundaExposedPorts[1]=9001 # Change the Camunda logger name camundaLoggerName=tc.camunda # Enable Connectors connectorsEnabled=true # Change version of the Connectors Docker image connectorsDockerImageVersion=8.8.0 # Change the Connectors Docker image connectorsDockerImageName=camunda/connectors # Set additional Connectors environment variables connectorsEnvVars.env_1=value_1 connectorsEnvVars.env_2=value_2 # Set legacy Connectors secrets connectorsSecrets.secret_1=value_1 connectorsSecrets.secret_2=value_2 # Expose additional Connectors ports connectorsExposedPorts[0]=9010 connectorsExposedPorts[1]=9011 # Change the Connectors logger name connectorsLoggerName=tc.connectors ``` Alternatively, you can register the JUnit extension manually and use the fluent builder: ```java package com.example; // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() // Change the version of the Camunda Docker image .withCamundaDockerImageVersion("8.11.0") // Change the Camunda Docker image .withCamundaDockerImageName("camunda/camunda") // Set additional Camunda environment variables .withCamundaEnv("env_1", "value_1") // Expose additional Camunda ports .withCamundaExposedPort(4567) // Enable Connectors .withConnectorsEnabled(true) // Change the Connectors Docker image .withConnectorsDockerImageName("camunda/connectors") // Change version of the Connectors Docker image .withConnectorsDockerImageVersion("8.8.0") // Set additional Connectors environment variables .withConnectorsEnv("env_1", "value_1") // Set cluster secrets .withClusterSecret("secret_1", "value_1") // Set legacy Connectors secrets .withConnectorsSecret("secret_1", "value_1"); } ``` ### Set cluster secrets Cluster secrets are the default way to provide secrets in tests with Camunda 8.10+. They let processes that reference `=camunda.secrets.` resolve in your tests. This feature requires Camunda Process Test 8.10.6+. Set cluster secrets with the `cluster-secrets` property (Spring) or `withClusterSecret(name, value)` and `withClusterSecrets(map)` (Java builder). You can't set cluster secrets in `camunda-container-runtime.properties`. - In a managed or shared runtime, CPT writes each secret to a temporary file, copies the file into the Camunda container, and sets `CAMUNDA_SECRETS_STORES_FILE_DEFAULT_PATH`. - CPT fixes the secrets when the runtime starts. You can't change them per test. - Use `connectors-secrets` only for the legacy `{{secrets.X}}` syntax. It doesn't populate the cluster secret store. See [Connectors](./connectors.md#set-cluster-secrets) for examples. - To learn how secrets resolve, see [secrets](/components/concepts/secrets.md) and [secret resolution](/components/concepts/secret-resolution.md). :::warning CPT drops trailing newlines from cluster secret values. Don't rely on a trailing newline in a value. This is a known issue ([camunda/camunda#66616](https://github.com/camunda/camunda/issues/66616)). ::: ### Shared runtime By default, CPT creates a new runtime for each test class. You can change this behavior and use a shared Testcontainers runtime for all test classes to speed up the test execution. You can enable the shared runtime in the following way. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Switch from a managed to a shared runtime runtime-mode: shared ``` All test classes using the shared runtime will use the same runtime configuration. You can't change the runtime configuration for individual test classes, such as enabling connectors or setting connector secrets. However, you can switch to a managed runtime for individual test classes and override the runtime configuration. ```java @SpringBootTest( properties = { // Use a managed runtime for a different configuration "camunda.process-test.runtime-mode=managed", "camunda.process-test.connectors-enabled=true", } ) @CamundaSpringProcessTest public class MyProcessTest { // } ``` In your `/camunda-container-runtime.properties` file: ```properties # Switch from a managed to a shared runtime runtimeMode=shared ``` All test classes using the shared runtime will use the same runtime configuration. You can't change the runtime configuration for individual test classes, such as enabling connectors or setting connector secrets. However, you can switch to a managed runtime for individual test classes and override the runtime configuration. ```java package com.example; // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() // Use a managed runtime for a different configuration .withRuntimeMode(CamundaProcessTestRuntimeMode.MANAGED) .withConnectorsEnabled(true); } ``` ### Multi-tenancy Multi-tenancy is disabled by default. You can enable multi-tenancy in the following way: In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Enable multi-tenancy multi-tenancy-enabled: true ``` By enabling multi-tenancy, the runtime enables Basic Auth security and creates a default user with username/password `demo` with admin rights to interact with the runtime. A process test using multi-tenancy could look like the following example: ```java @SpringBootTest @CamundaSpringProcessTest public class MyProcessTest { private static final String DEFAULT_USERNAME = "demo"; private static final String TENANT_ID_1 = "tenant-1"; private static final String TENANT_ID_2 = "tenant-2"; @Autowired private CamundaClient client; @Autowired private CamundaProcessTestContext processTestContext; private CamundaClient clientForTenant1; @BeforeEach void setupTenants() { // create tenants client.newCreateTenantCommand().tenantId(TENANT_ID_1).name(TENANT_ID_1).send().join(); client.newCreateTenantCommand().tenantId(TENANT_ID_2).name(TENANT_ID_2).send().join(); // assign the default user to the tenants client .newAssignUserToTenantCommand() .username(DEFAULT_USERNAME) .tenantId(TENANT_ID_1) .send() .join(); client .newAssignUserToTenantCommand() .username(DEFAULT_USERNAME) .tenantId(TENANT_ID_2) .send() .join(); // create a client for tenant 1 clientForTenant1 = processTestContext.createClient( clientBuilder -> clientBuilder.defaultTenantId(TENANT_ID_1)); } @Test void createProcessInstance() { // given clientForTenant1 .newDeployResourceCommand() .addResourceFromClasspath("bpmn/order-process.bpmn") .send() .join(); // when final var processInstance = clientForTenant1 .newCreateInstanceCommand() .bpmnProcessId("order-process") .latestVersion() .variable("order_id", "order-1") .send() .join(); // then assertThatProcessInstance(processInstance).isCreated(); Assertions.assertThat(processInstance.getTenantId()).isEqualTo(TENANT_ID_1); } } ``` In your `/camunda-container-runtime.properties` file: ```properties # Enable multi-tenancy multiTenancyEnabled=true ``` Alternatively, you can register the JUnit extension manually and use the fluent builder: ```java package com.example; // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() // Enable multi-tenancy .withMultiTenancyEnabled(true); } ``` By enabling multi-tenancy, the runtime enables Basic Auth security and creates a default user with username/password `demo` with admin rights to interact with the runtime. A process test using multi-tenancy could look like the following example: ```java @CamundaProcessTest public class MyProcessTest { private static final String DEFAULT_USERNAME = "demo"; private static final String TENANT_ID_1 = "tenant-1"; private static final String TENANT_ID_2 = "tenant-2"; private CamundaClient client; private CamundaProcessTestContext processTestContext; private CamundaClient clientForTenant1; @BeforeEach void setupTenants() { // create tenants client.newCreateTenantCommand().tenantId(TENANT_ID_1).name(TENANT_ID_1).send().join(); client.newCreateTenantCommand().tenantId(TENANT_ID_2).name(TENANT_ID_2).send().join(); // assign the default user to the tenants client .newAssignUserToTenantCommand() .username(DEFAULT_USERNAME) .tenantId(TENANT_ID_1) .send() .join(); client .newAssignUserToTenantCommand() .username(DEFAULT_USERNAME) .tenantId(TENANT_ID_2) .send() .join(); // create a client for tenant 1 clientForTenant1 = processTestContext.createClient( clientBuilder -> clientBuilder.defaultTenantId(TENANT_ID_1)); } @Test void createProcessInstance() { // given clientForTenant1 .newDeployResourceCommand() .addResourceFromClasspath("bpmn/order-process.bpmn") .send() .join(); // when final var processInstance = clientForTenant1 .newCreateInstanceCommand() .bpmnProcessId("order-process") .latestVersion() .variable("order_id", "order-1") .send() .join(); // then assertThatProcessInstance(processInstance).isCreated(); Assertions.assertThat(processInstance.getTenantId()).isEqualTo(TENANT_ID_1); } } ``` :::info You should assign the default user (`demo`) to all tenants to ensure that the assertions can access all data. ::: ### Custom containers You can add custom containers to the managed or shared Testcontainers runtime, for example, to add a database, an MCP server, or a mock service. The CPT runtime manages the lifecycle of the custom containers and ensures that they are started before the tests and stopped after the tests. The custom containers are added to the same network as the Camunda and Connectors containers to allow communication between the containers. You can add a custom container in the following way. Implement a `CamundaProcessTestContainerProvider` bean that creates the custom container. In this example, we create a WireMock container to mock external HTTP calls in the tests. ```java @Configuration public class TestConfig { @Bean public CamundaProcessTestContainerProvider wireMockProvider() { return containerContext -> new WireMockContainer(); } // A WireMock container to mock external HTTP calls in the tests private static final class WireMockContainer extends GenericContainer { public WireMockContainer() { // Configure the Docker image super("wiremock/wiremock:3.13.0"); // Configure the network alias for communication between the containers withNetworkAliases("wiremock"); // Configure the ports to expose withExposedPorts(8080); // Configure the logger withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("tc.wiremock"), true)); // Configure the wait strategy to ensure that the container is ready before running the tests waitingFor( Wait.forHttp("/__admin/mappings").forPort(8080).withMethod("GET").forStatusCode(200)); // Custom container-specific configuration withCopyFileToContainer( // Copy the WireMock mapping file for the HTTP stubs to the container MountableFile.forClasspathResource("/wiremock/mapping.json"), "/home/wiremock/mappings/mapping.json"); } } } ``` In the `application.yml` configuration, we use a connector secret to bind the connector task to the WireMock container using its network alias `wiremock` and the exposed port `8080`. ```yaml camunda: process-test: connectors-enabled: true connectors-secrets: BASE_URL: http://wiremock:8080 ``` Implement the `CamundaProcessTestContainerProvider` interface that creates the custom container. In this example, we create a WireMock container to mock external HTTP calls in the tests. ```java public class WireMockContainerProvider implements CamundaProcessTestContainerProvider { @Override public GenericContainer createContainer(final CamundaProcessTestContainerContext containerContext) { return new WireMockContainer(); } // A WireMock container to mock external HTTP calls in the tests private static final class WireMockContainer extends GenericContainer { public WireMockContainer() { // Configure the Docker image super("wiremock/wiremock:3.13.0"); // Configure the network alias for communication between the containers withNetworkAliases("wiremock"); // Configure the ports to expose withExposedPorts(8080); // Configure the logger withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("tc.wiremock"), true)); // Configure the wait strategy to ensure that the container is ready before running the tests waitingFor( Wait.forHttp("/__admin/mappings").forPort(8080).withMethod("GET").forStatusCode(200)); // Custom container-specific configuration withCopyFileToContainer( // Copy the WireMock mapping file for the HTTP stubs to the container MountableFile.forClasspathResource("/wiremock/mapping.json"), "/home/wiremock/mappings/mapping.json"); } } } ``` Register the container provider using the Java ServiceLoader mechanism by creating a file `io.camunda.process.test.api.runtime.CamundaProcessTestContainerProvider` in the `src/test/resources/META-INF/services` directory of your project and adding the fully qualified name of the container provider implementation: ``` com.example.WireMockContainerProvider ``` In the `/camunda-container-runtime.properties` configuration file, we use a connector secret to bind the connector task to the WireMock container using its network alias `wiremock` and the exposed port `8080`. ```properties connectorsEnabled=true connectorsSecrets.BASE_URL=http://wiremock:8080 ``` Alternatively, you can register the container provider on the JUnit extension using the fluent builder: ```java // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withContainerProvider(new WireMockContainerProvider()) .withConnectorsEnabled(true) .withConnectorsSecret("BASE_URL", "http://wiremock:8080"); } ``` ## Remote runtime Instead of using the managed [Testcontainers runtime](#testcontainers-runtime), you can configure CPT to connect to a remote runtime, for example, to a local [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) running on your machine. When to use it: - You can't install a Docker-API compatible container runtime - Debugging of test case on your local machine :::info You are responsible for configuring and managing the remote runtime. Ensure the runtime is running before executing tests. Keep in mind that CPT automatically deletes all data between test runs to maintain a clean state. ::: ### Prerequisites - Install a Camunda 8 runtime of the same version as CPT or later, for example, [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md). CPT doesn't support older Camunda runtimes. - Expose the management API port (`9600`) to delete the data between test runs (by default for a local Camunda 8 Run) - If [authorizations](/components/concepts/access-control/authorizations.md) are enabled, grant the `READ` and `UPDATE` permissions on the `SYSTEM` resource to the user or client that CPT uses to connect to the runtime. CPT needs these permissions to change the clock. You set up this user or client in the [client configuration](#client-configuration). ### Usage You need to set the following property to switch to a remote runtime. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Switch from a managed to a remote runtime runtime-mode: remote ``` In your `/camunda-container-runtime.properties` file: ```properties # Switch from a managed to a remote runtime runtimeMode=remote ``` Alternatively, you can register the JUnit extension manually and use the fluent builder: ```java package com.example; // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() // Switch from a managed to a remote runtime .withRuntimeMode(CamundaProcessTestRuntimeMode.REMOTE); } ``` In a remote runtime, the cluster owns its secret store. CPT ignores `cluster-secrets` and logs a warning. Configure secrets on the cluster instead. ### Change the connection By default, CPT connects to a remote Camunda 8 Run running on your local machine. CPT checks if the remote runtime is available and ready, before running the tests. It waits up to 1 minute for the remote runtime to become ready. You can change the connection to the remote runtime and the connection time in the following way. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: runtime-mode: remote # Change the connection (default: Camunda 8 Run) remote: camunda-monitoring-api-address: http://0.0.0.0:9600 connectors-rest-api-address: http://0.0.0.0:8086 # The connection timeout in ISO-8601 duration format (default: PT1M) runtime-connection-timeout: PT1M client: rest-address: http://0.0.0.0:8080 grpc-address: http://0.0.0.0:26500 ``` :::note The properties `camunda.process-test.remote.client.rest-address` and `camunda.process-test.remote.client.grpc-address` are deprecated. Use `camunda.client.rest-address` and `camunda.client.grpc-address` instead. ::: In your `/camunda-container-runtime.properties` file: ```properties runtimeMode=remote # Change the connection (default: Camunda 8 Run) remote.camundaMonitoringApiAddress=http://0.0.0.0:9600 remote.connectorsRestApiAddress=http://0.0.0.0:8086 camunda.client.gateway.grpc.address=http://0.0.0.0:26500 camunda.client.gateway.rest.address=http://0.0.0.0:8080 # The connection timeout in ISO-8601 duration format (default: PT1M) remote.runtimeConnectionTimeout=PT1M ``` :::note The properties `remote.client.grpcAddress` and `remote.client.restAddress` are deprecated. Use `camunda.client.gateway.grpc.address` and `camunda.client.gateway.rest.address` instead. ::: Alternatively, register the JUnit extension manually and use the fluent builder: ```java package com.example; // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withRuntimeMode(CamundaProcessTestRuntimeMode.REMOTE) // Change the connection (default: Camunda 8 Run) .withCamundaClientBuilderFactory(() -> CamundaClient.newClientBuilder() .restAddress(URI.create("http://0.0.0.0:8080")) .grpcAddress(URI.create("http://0.0.0.0:26500")) ) .withRemoteCamundaMonitoringApiAddress(URI.create("http://0.0.0.0:9600")) .withRemoteConnectorsRestApiAddress(URI.create("http://0.0.0.0:8086")) // Change the connection timeout (default: PT1M) .withRemoteRuntimeConnectionTimeout(Duration.ofMinutes(1)); } ``` ### Debugging of test cases You can use a remote runtime to debug your test cases on your local machine. Set breakpoints in your test case and run the test in debug mode from your IDE. When the test execution stops at a breakpoint, you can inspect the process instance state using Operate and the user task state using Tasklist. You can also use the Camunda client to interact with the runtime from the debugger console. ## Client configuration CPT configures the Camunda client automatically based on the runtime mode. You can customize the client configuration beyond the connection addresses, for example, to set up authentication. CPT applies all [Camunda client configurations](/apis-tools/camunda-spring-boot-starter/configuration.md) from your `application.yml`. For example, to configure Basic authentication for a remote runtime: ```yaml camunda: client: grpc-address: http://localhost:26500 rest-address: http://localhost:8080 auth: method: basic username: demo password: demo ``` For full flexibility, provide a `CamundaClientBuilderFactory` bean: ```java @Bean public CamundaClientBuilderFactory customClientBuilderFactory() { return () -> CamundaClient.newClientBuilder() .restAddress(URI.create("http://0.0.0.0:8080")) .grpcAddress(URI.create("http://0.0.0.0:26500")) .credentialsProvider( CredentialsProvider.newBasicAuthCredentialsProviderBuilder() .username("demo") .password("demo") .build()); } ``` In the `camunda-container-runtime.properties` file, you can set any [`ClientProperties`](https://javadoc.io/doc/io.camunda/camunda-client-java/latest/io/camunda/client/ClientProperties.html). For example, to configure the connection to a remote runtime: ```properties camunda.client.gateway.rest.address=http://0.0.0.0:8080 camunda.client.gateway.grpc.address=http://0.0.0.0:26500 ``` For more flexibility, use the fluent builder to set a client builder factory: ```java @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withRuntimeMode(CamundaProcessTestRuntimeMode.REMOTE) .withCamundaClientBuilderFactory( () -> CamundaClient.newClientBuilder() .restAddress(URI.create("http://0.0.0.0:8080")) .grpcAddress(URI.create("http://0.0.0.0:26500"))); ``` To override specific client properties, for example to configure a credential provider, use `withCamundaClientBuilderOverrides`. This works together with the client builder factory and the configuration file: ```java @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withCamundaClientBuilderOverrides( camundaClientBuilder -> camundaClientBuilder .credentialsProvider( CredentialsProvider.newBasicAuthCredentialsProviderBuilder() .username("demo") .password("demo") .build())); ``` ## Query page limit CPT paginates the individual search requests used by assertions, utilities, and the coverage report, with a default page limit of 100 results. If your process tests create a lot of data, such as many process instances or a process with a multi-instance activity, assertions can fail or the coverage report can be incomplete. In that case, increase the query page limit. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: query-page-limit: 1000 ``` In your `/camunda-container-runtime.properties` file: ```properties queryPageLimit=1000 ``` ### Property reference | Property | Type | Default | Description | | ------------------ | --------- | ------- | -------------------------------------------------------- | | `query-page-limit` | `integer` | `100` | The maximum number of results to return per paged query. | ## Test cleanup settings {#test-cleanup-settings} After each test, CPT resets the Camunda runtime clock and deletes all runtime data by default. You can disable either behavior to inspect the process state after a test run. :::info Disabling clock reset or data deletion means state from one test can affect subsequent tests. ::: In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Keep the Camunda runtime clock as-is after each test clock-reset-enabled: false # Skip runtime data deletion after each test data-deletion-mode: none ``` In your `/camunda-container-runtime.properties` file: ```properties # Keep the Camunda runtime clock as-is after each test clockResetEnabled=false # Skip runtime data deletion after each test dataDeletionMode=NONE ``` ### Property reference | Property | Type | Default | Description | | --------------------- | ----------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `clock-reset-enabled` | `boolean` | `true` | When `true`, resets the Camunda runtime clock after each test. Set to `false` to keep the clock at its current value for post-run inspection. | | `data-deletion-mode` | `string` (`enum`) | `CLUSTER_PURGE` | Controls how CPT deletes runtime data after each test. `CLUSTER_PURGE` (default) purges the full cluster state. `NONE` skips data deletion entirely. | ## Process Test Coverage CPT generates an HTML and JSON coverage report of your BPMN processes and DMN decision tables. You can configure the report generation in the following way. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: coverage: # Change the directory where the report is generated reportDirectory: target/coverage-report # Exclude processes from the report by their process definition ID excludedProcesses: - process_1 - process_2 # Exclude decisions from the report by their decision definition ID excludedDecisions: - decision_1 - decision_2 ``` In your `/camunda-container-runtime.properties` file: ```properties # Change the directory where the report is generated coverage.reportDirectory=target/coverage-report # Exclude processes from the report by their process definition ID excludedProcesses[0]=process_1 excludedProcesses[1]=process_2 # Exclude decisions from the report by their decision definition ID excludedDecisions[0]=decision_1 excludedDecisions[1]=decision_2 ``` ## Logging The test runtime uses [SLF4J](https://www.slf4j.org/) as the logging framework. If needed, you can enable the logging for the following packages: - `io.camunda.process.test` - The test runtime (recommended level `info`) - `tc.camunda` - The Camunda Docker container (recommended level `error`) - `tc.connectors` - The connectors Docker container (recommended level `error`) - `org.testcontainers` - The Testcontainers framework (recommended level `warn`) ## Judge configuration [Judge assertions](assertions.md#hasvariablesatisfiesjudge) use a configured LLM to score process variables (or plain values) against natural language expectations. This section covers how to set up the LLM provider and tune the judge behavior. ### Prerequisites CPT provides an optional [LangChain4j](https://docs.langchain4j.dev/) integration module that ships with preconfigured support for major LLM providers: OpenAI, Anthropic, Amazon Bedrock, Azure OpenAI, and OpenAI-compatible APIs. LangChain4j requires Java 17+. You can provide your own LLM integration through a custom `ChatModelAdapter` instead (see [custom ChatModelAdapter](#custom-chatmodeladapter)). :::tip For a guided walkthrough of setting up and testing AI agents, see [test your AI agents](/components/agentic-orchestration/evaluate-agents/test-ai-agents.md). ::: Camunda Process Test Spring includes the LangChain4j providers as a transitive dependency. No additional dependency is needed. Add the `camunda-process-test-langchain4j` dependency to your project: ```xml io.camunda camunda-process-test-langchain4j test ``` If you provide a custom `ChatModelAdapter` (see [custom ChatModelAdapter](#custom-chatmodeladapter)), this dependency is not required. ### Property reference All judge properties are nested under `camunda.process-test.judge` in Spring configuration. In Java properties files, use the `judge.` prefix with camelCase keys (for example, `judge.chat-model.api-key` becomes `judge.chatModel.apiKey`). For configuration examples, see [Step 2: configure the LLM provider and connectors](/components/agentic-orchestration/evaluate-agents/test-ai-agents.md#step-2-configure-the-llm-provider-and-connectors). Unless noted otherwise, properties in the provider tables are required. #### Judge settings | Property | Type | Default | Description | | ------------------------ | --------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `judge.threshold` | `double` | `0.5` | Confidence threshold (0.0 to 1.0) for the judge to pass. | | `judge.custom-prompt` | `string` | | Custom evaluation prompt replacing the default criteria. | | `judge.attach-documents` | `boolean` | `false` | When `true`, resolves Camunda document references in the evaluated variable and attaches their content to the judge. Disabled by default to avoid unnecessary token cost. To evaluate attached content, use a multimodal-capable model; otherwise, CPT evaluates only the raw variable JSON. See [document attachment](#document-attachment). | The default threshold of `0.5` treats a response as acceptable when it is at least partially satisfied according to the judge rubric. This is a practical default for AI-generated output, where wording and level of detail may vary between runs even when the response is still useful. Increase the threshold when your assertion needs stricter semantic agreement. #### Chat model settings | Property | Required | Type | Description | | ------------------------------ | -------- | ---------- | --------------------------------------------------------- | | `judge.chat-model.provider` | Yes | `string` | Set to `openai`. | | `judge.chat-model.model` | Yes | `string` | Model name (for example `gpt-4o`). | | `judge.chat-model.api-key` | Yes | `string` | API key. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example:** ```yaml camunda: process-test: judge: chat-model: provider: "openai" model: "gpt-4o" api-key: ${OPENAI_API_KEY} ``` | Property | Required | Type | Description | | ------------------------------ | -------- | ---------- | --------------------------------------------------------- | | `judge.chat-model.provider` | Yes | `string` | Set to `anthropic`. | | `judge.chat-model.model` | Yes | `string` | Model name (for example `claude-sonnet-4-20250514`). | | `judge.chat-model.api-key` | Yes | `string` | API key. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example:** ```yaml camunda: process-test: judge: chat-model: provider: "anthropic" model: "claude-sonnet-4-20250514" api-key: ${ANTHROPIC_API_KEY} ``` Supports Bedrock long-term API keys or AWS IAM credentials. Falls back to the [AWS default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html). :::note The AWS principal must be authorized to perform [`bedrock:InvokeModel`](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) on the configured model ARN. The model must also be [enabled for access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) in the chosen region. If you use Bedrock for both the judge chat model and the embedding model, each model requires a separate `bedrock:InvokeModel` grant; access to one does not imply access to the other. ::: | Property | Required | Type | Description | | ----------------------------------------- | ------------------------------ | ---------- | ---------------------------------------------------------------------------------------------- | | `judge.chat-model.provider` | Yes | `string` | Set to `amazon-bedrock`. | | `judge.chat-model.model` | Yes | `string` | Model name (for example `eu.anthropic.claude-haiku-4-5-20251001-v1:0`). | | `judge.chat-model.region` | No | `string` | AWS region (for example `eu-central-1`). | | `judge.chat-model.api-key` | No | `string` | Bedrock long-term API key. Optional if using IAM credentials or the default credentials chain. | | `judge.chat-model.credentials.access-key` | Conditionally, with secret key | `string` | AWS IAM access key. Optional if using an API key or the default credentials chain. | | `judge.chat-model.credentials.secret-key` | Conditionally, with access key | `string` | AWS IAM secret key. Optional if using an API key or the default credentials chain. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example:** ```yaml camunda: process-test: judge: chat-model: provider: "amazon-bedrock" model: "eu.anthropic.claude-haiku-4-5-20251001-v1:0" region: "eu-central-1" credentials: access-key: ${AWS_BEDROCK_ACCESS_KEY} secret-key: ${AWS_BEDROCK_SECRET_KEY} ``` Supports API key authentication. Falls back to [`DefaultAzureCredential`](https://learn.microsoft.com/en-us/java/api/com.azure.identity.defaultazurecredential). | Property | Required | Type | Description | | ------------------------------ | -------- | ---------- | -------------------------------------------------------------------------------------------------------------------------- | | `judge.chat-model.provider` | Yes | `string` | Set to `azure-openai`. | | `judge.chat-model.model` | Yes | `string` | Azure [deployment name](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource#deploy-a-model). | | `judge.chat-model.endpoint` | Yes | `string` | Azure OpenAI resource URL (for example `https://my-resource.openai.azure.com/`). | | `judge.chat-model.api-key` | No | `string` | API key. Optional; if omitted, falls back to `DefaultAzureCredential`. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example:** ```yaml camunda: process-test: judge: chat-model: provider: "azure-openai" model: "my-gpt4o-deployment" endpoint: "https://my-resource.openai.azure.com/" api-key: ${AZURE_OPENAI_API_KEY} ``` For local models (such as [Ollama](https://ollama.com/)) or any third-party API that implements the [OpenAI chat completions format](https://platform.openai.com/docs/api-reference/chat). | Property | Required | Type | Description | | ------------------------------ | -------- | ---------- | ------------------------------------------------------------------------ | | `judge.chat-model.provider` | Yes | `string` | Set to `openai-compatible`. | | `judge.chat-model.model` | Yes | `string` | Model name (for example `llama3`). | | `judge.chat-model.base-url` | Yes | `string` | Base URL for the API endpoint (for example `http://localhost:11434/v1`). | | `judge.chat-model.api-key` | No | `string` | API key. Optional for local providers. | | `judge.chat-model.headers.*` | No | `map` | Custom HTTP headers. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example (Ollama):** ```yaml camunda: process-test: judge: chat-model: provider: "openai-compatible" model: "llama3" base-url: "http://localhost:11434/v1" ``` For providers not listed above, use a custom provider name and pass arbitrary properties. See [Custom ChatModelAdapter](#custom-chatmodeladapter) for implementation details. | Property | Required | Type | Description | | -------------------------------------- | -------- | ---------- | --------------------------------------------------------------------------------------------- | | `judge.chat-model.provider` | Yes | `string` | Custom provider name matching your SPI implementation. | | `judge.chat-model.model` | Yes | `string` | Model name. | | `judge.chat-model.custom-properties.*` | No | `map` | Arbitrary key-value pairs passed to SPI providers via `ProviderConfig.getCustomProperties()`. | | `judge.chat-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | | `judge.chat-model.temperature` | No | `double` | Temperature for response randomness (0.0 to 2.0). | **Example:** ```yaml camunda: process-test: judge: chat-model: provider: "my-custom-provider" model: "my-model" custom-properties: endpoint: "https://my-llm.example.com/v1" ``` ### Document attachment When `judge.attach-documents` is enabled, CPT scans the serialized variable JSON for [Camunda document](/components/document-handling/getting-started.md) references, downloads their content, and passes it to the judge alongside the text prompt as structured content blocks. This lets the judge evaluate document content, such as generated PDFs, images, or text files. Document attachment is disabled by default. Enable it globally: ```yaml camunda: process-test: judge: attach-documents: true ``` ```properties judge.attachDocuments=true ``` You can also enable it per assertion using `withJudgeConfig`: ```java assertThat(processInstance) .withJudgeConfig(config -> config.withAttachDocuments(true)) .hasVariableSatisfiesJudge("report", "Contains an executive summary with at least three key findings."); ``` #### Content type handling How the document is passed to the judge depends on its MIME content type: | Content type | Passed to judge as | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `image/*` | Inline image block | | `application/pdf` | PDF file block | | `text/*`, `application/json`, `application/xml`, `application/yaml`, `application/x-yaml`, or types with a structured suffix (`+json`, `+xml`, `+yaml`) | Inline text block (UTF-8) | | All other types | Placeholder text only; content is not inspectable. A warning is logged. | #### Behavior - Built-in LangChain4j providers implement `MultimodalChatModelAdapter`. Custom `ChatModelAdapter` implementations must implement `MultimodalChatModelAdapter` to receive documents. Otherwise, document attachment does not take effect and the judge evaluates only the raw variable JSON. - Documents with the same document ID and store ID are deduplicated and downloaded only once. - If a document fails to download, the assertion fails with an `IllegalStateException`. ### Custom prompt You can replace the default evaluation criteria with a custom prompt. The custom prompt replaces only the evaluation criteria (the "You are an impartial judge..." preamble). The system still controls the expectation and value injection, the scoring rubric, and the JSON output format. By default, CPT uses an internal prompt that instructs the model to act as an impartial judge, compare the provided value against the natural language expectation, apply the documented scoring rubric, and return the result in the expected JSON structure. ```yaml camunda: process-test: judge: custom-prompt: "You are a domain expert evaluating financial data accuracy." ``` ```properties judge.customPrompt=You are a domain expert evaluating financial data accuracy. ``` Or programmatically: ```java JudgeConfig.of(prompt -> myChatModelAdapter.generate(prompt)) .withCustomPrompt("You are a domain expert evaluating financial data accuracy."); ``` You can also override the custom prompt for a single assertion chain: ```java assertThat(processInstance) .withJudgeConfig(config -> config .withCustomPrompt("You are a domain expert evaluating financial data accuracy.")) .hasVariableSatisfiesJudge("result", "Contains valid totals."); ``` ### Custom ChatModelAdapter You can provide your own `ChatModelAdapter` implementation without depending on the `camunda-process-test-langchain4j` module. A `ChatModelAdapter` is a functional interface that takes a prompt string and returns a response string. If you have a single `ChatModelAdapter` bean and no `provider` property is set, CPT auto-detects and uses it: ```java @TestConfiguration class JudgeTestConfig { @Bean ChatModelAdapter chatModelAdapter() { return prompt -> myChatModelAdapter.generate(prompt); } } ``` When you have multiple beans, set `provider` to the bean name you want to use. In Spring, the bean name defaults to the method name: ```java @TestConfiguration class JudgeTestConfig { @Bean ChatModelAdapter openAiAdapter() { /* ... */ } @Bean ChatModelAdapter ollamaAdapter() { /* ... */ } } ``` ```yaml camunda: process-test: judge: chat-model: provider: "ollamaAdapter" # matches the bean method name ``` :::note Resolution order When using `@CamundaSpringProcessTest`, CPT resolves the judge adapter in the following order: 1. If a single `ChatModelAdapter` bean exists and no `provider` property is configured, that bean is used automatically. 2. If the `provider` property is configured and a bean with a matching name exists, that bean is selected. 3. If no matching bean is found, CPT falls back to the built-in LangChain4j implementations, provided that `camunda-process-test-langchain4j` is on the classpath. 4. If a `provider` is configured but no matching implementation can be resolved at all, CPT throws an exception. ::: Alternatively, you can configure the judge programmatically. Set the configuration globally using `CamundaAssert.setJudgeConfig()`: ```java CamundaAssert.setJudgeConfig( JudgeConfig.of(prompt -> myChatModelAdapter.generate(prompt)) .withThreshold(0.8)); ``` Implement `ChatModelAdapterProvider` and register it through `META-INF/services`: ```java public class MyCustomProvider implements ChatModelAdapterProvider { @Override public String getProviderName() { return "my-provider"; } @Override public ChatModelAdapter create(ProviderConfig config) { String endpoint = config.getCustomProperties().get("endpoint"); return prompt -> callEndpoint(endpoint, prompt); } } ``` Register the provider in `META-INF/services/io.camunda.process.test.api.judge.ChatModelAdapterProvider`: ``` com.example.MyCustomProvider ``` Alternatively, you can configure the judge programmatically. Set the configuration globally using `CamundaAssert.setJudgeConfig()`: ```java CamundaAssert.setJudgeConfig( JudgeConfig.of(prompt -> myChatModelAdapter.generate(prompt)) .withThreshold(0.8)); ``` Or register the JUnit extension manually with a judge configuration: ```java @RegisterExtension CamundaProcessTestExtension extension = new CamundaProcessTestExtension() .withJudgeConfig(JudgeConfig.of(prompt -> myChatModelAdapter.generate(prompt)) .withThreshold(0.8)); ``` #### Multimodal support To use [document attachment](#document-attachment) with a custom adapter, implement `MultimodalChatModelAdapter` instead of `ChatModelAdapter`. `MultimodalChatModelAdapter` extends `ChatModelAdapter` and adds a second `generate` overload that receives the resolved documents. Each `ResolvedDocument` provides the binary content via `getContent()` and metadata via `getDocumentId()`, `getFileName()`, and `getContentType()`. Pass each document to the provider as a native structured content block (image block, file block, or text block depending on the content type). Prefix each block with a text content header containing the document metadata so the judge can correlate the block back to the document reference in ``: ```java public class MyMultimodalAdapter implements MultimodalChatModelAdapter { @Override public String generate(String prompt) { return myClient.chat(prompt); } @Override public String generate(String prompt, List documents) { List parts = new ArrayList<>(); parts.add(new TextPart(prompt)); for (ResolvedDocument doc : documents) { // text header identifying this document block parts.add(new TextPart( "--- documentId=\"" + doc.getDocumentId() + "\" fileName=\"" + doc.getFileName() + "\" contentType=\"" + doc.getContentType() + "\" ---")); // binary content as a native structured block parts.add(new BinaryPart(doc.getContent(), doc.getContentType())); } return myClient.chat(parts); } } ``` Replace `TextPart` and `BinaryPart` with the content-block types your provider's SDK defines. If document attachment is enabled but the adapter only implements `ChatModelAdapter`, document attachment does not take effect and the judge evaluates only the raw variable JSON. ## Semantic similarity configuration [Semantic similarity assertions](assertions.md#hasvariablesimilarto) use a configured embedding model to compare process variables (or plain values) to an expected string using vector embeddings. The assertion converts both values to embeddings and compares them using cosine similarity. This section covers how to set up the embedding model provider and tune the similarity behavior. ### Prerequisites CPT provides an optional [LangChain4j](https://docs.langchain4j.dev/) integration module that ships with preconfigured support for major embedding model providers, such as OpenAI, Azure OpenAI, Amazon Bedrock, and OpenAI-compatible APIs. :::note LangChain4j requires Java 17+. ::: Camunda Process Test Spring includes the LangChain4j providers as a transitive dependency. No additional dependency or configuration is needed. Add the `camunda-process-test-langchain4j` dependency to your project: ```xml io.camunda camunda-process-test-langchain4j test ``` :::important You can provide your own embedding integration through a custom `EmbeddingModelAdapter`. In that case, this dependency is not required. See [custom EmbeddingModelAdapter](#custom-embeddingmodeladapter) for more details. ::: ### Property reference All semantic similarity properties are nested under `camunda.process-test.similarity` in Spring configuration. In Java properties files, use the `similarity.` prefix with camelCase keys. For example, `similarity.embedding-model.api-key` becomes `similarity.embeddingModel.apiKey`. :::note Unless noted otherwise, properties in the provider tables are required. ::: #### Similarity settings | Property | Type | Default | Description | | ------------------------------------------ | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | | `similarity.threshold` | `double` | `0.5` | Cosine similarity threshold (0.0 to 1.0) for the assertion to pass. | | `similarity.default-preprocessors-enabled` | `boolean` | `true` | When `true`, applies the default text preprocessors (lowercase, Unicode NFC, and whitespace normalization) before embedding. | The default threshold of 0.5 treats two strings as similar when their cosine similarity is at least 0.5. This is a practical default for AI-generated text, where wording and phrasing may vary between runs even when the meaning is the same. Increase the threshold when your assertion needs stricter semantic agreement. #### Embedding model settings | Property | Required | Type | Description | | --------------------------------------- | -------- | ---------- | ---------------------------------------------------------------------- | | `similarity.embedding-model.provider` | Yes | `string` | Set to `openai`. | | `similarity.embedding-model.model` | Yes | `string` | Model name (for example `text-embedding-3-small`). | | `similarity.embedding-model.api-key` | Yes | `string` | API key. | | `similarity.embedding-model.dimensions` | No | `integer` | Number of output dimensions for models that support custom dimensions. | | `similarity.embedding-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | **Example:** ```yaml camunda: process-test: similarity: embedding-model: provider: "openai" model: "text-embedding-3-small" api-key: ${OPENAI_API_KEY} ``` It supports Bedrock long-term API keys or AWS IAM credentials. It falls back to the [AWS default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html). :::note The AWS principal must be authorized to perform [`bedrock:InvokeModel`](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) on the configured embedding model ARN. The model must also be [enabled for access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) in the chosen region. If you use Bedrock for both the judge chat model and the embedding model, each model requires a separate bedrock:InvokeModel grant; access to one does not imply access to the other. ::: | Property | Required | Type | Description | | --------------------------------------------------- | ------------------------------ | ---------- | ---------------------------------------------------------------------------------------------- | | `similarity.embedding-model.provider` | Yes | `string` | Set to `amazon-bedrock`. | | `similarity.embedding-model.model` | Yes | `string` | Model name (for example `amazon.titan-embed-text-v2:0`). | | `similarity.embedding-model.region` | No | `string` | AWS region (for example `eu-central-1`). | | `similarity.embedding-model.api-key` | No | `string` | Bedrock long-term API key. Optional if using IAM credentials or the default credentials chain. | | `similarity.embedding-model.credentials.access-key` | Conditionally, with secret key | `string` | AWS IAM access key. Optional if using an API key or the default credentials chain. | | `similarity.embedding-model.credentials.secret-key` | Conditionally, with access key | `string` | AWS IAM secret key. Optional if using an API key or the default credentials chain. | | `similarity.embedding-model.dimensions` | No | `integer` | Number of output dimensions for models that support custom dimensions. | | `similarity.embedding-model.normalize` | No | `boolean` | Whether to normalize the output embeddings. | | `similarity.embedding-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | **Example:** ```yaml camunda: process-test: similarity: embedding-model: provider: "amazon-bedrock" model: "amazon.titan-embed-text-v2:0" region: "eu-central-1" credentials: access-key: ${AWS_BEDROCK_ACCESS_KEY} secret-key: ${AWS_BEDROCK_SECRET_KEY} ``` It supports API key authentication. It falls back to [`DefaultAzureCredential`](https://learn.microsoft.com/en-us/java/api/com.azure.identity.defaultazurecredential). | Property | Required | Type | Description | | --------------------------------------- | -------- | ---------- | -------------------------------------------------------------------------------------------------------------------------- | | `similarity.embedding-model.provider` | Yes | `string` | Set to `azure-openai`. | | `similarity.embedding-model.model` | Yes | `string` | Azure [deployment name](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource#deploy-a-model). | | `similarity.embedding-model.endpoint` | Yes | `string` | Azure OpenAI resource URL (for example `https://my-resource.openai.azure.com/`). | | `similarity.embedding-model.api-key` | No | `string` | API key. Optional; if omitted, falls back to `DefaultAzureCredential`. | | `similarity.embedding-model.dimensions` | No | `integer` | Number of output dimensions for models that support custom dimensions. | | `similarity.embedding-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | **Example:** ```yaml camunda: process-test: similarity: embedding-model: provider: "azure-openai" model: "my-embedding-deployment" endpoint: "https://my-resource.openai.azure.com/" api-key: ${AZURE_OPENAI_API_KEY} ``` For local models, such as [Ollama](https://ollama.com/), or any third-party API that implements the [OpenAI embeddings format](https://platform.openai.com/docs/api-reference/embeddings). | Property | Required | Type | Description | | --------------------------------------- | -------- | ---------- | ------------------------------------------------------------------------ | | `similarity.embedding-model.provider` | Yes | `string` | Set to `openai-compatible`. | | `similarity.embedding-model.model` | Yes | `string` | Model name (for example `nomic-embed-text`). | | `similarity.embedding-model.base-url` | Yes | `string` | Base URL for the API endpoint (for example `http://localhost:11434/v1`). | | `similarity.embedding-model.api-key` | No | `string` | API key. Optional for local providers. | | `similarity.embedding-model.headers.*` | No | `map` | Custom HTTP headers. | | `similarity.embedding-model.dimensions` | No | `integer` | Number of output dimensions for models that support custom dimensions. | | `similarity.embedding-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | **Example (Ollama):** ```yaml camunda: process-test: similarity: embedding-model: provider: "openai-compatible" model: "nomic-embed-text" base-url: "http://localhost:11434/v1" ``` For providers not listed above, use a custom provider name and pass arbitrary properties. See [custom EmbeddingModelAdapter](#custom-embeddingmodeladapter) for implementation details. | Property | Required | Type | Description | | ------------------------------------------------ | -------- | ---------- | --------------------------------------------------------------------------------------------- | | `similarity.embedding-model.provider` | Yes | `string` | Custom provider name matching your SPI implementation. | | `similarity.embedding-model.model` | Yes | `string` | Model name. | | `similarity.embedding-model.custom-properties.*` | No | `map` | Arbitrary key-value pairs passed to SPI providers via `ProviderConfig.getCustomProperties()`. | | `similarity.embedding-model.timeout` | No | `duration` | Request timeout (ISO-8601 duration, for example `PT30S`). | **Example:** ```yaml camunda: process-test: similarity: embedding-model: provider: "my-custom-provider" model: "my-model" custom-properties: endpoint: "https://my-embeddings.example.com/v1" ``` ### Text preprocessors By default, CPT applies a set of text preprocessors to both the actual and expected values before computing embeddings. This improves stability of similarity scores by reducing noise from formatting differences. The default preprocessors are: - **Lowercase normalization**: converts text to lowercase. - **Unicode normalization**: applies Unicode NFC normalization. - **Whitespace normalization**: collapses repeated whitespace and trims leading/trailing whitespace. To disable the default preprocessors, set `similarity.default-preprocessors-enabled` to `false`: ```yaml camunda: process-test: similarity: default-preprocessors-enabled: false ``` ```properties similarity.defaultPreprocessorsEnabled=false ``` You can also configure preprocessors programmatically using `SemanticSimilarityConfig`: ```java SemanticSimilarityConfig.of(myEmbeddingAdapter, 0.7) .withoutPreprocessors(); ``` ### Custom EmbeddingModelAdapter You can provide your own `EmbeddingModelAdapter` implementation without depending on the `camunda-process-test-langchain4j` module. An `EmbeddingModelAdapter` is a functional interface that takes a string and returns a vector of floating-point numbers representing the text's semantic embedding. If you have a single `EmbeddingModelAdapter` bean and no `provider` property is set, CPT auto-detects and uses it: ```java @TestConfiguration class SimilarityTestConfig { @Bean EmbeddingModelAdapter embeddingModelAdapter() { return text -> myEmbeddingClient.embed(text); } } ``` When you have multiple beans, set `provider` to the bean name you want to use. In Spring, the bean name defaults to the method name: ```java @TestConfiguration class SimilarityTestConfig { @Bean EmbeddingModelAdapter openAiEmbeddingAdapter() { /* ... */ } @Bean EmbeddingModelAdapter ollamaEmbeddingAdapter() { /* ... */ } } ``` ```yaml camunda: process-test: similarity: embedding-model: provider: "ollamaEmbeddingAdapter" # matches the bean method name ``` :::note Resolution order When using `@CamundaSpringProcessTest`, CPT resolves the embedding adapter in the following order: 1. If a single `EmbeddingModelAdapter` bean exists and no `provider` property is configured, that bean is used automatically. 2. If the `provider` property is configured and a bean with a matching name exists, that bean is selected. 3. If no matching bean is found, CPT falls back to the built-in LangChain4j implementations, provided that `camunda-process-test-langchain4j` is on the classpath. 4. If a `provider` is configured but no matching implementation can be resolved at all, CPT throws an exception. ::: Alternatively, you can configure semantic similarity programmatically. Set the configuration globally using `CamundaAssert.setSemanticSimilarityConfig()`: ```java CamundaAssert.setSemanticSimilarityConfig( SemanticSimilarityConfig.of(text -> myEmbeddingClient.embed(text), 0.8)); ``` Implement `EmbeddingModelAdapterProvider` and register it through `META-INF/services`: ```java public class MyCustomEmbeddingProvider implements EmbeddingModelAdapterProvider { @Override public String getProviderName() { return "my-provider"; } @Override public EmbeddingModelAdapter create(ProviderConfig config) { String endpoint = config.getCustomProperties().get("endpoint"); return text -> callEndpoint(endpoint, text); } } ``` Register the provider in `META-INF/services/io.camunda.process.test.api.similarity.EmbeddingModelAdapterProvider`: ``` com.example.MyCustomEmbeddingProvider ``` Alternatively, you can configure semantic similarity programmatically. Set the configuration globally using `CamundaAssert.setSemanticSimilarityConfig()`: ```java CamundaAssert.setSemanticSimilarityConfig( SemanticSimilarityConfig.of(text -> myEmbeddingClient.embed(text), 0.8)); ``` Or register the JUnit extension manually with a semantic similarity configuration: ```java @RegisterExtension CamundaProcessTestExtension extension = new CamundaProcessTestExtension() .withSemanticSimilarityConfig( SemanticSimilarityConfig.of(text -> myEmbeddingClient.embed(text), 0.8)); ``` --- ## Connectors You can run your process test with [Connectors](/components/connectors/introduction.md) to verify the integration with external systems or the configuration of the connector tasks in your processes. For more unit-focused tests, mock the interaction; for example, by [completing connector jobs](utilities.md#mock-job-workers) with an expected result. :::note The instructions on this page are based on the default Testcontainer runtime. If you are using a remote runtime, consult the relevant distribution documentation, such as [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run/configuration.md#use-built-in-and-custom-connectors). ::: ## Enable connectors By default, the connectors are disabled. You need to change the configuration in the following way. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: # Enable connectors connectors-enabled: true ``` Or, directly on your test class: ```java @SpringBootTest(properties = {"camunda.process-test.connectors-enabled=true"}) @CamundaSpringProcessTest public class MyProcessTest { // } ``` In your `/camunda-container-runtime.properties` file: ```properties # Enable Connectors connectorsEnabled=true ``` Or, register the JUnit extension manually and use the fluent builder: ```java // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() // Enable Connectors .withConnectorsEnabled(true); } ``` ## Set cluster secrets Cluster secrets are the default way to provide secrets in tests with Camunda 8.10+. They let processes that reference `=camunda.secrets.` resolve in your tests. This feature requires Camunda Process Test 8.10.6+. To learn more, see [secrets](/components/concepts/secrets.md) and [secret resolution](/components/concepts/secret-resolution.md). In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: connectors-enabled: true cluster-secrets: GITHUB_TOKEN: ghp_secret SLACK_TOKEN: xoxb-secret ``` Or, on your test class: ```java @SpringBootTest( properties = { "camunda.process-test.connectors-enabled=true", "camunda.process-test.cluster-secrets.GITHUB_TOKEN=ghp_secret", "camunda.process-test.cluster-secrets.SLACK_TOKEN=xoxb-secret" } ) @CamundaSpringProcessTest public class MyProcessTest { // } ``` Register the JUnit extension and use the fluent builder: ```java // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withConnectorsEnabled(true) .withClusterSecret("GITHUB_TOKEN", "ghp_secret") .withClusterSecret("SLACK_TOKEN", "xoxb-secret"); } ``` CPT drops trailing newlines from cluster secret values. For details, see the [cluster secrets configuration](./configuration.md#set-cluster-secrets). In a remote runtime, for example a real cluster or Camunda 8 Run, the cluster owns its secret store. CPT ignores the test properties and logs a warning. Configure the secrets on the cluster instead. If your process still uses the legacy `{{secrets.X}}` syntax, see [Connector secrets](#connector-secrets). To move to cluster secrets, see [migrate secrets](/components/connectors/use-connectors/migrate-secrets.md). ## Connector secrets If your processes use [connector secrets](/components/connectors/use-connectors/index.md#using-secrets) with the legacy `{{secrets.X}}` syntax, you can add the secrets to the test runtime in the following way. These properties don't populate the cluster secret store. For `=camunda.secrets.X` references, use [cluster secrets](#set-cluster-secrets). In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: connectors-enabled: true connectors-secrets: GITHUB_TOKEN: ghp_secret SLACK_TOKEN: xoxb-secret ``` Or, on your test class: ```java @SpringBootTest( properties = { "camunda.process-test.connectors-enabled=true", "camunda.process-test.connectors-secrets.GITHUB_TOKEN=ghp_secret", "camunda.process-test.connectors-secrets.SLACK_TOKEN=xoxb-secret" } ) @CamundaSpringProcessTest public class MyProcessTest { // } ``` In your `/camunda-container-runtime.properties` file: ```properties connectorsEnabled=true connectorsSecrets.GITHUB_TOKEN=ghp_secret connectorsSecrets.SLACK_TOKEN=xoxb-secret ``` Or, via JUnit extension: ```java // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withConnectorsEnabled(true) .withConnectorsSecret("GITHUB_TOKEN", "ghp_secret") .withConnectorsSecret("SLACK_TOKEN", "xoxb-secret"); } ``` ## Invoke an inbound connector You can retrieve the URL address to invoke an inbound connector in your test from the `CamundaProcessTestContext`. ```java @SpringBootTest @CamundaSpringProcessTest public class MyProcessTest { @Autowired private CamundaClient client; @Autowired private CamundaProcessTestContext processTestContext; @Test void shouldInvokeConnector() { // given: a process instance waiting at a connector event // when final String inboundConnectorAddress = processTestContext.getConnectorsAddress() + "/inbound/" + CONNECTOR_ID; // invoke the connector address, for example, via HTTP request // then: verify that the connector event is completed } } ``` ```java @CamundaProcessTest public class MyProcessTest { // to be injected private CamundaClient client; private CamundaProcessTestContext processTestContext; @Test void shouldInvokeConnector() { // given: a process instance waiting at a connector event // when final String inboundConnectorAddress = processTestContext.getConnectorsAddress() + "/inbound/" + CONNECTOR_ID; // invoke the connector address, for example, via HTTP request // then: verify that the connector event is completed } } ``` :::tip You might need to wrap the invocation of the connector in a retry loop, for example, by using [Awaitility](http://www.awaitility.org/). There can be a delay between verifying that the connectors event is active and opening the connectors inbound subscription. ::: ## Access host ports By default, the connectors run inside the Testcontainers environment in isolation and can't access your local machine. However, you can expose [host ports](https://java.testcontainers.org/features/networking/#exposing-host-ports-to-the-container) to the containers, for example, to invoke a mock HTTP server running on your local machine from an outbound REST connector. Expose the host ports using `TestContainers.exposeHostPorts(port)`. Inside the container, the local machine is available under the hostname `host.testcontainers.internal`. ```java @WireMockTest(httpPort = 9999) @SpringBootTest( properties = { "camunda.process-test.connectors-enabled=true", "camunda.process-test.connectors-secrets.BASE_URL=http://host.testcontainers.internal:9999" }) @CamundaSpringProcessTest public class MyProcessTest { @Autowired private CamundaClient client; @BeforeAll static void setup() { Testcontainers.exposeHostPorts(9999); } @Test void shouldInvokeUrlFromConnector() { // given: stub the HTTP server stubFor( get(urlPathMatching("/test")) .willReturn( aResponse() .withHeader("Content-Type", "application/json") .withStatus(200) .withBody("{\"status\":\"okay\"}"))); // when: a process instance invoked the outbound connector // then: verify the HTTP request CamundaAssert.assertThat(processInstance) .isCompleted() .hasVariable("status", "okay"); verify(getRequestedFor(urlEqualTo("/test"))); } } ``` ```java @WireMockTest(httpPort = 9999) public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withConnectorsEnabled(true) .withConnectorsSecret("BASE_URL", "http://host.testcontainers.internal:9999"); private CamundaClient client; @BeforeAll static void setup() { Testcontainers.exposeHostPorts(9999); } @Test void shouldInvokeUrlFromConnector() { // given: stub the HTTP server stubFor( get(urlPathMatching("/test")) .willReturn( aResponse() .withHeader("Content-Type", "application/json") .withStatus(200) .withBody("{\"status\":\"okay\"}"))); // when: a process instance invoked the outbound connector // then: verify the HTTP request CamundaAssert.assertThat(processInstance) .isCompleted() .hasVariable("status", "okay"); verify(getRequestedFor(urlEqualTo("/test"))); } } ``` :::tip You can configure the URL of an outbound connector in your BPMN process using [Connectors secrets](/components/connectors/use-connectors/index.md#using-secrets) to replace it in the tests, for example, setting the URL expression to `"{{secrets.BASE_URL}}" + "/test"`. ::: If your process references the URL as a [cluster secret](#set-cluster-secrets), set the URL expression to `=camunda.secrets.BASE_URL + "/test"` and provide the value with `cluster-secrets` instead of `connectors-secrets`. ```java @SpringBootTest( properties = { "camunda.process-test.connectors-enabled=true", "camunda.process-test.cluster-secrets.BASE_URL=http://host.testcontainers.internal:9999" }) ``` ```java new CamundaProcessTestExtension() .withConnectorsEnabled(true) .withClusterSecret("BASE_URL", "http://host.testcontainers.internal:9999"); ``` ## Custom connectors By default, the runtime uses the built-in connectors bundle in a fixed, published version. This version isn't tied to the Camunda version or the Maven module version. To use another version, set `connectors-docker-image-version`. You can also use a custom connectors bundle in the following way. In your `application.yml` (or `application.properties`): ```yaml camunda: process-test: connectors-enabled: true connectors-docker-image-name: my-org/my-connectors connectors-docker-image-version: 1.0.0 ``` In your `/camunda-container-runtime.properties` file: ```properties connectorsEnabled=true connectorsDockerImageName=my-org/my-connectors connectorsDockerImageVersion=1.0.0 ``` Or, via JUnit extension: ```java // No annotation: @CamundaProcessTest public class MyProcessTest { @RegisterExtension private static final CamundaProcessTestExtension EXTENSION = new CamundaProcessTestExtension() .withConnectorsEnabled(true) .withConnectorsDockerImageName("my-org/my-connectors") .withConnectorsDockerImageVersion("1.0.0"); } ``` --- ## Camunda Process Test ## About [Camunda Process Test](https://github.com/camunda/camunda/tree/main/testing/camunda-process-test-java) (CPT) is a Java library to test your BPMN processes and your process application. CPT provides different runtimes to execute your process tests: - [Testcontainers runtime](configuration.md#testcontainers-runtime) (default) - A managed runtime based on [Testcontainers](https://java.testcontainers.org/) and Docker. - [Remote runtime](configuration.md#remote-runtime) - Your own runtime, such as, [Camunda 8 Run](/self-managed/quickstart/developer-quickstart/c8run.md) :::info Public API CPT is part of the Camunda 8 [public API](/reference/public-api.md) and is covered by our SemVer stability guarantees (except for alpha features). Breaking changes will not be introduced in minor or patch releases. ::: :::note CPT is the successor to Zeebe Process Test (ZPT). Our previous testing library was removed in Camunda 8.10. See the [migration guide](/apis-tools/migration-manuals/migrate-to-camunda-process-test.md) on how to migrate your process tests. ::: ## Prerequisites - Java: - For the Camunda Java client: 8+ - For the Camunda Spring Boot Starter: 17+ - [JUnit 5](https://junit.org/junit5/) For the default [Testcontainers runtime](configuration.md#testcontainers-runtime): - A Docker-API compatible container runtime, such as Docker on Linux or Docker Desktop on Mac and Windows. ## Install CPT has two variants: - For the [Camunda Spring Boot Starter](/apis-tools/camunda-spring-boot-starter/getting-started.md) - For the [Camunda Java client](/apis-tools/java-client/getting-started.md) Choose the one depending on which library you use in your process application. Add the following dependency to your Maven project: ```xml io.camunda camunda-process-test-spring ${camunda.version} test ``` ### Spring Boot 3 support If you use the [dedicated Spring Boot 3 starter](/apis-tools/camunda-spring-boot-starter/getting-started.md#dedicated-spring-boot-3-and-4-modules) (`camunda-spring-boot-3-starter`), you must also use the dedicated Spring Boot 3 test artifact: ```xml io.camunda camunda-process-test-spring-boot-3 ${camunda.version} test ``` Add the following dependency to your Maven project: ```xml io.camunda camunda-process-test-java ${camunda.version} test ``` ## Write a test Create a new Java class with the following structure: ```java package com.example; @SpringBootTest @CamundaSpringProcessTest public class MyProcessTest { @Autowired private CamundaClient client; @Autowired private CamundaProcessTestContext processTestContext; @Test void shouldCreateProcessInstance() { // given process definition is deployed // when final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // then CamundaAssert.assertThat(processInstance).isActive(); } } ``` - `@SpringBootTest` is the standard Spring annotation for tests. - `@CamundaSpringProcessTest` registers the Camunda test execution listener that starts and stops the test runtime. - `@Test` is the standard JUnit 5 annotation for a test case. - (_optional_) Inject a preconfigured `CamundaClient` to interact with the Camunda runtime. - (_optional_) Inject a `CamundaProcessTestContext` to interact with the test runtime. - (_optional_) Use `CamundaAssert` to verify the process instance state. The Spring test requires a Spring Boot process application in the same package. Usually, the process application [deploys the process resources](/apis-tools/camunda-spring-boot-starter/getting-started.md#deploy-process-models) using the annotation `@Deployment`. If you have no process application yet, you can add a minimal one inside the test class as follows: ```java @SpringBootApplication @Deployment(resources = "classpath*:/bpmn/**/*.bpmn") static class TestProcessApplication {} ``` ```java package com.example; @CamundaProcessTest public class MyProcessTest { // to be injected private CamundaClient client; private CamundaProcessTestContext processTestContext; @Test void shouldCreateProcessInstance() { // given client .newDeployResourceCommand() .addResourceFromClasspath("my-process.bpmn") .send() .join(); // when final ProcessInstanceEvent processInstance = client .newCreateInstanceCommand() .bpmnProcessId("my-process") .latestVersion() .send() .join(); // then CamundaAssert.assertThat(processInstance).isActive(); } } ``` - `@CamundaProcessTest` registers the Camunda JUnit extension that starts and stops the test runtime. - `@Test` is the standard JUnit 5 annotation for a test case. - (_optional_) Get a preconfigured `CamundaClient` injected to interact with the Camunda runtime. - (_optional_) Get a `CamundaProcessTestContext` injected to interact with the test runtime. - (_optional_) Use `CamundaAssert` to verify the process instance state. :::tip Shared runtime If you use the same runtime configuration for all test classes, you can use a [shared runtime](configuration.md#shared-runtime) to speed up the test execution. ::: ### Deploy resources You can deploy additional BPMN processes and other resources by adding the annotation `@TestDeployment` on the test class or the method. An annotation on the test method takes precedence over an annotation on the test class. The resources are loaded from the root classpath of the test. ```java @Test @TestDeployment(resources = "my-process.bpmn") void shouldCreateProcessInstance() { // the given resources are deployed before running the test } ``` ## Test lifecycle CPT performs the following actions during the JUnit 5 lifecycle when running a test class: - `beforeAll` (test methods) - Start the test runtime - `beforeEach` (test method) - Inject the `CamundaClient`, the `CamundaProcessTestContext`, and the `TestScenarioRunner` - Publish the client created event for the Spring Boot process application to trigger the deployment and start job workers - Deploy resources defined via `@TestDeployment` - `afterEach` (test method) - Collect the data for the coverage report - Print the created process instances if the test failed - Close the client connections - Publish the client closed event for the Spring Boot process application to stop job workers - Reset the Camunda runtime clock (can be disabled in the [configuration](configuration.md#test-cleanup-settings)) - Delete all data in the Camunda runtime (can be disabled in the [configuration](configuration.md#test-cleanup-settings)) - `afterAll` (test methods) - Generate the coverage report - Stop the test runtime ### Limitations CPT doesn't support Spring Boot process applications with `@PostConstruct` methods or a `CommandLineRunner` implementation. These methods are executed when the test class is initialized, but not before each test method. We recommend to use a minimal configuration for the test instead of the Spring Boot process application and invoke the `@PostConstruct` or `run()` methods manually before each test method. ```java @SpringBootTest(classes = {TestProcessApplication.class}) @CamundaSpringProcessTest public class ProcessTest { @Autowired private CamundaClient client; @BeforeEach void invokeProcessApplication() throws Exception { final Application springBootApplication = new Application(); springBootApplication.setCamundaClient(client); // call the @PostConstruct methods springBootApplication.afterStarted(); // call the CommandLineRunner method springBootApplication.run(); } } ``` Minimal test configuration: ```java // must be in a different package than the Spring Boot application package org.example.test; @SpringBootApplication( // list all required packages for the process test, such as job workers scanBasePackages = {"org.example.services", "org.example.workers"} ) @Deployment(resources = "classpath*:/bpmn/**/*.bpmn") public class TestProcessApplication {} ``` - `beforeAll` (test methods) - Start the test runtime - `beforeEach` (test method) - Inject the `CamundaClient`, the `CamundaProcessTestContext`, and the `TestScenarioRunner` - Deploy resources defined via `@TestDeployment` - `afterEach` (test method) - Collect the data for the coverage report - Print the created process instances if the test failed - Close the client connections - Reset the Camunda runtime clock (can be disabled in the [configuration](configuration.md#test-cleanup-settings)) - Delete all data in the Camunda runtime (can be disabled in the [configuration](configuration.md#test-cleanup-settings)) - `afterAll` (test methods) - Generate the coverage report - Stop the test runtime ## Next steps Learn more about the following topics: - `CamundaAssert` and [assertions](assertions.md) - `CamundaProcessTestContext` and [utilities](utilities.md) - How to [configure the runtime](configuration.md) - How to [test AI agent processes](/components/agentic-orchestration/evaluate-agents/test-ai-agents.md) - Best practices for [writing process tests](/components/best-practices/development/testing-process-definitions.md) Refer to the [API documentation](https://javadoc.io/doc/io.camunda/camunda-process-test-java/latest/io/camunda/process/test/api/package-summary.html) for details. ## Examples Take a look at the example project on [GitHub](https://github.com/camunda/camunda/tree/main/testing/camunda-process-test-example). This demonstrates the usage of the library for a demo Spring Boot process application. ## Process Test Coverage After a test run, CPT prints the coverage of your BPMN processes and DMN decision tables to the log and generates a detailed HTML and JSON report. You can use the report to identify untested paths in your processes and decision tables, and increase your test coverage. A link to the HTML report is printed in the log: ``` Coverage: io.camunda.InvoiceApprovalTest ======================== Process coverage: - Process_InvoiceApproval: 96% Decision coverage: - auto-approve-invoice: 20% Coverage report: file:///my/home/projects/my-process-application/target/coverage-report/report.html ``` ![An example process test coverage HTML report](assets/process-coverage-report.png) --- ## JSON test cases You can write your process tests in JSON format instead of coding the test logic in Java. The JSON file describes test cases with instructions that align with CPT's assertions and utilities. CPT's JSON test cases use the same schema as [test files in Test mode](/components/hub/workspace/modeler/validation/test-files.md), so you can edit the same files in Test mode and execute them with CPT. ## Write a JSON test case The JSON format is defined in the [JSON schema](https://camunda.com/json-schema/cpt-test-cases/8.10/schema.json). It defines the following structure: - `testCases`: An array of test cases to be executed. - `name`: The name of the test case. - `description`: A description of the test case. - `instructions`: An array of [instructions](#reference-instructions) to execute the test case. - Each instruction has a `type` that defines the action to be performed (for example, `CREATE_PROCESS_INSTANCE`). - Additional properties depend on the instruction type (for example, process definition ID and variables). How to start: 1. Create a new JSON file in your test resources folder (for example, `src/test/resources/test-cases/invoice-approval.json`) 2. Refer to the JSON schema `https://camunda.com/json-schema/cpt-test-cases/8.10/schema.json` in the `$schema` property. Use the same schema version as the CPT version you are using to ensure compatibility. 3. Add your test cases and use the [available instructions](#reference-instructions) to define the behavior of your process test. The basic structure of the JSON file looks like this: ```JSON { "$schema": "https://camunda.com/json-schema/cpt-test-cases/8.10/schema.json", "testCases": [ { "name": "My first test case", "description": "A human-readable description of the test case.", "instructions": [ ] } ] } ``` You can find a full example of a JSON test case file in the [Examples](#examples) section below. :::tip Use AI to support the generation of your JSON files. Refer to the documentation, provide a description of your test case, and your BPMN processes to get a first draft of your test cases. Or, use an IDE with JSON schema support to get auto-completion and validation while writing your test cases, for example [IntelliJ IDEA](https://www.jetbrains.com/help/idea/json.html#ws_json_schema_add_custom). ::: ## Run a JSON test case You can run your JSON test case files as parameterized JUnit tests. Add the `@TestCaseSource` annotation to your test method to read the files and provide test cases as arguments. Then, execute the test cases using the `TestCaseRunner` provided by CPT. The runner executes the test case instructions by leveraging CPT's assertions and utilities. If an assertion instruction fails, the runner throws an assertion error, causing the test to fail. If all instructions pass, the test case is considered successful. ```java @SpringBootTest @CamundaSpringProcessTest public class MyProcessTest { @Autowired private TestCaseRunner testCaseRunner; @ParameterizedTest @TestCaseSource void shouldPass(final TestCase testCase, final String fileName) { // given: the process definitions are deployed // when/then: run and verify the test case testCaseRunner.run(testCase); } } ``` ```java @CamundaProcessTest public class MyProcessTest { private TestCaseRunner testCaseRunner; @ParameterizedTest @TestCaseSource void shouldPass(final TestCase testCase, final String fileName) { // given: the process definitions are deployed // when/then: run and verify the test case testCaseRunner.run(testCase); } } ``` You can set the following fields in the `@TestCaseSource` annotation to configure which files to load: - `directory`: The classpath directory to scan for JSON test case files. Defaults to `/test-cases`. - `fileNames`: An array of specific file names to load from the directory. If not set, all files in the directory are loaded. - `fileExtension`: The file extension to filter files in the directory. Defaults to `json`. The filter is ignored if `fileNames` is set. ### Connect your process application The `TestCaseRunner` integrates seamlessly with CPT's [test lifecycle](getting-started.md#test-lifecycle). It connects to your process application and starts job workers, if enabled. You can add additional steps before and after running the test case, for example, to deploy additional resources or to mock external services of your process application. ```java @SpringBootTest @CamundaSpringProcessTest public class MyProcessTest { @Autowired private CamundaClient client; @Autowired private CamundaProcessTestContext processTestContext; @Autowired private TestCaseRunner testCaseRunner; @MockitoBean private AccountingService accountingService; @ParameterizedTest @TestCaseSource void shouldPass(final TestCase testCase, final String fileName) { // given: the process definitions are deployed via @Deployment on the process application // optionally: set up mocks, job workers, etc. // when/then: run and verify the test case testCaseRunner.run(testCase); // optionally: verify mock invocations, external resources, etc. Mockito.verify(accountingService).addInvoiceToAccount("0815", "INV-1001"); } } ``` ```java @CamundaProcessTest @ExtendWith(MockitoExtension.class) public class MyProcessTest { private CamundaClient client; private CamundaProcessTestContext processTestContext; private TestCaseRunner testCaseRunner; // Inject the mock in the process application @Mock private AccountingService accountingService; @ParameterizedTest @TestCaseSource @TestDeployment(resources = "invoice-approval.bpmn") void shouldPass(final TestCase testCase, final String fileName) { // given: the process definitions are deployed via @TestDeployment // optionally: set up mocks, job workers, etc. // when/then: run and verify the test case testCaseRunner.run(testCase); // optionally: verify mock invocations, external resources, etc. Mockito.verify(accountingService).addInvoiceToAccount("0815", "INV-1001"); } } ``` ## Examples You can find some example process tests using JSON test cases on [GitHub](https://github.com/camunda/camunda/tree/main/testing/camunda-process-test-example), like the following one: ```json reference referenceLinkText="Source" title="Invoice Approval JSON test case" https://github.com/camunda/camunda/blob/stable/8.10/testing/camunda-process-test-example/src/test/resources/test-cases/invoice-approval.json ``` ## Reference: Instructions Instructions define the actions and assertions to be performed in a test case. Each instruction has a `type` property that identifies the instruction, along with additional properties specific to that instruction type. ### ASSERT_DECISION An instruction to assert the evaluation of a decision. See the [assertions documentation](assertions.md#decision-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_DECISION" string Yes decisionSelector The selector to identify the decision. DecisionSelector Yes output Expected output of the decision. Can be any JSON type. any No matchedRules Expected matched rule indexes array of integer No notMatchedRules Expected not matched rule indexes array of integer No noMatchedRules Assert that no rules were matched boolean No false Example: ```json { "type": "ASSERT_DECISION", "decisionSelector": { "decisionDefinitionId": "ChooseRocket" }, "output": { "rocket": "Ariane 6" }, "matchedRules": [3] } ``` ### ASSERT_ELEMENT_INSTANCE An instruction to assert the state of an element instance. See the [assertions documentation](assertions.md#element-instance-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_ELEMENT_INSTANCE" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes elementSelector The selector to identify the element. ElementSelector Yes state The expected state of the element instance. enum: IS_ACTIVE, IS_COMPLETED, IS_TERMINATED Yes amount The expected amount of element instances in the given state. integer (minimum: 1) No 1 Example: ```json { "type": "ASSERT_ELEMENT_INSTANCE", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "elementSelector": { "elementId": "LaunchRocket" }, "state": "IS_COMPLETED" } ``` ### ASSERT_ELEMENT_INSTANCES An instruction to assert the state of multiple element instances. See the [assertions documentation](assertions.md#element-instance-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_ELEMENT_INSTANCES" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes elementSelectors The selectors to identify the elements. array of ElementSelector Yes state The expected state of the element instances. enum: IS_ACTIVE, IS_COMPLETED, IS_TERMINATED, IS_NOT_ACTIVE, IS_NOT_ACTIVATED, IS_ACTIVE_EXACTLY, IS_COMPLETED_IN_ORDER Yes Example: ```json { "type": "ASSERT_ELEMENT_INSTANCES", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "elementSelectors": [ { "elementId": "PrepareMission" }, { "elementId": "LaunchRocket" }, { "elementId": "LandOnMoon" } ], "state": "IS_COMPLETED_IN_ORDER" } ``` ### ASSERT_PROCESS_INSTANCE An instruction to assert the state of a process instance. See the [assertions documentation](assertions.md#process-instance-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_PROCESS_INSTANCE" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes state The expected state of the process instance. enum: IS_ACTIVE, IS_COMPLETED, IS_CREATED, IS_TERMINATED No hasActiveIncidents Whether the process instance has active incidents. boolean No Example: ```json { "type": "ASSERT_PROCESS_INSTANCE", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "state": "IS_COMPLETED" } ``` ### ASSERT_PROCESS_INSTANCE_MESSAGE_SUBSCRIPTION An instruction to assert the state of a process instance message subscription. See the [assertions documentation](assertions.md#process-instance-message-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_PROCESS_INSTANCE_MESSAGE_SUBSCRIPTION" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes messageSelector The selector to identify the message. MessageSelector Yes state The expected state of the message subscription. enum: IS_WAITING, IS_NOT_WAITING, IS_CORRELATED Yes Example: ```json { "type": "ASSERT_PROCESS_INSTANCE_MESSAGE_SUBSCRIPTION", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "messageSelector": { "messageName": "AstronautReady" }, "state": "IS_CORRELATED" } ``` ### ASSERT_USER_TASK An instruction to assert the state of a user task. See the [assertions documentation](assertions.md#user-task-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_USER_TASK" string Yes userTaskSelector The selector to identify the user task. UserTaskSelector Yes state The expected state of the user task. enum: IS_CREATED, IS_COMPLETED, IS_CANCELED, IS_FAILED No assignee The expected assignee of the user task. string No candidateGroups The expected candidate groups of the user task. array of string No priority The expected priority of the user task. integer No elementId The expected element ID of the user task. string No name The expected name of the user task. string No dueDate The expected due date of the user task in ISO-8601 format. string No followUpDate The expected follow-up date of the user task in ISO-8601 format. string No Example: ```json { "type": "ASSERT_USER_TASK", "userTaskSelector": { "elementId": "ReviewMissionPlan" }, "state": "IS_CREATED", "assignee": "zee-astronaut", "priority": 100 } ``` ### ASSERT_VARIABLE An instruction to assert a single variable of a process instance. See the [assertions documentation](assertions.md#variable-assertions) for more details. Property Description Type Required type Instruction type, must be "ASSERT_VARIABLE" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes elementSelector The selector to identify the element for local variables. ElementSelector No variableName The name of the variable to evaluate. string Yes satisfiesExpression A FEEL expression assertion that must evaluate to true for the given variable. string No satisfiesJudge An LLM judge assertion that evaluates the variable against a semantic expectation. JudgeAssertion No similarTo A semantic similarity assertion that checks the variable value against an expected value using text embeddings. SemanticSimilarityAssertion No Example: ```json { "type": "ASSERT_VARIABLE", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "variableName": "mission", "satisfiesExpression": "mission.status = \"completed\" and list contains(mission.astronauts, \"Zee\")" } ``` #### Judge Assertion An LLM-as-judge assertion that evaluates a variable against a semantic expectation. Property Description Type Required expectation The semantic expectation for the variable value. string Yes threshold The score threshold (0.0–1.0) at or above which the assertion passes. Defaults to the threshold configured in the CPT runtime (0.5 if not configured). number (0.0–1.0) No customPrompt A custom prompt for the judge evaluation. Overrides the configured custom prompt. string No attachDocuments When true, resolves Camunda document references in the variable value and attaches their content to the judge. Overrides the configured judge.attach-documents setting. To evaluate attached content, use a multimodal-capable model; otherwise, CPT evaluates only the raw variable JSON. boolean No Example: ```json { "type": "ASSERT_VARIABLE", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "variableName": "missionSummary", "satisfiesJudge": { "expectation": "The summary confirms a successful moon landing.", "threshold": 0.8 } } ``` #### Semantic Similarity Assertion A semantic similarity assertion that checks a variable value against an expected value using text embeddings. Property Description Type Required expectedValue The expected value the variable should be semantically similar to. string Yes threshold The minimum similarity score (0.0–1.0) for the assertion to pass. Defaults to the threshold configured in the CPT runtime (0.5 if not configured). number (0.0–1.0) No Example: ```json { "type": "ASSERT_VARIABLE", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "elementSelector": { "elementId": "ReviewMissionPlan" }, "variableName": "reviewComment", "similarTo": { "expectedValue": "The mission plan meets the required standards.", "threshold": 0.85 } } ``` ### ASSERT_VARIABLES An instruction to assert the variables of a process instance. See the [assertions documentation](assertions.md#variable-assertions) for more details. Property Description Type Required Default type Instruction type, must be "ASSERT_VARIABLES" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes elementSelector The selector to identify the element for local variables. ElementSelector No variableNames The expected variable names. array of string No variables The expected variables with their values. object No Example: ```json { "type": "ASSERT_VARIABLES", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "variables": { "missionStatus": "completed", "astronautName": "Zee" } } ``` ### BROADCAST_SIGNAL An instruction to broadcast a signal. Property Description Type Required Default type Instruction type, must be "BROADCAST_SIGNAL" string Yes signalName The name of the signal to broadcast. string Yes variables The variables to broadcast with the signal. object No Example: ```json { "type": "BROADCAST_SIGNAL", "signalName": "EmergencyEvacuation", "variables": { "reason": "meteor-shower", "destination": "space-station" } } ``` ### COMPLETE_JOB An instruction to complete a job. See the [utilities documentation](utilities.md#complete-jobs) for more details. Property Description Type Required Default type Instruction type, must be "COMPLETE_JOB" string Yes jobSelector The selector to identify the job to complete. JobSelector Yes variables The variables to complete the job with. object No useExampleData Whether to complete the job with example data from the BPMN element. This property has precedence over variables. boolean No false Example: ```json { "type": "COMPLETE_JOB", "jobSelector": { "jobType": "analyze-moon-samples" }, "variables": { "analysisResult": "high-mineral-content" } } ``` ### COMPLETE_JOB_AD_HOC_SUB_PROCESS An instruction to complete a job of an ad-hoc sub-process. See the [utilities documentation](utilities.md#ad-hoc-sub-process-jobs) for more details. Property Description Type Required Default type Instruction type, must be "COMPLETE_JOB_AD_HOC_SUB_PROCESS" string Yes jobSelector The selector to identify the job to complete. JobSelector Yes variables The variables to complete the job with. object No activateElements The elements to activate in the ad-hoc sub-process. array of ActivateElementInstruction No cancelRemainingInstances Whether to cancel remaining instances of the ad-hoc sub-process. boolean No false completionConditionFulfilled Whether the completion condition of the ad-hoc sub-process is fulfilled. boolean No false #### Activate Element Instruction An instruction to activate an element in an ad-hoc sub-process. Property Description Type Required elementId The ID of the element to activate. string Yes variables The variables to set when activating the element. object No Example: ```json { "type": "COMPLETE_JOB_AD_HOC_SUB_PROCESS", "jobSelector": { "elementId": "conduct-experiment" }, "variables": { "experimentResult": "success" }, "activateElements": [ { "elementId": "CollectMoonSamples", "variables": { "sampleType": "regolith" } } ] } ``` ### COMPLETE_JOB_USER_TASK_LISTENER An instruction to complete a job of a user task listener. See the [utilities documentation](utilities.md#user-task-listener-jobs) for more details. Property Description Type Required Default type Instruction type, must be "COMPLETE_JOB_USER_TASK_LISTENER" string Yes jobSelector The selector to identify the job to complete. JobSelector Yes denied Whether the worker denies the work. boolean No false deniedReason The reason for denying the job. string No corrections The corrections to apply to the user task. Only applicable if denied is false. UserTaskCorrections No #### User Task Corrections The corrections to apply to a user task. Property Description Type Required assignee The assignee of the task. string No dueDate The due date of the task. string No followUpDate The follow up date of the task. string No candidateUsers The candidate users of the task. array of string No candidateGroups The candidate groups of the task. array of string No priority The priority of the task. integer No Example: ```json { "type": "COMPLETE_JOB_USER_TASK_LISTENER", "jobSelector": { "jobType": "validate-astronaut-assignment" }, "corrections": { "assignee": "zee-senior-astronaut", "priority": 50 } } ``` ### COMPLETE_USER_TASK An instruction to complete a user task. See the [utilities documentation](utilities.md#complete-user-tasks) for more details. Property Description Type Required Default type Instruction type, must be "COMPLETE_USER_TASK" string Yes userTaskSelector The selector to identify the user task to complete. UserTaskSelector Yes variables The variables to set when completing the user task. Ignored if useExampleData is true. object No useExampleData Whether to complete the user task with example data from the BPMN element. If true, the variables property is ignored. boolean No false Example: ```json { "type": "COMPLETE_USER_TASK", "userTaskSelector": { "elementId": "ReviewMissionPlan" }, "variables": { "approved": true, "comments": "Mission plan looks good for moon exploration" } } ``` ### CONDITIONAL_BEHAVIOR An instruction to register a conditional behavior that reacts to process state changes. See the [utilities documentation](utilities.md#conditional-behavior) for more details. The conditions form a conjunction; the behavior fires only when every assertion succeeds. Actions are consumed in order: the first match fires the first action, the second match fires the second, and the last action repeats indefinitely. Property Description Type Required Default type Instruction type, must be "CONDITIONAL_BEHAVIOR" string Yes name A descriptive name for diagnostics and log messages. string No conditions The ASSERT_* instructions to watch. The behavior fires only when every condition succeeds (conjunction). array of instructions Yes actions The action instructions to execute when all conditions are met. Consumed in order; the last action repeats indefinitely. array of instructions Yes Example: ```json { "type": "CONDITIONAL_BEHAVIOR", "name": "auto-complete-review-task", "conditions": [ { "type": "ASSERT_USER_TASK", "userTaskSelector": { "taskName": "Review Task" }, "state": "IS_CREATED" } ], "actions": [ { "type": "COMPLETE_USER_TASK", "userTaskSelector": { "taskName": "Review Task" }, "variables": { "approved": true } } ] } ``` ### CORRELATE_MESSAGE An instruction to correlate a message. Property Description Type Required Default type Instruction type, must be "CORRELATE_MESSAGE" string Yes name The name of the message. string Yes correlationKey The correlation key of the message. string No variables The variables to correlate with the message. object No Example: ```json { "type": "CORRELATE_MESSAGE", "name": "AstronautReady", "correlationKey": "mission-001", "variables": { "astronautName": "Zee", "status": "ready-for-launch" } } ``` ### CREATE_PROCESS_INSTANCE An instruction to create a new process instance. Property Description Type Required Default type Instruction type, must be "CREATE_PROCESS_INSTANCE" string Yes processDefinitionSelector The selector to identify the process definition to create the process instance for. ProcessDefinitionSelector Yes variables The variables to create the process instance with. object No startInstructions The instructions to execute when starting the process instance. array of StartInstruction No runtimeInstructions The instructions to affect the runtime behavior of the process instance. array of RuntimeInstruction No #### Start Instruction An instruction to execute when starting a process instance. Property Description Type Required elementId The ID of the element to start the process instance at. string Yes #### Runtime Instruction An instruction to affect the runtime behavior of a process instance. Property Description Type Required type The type of the runtime instruction. Currently supports "TERMINATE_PROCESS_INSTANCE". string Yes afterElementId The ID of the element after which to terminate the process instance. Required when type is "TERMINATE_PROCESS_INSTANCE". string Yes Example: ```json { "type": "CREATE_PROCESS_INSTANCE", "processDefinitionSelector": { "processDefinitionId": "MoonExplorationProcess" }, "variables": { "missionName": "Artemis-Zee", "destination": "Moon", "astronautCount": 4 } } ``` ### EVALUATE_CONDITIONAL_START_EVENT An instruction to evaluate conditional start events. Property Description Type Required Default type Instruction type, must be "EVALUATE_CONDITIONAL_START_EVENT" string Yes variables The variables to evaluate the conditional start events with. object Yes Example: ```json { "type": "EVALUATE_CONDITIONAL_START_EVENT", "variables": { "weatherCondition": "clear", "fuelLevel": 100 } } ``` ### EVALUATE_DECISION An instruction to evaluate a DMN decision. Property Description Type Required Default type Instruction type, must be "EVALUATE_DECISION" string Yes decisionDefinitionSelector The selector to identify the decision definition to evaluate. DecisionDefinitionSelector Yes variables The variables to evaluate the decision with. object No Example: ```json { "type": "EVALUATE_DECISION", "decisionDefinitionSelector": { "decisionDefinitionId": "ChooseRocket" }, "variables": { "payload": 5000, "destination": "Moon" } } ``` ### INCREASE_TIME An instruction to increase the time. See the [utilities documentation](utilities.md#increase-time) for more details. Property Description Type Required Default type Instruction type, must be "INCREASE_TIME" string Yes duration The duration to increase the time by, in ISO 8601 duration format (for example, "PT1H", "P2D"). string Yes Example: ```json { "type": "INCREASE_TIME", "duration": "P3D" } ``` ### MOCK_CHILD_PROCESS An instruction to mock a child process. See the [utilities documentation](utilities.md#mock-child-processes) for more details. Property Description Type Required Default type Instruction type, must be "MOCK_CHILD_PROCESS" string Yes processDefinitionId The ID of the child process to mock. string Yes variables The variables to set for the mocked child process. object No versionTag The version tag for the deployed stub process. Required when the call activity uses bindingType="versionTag". string No Example: ```json { "type": "MOCK_CHILD_PROCESS", "processDefinitionId": "AstronautTrainingProcess", "variables": { "trainingCompleted": true, "grade": "excellent" } } ``` ### MOCK_DMN_DECISION An instruction to mock a DMN decision. See the [utilities documentation](utilities.md#mock-dmn-decisions) for more details. Property Description Type Required Default type Instruction type, must be "MOCK_DMN_DECISION" string Yes decisionDefinitionId The decision definition ID to mock. string Yes variables The variables to set as the decision output. Deprecated, use decisionOutput. object No decisionOutput The decision output to mock. Can be any JSON type. any No Example: ```json { "type": "MOCK_DMN_DECISION", "decisionDefinitionId": "ChooseRocket", "decisionOutput": "Falcon Heavy" } ``` ### MOCK_JOB_WORKER_COMPLETE_JOB An instruction to mock a job worker who completes jobs. See the [utilities documentation](utilities.md#complete-job) for more details. Property Description Type Required Default type Instruction type, must be "MOCK_JOB_WORKER_COMPLETE_JOB" string Yes jobType The job type to mock. This should match the zeebeJobType in the BPMN model. string Yes variables The variables to complete the job with. object No useExampleData Whether to use example data from the BPMN element. If true, the variables property is ignored. boolean No false Example: ```json { "type": "MOCK_JOB_WORKER_COMPLETE_JOB", "jobType": "calculate-trajectory", "variables": { "trajectory": "optimal", "fuelConsumption": 450 } } ``` ### MOCK_JOB_WORKER_THROW_BPMN_ERROR An instruction to mock a job worker who throws BPMN errors. See the [utilities documentation](utilities.md#throw-bpmn-error) for more details. Property Description Type Required Default type Instruction type, must be "MOCK_JOB_WORKER_THROW_BPMN_ERROR" string Yes jobType The job type to mock. This should match the zeebeJobType in the BPMN model. string Yes errorCode The error code to throw. This should match the error code in an error catch event. string Yes errorMessage The error message to include when throwing the error. string No variables The variables to include when throwing the error. object No Example: ```json { "type": "MOCK_JOB_WORKER_THROW_BPMN_ERROR", "jobType": "launch-rocket", "errorCode": "WEATHER_UNSUITABLE", "errorMessage": "High winds detected" } ``` ### PUBLISH_MESSAGE An instruction to publish a message. Property Description Type Required Default type Instruction type, must be "PUBLISH_MESSAGE" string Yes name The name of the message. string Yes correlationKey The correlation key of the message. string No variables The variables to publish with the message. object No timeToLive The time-to-live of the message in milliseconds. integer No messageId The message ID for uniqueness. string No Example: ```json { "type": "PUBLISH_MESSAGE", "name": "LaunchApproved", "correlationKey": "mission-001", "variables": { "approvedBy": "mission-control", "launchWindow": "2026-03-15T10:00:00Z" } } ``` ### RESOLVE_INCIDENT An instruction to resolve an incident. See the [utilities documentation](utilities.md#resolve-incidents) for more details. Property Description Type Required Default type Instruction type, must be "RESOLVE_INCIDENT" string Yes incidentSelector The selector to identify the incident to resolve. IncidentSelector Yes Example: ```json { "type": "RESOLVE_INCIDENT", "incidentSelector": { "elementId": "LaunchRocket" } } ``` ### SET_TIME An instruction to set the time. See the [utilities documentation](utilities.md#set-time) for more details. Property Description Type Required Default type Instruction type, must be "SET_TIME" string Yes time The time to set, in ISO 8601 instant format (for example, "2026-01-19T13:00:00Z"). string Yes Example: ```json { "type": "SET_TIME", "time": "2026-03-15T10:00:00Z" } ``` ### THROW_BPMN_ERROR_FROM_JOB An instruction to throw a BPMN error from a job. See the [utilities documentation](utilities.md#throw-bpmn-errors-from-jobs) for more details. Property Description Type Required Default type Instruction type, must be "THROW_BPMN_ERROR_FROM_JOB" string Yes jobSelector The selector to identify the job to throw the error from. JobSelector Yes errorCode The error code to throw. string Yes errorMessage The error message to throw. string No variables The variables to set when throwing the error. object No Example: ```json { "type": "THROW_BPMN_ERROR_FROM_JOB", "jobSelector": { "jobType": "deploy-satellite" }, "errorCode": "DEPLOYMENT_FAILED", "errorMessage": "Insufficient orbital velocity" } ``` ### UPDATE_VARIABLES An instruction to create or update process instance variables. See the [utilities documentation](utilities.md#update-variables) for more details. Property Description Type Required Default type Instruction type, must be "UPDATE_VARIABLES" string Yes processInstanceSelector The selector to identify the process instance. ProcessInstanceSelector Yes variables The variables to create or update. object Yes elementSelector The selector to identify the element for local variables. ElementSelector No createLocalVariables Whether to create variables locally in the scope of the element (requires elementSelector). When true, variables are created in the element's local scope and are not propagated to parent scopes. boolean No false Example: ```json { "type": "UPDATE_VARIABLES", "processInstanceSelector": { "processDefinitionId": "MoonExplorationProcess" }, "variables": { "currentPhase": "landing", "fuelRemaining": 75 } } ``` ## Reference: Selectors Selectors are used to identify specific resources in your process tests. Each selector must contain at least one of the specified properties. ### Decision Definition Selector A selector to identify a decision definition. Property Description Type Required decisionDefinitionId ID of the decision definition string Yes Example: ```json { "decisionDefinitionId": "ChooseRocket" } ``` ### Decision Selector A selector to identify a decision. The selector must contain at least one of the following properties: Property Description Type Required decisionDefinitionId ID of the decision definition string No decisionDefinitionName Name of the decision definition string No Example: ```json { "decisionDefinitionId": "ChooseRocket" } ``` ### Element Selector A selector to identify a BPMN element. The selector must contain at least one of the following properties: Property Description Type Required elementId ID of the BPMN element string No elementName Name of the BPMN element string No Example: ```json { "elementId": "LaunchRocket" } ``` ### Incident Selector A selector to identify an incident. The selector must contain at least one of the following properties: Property Description Type Required elementId ID of the BPMN element where the incident occurred string No processDefinitionId Process definition ID of the incident string No Example: ```json { "elementId": "LaunchRocket" } ``` ### Job Selector A selector to identify a job. The selector must contain at least one of the following properties: Property Description Type Required jobType Type of the job string No elementId ID of the BPMN element string No processDefinitionId Process definition ID of the job string No Example: ```json { "jobType": "analyze-moon-samples" } ``` ### Message Selector A selector to identify a message. Property Description Type Required messageName Name of the message string Yes correlationKey Correlation key of the message string No Example: ```json { "messageName": "AstronautReady" } ``` ### Process Definition Selector A selector to identify a process definition. Property Description Type Required processDefinitionId ID of the process definition string Yes Example: ```json { "processDefinitionId": "MoonExplorationProcess" } ``` ### Process Instance Selector A selector to identify a process instance. Property Description Type Required processDefinitionId Process definition ID of the process instance string Yes ```json { "processDefinitionId": "MoonExplorationProcess" } ``` ### User Task Selector A selector to identify a user task. The selector must contain at least one of the following properties: Property Description Type Required elementId ID of the BPMN element string No taskName Name of the user task string No processDefinitionId Process definition ID of the user task string No Example: ```json { "elementId": "ReviewMissionPlan" } ``` --- ## Utilities There are different utilities that can help you to write your process test. ## Manipulate the clock The Camunda runtime uses an internal clock to execute process instances and to calculate when a BPMN timer event is due. In a test, you can use `CamundaProcessTestContext` to manipulate the clock. When to use it: - Trigger an active BPMN timer event - Test scenarios that require a specific date or time, for example, a leap year :::tip If you trigger a BPMN timer event, you should assert that the BPMN timer event is active before manipulating the clock. Otherwise, you may manipulate the clock too early and the BPMN timer event is not triggered. ::: ### Increase time You can increase the time by a given duration. As a result, the clock is moved forward (i.e., in the future). ```java @Test void shouldTriggerTimerEvent() { // given: a process instance waiting at a BPMN timer event // when assertThat(processInstance).hasActiveElements("wait_2_days"); processTestContext.increaseTime(Duration.ofDays(2)); // then assertThat(processInstance).hasCompletedElements("wait_2_days"); } ``` ### Set time You can set the clock to a given date and time. ```java @Test void shouldCreateProcessInstanceInTheMorning() { // given processTestContext.setTime(Instant.parse("2025-10-01T08:00:00Z")); // when: create a process instance // then: verify the behavior at the given time } ``` ## Mock job workers You can mock a job worker to simulate its behavior without invoking the actual worker. The mock handles all jobs of the given job type. When to use it: - Test the process in isolation from the actual job workers - Simulate different outcomes of a job worker (success, BPMN error) - Mock disabled job workers or Connectors :::tip If you start the process application in your test case, you should [disable the job workers](../camunda-spring-boot-starter/configuration.md#disable-a-job-worker) to avoid interferences with the mocks, for example, by setting the following configuration: ```java @SpringBootTest(properties = {"camunda.client.worker.defaults.enabled=false"}) @CamundaSpringProcessTest class MyProcessTest { .. } ``` ::: ### Complete job The mock completes jobs with/without variables. ```java @Test void shouldCompleteJob() { // given: mock job worker for the job type "send-email" // 1) Complete jobs without variables processTestContext.mockJobWorker("send-email").thenComplete(); // 2) Complete jobs with variables final Map variables = Map.of( "emailSent", true, "timestamp", "2024-01-01T10:00:00Z" ); processTestContext.mockJobWorker("send-email").thenComplete(variables); // when: create a process instance // then: verify that the process instance completed all tasks } ``` ### Complete with example data The mock completes jobs with [example data](/components/modeler/data-handling.md#defining-example-data) that is defined at the related BPMN element. If the BPMN element has no example data, the mock completes the job without variables. ```java @Test void shouldCompleteJobWithExampleData() { // given: mock job worker for the job type "fetch-weather-data" processTestContext.mockJobWorker("fetch-weather-data").thenCompleteWithExampleData(); // when: create a process instance // then: verify that the process instance completed all tasks } ``` :::tip Add example data during modeling to provide context and make writing FEEL expressions easier. By using the same example data for mocks, you keep the data in the BPMN process itself and avoid repeating them in the process tests. This can simplify your tests and reducing the maintenance effort. ::: ### Throw BPMN error The mock throws BPMN errors for jobs with the given error code and optional error message and variables. ```java @Test void shouldThrowBpmnError() { // given: mock job worker for the job type "validate-order" // 1) Throw BPMN errors with error code "INVALID_ORDER" processTestContext.mockJobWorker("validate-order").thenThrowBpmnError("INVALID_ORDER"); // 2) Throw BPMN errors with error code "INVALID_ORDER" and variables final Map variables = Map.of( "reason", "The order exceeds the item limit." ); processTestContext .mockJobWorker("validate-order") .thenThrowBpmnError("INVALID_ORDER", variables); // 3) Throw BPMN errors with error code, error message, and variables processTestContext .mockJobWorker("validate-order") .thenThrowBpmnError("INVALID_ORDER", "Order validation failed", variables); // when: create a process instance // then: verify that the process instance handled the BPMN error } ``` ### Custom handler You can implement a custom handler to mock more complex behaviors. ```java @Test void shouldUseCustomHandler() { // given: mock job worker for the job type "calculate-discount" processTestContext .mockJobWorker("calculate-discount") .withHandler( (jobClient, job) -> { final Map variables = job.getVariablesAsMap(); final double orderAmount = (double) variables.get("orderAmount"); final double discount = orderAmount > 100 ? 0.1 : 0.0; jobClient.newCompleteCommand(job).variable("discount", discount).send().join(); }); // when: create a process instance // then: verify that the process instance has the expected variables } ``` ### Inspect mock invocations You can inspect the invocations of a mock job worker to verify how many jobs were handled and to get the details of each job. ```java @Test void shouldInspectMockInvocations() { // given: mock job worker for the job type "send-email" final JobWorkerMock mockJobWorker = processTestContext.mockJobWorker("send-email").thenComplete(); // when: create a process instance that triggers the job worker // then: verify the number of invocations assertThat(mockJobWorker.getInvocations()).isEqualTo(1); // and: inspect the details of each invocation assertThat(mockJobWorker.getActivatedJobs()) .hasSize(1) .flatExtracting(job -> job.getVariablesAsMap().entrySet()) .contains(entry("receiver", "Zee"), entry("subject", "Greetings")); } ``` ## Mock child processes You can mock a child process for a call activity to simulate its output without executing the actual child process. The mock deploys a dummy process with the given process ID that returns the given variables. You can optionally add a version tag. This is required when the call activity uses `bindingType="versionTag"` to resolve the child process by a specific version. When to use it: - Test the parent process in isolation from the actual child process - Simulate different outcomes of a child process - Mock a non-existing child process ```java @Test void shouldMockChildProcess() { // given: mock child process with the process ID "lunar-lander" // 1) Complete the child process without variables processTestContext.mockChildProcess().withProcessId("lunar-lander").thenComplete(); // 2) Complete the child process with variables final Map variables = Map.of("landingStatus", "nominal"); processTestContext.mockChildProcess().withProcessId("lunar-lander").thenComplete(variables); // 3) Complete the child process with a version tag // Use when the call activity has bindingType="versionTag" processTestContext.mockChildProcess() .withProcessId("lunar-lander") .withVersionTag("1.7.1") .thenComplete(variables); // when: create a process instance // then: verify that the process instance completed the call activity } ``` ### Child process with dynamic variables You can mock a child process with dynamic behavior whose output variables are derived from the parent process instance. The handler receives the parent variables and returns the child process variables. ```java @Test void shouldMockChildProcess() { // given: mock dynamic child process with the process ID "AstronautTrainingProcess" processTestContext .mockChildProcess() .withProcessId("AstronautTrainingProcess") .thenComplete(parentVariables -> { final String astronautName = (String) parentVariables.get("astronautName"); final String grade = "Zee".equals(astronautName) ? "excellent" : "good"; return Map.of( "trainingCompleted", true, "grade", grade); }); // when: create a process instance // then: verify that the process instance completed the call activity } ``` ## Mock DMN decisions You can mock a DMN decision for a business rule task to simulate its output without evaluating the actual DMN decision. The mock deploys a dummy DMN decision with the given decision ID that returns the given variables. When to use it: - Test the process with the business rule task in isolation from the actual DMN decision - Simulate different outcomes of a DMN decision - Mock a non-existing DMN decision ```java @Test void shouldMockDmnDecision() { // given: mock DMN decision with the decision ID "credit-check-decision" final Map variables = Map.of( "approved", true, "riskLevel", "low", "creditLimit", 5000 ); processTestContext.mockDmnDecision("credit-check-decision", variables); // when: create a process instance // then: verify that the process instance completed the business rule task } ``` ## Conditional behavior The `when(condition).then(action)` API on `CamundaProcessTestContext` registers background behaviors that react to process state changes without blocking the test thread. This is useful for non-deterministic flows where the execution order is unknown. You can register multiple behaviors before starting the process, and they will react independently as the process progresses. Behaviors are cleared automatically after each test. ```java @Test void shouldCompleteTaskAutomatically() { // given: define a conditional behavior processTestContext .when(() -> assertThat(processInstance).hasActiveElements("approve_order")) .as("approve order") .then(() -> processTestContext.completeUserTask("approve_order", Map.of("approved", true))); // when: create a process instance // then: verify that the process instance is completed } ``` :::important The action should resolve the process state that the condition checks for. After an action executes, the engine waits for the condition to become false again before re-evaluating. For example, if the condition asserts that a user task is active, the action should complete that user task. This advances the process flow so that the condition no longer holds. Otherwise, the same condition may not be detected again reliably. ::: If the same conditional behavior applies to multiple tests, you can define it in a `@BeforeEach` method: ```java @BeforeEach void setupBehaviors() { processTestContext .when(() -> assertThat(processInstance).hasActiveElements("send_notification")) .as("complete send notification") .then(() -> processTestContext.completeJob("send-notification")); } @Test void shouldCompleteOrder() { // given: the conditional behavior is defined in @BeforeEach // when: create a process instance // then: verify that the process instance completed the task } ``` ### Chain multiple actions Actions are consumed in order on each condition match. The last action repeats indefinitely once all preceding actions are exhausted. ```java @Test void shouldHandleRepeatedTask() { // given: define a conditional behavior with chained actions processTestContext .when(() -> assertThat(processInstance).hasActiveElements("review_document")) .as("review document") .then(() -> processTestContext.completeUserTask("review_document", Map.of("approved", false, "comment", "Needs revision"))) .then(() -> processTestContext.completeUserTask("review_document", Map.of("approved", true, "comment", "Looks good"))); // when: create a process instance // then: verify that the process instance is completed } ``` ### Name a behavior You can assign a descriptive name to a conditional behavior using `.as()`. The name is used in log messages and diagnostics. ```java @Test void shouldNameBehavior() { // given: define a named conditional behavior processTestContext .when(() -> assertThat(processInstance).hasActiveElements("send_notification")) .as("send-notification is active") .then(() -> processTestContext.completeJob("send-notification")); // when: create a process instance // then: verify that the process instance completed the task } ``` ## Complete jobs You can complete an active job to simulate the behavior of a job worker without invoking the actual worker. The command waits for the first job with the given job type and completes it. If no job exists, the command fails. Identify the job by its job type or using a [JobSelector](#job-selector). You can pass variables or complete the job with the [example data](/components/modeler/data-handling.md#defining-example-data) from the related BPMN element. When to use it: - Test the process with full control over the job completion - Complete a repeated task with different outcomes ```java @Test void shouldCompleteJob() { // given: a process instance is waiting at a task // when: complete the job with type "send-notification" // 1) Without variables processTestContext.completeJob("send-notification"); // 2) With variables final Map variables = Map.of( "notification-sent", true, "recipients", List.of("user1@example.com", "user2@example.com") ); processTestContext.completeJob("send-notification", variables); // 3) With example data from the BPMN element processTestContext.completeJobWithExampleData("send-notification"); // 4) With job selector by element ID "send_notification_task" processTestContext.completeJob(JobSelectors.byElementId("send_notification_task")); // 5) With a mapper from input variables to output variables processTestContext.completeJob( "send-notification", inputVariables -> { final String recipient = (String) inputVariables.get("recipient"); return Map.of("notificationSent", true, "sentTo", recipient); }); // then: verify that the process instance completed the task } ``` ### Ad-hoc sub-process jobs You can simulate the behavior of an [ad-hoc sub-process job worker](/components/modeler/bpmn/ad-hoc-subprocesses/ad-hoc-subprocesses.md#job-worker-implementation), for example, an AI agent, and control the execution of the ad-hoc sub-process. The job completion allows you to activate an element in the ad-hoc sub-process or to fulfill the completion condition. ```java @Test void shouldCompleteJobOfAdHocSubProcess() { // given: the ad-hoc sub-process is active // when: complete the job of the ad-hoc sub-process // 1) With activating an element with variables processTestContext.completeJobOfAdHocSubProcess( JobSelectors.byElementId("ad-hoc-sub-process"), result -> result.activateElement("search-knowledge-base").variable("query", "launch rockets")); // 2) With job variables (for the ad-hoc sub-process) processTestContext.completeJobOfAdHocSubProcess( JobSelectors.byElementId("ad-hoc-sub-process"), Map.of("agent", agentContext), result -> result.activateElement("search-knowledge-base").variable("query", "launch rockets")); // 3) With fulfilling the completion condition processTestContext.completeJobOfAdHocSubProcess( JobSelectors.byElementId("ad-hoc-sub-process"), result -> result.completionConditionFulfilled(true)); // then: verify that the ad-hoc sub-process completed the task } ``` ### User task listener jobs You can simulate the behavior of a [user task listener job worker](/components/concepts/user-task-listeners.md#implement-a-user-task-listener). The job completion allows to correct the user task data or to deny the user task lifecycle transition. ```java @Test void shouldCompleteJobOfUserTaskListener() { // given: the process instance is waiting at a user task // when: complete the job of the user task listener // 1) With correcting user task data processTestContext.completeJobOfUserTaskListener( JobSelectors.byElementId("approve_request_task"), result -> result.correctAssignee("me").correctPriority(100)); // 2) With denying the user task lifecycle transition processTestContext.completeJobOfUserTaskListener( JobSelectors.byElementId("approve_request_task"), result -> result.deny(true).deniedReason("Policy violation")); // then: verify that the user task is completed } ``` ## Throw BPMN errors from jobs You can throw a BPMN error from an active job to simulate the behavior of a job worker without invoking the actual worker. The command waits for the first job with the given job type and throws the BPMN error. If no job exists, the command fails. Identify the job by its job type or using a [JobSelector](#job-selector). Optionally, you can pass variables and an error message with the BPMN error. When to use it: - Test the error paths in the process - Simulate different behaviors of a repeated task (success, BPMN error) ```java @Test void shouldThrowBpmnErrorFromJob() { // given: a process instance is waiting at a task // when: throw a BPMN error for the job with type "validate-data" // 1) With error code "VALIDATION_FAILED" and no variables processTestContext.throwBpmnErrorFromJob("validate-data", "VALIDATION_FAILED"); // 2) With error code "VALIDATION_FAILED" and variables final Map variables = Map.of( "error-message", "Invalid customer data", "error-code", "ERR_VALIDATION_001" ); processTestContext.throwBpmnErrorFromJob("validate-data", "VALIDATION_FAILED", variables); // 3) With error code, error message, and variables processTestContext.throwBpmnErrorFromJob( "validate-data", "VALIDATION_FAILED", "Data validation failed due to missing required fields", variables); // 4) With job selector by element ID "validate_data_task" processTestContext.throwBpmnErrorFromJob( JobSelectors.byElementId("validate_data_task"), "VALIDATION_FAILED"); // then: verify that the process instance handled the error } ``` ## Complete user tasks You can complete a user task to simulate the user behavior in Tasklist. The command waits for the first user task and completes it. If no user task exists, the command fails. Identify the user task by its BPMN element ID or using a [UserTaskSelector](#user-task-selector). You can pass variables or complete the user task with the [example data](/components/modeler/data-handling.md#defining-example-data) from the related BPMN element. When to use it: - Test a process with user tasks ```java @Test void shouldCompleteUserTask() { // given: a process instance is waiting at a user task // when: complete the user task // 1) With element ID "task_approveRequest" final Map variables = Map.of( "approved", true, "comment", "Request approved by manager", "approvedAmount", 5000.00 ); processTestContext.completeUserTask("task_approveRequest", variables); // 2) With selector by task name "Approve Request" processTestContext.completeUserTask( UserTaskSelectors.byTaskName("Approve Request"), variables); // 3) With example data from the BPMN element processTestContext.completeUserTaskWithExampleData( UserTaskSelectors.byElementId("task_approveRequest")); // 4) With a mapper from input variables to output variables processTestContext.completeUserTask( "task_approveRequest", inputVariables -> Map.of("approved", inputVariables.containsKey("preApproved"))); // then: verify that the process instance is completed } ``` ## Update variables You can update or create variables of a process instance or in the local scope of a BPMN element, for example, to trigger a BPMN conditional event. To target local variables of a specific BPMN element, use an [ElementSelector](#element-selector). ### Update process instance variables Use `updateVariables()` to update or create variables on a process instance. ```java @Test void shouldTriggerConditionalEvent() { // given: a process instance is waiting at the conditional event // when: update the variables to trigger the conditional event final Map variables = Map.of( "priority", 80, "riskLevel", "high" ); processTestContext.updateVariables( ProcessInstanceSelectors.byKey(processInstanceKey), variables); // then: verify that the conditional event is completed } ``` ### Update local variables Use `updateLocalVariables()` to propagate variables starting from a given element's scope. The variables are updated on the element or the nearest parent scope where they already exist. If a variable doesn't exist in any scope, it's created on the process instance scope. ```java processTestContext.updateLocalVariables( ProcessInstanceSelectors.byKey(processInstanceKey), ElementSelectors.byId("sub-process"), variables); ``` ### Create local variables Use `createLocalVariables()` to create variables in the local scope of a given element. The variables are created only in the element's scope and are not propagated to parent scopes. ```java processTestContext.createLocalVariables( ProcessInstanceSelectors.byKey(processInstanceKey), ElementSelectors.byId("sub-process"), variables); ``` ## Resolve incidents You can resolve an active incident. Use the [IncidentSelector](#incident-selector) to identify the incident based on different criteria, for example, by the BPMN element ID where the incident occurred. If the incident is caused by a job, the command increases the job retries by one before resolving the incident. If the incident is caused by a missing variable, you should [update the variables](#update-variables) before resolving the incident. ```java @Test void shouldResolveIncident() { // given: a process instance has an active incident // when: resolve the incident at the element with ID "validate-data" processTestContext.resolveIncident(IncidentSelectors.byElementId("validate-data")); // then: verify that the element is completed } ``` ## Selectors CPT provides selectors to identify entities such as jobs, user tasks, process instances, and more based on different criteria. You can use selectors in both utilities and assertions to target the entities you want to interact with or verify. The selector targets the first matching entity. CPT provides predefined selectors for common use cases. You can combine multiple selectors using `.and()` to create more specific selection criteria. ```java // Combine job selectors by job type and process instance key processTestContext.completeJob( JobSelectors.byJobType("send-notification") .and(JobSelectors.byProcessInstanceKey(processInstanceKey)) ); ``` Alternatively, you can implement your own custom selector when you need specialized selection logic. ```java // Implement a custom selector to select a user task by its assignee private static UserTaskSelector byAssignee(String assignee) { return new UserTaskSelectorByAssignee(assignee); } private static final class UserTaskSelectorByAssignee implements UserTaskSelector { private final String assignee; public UserTaskSelectorByAssignee(String assignee) { this.assignee = assignee; } @Override public boolean test(final UserTask userTask) { return assignee.equals(userTask.getAssignee()); } @Override public String describe() { return "assignee: " + assignee; } @Override public void applyFilter(final UserTaskFilter filter) { filter.assignee(assignee); } } ``` ### Decision selector You can use a decision selector to identify a DMN decision evaluation based on different criteria, such as decision ID or decision name. Predefined decision selectors are available in the `io.camunda.process.test.api.assertions.DecisionSelectors` class. ```java // Assert the evaluation of a DMN decision with the ID "credit-score" assertThatDecision(DecisionSelectors.byId("credit-score")).hasOutput(750); ``` ### Element selector You can use an element selector to identify a BPMN element based on different criteria, such as element ID or element name. Predefined element selectors are available in the `io.camunda.process.test.api.assertions.ElementSelectors` class. ```java // Assert the BPMN element with the ID "approve_request_task" assertThat(processInstance).hasActiveElements(ElementSelectors.byId("approve_request_task")); // Assert the BPMN element with the name "Approve Request" assertThat(processInstance).hasActiveElements(ElementSelectors.byName("Approve Request")); ``` ### Incident selector You can use an incident selector to identify an incident based on different criteria, such as BPMN element ID or process instance key. Predefined incident selectors are available in the `io.camunda.process.test.api.assertions.IncidentSelectors` class. ```java // Resolve an incident by the BPMN element ID "approve_request_task" processTestContext.resolveIncident(IncidentSelectors.byElementId("approve_request_task")); ``` ### Job selector You can use a job selector to identify a job based on different criteria, such as job type, BPMN element ID, or process instance key. Predefined job selectors are available in the `io.camunda.process.test.api.assertions.JobSelectors` class. ```java // Complete a job by its BPMN element ID processTestContext.completeJob(JobSelectors.byElementId("send_notification_task")); // Throw a BPMN error from a job by its job type processTestContext.throwBpmnErrorFromJob(JobSelectors.byJobType("validate-data"), "VALIDATION_FAILED"); ``` ### Process instance selector You can use a process instance selector to identify a process instance based on different criteria, such as process instance key or BPMN process ID. Predefined process instance selectors are available in the `io.camunda.process.test.api.assertions.ProcessInstanceSelectors` class. ```java // Assert a process instance by its process instance key assertThatProcessInstance(ProcessInstanceSelectors.byKey(processInstanceKey)).isCreated(); ``` ### User task selector You can use a user task selector to identify a user task based on different criteria, such as element ID, task name, or process instance key. Predefined user task selectors are available in the `io.camunda.process.test.api.assertions.UserTaskSelectors` class. ```java // Complete a user task by its task name processTestContext.completeUserTask(UserTaskSelectors.byTaskName("Approve Request"), variables); ``` ### Variable selector You can use a variable selector to identify a variable based on different criteria, such as variable name or variable value. Predefined variable selectors are available in the `io.camunda.process.test.api.assertions.VariableSelectors` class. ```java // Assert a variable by its name assertThatProcessInstance(processInstance).hasVariable(VariableSelectors.byName("approved"), true); ``` --- ## Migrate from Zeebe Process Test :::warning Zeebe Process Test was removed in Camunda 8.10. Use [Camunda Process Test](/apis-tools/testing/getting-started.md) instead. ::: For the release-level summary of this removal, see the [8.10 release announcement](/reference/announcements-release-notes/8100/8100-announcements.md#removal-of-legacy-apis-tasklist-v1-dependent-features-and-zeebe-process-test). Use [Camunda Process Test](/apis-tools/testing/getting-started.md) for current process testing, and review the [migration guide](/apis-tools/migration-manuals/migrate-to-camunda-process-test.md) to replace old ZPT dependencies, annotations, and assertions. ## Examples For example tests, refer to [GitHub](https://github.com/camunda-cloud/zeebe-process-test). --- ## Class: CamundaEffect :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: `Context` service key for the Effect Camunda client. Compose worker/orchestration code against this tag and provide [layer](../functions/layer.md) (or a test double) via `Layer`. ## Extends - `Shape`\<`"CamundaEffect"`, [`CamundaEffectClient`](../type-aliases/CamundaEffectClient.md), `this`\> ## Constructors ### Constructor ```ts new CamundaEffect(_): CamundaEffect; ``` #### Parameters ##### \_ `never` #### Returns `CamundaEffect` #### Inherited from ```ts Context.Service()("CamundaEffect") .constructor; ``` --- ## Class: CamundaGenericError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: Any other thrown value that does not map to a more specific tag. ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `cause?`: `unknown`; `message`: `string`; \}\> ## Constructors ### Constructor ```ts new CamundaGenericError(args): CamundaGenericError; ``` #### Parameters ##### args ###### cause? `unknown` ###### message `string` #### Returns `CamundaGenericError` #### Inherited from ```ts Data.TaggedError('CamundaGenericError')<{ readonly message: string; readonly cause?: unknown; }>.constructor ``` --- ## Class: CamundaValidationError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: A request/response validation failure surfaced by the SDK. ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `cause?`: `unknown`; `issues`: `string`[]; `message`: `string`; `operationId?`: `string`; `side`: `"request"` \| `"response"`; `summary`: `string`; \}\> ## Constructors ### Constructor ```ts new CamundaValidationError(args): CamundaValidationError; ``` #### Parameters ##### args ###### cause? `unknown` ###### issues `string`[] ###### message `string` ###### operationId? `string` ###### side `"request"` \| `"response"` ###### summary `string` #### Returns `CamundaValidationError` #### Inherited from ```ts Data.TaggedError('CamundaValidationError')<{ readonly side: 'request' | 'response'; readonly operationId?: string; readonly summary: string; readonly issues: string[]; readonly message: string; readonly cause?: unknown; }>.constructor ``` ## Properties ### issues ```ts readonly issues: string[]; ``` #### Inherited from ```ts Data.TaggedError("CamundaValidationError").issues; ``` --- ### operationId? ```ts readonly optional operationId?: string; ``` #### Inherited from ```ts Data.TaggedError("CamundaValidationError").operationId; ``` --- ### side ```ts readonly side: "request" | "response"; ``` #### Inherited from ```ts Data.TaggedError("CamundaValidationError").side; ``` --- ### summary ```ts readonly summary: string; ``` #### Inherited from ```ts Data.TaggedError("CamundaValidationError").summary; ``` --- ## Class: EventualConsistencyTimeout :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: An eventual-consistency poll that did not converge within its budget. ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `attempts?`: `number`; `cause?`: `unknown`; `elapsedMs?`: `number`; `message`: `string`; \}\> ## Constructors ### Constructor ```ts new EventualConsistencyTimeout(args): EventualConsistencyTimeout; ``` #### Parameters ##### args ###### attempts? `number` ###### cause? `unknown` ###### elapsedMs? `number` ###### message `string` #### Returns `EventualConsistencyTimeout` #### Inherited from ```ts Data.TaggedError('EventualConsistencyTimeout')<{ readonly attempts?: number; readonly elapsedMs?: number; readonly message: string; readonly cause?: unknown; }>.constructor ``` ## Properties ### attempts? ```ts readonly optional attempts?: number; ``` #### Inherited from ```ts Data.TaggedError("EventualConsistencyTimeout").attempts; ``` --- ### elapsedMs? ```ts readonly optional elapsedMs?: number; ``` #### Inherited from ```ts Data.TaggedError("EventualConsistencyTimeout").elapsedMs; ``` --- ## Class: HttpError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: An HTTP-level failure (non-2xx / transport carrying a status). ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `body?`: `unknown`; `cause?`: `unknown`; `message`: `string`; `status?`: `number`; \}\> ## Constructors ### Constructor ```ts new HttpError(args): HttpError; ``` #### Parameters ##### args ###### body? `unknown` ###### cause? `unknown` ###### message `string` ###### status? `number` #### Returns `HttpError` #### Inherited from ```ts Data.TaggedError('HttpError')<{ readonly status?: number; readonly body?: unknown; readonly message: string; readonly cause?: unknown; }>.constructor ``` ## Properties ### body? ```ts readonly optional body?: unknown; ``` #### Inherited from ```ts Data.TaggedError("HttpError").body; ``` --- ### status? ```ts readonly optional status?: number; ``` #### Inherited from ```ts Data.TaggedError("HttpError").status; ``` --- ## Class: RetryableJobError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: A retryable job failure: the handler could not complete the job now, but a later activation might succeed. Mapped to `failJob` with `retries - 1` and an optional server-side re-activation backoff. ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `cause?`: `unknown`; `message`: `string`; `retryBackoff?`: `Input`; `variables?`: \{ \[`key`: `string`\]: `unknown`; \}; \}\> ## Constructors ### Constructor ```ts new RetryableJobError(args): RetryableJobError; ``` #### Parameters ##### args ###### cause? `unknown` ###### message `string` ###### retryBackoff? `Input` Server-side delay before the job becomes re-activatable (`failJob` `retryBackOff`). ###### variables? \{ \[`key`: `string`\]: `unknown`; \} Optional variables to attach to the job on failure. #### Returns `RetryableJobError` #### Inherited from ```ts Data.TaggedError('RetryableJobError')<{ readonly message: string; / Server-side delay before the job becomes re-activatable (failJob retryBackOff). / readonly retryBackoff?: Duration.Input; / Optional variables to attach to the job on failure. / readonly variables?: { readonly [key: string]: unknown }; readonly cause?: unknown; }>.constructor ``` ## Properties ### retryBackoff? ```ts readonly optional retryBackoff?: Input; ``` Server-side delay before the job becomes re-activatable (`failJob` `retryBackOff`). #### Inherited from ```ts Data.TaggedError("RetryableJobError").retryBackoff; ``` --- ### variables? ```ts readonly optional variables?: object; ``` Optional variables to attach to the job on failure. #### Index Signature ```ts [key: string]: unknown ``` #### Inherited from ```ts Data.TaggedError("RetryableJobError").variables; ``` --- ## Class: TerminalJobError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: A terminal job failure: retrying will not help. Mapped to `throwJobError`, which is caught by a matching BPMN error boundary event or — if uncaught — raises an incident. ## Extends - `YieldableError`\<`this`\> & `object` & `Readonly`\<\{ `cause?`: `unknown`; `code`: `string`; `message`: `string`; `variables?`: \{ \[`key`: `string`\]: `unknown`; \}; \}\> ## Constructors ### Constructor ```ts new TerminalJobError(args): TerminalJobError; ``` #### Parameters ##### args ###### cause? `unknown` ###### code `string` The BPMN error code matched against an error catch event. ###### message `string` ###### variables? \{ \[`key`: `string`\]: `unknown`; \} Optional variables to instantiate at the error catch event's scope. #### Returns `TerminalJobError` #### Inherited from ```ts Data.TaggedError('TerminalJobError')<{ / The BPMN error code matched against an error catch event. / readonly code: string; readonly message: string; / Optional variables to instantiate at the error catch event's scope. / readonly variables?: { readonly [key: string]: unknown }; readonly cause?: unknown; }>.constructor ``` ## Properties ### code ```ts readonly code: string; ``` The BPMN error code matched against an error catch event. #### Inherited from ```ts Data.TaggedError("TerminalJobError").code; ``` --- ### variables? ```ts readonly optional variables?: object; ``` Optional variables to instantiate at the error catch event's scope. #### Index Signature ```ts [key: string]: unknown ``` #### Inherited from ```ts Data.TaggedError("TerminalJobError").variables; ``` --- ## Function: activateJobsStream() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function activateJobsStream( type, options? ): Stream; ``` A `Stream` of activated jobs of `type`. Repeatedly calls `activateJobs` (through the `/effect` client `Layer`, i.e. the same backpressure-aware runtime the Promise worker uses) and emits each activated job. The between-empty-polls delay and the optional activation-retry `Schedule` both run on the Effect `Clock`, so `TestClock.adjust` advances them deterministically in tests. ## Type Parameters ### R `R` = `never` ## Parameters ### type `string` ### options? [`ActivateJobsStreamOptions`](../interfaces/ActivateJobsStreamOptions.md)\<`R`\> = `{}` ## Returns `Stream`\<[`ActivatedJobResult`](../../index/type-aliases/ActivatedJobResult.md), [`DomainError`](../type-aliases/DomainError.md), [`CamundaEffect`](../classes/CamundaEffect.md) \| `R`\> --- ## Function: createCamundaEffectClient() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function createCamundaEffectClient(options?): CamundaEffectClient; ``` Create an Effect-flavoured Camunda client. Every `CamundaClient` method becomes `(...args) => Effect.Effect, DomainError, never>`. Failures are narrowed into the tagged [DomainError](../type-aliases/DomainError.md) union so callers use `Effect.catchTag`/`catchTags`. The underlying throwing client is reachable via the `.inner` escape hatch. ## Parameters ### options? [`CamundaOptions`](../../index/interfaces/CamundaOptions.md) ## Returns [`CamundaEffectClient`](../type-aliases/CamundaEffectClient.md) ## Description Camunda Effect Client. See the README and [this test](https://github.com/camunda/orchestration-cluster-api-js/blob/main/tests-integration/effect.test.ts) for example usage. --- ## Function: createCamundaEffectWorker() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function createCamundaEffectWorker( config ): Effect; ``` Create and start an Effect job worker, forked into the current `Scope`. The worker runs until its scope closes (or [CamundaEffectWorkerHandle.interrupt](../interfaces/CamundaEffectWorkerHandle.md#interrupt) is run), at which point it is interrupted and any in-flight job's lease is released. Depends on the [CamundaEffect](../classes/CamundaEffect.md) service — provide the `/effect` client `layer`. ## Type Parameters ### A `A` _extends_ [`CompleteVars`](../type-aliases/CompleteVars.md) ### R `R` = `never` ## Parameters ### config [`EffectWorkerConfig`](../interfaces/EffectWorkerConfig.md)\<`A`, `R`\> ## Returns `Effect`\<[`CamundaEffectWorkerHandle`](../interfaces/CamundaEffectWorkerHandle.md), `never`, [`CamundaEffect`](../classes/CamundaEffect.md) \| `R` \| `Scope`\> ## Description Camunda Effect Worker. See the README and [this test](https://github.com/camunda/orchestration-cluster-api-js/blob/main/tests-integration/effect-worker.test.ts) for example usage. --- ## Function: eventually() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function eventually( effect, predicate, opts ): Effect; ``` Poll `effect` on the Effect `Clock` until `predicate` holds, timing out to [EventualConsistencyTimeout](../classes/EventualConsistencyTimeout.md) once `waitUpTo` elapses. Because it uses the Effect `Clock` (not `Date.now`/`setTimeout`), `TestClock.adjust` advances it deterministically in tests — no real-clock burn. ## Type Parameters ### A `A` ### E `E` ### R `R` ## Parameters ### effect `Effect`\<`A`, `E`, `R`\> ### predicate (`a`) => `boolean` ### opts #### interval? `Input` #### waitUpTo `Input` ## Returns `Effect`\<`A`, \| [`EventualConsistencyTimeout`](../classes/EventualConsistencyTimeout.md) \| `E`, `R`\> --- ## Function: layer() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function layer(options?): Layer; ``` A `Layer` that constructs a [CamundaEffectClient](../type-aliases/CamundaEffectClient.md) and provides it as the [CamundaEffect](../classes/CamundaEffect.md) service. Swap in a test double by providing a different `Layer` for the same tag. ## Parameters ### options? [`CamundaOptions`](../../index/interfaces/CamundaOptions.md) ## Returns `Layer`\<[`CamundaEffect`](../classes/CamundaEffect.md)\> --- ## Function: retryWithBackoff() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function retryWithBackoff(effect, opts): Effect; ``` Retry an effect with exponential backoff (+ jitter), capped attempts, and an optional predicate over the error. ## Type Parameters ### A `A` ### E `E` ### R `R` ## Parameters ### effect `Effect`\<`A`, `E`, `R`\> ### opts #### baseDelay? `Input` #### max `number` #### while? (`e`) => `boolean` ## Returns `Effect`\<`A`, `E`, `R`\> --- ## Function: runWorkerLoop() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function runWorkerLoop( config ): Effect; ``` The worker loop: drains [activateJobsStream](activateJobsStream.md), running the handler for each job with bounded `concurrency` (the backpressure knob), and acknowledging via `completeJob`/`failJob`/`throwJobError` per the handler's typed outcome. ## Type Parameters ### A `A` _extends_ [`CompleteVars`](../type-aliases/CompleteVars.md) ### R `R` = `never` ## Parameters ### config [`EffectWorkerConfig`](../interfaces/EffectWorkerConfig.md)\<`A`, `R`\> ## Returns `Effect`\<`void`, [`DomainError`](../type-aliases/DomainError.md), [`CamundaEffect`](../classes/CamundaEffect.md) \| `R`\> --- ## Function: withTimeout() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function withTimeout( effect, duration, onTimeout? ): Effect; ``` Fail an effect with a real interruption if it does not settle within `duration` (true interruption, not a best-effort `Promise.race`). ## Type Parameters ### A `A` ### E `E` ### R `R` ## Parameters ### effect `Effect`\<`A`, `E`, `R`\> ### duration `Input` ### onTimeout? () => \| [`EventualConsistencyTimeout`](../classes/EventualConsistencyTimeout.md) \| `E` ## Returns `Effect`\<`A`, \| [`EventualConsistencyTimeout`](../classes/EventualConsistencyTimeout.md) \| `E`, `R`\> --- ## Function: workerLayer() :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts function workerLayer(config): Layer; ``` A `Layer` that runs a Camunda Effect worker for the layer's lifetime. Compose it with the `/effect` client `layer` (which provides its [CamundaEffect](../classes/CamundaEffect.md) dependency) plus a `Layer` for the handler's own requirements `R`. ## Type Parameters ### A `A` _extends_ [`CompleteVars`](../type-aliases/CompleteVars.md) ### R `R` = `never` ## Parameters ### config [`EffectWorkerConfig`](../interfaces/EffectWorkerConfig.md)\<`A`, `R`\> ## Returns `Layer`\<`never`, `never`, [`CamundaEffect`](../classes/CamundaEffect.md) \| `R`\> --- ## effect :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ## Classes - [CamundaEffect](classes/CamundaEffect.md) - [CamundaGenericError](classes/CamundaGenericError.md) - [CamundaValidationError](classes/CamundaValidationError.md) - [EventualConsistencyTimeout](classes/EventualConsistencyTimeout.md) - [HttpError](classes/HttpError.md) - [RetryableJobError](classes/RetryableJobError.md) - [TerminalJobError](classes/TerminalJobError.md) ## Interfaces - [ActivateJobsStreamOptions](interfaces/ActivateJobsStreamOptions.md) - [CamundaEffectWorkerHandle](interfaces/CamundaEffectWorkerHandle.md) - [EffectPaginateOptions](interfaces/EffectPaginateOptions.md) - [EffectPaginator](interfaces/EffectPaginator.md) - [EffectWorkerConfig](interfaces/EffectWorkerConfig.md) ## Type Aliases - [CamundaEffectClient](type-aliases/CamundaEffectClient.md) - [CompleteVars](type-aliases/CompleteVars.md) - [DomainError](type-aliases/DomainError.md) - [DomainErrorTag](type-aliases/DomainErrorTag.md) - [Effectify](type-aliases/Effectify.md) - [FnKeys](type-aliases/FnKeys.md) - [Job](type-aliases/Job.md) - [JobError](type-aliases/JobError.md) - [JobHandler](type-aliases/JobHandler.md) ## Functions - [activateJobsStream](functions/activateJobsStream.md) - [createCamundaEffectClient](functions/createCamundaEffectClient.md) - [createCamundaEffectWorker](functions/createCamundaEffectWorker.md) - [eventually](functions/eventually.md) - [layer](functions/layer.md) - [retryWithBackoff](functions/retryWithBackoff.md) - [runWorkerLoop](functions/runWorkerLoop.md) - [withTimeout](functions/withTimeout.md) - [workerLayer](functions/workerLayer.md) --- ## Interface: ActivateJobsStreamOptions # Interface: ActivateJobsStreamOptions\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ## Extended by - [`EffectWorkerConfig`](EffectWorkerConfig.md) ## Type Parameters ### R `R` = `never` ## Properties ### activationRetrySchedule? ```ts readonly optional activationRetrySchedule?: Schedule; ``` `Schedule` used to back off and retry a **failed activation request** (transport outage, broker restart, transient server error). Runs on the Effect `Clock`. When omitted, an activation failure fails the stream. --- ### fetchVariables? ```ts readonly optional fetchVariables?: readonly string[]; ``` Restrict activation to these variable names. --- ### jobTimeout? ```ts readonly optional jobTimeout?: Input; ``` Per-job activation lock timeout (server-side). Default `60 seconds`. --- ### maxJobsToActivate? ```ts readonly optional maxJobsToActivate?: number; ``` Max jobs to activate per poll (the activation batch size). Default `10`. --- ### pollInterval? ```ts readonly optional pollInterval?: Input; ``` Delay between polls that returned **no** jobs, on the Effect `Clock` (so it is virtual under `TestClock`). A poll that returns jobs schedules the next poll immediately. Default `1 second`. --- ### requestTimeout? ```ts readonly optional requestTimeout?: Input; ``` Long-poll request timeout. `0` (the default) lets the broker hold the request for its configured default; a negative value returns immediately when idle. --- ### withLease? ```ts readonly optional withLease?: boolean; ``` Activate jobs with a lease — default `false`. When `true`, each activated job is assigned a distinct, opaque lease token (`ActivatedJobResult.jobLeaseToken`) that is threaded back into the fenced `completeJob` / `failJob` / `throwJobError` commands, fencing them against a superseded activation of the same job. Note: the Effect `handler` intentionally keeps the base job shape (`jobLeaseToken` remains optional/nullable); the token is threaded back into fenced commands automatically, so handlers do not read it directly. --- ### workerName? ```ts readonly optional workerName?: string; ``` Worker name recorded on the activation request. Defaults to `effect-worker--`, where `` is an incrementing per-process counter. --- ## Interface: CamundaEffectWorkerHandle :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: A handle to a running Effect worker. ## Properties ### interrupt ```ts readonly interrupt: Effect; ``` Interrupt the worker (also happens automatically when the owning scope closes). --- ### join ```ts readonly join: Effect; ``` Completes when the worker loop ends (only on a fatal, non-retryable activation error). --- ### type ```ts readonly type: string; ``` The job type this worker activates. --- ## Interface: EffectPaginateOptions # Interface: EffectPaginateOptions\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: Options for the Effect client's `.paginate`. ## Type Parameters ### TData `TData` = `unknown` ## Properties ### consistency? ```ts readonly optional consistency?: ConsistencyOptions; ``` Eventual-consistency controls forwarded to the underlying search call. Defaults to `{ waitUpToMs: 0 }`. Only the **first** page honours this window: once paging is under way an empty page is end-of-results, not a not-yet-consistent read. --- ### maxPages? ```ts readonly optional maxPages?: number; ``` Safety cap on pages fetched (default: unbounded). A non-positive value fetches no pages at all — the cap is enforced _before_ the first request. --- ### mode? ```ts readonly optional mode?: PaginationMode; ``` How to advance. `auto` prefers a cursor, falls back to offset. --- ## Interface: EffectPaginator # Interface: EffectPaginator\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: The Effect-flavoured counterpart of a [Paginator](../../index/interfaces/Paginator.md): the same three views (`pages` / `items` / `toArray`) over a multi-page search, as `Stream`s and an `Effect` rather than async iterables and a `Promise`. Every view is lazy — a page is fetched only when pulled — and interruptible: interrupting the fiber cancels the in-flight page request rather than leaving it to settle unobserved. ## Type Parameters ### TItem `TItem` ## Methods ### items() ```ts items(): Stream; ``` A `Stream` of individual items, flattened across all pages. #### Returns `Stream`\<`TItem`, [`DomainError`](../type-aliases/DomainError.md)\> --- ### pages() ```ts pages(): Stream, DomainError>; ``` A `Stream` of whole pages, each fetched lazily as it is pulled. #### Returns `Stream`\<[`SearchResponse`](../../index/interfaces/SearchResponse.md)\<`TItem`\>, [`DomainError`](../type-aliases/DomainError.md)\> --- ### toArray() ```ts toArray(): Effect; ``` Eagerly drains every item into an array. Bounded result sets only. #### Returns `Effect`\<`TItem`[], [`DomainError`](../type-aliases/DomainError.md)\> --- ## Interface: EffectWorkerConfig # Interface: EffectWorkerConfig\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ## Extends - [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md)\<`R`\> ## Type Parameters ### A `A` _extends_ [`CompleteVars`](../type-aliases/CompleteVars.md) ### R `R` = `never` ## Properties ### activationRetrySchedule? ```ts readonly optional activationRetrySchedule?: Schedule; ``` `Schedule` used to back off and retry a **failed activation request** (transport outage, broker restart, transient server error). Runs on the Effect `Clock`. When omitted, an activation failure fails the stream. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`activationRetrySchedule`](ActivateJobsStreamOptions.md#activationretryschedule) --- ### concurrency? ```ts readonly optional concurrency?: number | "unbounded"; ``` Max jobs processed concurrently (handler parallelism / backpressure). The activation loop will not pull faster than handlers drain, and the activation batch is capped to this value (when it is a finite number) so the worker never leases more jobs than it can process at once. Default: the value of [ActivateJobsStreamOptions.maxJobsToActivate](ActivateJobsStreamOptions.md#maxjobstoactivate) (or `10`). --- ### fetchVariables? ```ts readonly optional fetchVariables?: readonly string[]; ``` Restrict activation to these variable names. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`fetchVariables`](ActivateJobsStreamOptions.md#fetchvariables) --- ### handler ```ts readonly handler: JobHandler; ``` The Effect job handler. --- ### handlerRetrySchedule? ```ts readonly optional handlerRetrySchedule?: Schedule; ``` `Schedule` used to retry the **handler** in-process on a [RetryableJobError](../classes/RetryableJobError.md) before the job is failed back to the broker. Runs on the Effect `Clock` (virtual under `TestClock`). A [TerminalJobError](../classes/TerminalJobError.md) is never retried. --- ### jobTimeout? ```ts readonly optional jobTimeout?: Input; ``` Per-job activation lock timeout (server-side). Default `60 seconds`. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`jobTimeout`](ActivateJobsStreamOptions.md#jobtimeout) --- ### maxJobsToActivate? ```ts readonly optional maxJobsToActivate?: number; ``` Max jobs to activate per poll (the activation batch size). Default `10`. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`maxJobsToActivate`](ActivateJobsStreamOptions.md#maxjobstoactivate) --- ### pollInterval? ```ts readonly optional pollInterval?: Input; ``` Delay between polls that returned **no** jobs, on the Effect `Clock` (so it is virtual under `TestClock`). A poll that returns jobs schedules the next poll immediately. Default `1 second`. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`pollInterval`](ActivateJobsStreamOptions.md#pollinterval) --- ### requestTimeout? ```ts readonly optional requestTimeout?: Input; ``` Long-poll request timeout. `0` (the default) lets the broker hold the request for its configured default; a negative value returns immediately when idle. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`requestTimeout`](ActivateJobsStreamOptions.md#requesttimeout) --- ### type ```ts readonly type: string; ``` The job type to activate. --- ### withLease? ```ts readonly optional withLease?: boolean; ``` Activate jobs with a lease — default `false`. When `true`, each activated job is assigned a distinct, opaque lease token (`ActivatedJobResult.jobLeaseToken`) that is threaded back into the fenced `completeJob` / `failJob` / `throwJobError` commands, fencing them against a superseded activation of the same job. Note: the Effect `handler` intentionally keeps the base job shape (`jobLeaseToken` remains optional/nullable); the token is threaded back into fenced commands automatically, so handlers do not read it directly. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`withLease`](ActivateJobsStreamOptions.md#withlease) --- ### workerName? ```ts readonly optional workerName?: string; ``` Worker name recorded on the activation request. Defaults to `effect-worker--`, where `` is an incrementing per-process counter. #### Inherited from [`ActivateJobsStreamOptions`](ActivateJobsStreamOptions.md).[`workerName`](ActivateJobsStreamOptions.md#workername) --- ## Type Alias: CamundaEffectClient :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type CamundaEffectClient = Effectify; ``` The Effect-flavoured Camunda client. Every operation returns an `Effect`. --- ## Type Alias: CompleteVars :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type CompleteVars = | { [key: string]: unknown; } | void | undefined; ``` Variables to complete a job with. `void`/`undefined` completes with no variables. --- ## Type Alias: DomainError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type DomainError = | CamundaValidationError | EventualConsistencyTimeout | HttpError | CamundaGenericError; ``` The typed error channel for every Effect the client produces. --- ## Type Alias: DomainErrorTag :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type DomainErrorTag = DomainError["_tag"]; ``` The tag literals of the [DomainError](DomainError.md) union. --- ## Type Alias: Effectify # Type Alias: Effectify\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type Effectify = { [K in FnKeys]: EffectifyMethod } & object & { [K in Exclude>]: C[K]; }; ``` Maps every method of `C` to an Effect-returning method, preserving non-fn members. ## Type Parameters ### C `C` ## Type Declaration ### inner ```ts inner: C; ``` --- ## Type Alias: FnKeys # Type Alias: FnKeys\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type FnKeys = { [K in keyof C]: C[K] extends (a: any) => any ? K : never; }[keyof C]; ``` Keys of `C` whose values are callable. ## Type Parameters ### C `C` --- ## Type Alias: Job :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type Job = ActivatedJobResult; ``` A single activated job handed to an Effect handler. This is the raw activation payload (variables + custom headers + lifecycle keys); acknowledgement is driven by the value/error the handler's `Effect` produces, not by imperative methods. --- ## Type Alias: JobError :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type JobError = RetryableJobError | TerminalJobError; ``` The typed error channel a job handler may fail with. --- ## Type Alias: JobHandler # Type Alias: JobHandler\ :::info Opt-In Subpath The Effect API is an **opt-in subpath** (`@camunda8/orchestration-cluster-api/effect`) and requires the optional `effect` peer dependency. The main `.` entry stays Promise-based and pulls in zero Effect at runtime. ::: ```ts type JobHandler = (job) => Effect.Effect; ``` A job handler: consumes a [Job](Job.md), produces completion variables or a [JobError](JobError.md). ## Type Parameters ### A `A` _extends_ [`CompleteVars`](CompleteVars.md) ### R `R` ## Parameters ### job [`Job`](Job.md) ## Returns `Effect.Effect`\<`A`, [`JobError`](JobError.md), `R`\> --- ## Class: CamundaClientBase The Camunda client's operation methods. Create clients with [createCamundaClient](../functions/createCamundaClient.md) or [CamundaClient](../variables/CamundaClient.md), which add `.paginate(...)` to every search operation. ## Extends - `CamundaCore` ## Constructors ### Constructor ```ts new CamundaClientBase(opts?): CamundaClientBase; ``` #### Parameters ##### opts? [`CamundaOptions`](../interfaces/CamundaOptions.md) = `{}` #### Returns `CamundaClientBase` #### Overrides ```ts CamundaCore.constructor; ``` ## Accessors ### clock #### Get Signature ```ts get clock(): Clock; ``` Clock backing SDK-internal cadence. The injected one when supplied, else the live clock. ##### Returns [`Clock`](../interfaces/Clock.md) #### Inherited from ```ts CamundaCore.clock; ``` --- ### config #### Get Signature ```ts get config(): Readonly; ``` ##### Returns `Readonly`\<[`CamundaConfig`](../interfaces/CamundaConfig.md)\> #### Inherited from ```ts CamundaCore.config; ``` --- ### random #### Get Signature ```ts get random(): RandomSource; ``` Randomness behind SDK-internal jitter. The injected source when supplied, else the live one. ##### Returns [`RandomSource`](../interfaces/RandomSource.md) #### Inherited from ```ts CamundaCore.random; ``` ## Methods ### \_getSupportLogger() ```ts _getSupportLogger(): SupportLogger; ``` Internal accessor for support logger (no public API commitment yet). #### Returns [`SupportLogger`](../interfaces/SupportLogger.md) #### Inherited from ```ts CamundaCore._getSupportLogger; ``` --- ### \_invokeWithRetry() ```ts _invokeWithRetry(op, opts): Promise; ``` Internal invocation helper to apply global backpressure gating + retry + normalization #### Type Parameters ##### T `T` #### Parameters ##### op () => `Promise`\<`T`\> ##### opts ###### classify? (`e`) => `object` ###### exempt? `boolean` ###### opId `string` ###### retryOverride? \| `false` \| `Partial`\<[`HttpRetryPolicy`](../interfaces/HttpRetryPolicy.md)\> #### Returns `Promise`\<`T`\> #### Inherited from ```ts CamundaCore._invokeWithRetry; ``` --- ### activateAdHocSubProcessActivities() ```ts activateAdHocSubProcessActivities(input, options?): CancelablePromise; ``` Activate activities within an ad-hoc sub-process Activates selected activities within an ad-hoc sub-process identified by element ID. The provided element IDs must exist within the ad-hoc sub-process instance identified by the provided adHocSubProcessInstanceKey. - #### Parameters ##### input [`activateAdHocSubProcessActivitiesInput`](../type-aliases/activateAdHocSubProcessActivitiesInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Activate ad-hoc sub-process activities** ```ts async function activateAdHocSubProcessActivitiesExample( adHocSubProcessInstanceKey: ElementInstanceKey, elementId: ElementId ) { const camunda = createCamundaClient(); await camunda.activateAdHocSubProcessActivities({ adHocSubProcessInstanceKey, elements: [{ elementId }], }); } ``` #### Operation Id activateAdHocSubProcessActivities #### Tags Ad-hoc sub-process --- ### activateJobs() #### Call Signature ```ts activateJobs(input, options?): CancelablePromise<{ jobs: EnrichedActivatedJobOf[]; }>; ``` Activate jobs Iterate through all known partitions and activate jobs up to the requested maximum. - ##### Parameters ###### input [`JobActivationRequest`](../type-aliases/JobActivationRequest.md) & `object` ###### options? [`OperationOptions`](../interfaces/OperationOptions.md) ##### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `jobs`: [`EnrichedActivatedJobOf`](../type-aliases/EnrichedActivatedJobOf.md)\<[`ActivatedJobResultWithJobLeaseToken`](../type-aliases/ActivatedJobResultWithJobLeaseToken.md)\>[]; \}\> ##### Example **Activate and process jobs** ```ts async function activateJobsExample() { const camunda = createCamundaClient(); const result = await camunda.activateJobs({ type: "payment-processing", timeout: 30000, maxJobsToActivate: 5, }); for (const job of result.jobs) { console.log(`Job ${job.jobKey}: ${job.type}`); // Each enriched job has helper methods await job.complete({ paymentId: "PAY-123" }); } } ``` ##### Operation Id activateJobs ##### Tags Job #### Call Signature ```ts activateJobs(input, options?): CancelablePromise<{ jobs: EnrichedActivatedJobOf[]; }>; ``` Activate jobs Iterate through all known partitions and activate jobs up to the requested maximum. - ##### Parameters ###### input [`JobActivationRequest`](../type-aliases/JobActivationRequest.md) & `object` ###### options? [`OperationOptions`](../interfaces/OperationOptions.md) ##### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `jobs`: [`EnrichedActivatedJobOf`](../type-aliases/EnrichedActivatedJobOf.md)\<[`ActivatedJobResultWithoutJobLeaseToken`](../type-aliases/ActivatedJobResultWithoutJobLeaseToken.md)\>[]; \}\> ##### Example **Activate and process jobs** ```ts async function activateJobsExample() { const camunda = createCamundaClient(); const result = await camunda.activateJobs({ type: "payment-processing", timeout: 30000, maxJobsToActivate: 5, }); for (const job of result.jobs) { console.log(`Job ${job.jobKey}: ${job.type}`); // Each enriched job has helper methods await job.complete({ paymentId: "PAY-123" }); } } ``` ##### Operation Id activateJobs ##### Tags Job #### Call Signature ```ts activateJobs(input, options?): CancelablePromise<{ jobs: EnrichedActivatedJob[]; }>; ``` Activate jobs Iterate through all known partitions and activate jobs up to the requested maximum. - ##### Parameters ###### input [`JobActivationRequest`](../type-aliases/JobActivationRequest.md) ###### options? [`OperationOptions`](../interfaces/OperationOptions.md) ##### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `jobs`: [`EnrichedActivatedJob`](../interfaces/EnrichedActivatedJob.md)[]; \}\> ##### Example **Activate and process jobs** ```ts async function activateJobsExample() { const camunda = createCamundaClient(); const result = await camunda.activateJobs({ type: "payment-processing", timeout: 30000, maxJobsToActivate: 5, }); for (const job of result.jobs) { console.log(`Job ${job.jobKey}: ${job.type}`); // Each enriched job has helper methods await job.complete({ paymentId: "PAY-123" }); } } ``` ##### Operation Id activateJobs ##### Tags Job --- ### assignClientToGroup() ```ts assignClientToGroup(input, options?): CancelablePromise; ``` Assign a client to a group Assigns a client to a group, making it a member of the group. Members of the group inherit the group authorizations, roles, and tenant assignments. - #### Parameters ##### input [`assignClientToGroupInput`](../type-aliases/assignClientToGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a client to a group** ```ts async function assignClientToGroupExample( groupId: GroupId, clientId: ClientId ) { const camunda = createCamundaClient(); await camunda.assignClientToGroup({ groupId, clientId, }); } ``` #### Operation Id assignClientToGroup #### Tags Group --- ### assignClientToTenant() ```ts assignClientToTenant(input, options?): CancelablePromise; ``` Assign a client to a tenant Assign the client to the specified tenant. The client can then access tenant data and perform authorized actions. - #### Parameters ##### input [`assignClientToTenantInput`](../type-aliases/assignClientToTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a client to a tenant** ```ts async function assignClientToTenantExample( tenantId: TenantId, clientId: ClientId ) { const camunda = createCamundaClient(); await camunda.assignClientToTenant({ tenantId, clientId, }); } ``` #### Operation Id assignClientToTenant #### Tags Tenant --- ### assignGroupToTenant() ```ts assignGroupToTenant(input, options?): CancelablePromise; ``` Assign a group to a tenant Assigns a group to a specified tenant. Group members (users, clients) can then access tenant data and perform authorized actions. - #### Parameters ##### input [`assignGroupToTenantInput`](../type-aliases/assignGroupToTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a group to a tenant** ```ts async function assignGroupToTenantExample( tenantId: TenantId, groupId: GroupId ) { const camunda = createCamundaClient(); await camunda.assignGroupToTenant({ tenantId, groupId, }); } ``` #### Operation Id assignGroupToTenant #### Tags Tenant --- ### assignMappingRuleToGroup() ```ts assignMappingRuleToGroup(input, options?): CancelablePromise; ``` Assign a mapping rule to a group Assigns a mapping rule to a group. * #### Parameters ##### input [`assignMappingRuleToGroupInput`](../type-aliases/assignMappingRuleToGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a mapping rule to a group** ```ts async function assignMappingRuleToGroupExample( groupId: GroupId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.assignMappingRuleToGroup({ groupId, mappingRuleId, }); } ``` #### Operation Id assignMappingRuleToGroup #### Tags Group --- ### assignMappingRuleToTenant() ```ts assignMappingRuleToTenant(input, options?): CancelablePromise; ``` Assign a mapping rule to a tenant Assign a single mapping rule to a specified tenant. * #### Parameters ##### input [`assignMappingRuleToTenantInput`](../type-aliases/assignMappingRuleToTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a mapping rule to a tenant** ```ts async function assignMappingRuleToTenantExample( tenantId: TenantId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.assignMappingRuleToTenant({ tenantId, mappingRuleId, }); } ``` #### Operation Id assignMappingRuleToTenant #### Tags Tenant --- ### assignProcessInstanceBusinessId() ```ts assignProcessInstanceBusinessId(input, options?): CancelablePromise; ``` Assign business id to process instance Assigns a business id to an already-running process instance that currently has none. The assignment is single and irreversible: only artifacts created after the assignment (for example future jobs, user tasks, decision instances, and message subscriptions) carry the business id, while existing artifacts are not retroactively enriched. Re-sending the same business id succeeds as a no-op. This endpoint is only useful while business id uniqueness enforcement is disabled; when it is enabled, the request is rejected with a 409 response. - #### Parameters ##### input [`assignProcessInstanceBusinessIdInput`](../type-aliases/assignProcessInstanceBusinessIdInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a business ID to a process instance** ```ts async function assignProcessInstanceBusinessIdExample( processInstanceKey: ProcessInstanceKey, businessId: BusinessId ) { const camunda = createCamundaClient(); await camunda.assignProcessInstanceBusinessId({ processInstanceKey, businessId, }); } ``` #### Operation Id assignProcessInstanceBusinessId #### Tags Process instance --- ### assignRoleToClient() ```ts assignRoleToClient(input, options?): CancelablePromise; ``` Assign a role to a client Assigns the specified role to the client. The client will inherit the authorizations associated with this role. * #### Parameters ##### input [`assignRoleToClientInput`](../type-aliases/assignRoleToClientInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a role to a client** ```ts async function assignRoleToClientExample(roleId: RoleId, clientId: ClientId) { const camunda = createCamundaClient(); await camunda.assignRoleToClient({ roleId, clientId, }); } ``` #### Operation Id assignRoleToClient #### Tags Role --- ### assignRoleToGroup() ```ts assignRoleToGroup(input, options?): CancelablePromise; ``` Assign a role to a group Assigns the specified role to the group. Every member of the group (user or client) will inherit the authorizations associated with this role. * #### Parameters ##### input [`assignRoleToGroupInput`](../type-aliases/assignRoleToGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a role to a group** ```ts async function assignRoleToGroupExample(roleId: RoleId, groupId: GroupId) { const camunda = createCamundaClient(); await camunda.assignRoleToGroup({ roleId, groupId, }); } ``` #### Operation Id assignRoleToGroup #### Tags Role --- ### assignRoleToMappingRule() ```ts assignRoleToMappingRule(input, options?): CancelablePromise; ``` Assign a role to a mapping rule Assigns a role to a mapping rule. * #### Parameters ##### input [`assignRoleToMappingRuleInput`](../type-aliases/assignRoleToMappingRuleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a role to a mapping rule** ```ts async function assignRoleToMappingRuleExample( roleId: RoleId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.assignRoleToMappingRule({ roleId, mappingRuleId, }); } ``` #### Operation Id assignRoleToMappingRule #### Tags Role --- ### assignRoleToTenant() ```ts assignRoleToTenant(input, options?): CancelablePromise; ``` Assign a role to a tenant Assigns a role to a specified tenant. Users, Clients or Groups, that have the role assigned, will get access to the tenant's data and can perform actions according to their authorizations. - #### Parameters ##### input [`assignRoleToTenantInput`](../type-aliases/assignRoleToTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a role to a tenant** ```ts async function assignRoleToTenantExample(tenantId: TenantId, roleId: RoleId) { const camunda = createCamundaClient(); await camunda.assignRoleToTenant({ tenantId, roleId, }); } ``` #### Operation Id assignRoleToTenant #### Tags Tenant --- ### assignRoleToUser() ```ts assignRoleToUser(input, options?): CancelablePromise; ``` Assign a role to a user Assigns the specified role to the user. The user will inherit the authorizations associated with this role. * #### Parameters ##### input [`assignRoleToUserInput`](../type-aliases/assignRoleToUserInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a role to a user** ```ts async function assignRoleToUserExample(roleId: RoleId, username: Username) { const camunda = createCamundaClient(); await camunda.assignRoleToUser({ roleId, username, }); } ``` #### Operation Id assignRoleToUser #### Tags Role --- ### assignUserTask() ```ts assignUserTask(input, options?): CancelablePromise; ``` Assign user task Assigns a user task with the given key to the given assignee. Assignment waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input [`assignUserTaskInput`](../type-aliases/assignUserTaskInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a user task** ```ts async function assignUserTaskExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); await camunda.assignUserTask({ userTaskKey, assignee: "alice", allowOverride: true, }); } ``` #### Operation Id assignUserTask #### Tags User task --- ### assignUserToGroup() ```ts assignUserToGroup(input, options?): CancelablePromise; ``` Assign a user to a group Assigns a user to a group, making the user a member of the group. Group members inherit the group authorizations, roles, and tenant assignments. - #### Parameters ##### input [`assignUserToGroupInput`](../type-aliases/assignUserToGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a user to a group** ```ts async function assignUserToGroupExample(groupId: GroupId, username: Username) { const camunda = createCamundaClient(); await camunda.assignUserToGroup({ groupId, username, }); } ``` #### Operation Id assignUserToGroup #### Tags Group --- ### assignUserToTenant() ```ts assignUserToTenant(input, options?): CancelablePromise; ``` Assign a user to a tenant Assign a single user to a specified tenant. The user can then access tenant data and perform authorized actions. * #### Parameters ##### input [`assignUserToTenantInput`](../type-aliases/assignUserToTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Assign a user to a tenant** ```ts async function assignUserToTenantExample( tenantId: TenantId, username: Username ) { const camunda = createCamundaClient(); await camunda.assignUserToTenant({ tenantId, username, }); } ``` #### Operation Id assignUserToTenant #### Tags Tenant --- ### broadcastSignal() ```ts broadcastSignal(input, options?): CancelablePromise; ``` Broadcast signal Broadcasts a signal. * #### Parameters ##### input [`SignalBroadcastRequest`](../type-aliases/SignalBroadcastRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`SignalBroadcastResult`](../type-aliases/SignalBroadcastResult.md)\> #### Example **Broadcast a signal** ```ts async function broadcastSignalExample() { const camunda = createCamundaClient(); const result = await camunda.broadcastSignal({ signalName: "system-shutdown", variables: { reason: "Scheduled maintenance", }, }); console.log(`Signal broadcast key: ${result.signalKey}`); } ``` #### Operation Id broadcastSignal #### Tags Signal --- ### cancelBatchOperation() ```ts cancelBatchOperation(input, options?): CancelablePromise; ``` Cancel Batch operation Cancels a running batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input ###### batchOperationKey [`BatchOperationKey`](../type-aliases/BatchOperationKey.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Cancel a batch operation** ```ts async function cancelBatchOperationExample( batchOperationKey: BatchOperationKey ) { const camunda = createCamundaClient(); await camunda.cancelBatchOperation({ batchOperationKey }); } ``` #### Operation Id cancelBatchOperation #### Tags Batch operation --- ### cancelClusterRebalance() ```ts cancelClusterRebalance(options?): CancelablePromise; ``` Stop the running rebalance Asks the running rebalance to stop once the transfer in flight has finished. Partitions already transferred keep their new leaders, and those the rebalance had not yet reached keep their current ones. Cancellation requests are idempotent and always accepted. The `wasRunning` response field can be used to distinguish a cancellation that found a running rebalance from one that did not. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RebalanceCancellationResponse`](../type-aliases/RebalanceCancellationResponse.md)\> #### Example **Cancel the running cluster rebalance** ```ts async function cancelClusterRebalanceExample() { const camunda = createCamundaClient(); const result = await camunda.cancelClusterRebalance(); console.log( `Cancel requested; was a rebalance running? ${result.wasRunning}` ); } ``` #### Operation Id cancelClusterRebalance #### Tags Cluster --- ### cancelProcessInstance() ```ts cancelProcessInstance(input, options?): CancelablePromise; ``` Cancel process instance Cancels a running process instance. As a cancellation includes more than just the removal of the process instance resource, the cancellation resource must be posted. Cancellation can wait on listener-related processing; when that processing does not complete in time, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Cancel a process instance** ```ts async function cancelProcessInstanceExample( processDefinitionId: ProcessDefinitionId ) { const camunda = createCamundaClient(); // Create a process instance and get its key from the response const created = await camunda.createProcessInstance({ processDefinitionId, }); // Cancel the process instance using the key from the creation response await camunda.cancelProcessInstance({ processInstanceKey: created.processInstanceKey, }); } ``` #### Operation Id cancelProcessInstance #### Tags Process instance --- ### cancelProcessInstancesBatchOperation() ```ts cancelProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Cancel process instances (batch) Cancels multiple active or suspended process instances. Only ACTIVE and SUSPENDED root instances can be cancelled. A state filter narrows the batch to the given states. Requesting any state other than ACTIVE or SUSPENDED through the `$eq` or `$in` operators is rejected. Other state operators (`$neq`, `$exists`, `$like`) are applied as given, and the batch remains limited to ACTIVE and SUSPENDED instances. Without a state filter, both ACTIVE and SUSPENDED instances are selected. Any given filter for parentProcessInstanceKey is ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceCancellationBatchOperationRequest`](../type-aliases/ProcessInstanceCancellationBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Cancel process instances in batch** ```ts async function cancelProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.cancelProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id cancelProcessInstancesBatchOperation #### Tags Process instance --- ### changeClusterMode() ```ts changeClusterMode(input, options?): CancelablePromise; ``` Change cluster mode Transitions the cluster between processing and recovery mode. This is a non-blocking operation: the request is acknowledged once the change has been accepted, before the transition itself has completed. Entering recovery mode deactivates all partitions so that only a restricted set of read-only operations remains available; exiting recovery mode returns the cluster to normal processing. Returns the planned cluster change so its progress can be monitored via the topology. * #### Parameters ##### input [`changeClusterModeInput`](../type-aliases/changeClusterModeInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterModeChangeResponse`](../type-aliases/ClusterModeChangeResponse.md)\> #### Example **Change cluster mode** ```ts async function changeClusterModeExample() { const camunda = createCamundaClient(); // Transition the cluster into recovery mode. Pass `dryRun: true` to validate // the request and inspect the resulting plan without applying it. Omit it (or // set it to false) to actually trigger the transition. const change = await camunda.changeClusterMode({ mode: "RECOVERING", dryRun: true, }); // Operations are grouped by physical tenant; a null tenant means the operation // is not scoped to one, such as a broker lifecycle operation. console.log(`Cluster change ${change.changeId}:`); for (const group of change.plannedChanges) { console.log(` ${group.physicalTenantId ?? "cluster-wide"}:`); for (const op of group.operations) { console.log(` ${op.operation}${op.mode ? ` -> ${op.mode}` : ""}`); } } } ``` #### Operation Id changeClusterMode #### Tags Recovery --- ### changeClusterModeAsClusterAdmin() ```ts changeClusterModeAsClusterAdmin(input, options?): CancelablePromise; ``` Change the cluster mode of one or every physical tenant Transitions physical tenants between processing and recovery mode. If the `physicalTenantId` parameter is not provided, all available physical tenants are transitioned individually. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### input [`changeClusterModeAsClusterAdminInput`](../type-aliases/changeClusterModeAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterModeChangeResponse`](../type-aliases/ClusterModeChangeResponse.md)\> #### Example **Change cluster mode as cluster admin** ```ts async function changeClusterModeAsClusterAdminExample() { const camunda = createCamundaClient(); // The cluster-admin variant can target a single physical tenant. Omit // `physicalTenantId` to apply the change to every physical tenant. const change = await camunda.changeClusterModeAsClusterAdmin({ mode: "RECOVERING", physicalTenantId: "default", dryRun: true, }); console.log(`Cluster change ${change.changeId}:`); for (const group of change.plannedChanges) { console.log(` ${group.physicalTenantId ?? "cluster-wide"}:`); for (const op of group.operations) { console.log(` ${op.operation}${op.mode ? ` -> ${op.mode}` : ""}`); } } } ``` #### Operation Id changeClusterModeAsClusterAdmin #### Tags Recovery --- ### clearAuthCache() ```ts clearAuthCache(opts?): void; ``` #### Parameters ##### opts? ###### disk? `boolean` ###### memory? `boolean` #### Returns `void` #### Inherited from ```ts CamundaCore.clearAuthCache; ``` --- ### completeJob() ```ts completeJob(input, options?): CancelablePromise; ``` Complete job Complete a job with the given payload, which allows completing the associated service task. - #### Parameters ##### input [`completeJobInput`](../type-aliases/completeJobInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Complete a job** ```ts async function completeJobExample(jobKey: JobKey) { const camunda = createCamundaClient(); await camunda.completeJob({ jobKey, variables: { paymentId: "PAY-123", status: "completed", }, }); } ``` #### Operation Id completeJob #### Tags Job --- ### completeUserTask() ```ts completeUserTask(input, options?): CancelablePromise; ``` Complete user task Completes a user task with the given key. Completion waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input [`completeUserTaskInput`](../type-aliases/completeUserTaskInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Complete a user task** ```ts async function completeUserTaskExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); await camunda.completeUserTask({ userTaskKey, variables: { approved: true, comment: "Looks good", }, }); } ``` #### Operation Id completeUserTask #### Tags User task --- ### configure() ```ts configure(next): void; ``` #### Parameters ##### next [`CamundaOptions`](../interfaces/CamundaOptions.md) #### Returns `void` #### Inherited from ```ts CamundaCore.configure; ``` --- ### correlateMessage() ```ts correlateMessage(input, options?): CancelablePromise; ``` Correlate message Publishes a message and correlates it to a subscription. If correlation is successful it will return the first process instance key the message correlated with. The message is not buffered. Use the publish message endpoint to send messages that can be buffered. - #### Parameters ##### input [`MessageCorrelationRequest`](../type-aliases/MessageCorrelationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MessageCorrelationResult`](../type-aliases/MessageCorrelationResult.md)\> #### Example **Correlate a message** ```ts async function correlateMessageExample() { const camunda = createCamundaClient(); const result = await camunda.correlateMessage({ name: "order-payment-received", correlationKey: "ORD-12345", variables: { paymentId: "PAY-123", amount: 99.95, }, }); console.log(`Message correlated to: ${result.processInstanceKey}`); } ``` #### Operation Id correlateMessage #### Tags Message --- ### createAdminUser() ```ts createAdminUser(input, options?): CancelablePromise; ``` Create admin user Creates a new user and assigns the admin role to it. This endpoint is only usable when users are managed in the Orchestration Cluster and while no user is assigned to the admin role. * #### Parameters ##### input [`UserRequest`](../type-aliases/UserRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserCreateResult`](../type-aliases/UserCreateResult.md)\> #### Example **Create an admin user** ```ts async function createAdminUserExample(username: Username) { const camunda = createCamundaClient(); const result = await camunda.createAdminUser({ username, name: "Admin User", email: "admin@example.com", password: "admin-password-123", }); console.log(`Created admin user: ${result.username}`); } ``` #### Operation Id createAdminUser #### Tags Setup --- ### createAgentInstance() ```ts createAgentInstance(input, options?): CancelablePromise; ``` Create agent instance Creates a new agent instance. The returned key identifies the instance and must be used in subsequent update and query calls. - #### Parameters ##### input [`AgentInstanceCreationRequest`](../type-aliases/AgentInstanceCreationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentInstanceCreationResult`](../type-aliases/AgentInstanceCreationResult.md)\> #### Example **Create an agent instance** ```ts async function createAgentInstanceExample( elementInstanceKey: ElementInstanceKey, jobKey: JobKey, jobLeaseToken: JobLeaseToken ) { const camunda = createCamundaClient(); // The batch must open with a CONFIGURATION item; it establishes the model, // provider and system prompt for the instance. const result = await camunda.createAgentInstance({ elementInstanceKey, jobKey, jobLeaseToken, history: [ { historyItemId: HistoryItemId.assumeExists("configuration-1"), loopIteration: 1, role: "CONFIGURATION", content: [], producedAt: new Date().toISOString(), model: "gpt-4o", provider: "openai", systemPrompt: [ { contentType: "TEXT", text: "You are a helpful assistant." }, ], }, ], }); console.log(`Created agent instance: ${result.agentInstanceKey}`); } ``` #### Operation Id createAgentInstance #### Tags Agent instance --- ### createAuthorization() ```ts createAuthorization(input, options?): CancelablePromise; ``` Create authorization Create the authorization. * #### Parameters ##### input \| [`AuthorizationIdBasedRequest`](../type-aliases/AuthorizationIdBasedRequest.md) \| [`AuthorizationPropertyBasedRequest`](../type-aliases/AuthorizationPropertyBasedRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuthorizationCreateResult`](../type-aliases/AuthorizationCreateResult.md)\> #### Example **Create an authorization** ```ts async function createAuthorizationExample() { const camunda = createCamundaClient(); const result = await camunda.createAuthorization({ ownerId: "user-123", ownerType: "USER", resourceId: "order-process", resourceType: "PROCESS_DEFINITION", permissionTypes: ["CREATE_PROCESS_INSTANCE", "READ_PROCESS_INSTANCE"], }); console.log(`Authorization key: ${result.authorizationKey}`); } ``` #### Operation Id createAuthorization #### Tags Authorization --- ### createDeployment() ```ts createDeployment(input, options?): CancelablePromise; ``` Deploy resources Deploys one or more resources, including BPMN processes, DMN decision models, forms, RPA resources, and generic files. A deployment can contain any file type. Files that are not interpreted as BPMN, DMN, form, or RPA resources are stored as deployable generic resources in the engine. This is an atomic call, i.e. either all resources are deployed or none of them are. - #### Parameters ##### input [`createDeploymentInput`](../type-aliases/createDeploymentInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ExtendedDeploymentResult`](../interfaces/ExtendedDeploymentResult.md)\> Enriched deployment result with typed arrays (processes, decisions, decisionRequirements, forms, resources). #### Example **Deploy resources from files** ```ts async function deployResourcesFromFilesExample() { const camunda = createCamundaClient(); // Node.js only: deploy directly from file paths const result = await camunda.deployResourcesFromFiles([ "./process.bpmn", "./decision.dmn", ]); console.log(`Deployment key: ${result.deploymentKey}`); } ``` #### Operation Id createDeployment #### Tags Resource --- ### createDocument() ```ts createDocument(input, options?): CancelablePromise; ``` Upload document Upload a document to the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) - #### Parameters ##### input [`createDocumentInput`](../type-aliases/createDocumentInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DocumentReference`](../type-aliases/DocumentReference.md)\> #### Example **Upload a document** ```ts async function createDocumentExample() { const camunda = createCamundaClient(); const file = new Blob(["Hello, world!"], { type: "text/plain" }); const result = await camunda.createDocument({ file, metadata: { fileName: "hello.txt" }, }); console.log(`Document ID: ${result.documentId}`); } ``` #### Operation Id createDocument #### Tags Document --- ### createDocumentLink() ```ts createDocumentLink(input, options?): CancelablePromise; ``` Create document link Create a link to a document in the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP - #### Parameters ##### input [`createDocumentLinkInput`](../type-aliases/createDocumentLinkInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DocumentLink`](../type-aliases/DocumentLink.md)\> #### Example **Create a document link** ```ts async function createDocumentLinkExample(documentId: DocumentId) { const camunda = createCamundaClient(); const link = await camunda.createDocumentLink({ documentId, timeToLive: 3600000, }); console.log(`Document link: ${link.url}`); } ``` #### Operation Id createDocumentLink #### Tags Document --- ### createDocuments() ```ts createDocuments(input, options?): CancelablePromise; ``` Upload multiple documents Upload multiple documents to the Camunda 8 cluster. The caller must provide a file name for each document, which will be used in case of a multi-status response to identify which documents failed to upload. The file name can be provided in the `Content-Disposition` header of the file part or in the `fileName` field of the metadata. You can add a parallel array of metadata objects. These are matched with the files based on index, and must have the same length as the files array. To pass homogenous metadata for all files, spread the metadata over the metadata array. A filename value provided explicitly via the metadata array in the request overrides the `Content-Disposition` header of the file part. In case of a multi-status response, the response body will contain a list of `DocumentBatchProblemDetail` objects, each of which contains the file name of the document that failed to upload and the reason for the failure. The client can choose to retry the whole batch or individual documents based on the response. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) - #### Parameters ##### input [`createDocumentsInput`](../type-aliases/createDocumentsInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DocumentCreationBatchResponse`](../type-aliases/DocumentCreationBatchResponse.md)\> #### Example **Upload multiple documents** ```ts async function createDocumentsExample() { const camunda = createCamundaClient(); const file1 = new Blob(["File one"], { type: "text/plain" }); const file2 = new Blob(["File two"], { type: "text/plain" }); const result = await camunda.createDocuments({ files: [file1, file2], metadataList: [{ fileName: "one.txt" }, { fileName: "two.txt" }], }); for (const doc of result.createdDocuments ?? []) { console.log(`Created: ${doc.documentId}`); } } ``` #### Operation Id createDocuments #### Tags Document --- ### createElementInstanceVariables() ```ts createElementInstanceVariables(input, options?): CancelablePromise; ``` Update element instance variables Updates all the variables of a particular scope (for example, process instance, element instance) with the given variable data. Specify the element instance in the `elementInstanceKey` parameter. Variable updates can be delayed by listener-related processing; if processing exceeds the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input [`createElementInstanceVariablesInput`](../type-aliases/createElementInstanceVariablesInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Create element instance variables** ```ts async function createElementInstanceVariablesExample( elementInstanceKey: ElementInstanceKey ) { const camunda = createCamundaClient(); await camunda.createElementInstanceVariables({ elementInstanceKey, variables: { orderId: "ORD-12345", status: "processing" }, }); } ``` #### Operation Id createElementInstanceVariables #### Tags Element instance --- ### createGlobalClusterVariable() ```ts createGlobalClusterVariable(input, options?): CancelablePromise; ``` Create a global-scoped cluster variable Create a global-scoped cluster variable. * #### Parameters ##### input [`CreateClusterVariableRequest`](../type-aliases/CreateClusterVariableRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Create a global cluster variable** ```ts async function createGlobalClusterVariableExample(name: ClusterVariableName) { const camunda = createCamundaClient(); const result = await camunda.createGlobalClusterVariable({ name, value: { darkMode: true }, }); console.log(`Created: ${result.name}`); } ``` #### Operation Id createGlobalClusterVariable #### Tags Cluster Variable --- ### createGlobalTaskListener() ```ts createGlobalTaskListener(input, options?): CancelablePromise; ``` Create global user task listener Create a new global user task listener. * #### Parameters ##### input [`CreateGlobalTaskListenerRequest`](../type-aliases/CreateGlobalTaskListenerRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GlobalTaskListenerResult`](../type-aliases/GlobalTaskListenerResult.md)\> #### Example **Create a global task listener** ```ts async function createGlobalTaskListenerExample(id: GlobalListenerId) { const camunda = createCamundaClient(); const result = await camunda.createGlobalTaskListener({ id, eventTypes: ["completing"], type: "audit-log-listener", }); console.log(`Created listener: ${result.id}`); } ``` #### Operation Id createGlobalTaskListener #### Tags Global listener --- ### createGroup() ```ts createGroup(input, options?): CancelablePromise; ``` Create group Create a new group. The supplied `groupId` is validated against `^[a-zA-Z0-9_~@.+-]+$` (max 256 characters) by `IdentifierValidator.validateId` in the runtime. This strict validation applies wherever the Groups API is available: in OIDC deployments that set `camunda.security.authentication.oidc.groupsClaim` the Groups API (including this endpoint) is disabled entirely, so group CRUD never sees externally-minted IdP IDs. The BYOG relaxation only loosens validation when a group is referenced _as a member_ of a role or tenant (`assignRoleToGroup`, `assignGroupToTenant`); group CRUD itself always uses the strict default-id regex. The constraint is not advertised on the `GroupId` schema so that the same schema can be reused at member-reference sites without falsely rejecting externally-minted IdP group IDs there. - #### Parameters ##### input [`GroupCreateRequest`](../type-aliases/GroupCreateRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupCreateResult`](../type-aliases/GroupCreateResult.md)\> #### Example **Create a group** ```ts async function createGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const result = await camunda.createGroup({ groupId, name: "Engineering Team", }); console.log(`Created group: ${result.groupId}`); } ``` #### Operation Id createGroup #### Tags Group --- ### createJobWorker() ```ts createJobWorker(cfg): JobWorker; ``` Create a job worker that activates and processes jobs of the given type. Worker configuration fields inherit global defaults resolved via the unified configuration (environment variables or equivalent `CAMUNDA_WORKER_*` keys provided via `CamundaOptions.config`) when not explicitly set on the config object. #### Type Parameters ##### In `In` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` ##### Out `Out` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` ##### Headers `Headers` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` #### Parameters ##### cfg [`JobWorkerConfig`](../interfaces/JobWorkerConfig.md)\<`In`, `Out`, `Headers`\> Worker configuration #### Returns [`JobWorker`](../interfaces/JobWorker.md) #### Examples **Create a job worker** ```ts async function createJobWorkerExample() { const camunda = createCamundaClient(); const _worker = camunda.createJobWorker({ jobType: "payment-processing", jobTimeoutMs: 30000, maxParallelJobs: 5, jobHandler: async (job): Promise => { console.log(`Processing job ${job.jobKey}`); return job.complete({ processed: true }); }, }); // Workers run continuously until closed // worker.close(); } ``` **Job worker with error handling** ```ts async function jobWorkerWithErrorHandlingExample() { const camunda = createCamundaClient(); const worker = camunda.createJobWorker({ jobType: "email-sending", jobTimeoutMs: 60000, maxParallelJobs: 10, pollIntervalMs: 300, jobHandler: async (job): Promise => { try { console.log(`Sending email for job ${job.jobKey}`); return job.complete({ sent: true }); } catch (err) { return job.fail({ errorMessage: String(err), retries: (job.retries ?? 1) - 1, }); } }, }); void worker; } ``` --- ### createMappingRule() ```ts createMappingRule(input, options?): CancelablePromise; ``` Create mapping rule Create a new mapping rule - #### Parameters ##### input [`MappingRuleCreateRequest`](../type-aliases/MappingRuleCreateRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MappingRuleCreateUpdateResult`](../type-aliases/MappingRuleCreateUpdateResult.md)\> #### Example **Create a mapping rule** ```ts async function createMappingRuleExample(mappingRuleId: MappingRuleId) { const camunda = createCamundaClient(); const result = await camunda.createMappingRule({ mappingRuleId, name: "LDAP Group Mapping", claimName: "groups", claimValue: "engineering", }); console.log(`Created mapping rule: ${result.mappingRuleId}`); } ``` #### Operation Id createMappingRule #### Tags Mapping rule --- ### createProcessInstance() ```ts createProcessInstance(input, options?): CancelablePromise; ``` Create process instance Creates and starts an instance of the specified process. The process definition to use to create the instance can be specified either using its unique key (as returned by Deploy resources), or using the BPMN process id and a version. If only the process definition id is given, the latest ACTIVE version is used. If no ACTIVE version exists, the request is rejected as not found. Waits for the completion of the process instance before returning a result when awaitCompletion is enabled. - #### Parameters ##### input \| [`ProcessInstanceCreationInstructionByKey`](../type-aliases/ProcessInstanceCreationInstructionByKey.md) \| [`ProcessInstanceCreationInstructionById`](../type-aliases/ProcessInstanceCreationInstructionById.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`CreateProcessInstanceResult`](../type-aliases/CreateProcessInstanceResult.md)\> #### Examples **By ID** ```ts async function createProcessInstanceByIdExample( processDefinitionId: ProcessDefinitionId ) { const camunda = createCamundaClient(); const result = await camunda.createProcessInstance({ processDefinitionId, variables: { orderId: "ORD-12345", amount: 99.95, }, }); console.log(`Started process instance: ${result.processInstanceKey}`); } ``` **By key** ```ts async function createProcessInstanceByKeyExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); // Key from a previous API response (e.g. deployment) const result = await camunda.createProcessInstance({ processDefinitionKey, variables: { orderId: "ORD-12345", amount: 99.95, }, }); console.log(`Started process instance: ${result.processInstanceKey}`); } ``` #### Operation Id createProcessInstance #### Tags Process instance --- ### createRole() ```ts createRole(input, options?): CancelablePromise; ``` Create role Create a new role. * #### Parameters ##### input [`RoleCreateRequest`](../type-aliases/RoleCreateRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleCreateResult`](../type-aliases/RoleCreateResult.md)\> #### Example **Create a role** ```ts async function createRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const result = await camunda.createRole({ roleId, name: "Process Admin", }); console.log(`Created role: ${result.roleId}`); } ``` #### Operation Id createRole #### Tags Role --- ### createTenant() ```ts createTenant(input, options?): CancelablePromise; ``` Create tenant Creates a new tenant. * #### Parameters ##### input [`TenantCreateRequest`](../type-aliases/TenantCreateRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantCreateResult`](../type-aliases/TenantCreateResult.md)\> #### Example **Create a tenant** ```ts async function createTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.createTenant({ tenantId, name: "Customer Service", }); console.log(`Created tenant: ${result.tenantId}`); } ``` #### Operation Id createTenant #### Tags Tenant --- ### createTenantClusterVariable() ```ts createTenantClusterVariable(input, options?): CancelablePromise; ``` Create a tenant-scoped cluster variable Create a new cluster variable for the given tenant. * #### Parameters ##### input [`createTenantClusterVariableInput`](../type-aliases/createTenantClusterVariableInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Create a tenant cluster variable** ```ts async function createTenantClusterVariableExample( tenantId: TenantId, name: ClusterVariableName ) { const camunda = createCamundaClient(); const result = await camunda.createTenantClusterVariable({ tenantId, name, value: { region: "us-east-1" }, }); console.log(`Created: ${result.name}`); } ``` #### Operation Id createTenantClusterVariable #### Tags Cluster Variable --- ### createThreadedJobWorker() ```ts createThreadedJobWorker(cfg): ThreadedJobWorker; ``` Create a threaded job worker that runs handler logic in a pool of worker threads. The handler must be a separate module file that exports a default function with signature `(job, client) => Promise`. This keeps the main event loop free for polling and I/O, dramatically improving throughput for CPU-bound job handlers. Worker configuration fields inherit global defaults resolved via the unified configuration (environment variables or equivalent `CAMUNDA_WORKER_*` keys provided via `CamundaOptions.config`) when not explicitly set on the config object. #### Type Parameters ##### In `In` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` ##### Out `Out` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` ##### Headers `Headers` _extends_ `ZodTypeAny`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`\>\> = `any` #### Parameters ##### cfg [`ThreadedJobWorkerConfig`](../interfaces/ThreadedJobWorkerConfig.md)\<`In`, `Out`, `Headers`\> Threaded worker configuration #### Returns [`ThreadedJobWorker`](../interfaces/ThreadedJobWorker.md) #### Example **Create a threaded job worker** ```ts const worker = client.createThreadedJobWorker({ jobType: "cpu-heavy-task", handlerModule: "./my-handler.js", maxParallelJobs: 32, jobTimeoutMs: 30000, }); ``` --- ### createUser() ```ts createUser(input, options?): CancelablePromise; ``` Create user Create a new user. * #### Parameters ##### input [`UserRequest`](../type-aliases/UserRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserCreateResult`](../type-aliases/UserCreateResult.md)\> #### Example **Create a user** ```ts async function createUserExample(username: Username) { const camunda = createCamundaClient(); const result = await camunda.createUser({ username, name: "Alice Smith", email: "alice@example.com", password: "secure-password-123", }); console.log(`Created user: ${result.username}`); } ``` #### Operation Id createUser #### Tags User --- ### deleteAuthorization() ```ts deleteAuthorization(input, options?): CancelablePromise; ``` Delete authorization Deletes the authorization with the given key. * #### Parameters ##### input [`deleteAuthorizationInput`](../type-aliases/deleteAuthorizationInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete an authorization** ```ts async function deleteAuthorizationExample(authorizationKey: AuthorizationKey) { const camunda = createCamundaClient(); await camunda.deleteAuthorization({ authorizationKey }); } ``` #### Operation Id deleteAuthorization #### Tags Authorization --- ### deleteDecisionInstance() ```ts deleteDecisionInstance(input, options?): CancelablePromise; ``` Delete decision instance Delete all associated decision evaluations based on provided key. * #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a decision instance** ```ts async function deleteDecisionInstanceExample( decisionEvaluationKey: DecisionEvaluationKey ) { const camunda = createCamundaClient(); await camunda.deleteDecisionInstance({ decisionEvaluationKey }); } ``` #### Operation Id deleteDecisionInstance #### Tags Decision instance --- ### deleteDecisionInstancesBatchOperation() ```ts deleteDecisionInstancesBatchOperation(input, options?): CancelablePromise; ``` Delete decision instances (batch) Delete multiple decision instances. This will delete the historic data from secondary storage. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`DecisionInstanceDeletionBatchOperationRequest`](../type-aliases/DecisionInstanceDeletionBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Delete decision instances in batch** ```ts async function deleteDecisionInstancesBatchOperationExample() { const camunda = createCamundaClient(); const result = await camunda.deleteDecisionInstancesBatchOperation({ filter: {}, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id deleteDecisionInstancesBatchOperation #### Tags Decision instance --- ### deleteDocument() ```ts deleteDocument(input, options?): CancelablePromise; ``` Delete document Delete a document from the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) - #### Parameters ##### input [`deleteDocumentInput`](../type-aliases/deleteDocumentInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a document** ```ts async function deleteDocumentExample(documentId: DocumentId) { const camunda = createCamundaClient(); await camunda.deleteDocument({ documentId }); } ``` #### Operation Id deleteDocument #### Tags Document --- ### deleteGlobalClusterVariable() ```ts deleteGlobalClusterVariable(input, options?): CancelablePromise; ``` Delete a global-scoped cluster variable Delete a global-scoped cluster variable. * #### Parameters ##### input [`deleteGlobalClusterVariableInput`](../type-aliases/deleteGlobalClusterVariableInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a global cluster variable** ```ts async function deleteGlobalClusterVariableExample(name: ClusterVariableName) { const camunda = createCamundaClient(); await camunda.deleteGlobalClusterVariable({ name }); } ``` #### Operation Id deleteGlobalClusterVariable #### Tags Cluster Variable --- ### deleteGlobalTaskListener() ```ts deleteGlobalTaskListener(input, options?): CancelablePromise; ``` Delete global user task listener Deletes a global user task listener. * #### Parameters ##### input [`deleteGlobalTaskListenerInput`](../type-aliases/deleteGlobalTaskListenerInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a global task listener** ```ts async function deleteGlobalTaskListenerExample(id: GlobalListenerId) { const camunda = createCamundaClient(); await camunda.deleteGlobalTaskListener({ id, }); } ``` #### Operation Id deleteGlobalTaskListener #### Tags Global listener --- ### deleteGroup() ```ts deleteGroup(input, options?): CancelablePromise; ``` Delete group Deletes the group with the given ID. * #### Parameters ##### input [`deleteGroupInput`](../type-aliases/deleteGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a group** ```ts async function deleteGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); await camunda.deleteGroup({ groupId }); } ``` #### Operation Id deleteGroup #### Tags Group --- ### deleteHistoryBackup() ```ts deleteHistoryBackup(input, options?): CancelablePromise; ``` Delete history backup Deletes the history backup with the given id, by deleting every snapshot that makes it up. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. - #### Parameters ##### input [`deleteHistoryBackupInput`](../type-aliases/deleteHistoryBackupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a history backup** ```ts async function deleteHistoryBackupExample() { const camunda = createCamundaClient(); await camunda.deleteHistoryBackup({ backupId: 100 }); } ``` #### Operation Id deleteHistoryBackup #### Tags Backup --- ### deleteHistoryBackupAsClusterAdmin() ```ts deleteHistoryBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Delete a history backup across physical tenants Deletes the history backup with the given id from every physical tenant of the cluster, or from the one named by `physicalTenantId`. A tenant that does not hold the backup has already reached the requested end state, so it counts as deleted rather than as a failure. The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole request, and the deletions that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to delete from the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `DELETE /v2/backups/history/{backupId}` to act as a single physical tenant. * #### Parameters ##### input [`deleteHistoryBackupAsClusterAdminInput`](../type-aliases/deleteHistoryBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a history backup (cluster admin)** ```ts async function deleteHistoryBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Deletion fans out to every physical tenant (or a single one when // `physicalTenantId` is given) and is not undone if a later tenant fails. await camunda.deleteHistoryBackupAsClusterAdmin({ backupId: 100 }); } ``` #### Operation Id deleteHistoryBackupAsClusterAdmin #### Tags Backup --- ### deleteMappingRule() ```ts deleteMappingRule(input, options?): CancelablePromise; ``` Delete a mapping rule Deletes the mapping rule with the given ID. - #### Parameters ##### input [`deleteMappingRuleInput`](../type-aliases/deleteMappingRuleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a mapping rule** ```ts async function deleteMappingRuleExample(mappingRuleId: MappingRuleId) { const camunda = createCamundaClient(); await camunda.deleteMappingRule({ mappingRuleId }); } ``` #### Operation Id deleteMappingRule #### Tags Mapping rule --- ### deleteProcessInstance() ```ts deleteProcessInstance(input, options?): CancelablePromise; ``` Delete process instance Deletes a process instance. Only instances that are completed or terminated can be deleted. * #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a process instance** ```ts async function deleteProcessInstanceExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); await camunda.deleteProcessInstance({ processInstanceKey }); } ``` #### Operation Id deleteProcessInstance #### Tags Process instance --- ### deleteProcessInstancesBatchOperation() ```ts deleteProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Delete process instances (batch) Delete multiple process instances. This will delete the historic data from secondary storage. Only process instances in a final state (COMPLETED or TERMINATED) can be deleted. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceDeletionBatchOperationRequest`](../type-aliases/ProcessInstanceDeletionBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Delete process instances in batch** ```ts async function deleteProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.deleteProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id deleteProcessInstancesBatchOperation #### Tags Process instance --- ### deleteResource() ```ts deleteResource(input, options?): CancelablePromise; ``` Delete resource Deletes a deployed resource. This can be a process definition, decision requirements definition, or form definition deployed using the deploy resources endpoint. Specify the resource you want to delete in the `resourceKey` parameter. Once a resource has been deleted it cannot be recovered. If the resource needs to be available again, a new deployment of the resource is required. By default, only the resource itself is deleted from the runtime state. To also delete the historic data associated with a resource, set the `deleteHistory` flag in the request body to `true`. History deletion is supported for process definitions and decision requirements definitions; for other resource types (forms, generic resources) the flag is ignored and no history is deleted. The two supported types differ in how the history is removed. For a decision requirements definition the history is deleted asynchronously via a batch operation whose details are returned in the `batchOperation` field of the response. For a process definition that still exists in the runtime state, the definition first drains its running instances and its history is deleted asynchronously once the definition is fully removed cluster-wide; no batch operation is returned in the response. If the process definition has already been removed from the runtime state and the deletion is later re-triggered with `deleteHistory` set to `true`, a batch operation is created immediately and returned in the `batchOperation` field. * #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DeleteResourceResponse`](../type-aliases/DeleteResourceResponse.md)\> #### Example **Delete a resource** ```ts async function deleteResourceExample(resourceKey: ProcessDefinitionKey) { const camunda = createCamundaClient(); // Use a process definition key as a resource key for deletion await camunda.deleteResource({ resourceKey, }); } ``` #### Operation Id deleteResource #### Tags Resource --- ### deleteRole() ```ts deleteRole(input, options?): CancelablePromise; ``` Delete role Deletes the role with the given ID. * #### Parameters ##### input [`deleteRoleInput`](../type-aliases/deleteRoleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a role** ```ts async function deleteRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); await camunda.deleteRole({ roleId }); } ``` #### Operation Id deleteRole #### Tags Role --- ### deleteRuntimeBackup() ```ts deleteRuntimeBackup(input, options?): CancelablePromise; ``` Delete runtime backup Deletes the runtime backup with the given id. * #### Parameters ##### input [`deleteRuntimeBackupInput`](../type-aliases/deleteRuntimeBackupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a runtime backup** ```ts async function deleteRuntimeBackupExample() { const camunda = createCamundaClient(); await camunda.deleteRuntimeBackup({ backupId: 100 }); } ``` #### Operation Id deleteRuntimeBackup #### Tags Backup --- ### deleteRuntimeBackupAsClusterAdmin() ```ts deleteRuntimeBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Delete a runtime backup across physical tenants Deletes the runtime backup with the given id from every physical tenant of the cluster, or from the one named by `physicalTenantId`. A tenant that does not hold the backup has already reached the requested end state, so it counts as deleted rather than as a failure — the same as deleting an unknown backup id through the per-physical-tenant endpoint. The request is all-or-nothing: a physical tenant the backup cannot be deleted from fails the whole request, and the deletions that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to delete from the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `DELETE /v2/backups/runtime/{backupId}` to act as a single physical tenant. * #### Parameters ##### input [`deleteRuntimeBackupAsClusterAdminInput`](../type-aliases/deleteRuntimeBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a runtime backup (cluster admin)** ```ts async function deleteRuntimeBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Deletion fans out to every physical tenant (or a single one when // `physicalTenantId` is given) and is not undone if a later tenant fails. await camunda.deleteRuntimeBackupAsClusterAdmin({ backupId: 100 }); } ``` #### Operation Id deleteRuntimeBackupAsClusterAdmin #### Tags Backup --- ### deleteRuntimeBackupState() ```ts deleteRuntimeBackupState(options?): CancelablePromise; ``` Delete runtime backup state Resets the runtime backup state of every partition of the physical tenant, clearing all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when switching backup stores. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete the runtime backup state** ```ts async function deleteRuntimeBackupStateExample() { const camunda = createCamundaClient(); // Clears all checkpoint info, backup info, checkpoint metadata, and backup // ranges on every partition. Used when switching backup stores. await camunda.deleteRuntimeBackupState(); } ``` #### Operation Id deleteRuntimeBackupState #### Tags Backup --- ### deleteRuntimeBackupStateAsClusterAdmin() ```ts deleteRuntimeBackupStateAsClusterAdmin(input, options?): CancelablePromise; ``` Delete runtime backup state across physical tenants Resets the runtime backup state of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, clearing all checkpoint info, backup info, checkpoint metadata, and backup ranges. Used when switching backup stores. The request is all-or-nothing: a physical tenant whose state cannot be reset fails the whole request, and the resets that already succeeded on other tenants are not undone. Narrow the request with `physicalTenantId` to reset the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `DELETE /v2/backups/runtime/state` to act as a single physical tenant. * #### Parameters ##### input [`deleteRuntimeBackupStateAsClusterAdminInput`](../type-aliases/deleteRuntimeBackupStateAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete the runtime backup state (cluster admin)** ```ts async function deleteRuntimeBackupStateAsClusterAdminExample() { const camunda = createCamundaClient(); // Clears all checkpoint info, backup info, checkpoint metadata, and backup // ranges on every partition of every targeted physical tenant (or a single one // when `physicalTenantId` is given). Used when switching backup stores. await camunda.deleteRuntimeBackupStateAsClusterAdmin({}); } ``` #### Operation Id deleteRuntimeBackupStateAsClusterAdmin #### Tags Backup --- ### deleteTenant() ```ts deleteTenant(input, options?): CancelablePromise; ``` Delete tenant Deletes an existing tenant. * #### Parameters ##### input [`deleteTenantInput`](../type-aliases/deleteTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a tenant** ```ts async function deleteTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); await camunda.deleteTenant({ tenantId }); } ``` #### Operation Id deleteTenant #### Tags Tenant --- ### deleteTenantClusterVariable() ```ts deleteTenantClusterVariable(input, options?): CancelablePromise; ``` Delete a tenant-scoped cluster variable Delete a tenant-scoped cluster variable. * #### Parameters ##### input [`deleteTenantClusterVariableInput`](../type-aliases/deleteTenantClusterVariableInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a tenant cluster variable** ```ts async function deleteTenantClusterVariableExample( tenantId: TenantId, name: ClusterVariableName ) { const camunda = createCamundaClient(); await camunda.deleteTenantClusterVariable({ tenantId, name, }); } ``` #### Operation Id deleteTenantClusterVariable #### Tags Cluster Variable --- ### deleteUser() ```ts deleteUser(input, options?): CancelablePromise; ``` Delete user Deletes a user. * #### Parameters ##### input [`deleteUserInput`](../type-aliases/deleteUserInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Delete a user** ```ts async function deleteUserExample(username: Username) { const camunda = createCamundaClient(); await camunda.deleteUser({ username }); } ``` #### Operation Id deleteUser #### Tags User --- ### deployResourcesFromFiles() ```ts deployResourcesFromFiles(resourceFilenames, options?): CancelablePromise; ``` Node-only convenience: deploy resources from local filesystem paths. #### Parameters ##### resourceFilenames `string`[] Absolute or relative file paths to BPMN/DMN/form/resource files. ##### options? Optional: tenantId. ###### tenantId? `string` #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ExtendedDeploymentResult`](../interfaces/ExtendedDeploymentResult.md)\> ExtendedDeploymentResult --- ### emitSupportLogPreamble() ```ts emitSupportLogPreamble(): void; ``` Emit the standard support log preamble & redacted configuration to the current support logger. Safe to call multiple times; subsequent calls are ignored (idempotent). Useful when a custom supportLogger was injected and you still want the canonical header & config dump. #### Returns `void` #### Inherited from ```ts CamundaCore.emitSupportLogPreamble; ``` --- ### evaluateConditionals() ```ts evaluateConditionals(input, options?): CancelablePromise; ``` Evaluate root level conditional start events Evaluates root-level conditional start events for process definitions. If the evaluation is successful, it will return the keys of all created process instances, along with their associated process definition key. Multiple root-level conditional start events of the same process definition can trigger if their conditions evaluate to true. - #### Parameters ##### input [`ConditionalEvaluationInstruction`](../type-aliases/ConditionalEvaluationInstruction.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`EvaluateConditionalResult`](../type-aliases/EvaluateConditionalResult.md)\> #### Example **Evaluate conditionals** ```ts async function evaluateConditionalsExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.evaluateConditionals({ variables: { orderReady: true }, tenantId, }); console.log(`Evaluated conditionals: ${JSON.stringify(result)}`); } ``` #### Operation Id evaluateConditionals #### Tags Conditional --- ### evaluateDecision() ```ts evaluateDecision(input, options?): CancelablePromise; ``` Evaluate decision Evaluates a decision. You specify the decision to evaluate either by using its unique key (as returned by DeployResource), or using the decision ID. When using the decision ID, the latest deployed version of the decision is used. - #### Parameters ##### input \| [`DecisionEvaluationById`](../type-aliases/DecisionEvaluationById.md) \| [`DecisionEvaluationByKey`](../type-aliases/DecisionEvaluationByKey.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`EvaluateDecisionResult`](../type-aliases/EvaluateDecisionResult.md)\> #### Examples **By ID** ```ts async function evaluateDecisionByIdExample( decisionDefinitionId: DecisionDefinitionId ) { const camunda = createCamundaClient(); const result = await camunda.evaluateDecision({ decisionDefinitionId, variables: { amount: 1000, invoiceCategory: "Misc", }, }); console.log(`Decision: ${result.decisionDefinitionId}`); console.log(`Output: ${result.output}`); } ``` **By key** ```ts async function evaluateDecisionByKeyExample( decisionDefinitionKey: DecisionDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.evaluateDecision({ decisionDefinitionKey, variables: { amount: 1000, invoiceCategory: "Misc", }, }); console.log(`Decision output: ${result.output}`); } ``` #### Operation Id evaluateDecision #### Tags Decision definition --- ### evaluateExpression() ```ts evaluateExpression(input, options?): CancelablePromise; ``` Evaluate an expression Evaluates a FEEL expression and returns the result. Supports references to tenant scoped cluster variables when a tenant ID is provided. Optionally, provide a `scopeKey` to make the variables of a specific process instance or element instance visible while evaluating the expression. - #### Parameters ##### input [`ExpressionEvaluationRequest`](../type-aliases/ExpressionEvaluationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ExpressionEvaluationResult`](../type-aliases/ExpressionEvaluationResult.md)\> #### Example **Evaluate an expression** ```ts async function evaluateExpressionExample() { const camunda = createCamundaClient(); const result = await camunda.evaluateExpression({ expression: "= x + y", variables: { x: 10, y: 20 }, }); console.log(`Result: ${result.result}`); } ``` #### Operation Id evaluateExpression #### Tags Expression --- ### failJob() ```ts failJob(input, options?): CancelablePromise; ``` Fail job Mark the job as failed. - #### Parameters ##### input [`failJobInput`](../type-aliases/failJobInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Fail a job with retry** ```ts async function failJobExample(jobKey: JobKey) { const camunda = createCamundaClient(); await camunda.failJob({ jobKey, retries: 2, errorMessage: "Payment gateway timeout", retryBackOff: 5000, }); } ``` #### Operation Id failJob #### Tags Job --- ### forceAuthRefresh() ```ts forceAuthRefresh(): Promise; ``` #### Returns `Promise`\<`string` \| `undefined`\> #### Inherited from ```ts CamundaCore.forceAuthRefresh; ``` --- ### getAgentDefinition() ```ts getAgentDefinition( input, consistencyManagement, options? ): CancelablePromise; ``` Get agent definition Returns an agent definition by key. * #### Parameters ##### input [`getAgentDefinitionInput`](../type-aliases/getAgentDefinitionInput.md) ##### consistencyManagement [`getAgentDefinitionConsistency`](../type-aliases/getAgentDefinitionConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentDefinitionResult`](../type-aliases/AgentDefinitionResult.md)\> #### Example **Get an agent definition** ```ts async function getAgentDefinitionExample( agentDefinitionKey: AgentDefinitionKey ) { const camunda = createCamundaClient(); const definition = await camunda.getAgentDefinition( { agentDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Name: ${definition.name}`); console.log(`Type: ${definition.agentType}`); console.log(`Element: ${definition.elementId}`); } ``` #### Operation Id getAgentDefinition #### Tags Agent definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getAgentInstance() ```ts getAgentInstance( input, consistencyManagement, options? ): CancelablePromise; ``` Get agent instance Returns agent instance as JSON. * #### Parameters ##### input [`getAgentInstanceInput`](../type-aliases/getAgentInstanceInput.md) ##### consistencyManagement [`getAgentInstanceConsistency`](../type-aliases/getAgentInstanceConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentInstanceResult`](../type-aliases/AgentInstanceResult.md)\> #### Example **Get an agent instance** ```ts async function getAgentInstanceExample(agentInstanceKey: AgentInstanceKey) { const camunda = createCamundaClient(); const instance = await camunda.getAgentInstance( { agentInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Status: ${instance.status}`); console.log(`Element: ${instance.elementId}`); } ``` #### Operation Id getAgentInstance #### Tags Agent instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getAuditLog() ```ts getAuditLog( input, consistencyManagement, options? ): CancelablePromise; ``` Get audit log Get an audit log entry by auditLogKey. * #### Parameters ##### input [`getAuditLogInput`](../type-aliases/getAuditLogInput.md) ##### consistencyManagement [`getAuditLogConsistency`](../type-aliases/getAuditLogConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuditLogResult`](../type-aliases/AuditLogResult.md)\> #### Example **Get an audit log entry** ```ts async function getAuditLogExample(auditLogKey: AuditLogKey) { const camunda = createCamundaClient(); const log = await camunda.getAuditLog( { auditLogKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Audit log: ${log.operationType}`); } ``` #### Operation Id getAuditLog #### Tags Audit Log #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getAuthentication() ```ts getAuthentication(options?): CancelablePromise; ``` Get current user Retrieves the current authenticated user. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`CamundaUserResult`](../type-aliases/CamundaUserResult.md)\> #### Example **Get authentication info** ```ts async function getAuthenticationExample() { const camunda = createCamundaClient(); const user = await camunda.getAuthentication(); console.log(`Authenticated as: ${user.username}`); } ``` #### Operation Id getAuthentication #### Tags Authentication --- ### getAuthHeaders() ```ts getAuthHeaders(): Promise>; ``` #### Returns `Promise`\<`Record`\<`string`, `string`\>\> #### Inherited from ```ts CamundaCore.getAuthHeaders; ``` --- ### getAuthorization() ```ts getAuthorization( input, consistencyManagement, options? ): CancelablePromise; ``` Get authorization Get authorization by the given key. * #### Parameters ##### input [`getAuthorizationInput`](../type-aliases/getAuthorizationInput.md) ##### consistencyManagement [`getAuthorizationConsistency`](../type-aliases/getAuthorizationConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuthorizationResult`](../type-aliases/AuthorizationResult.md)\> #### Example **Get an authorization** ```ts async function getAuthorizationExample(authorizationKey: AuthorizationKey) { const camunda = createCamundaClient(); const authorization = await camunda.getAuthorization( { authorizationKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Owner: ${authorization.ownerId} (${authorization.ownerType})`); } ``` #### Operation Id getAuthorization #### Tags Authorization #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getBackpressureState() ```ts getBackpressureState(): | { backoffMs: number; consecutive: number; permitsCurrent: number; permitsMax: number | null; severity: BackpressureSeverity; waiters: number; } | { consecutive: number; permitsCurrent: number; permitsMax: null; severity: string; waiters: number; }; ``` Public accessor for current backpressure adaptive limiter state (stable) #### Returns \| \{ `backoffMs`: `number`; `consecutive`: `number`; `permitsCurrent`: `number`; `permitsMax`: `number` \| `null`; `severity`: [`BackpressureSeverity`](../type-aliases/BackpressureSeverity.md); `waiters`: `number`; \} \| \{ `consecutive`: `number`; `permitsCurrent`: `number`; `permitsMax`: `null`; `severity`: `string`; `waiters`: `number`; \} #### Inherited from ```ts CamundaCore.getBackpressureState; ``` --- ### getBatchOperation() ```ts getBatchOperation( input, consistencyManagement, options? ): CancelablePromise; ``` Get batch operation Get batch operation by key. * #### Parameters ##### input [`getBatchOperationInput`](../type-aliases/getBatchOperationInput.md) ##### consistencyManagement [`getBatchOperationConsistency`](../type-aliases/getBatchOperationConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationResponse`](../type-aliases/BatchOperationResponse.md)\> #### Example **Get a batch operation** ```ts async function getBatchOperationExample(batchOperationKey: BatchOperationKey) { const camunda = createCamundaClient(); const batch = await camunda.getBatchOperation( { batchOperationKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Batch: ${batch.batchOperationType} (${batch.state})`); } ``` #### Operation Id getBatchOperation #### Tags Batch operation #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getClusterExportingStatus() ```ts getClusterExportingStatus(options?): CancelablePromise; ``` Get exporting status of the whole cluster Returns the exporting status of the whole cluster, folded over the exporting status of every physical tenant. Only `PAUSED` and `SOFT_PAUSED` confirm that exporting is paused cluster-wide; every other value means at least one physical tenant is not paused, so callers should keep polling. A physical tenant that itself reports `MIXED` makes the whole cluster `MIXED`. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ExportingStatusResponse`](../type-aliases/ExportingStatusResponse.md)\> #### Example **Get cluster exporting status** ```ts async function getClusterExportingStatusExample() { const camunda = createCamundaClient(); // Reports the aggregated exporting status of the whole cluster — useful to // confirm exporting has paused everywhere before taking a cluster-wide backup. const { status } = await camunda.getClusterExportingStatus(); console.log(`Cluster exporting status: ${status}`); } ``` #### Operation Id getClusterExportingStatus #### Tags Exporting --- ### getClusterRebalance() ```ts getClusterRebalance(options?): CancelablePromise; ``` Report the cluster's current leadership balance Reports whether the cluster is currently balanced, the current leadership state of every partition, and what became of the last rebalance to finish. The last completed rebalance is held in memory by the coordinating broker, so none will be reported if the coordinator has moved or restarted since the last rebalance. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterBalanceResponse`](../type-aliases/ClusterBalanceResponse.md)\> #### Example **Get cluster rebalance status** ```ts async function getClusterRebalanceExample() { const camunda = createCamundaClient(); const balance = await camunda.getClusterRebalance(); console.log(`Cluster balance state: ${balance.state}`); for (const partition of balance.partitions) { console.log( ` Partition ${partition.partitionId}: state=${partition.state}, currentLeader=${partition.currentLeader}, desiredLeader=${partition.desiredLeader}` ); } if (balance.runningRebalance) { console.log(`Running rebalance id=${balance.runningRebalance.rebalanceId}`); } } ``` #### Operation Id getClusterRebalance #### Tags Cluster --- ### getClusterStatus() ```ts getClusterStatus(options?): CancelablePromise; ``` Get the status of the whole cluster Checks the health status of the whole cluster, aggregated over all physical tenants. Returns `HEALTHY` when every physical tenant is healthy, `DOWN` when no physical tenant can process work, and `DEGRADED` in every other case. No per-tenant detail is reported; use `GET /cluster/v2/topology` for that. This endpoint is public and requires no authentication, unlike `PATCH /cluster/v2/mode` below, which needs cluster-admin credentials. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterStatusResponse`](../type-aliases/ClusterStatusResponse.md)\> #### Example **Get cluster status** ```ts async function getClusterStatusExample() { const camunda = createCamundaClient(); const status = await camunda.getClusterStatus(); console.log(`Cluster status: ${status.status}`); } ``` #### Operation Id getClusterStatus #### Tags Cluster --- ### getClusterTopology() ```ts getClusterTopology(options?): CancelablePromise; ``` Get the topology of the whole cluster Obtains the topology of the whole cluster, aggregated over all physical tenants. Cluster-level information is reported once; partition layout, replication and per-partition role, health and state are reported per physical tenant. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/topology` for the topology of a single physical tenant. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterTopologyResponse`](../type-aliases/ClusterTopologyResponse.md)\> #### Example **Get cluster topology (v2)** ```ts async function getClusterTopologyExample() { const camunda = createCamundaClient(); // Returns the full cluster topology: brokers, physical tenants (in a // multi-tenant cluster), cluster size, and gateway version. const topology = await camunda.getClusterTopology(); console.log( `Cluster ${topology.clusterId} — ${topology.clusterSize} broker(s), gateway ${topology.gatewayVersion}` ); for (const broker of topology.brokers) { console.log( ` Broker ${broker.brokerId}: ${broker.host}:${broker.port} (${broker.version})` ); } for (const tenant of topology.physicalTenants) { console.log( ` Physical tenant ${tenant.physicalTenantId}: ${tenant.partitionsCount} partition(s), replication ${tenant.replicationFactor}` ); } } ``` #### Operation Id getClusterTopology #### Tags Cluster --- ### getClusterUpgradeStatus() ```ts getClusterUpgradeStatus(options?): CancelablePromise; ``` Get the upgrade-readiness status of the whole cluster Reports one overall upgrade-readiness status for the whole cluster, folded over every physical tenant and condition. `MIGRATED` only once every known condition has migrated for every known physical tenant; `MIGRATION_IN_PROGRESS` when at least one is confirmed not yet migrated; `UNKNOWN` otherwise (including before anything has been reported yet). No per-tenant or per-condition detail is reported here; see the `upgradeReadiness` actuator endpoint for that. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterUpgradeStatusResponse`](../type-aliases/ClusterUpgradeStatusResponse.md)\> #### Example **Get cluster upgrade-readiness status** ```ts async function getClusterUpgradeStatusExample() { const camunda = createCamundaClient(); const upgradeStatus = await camunda.getClusterUpgradeStatus(); console.log(`Cluster upgrade-readiness status: ${upgradeStatus.status}`); } ``` #### Operation Id getClusterUpgradeStatus #### Tags Cluster --- ### getConfig() ```ts getConfig(): Readonly; ``` Read-only snapshot of current hydrated configuration (do not mutate directly). Use configure(...) to apply changes. #### Returns `Readonly`\<[`CamundaConfig`](../interfaces/CamundaConfig.md)\> #### Inherited from ```ts CamundaCore.getConfig; ``` --- ### getDecisionDefinition() ```ts getDecisionDefinition( input, consistencyManagement, options? ): CancelablePromise; ``` Get decision definition Returns a decision definition by key. * #### Parameters ##### input [`getDecisionDefinitionInput`](../type-aliases/getDecisionDefinitionInput.md) ##### consistencyManagement [`getDecisionDefinitionConsistency`](../type-aliases/getDecisionDefinitionConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionDefinitionResult`](../type-aliases/DecisionDefinitionResult.md)\> #### Example **Get a decision definition** ```ts async function getDecisionDefinitionExample( decisionDefinitionKey: DecisionDefinitionKey ) { const camunda = createCamundaClient(); const definition = await camunda.getDecisionDefinition( { decisionDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Decision: ${definition.decisionDefinitionId}`); console.log(`Version: ${definition.version}`); } ``` #### Operation Id getDecisionDefinition #### Tags Decision definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getDecisionDefinitionXml() ```ts getDecisionDefinitionXml( input, consistencyManagement, options? ): CancelablePromise; ``` Get decision definition XML Returns decision definition as XML. * #### Parameters ##### input [`getDecisionDefinitionXmlInput`](../type-aliases/getDecisionDefinitionXmlInput.md) ##### consistencyManagement [`getDecisionDefinitionXmlConsistency`](../type-aliases/getDecisionDefinitionXmlConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\> #### Example **Get decision definition XML** ```ts async function getDecisionDefinitionXmlExample( decisionDefinitionKey: DecisionDefinitionKey ) { const camunda = createCamundaClient(); const xml = await camunda.getDecisionDefinitionXml( { decisionDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`XML length: ${JSON.stringify(xml).length}`); } ``` #### Operation Id getDecisionDefinitionXML #### Tags Decision definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getDecisionInstance() ```ts getDecisionInstance( input, consistencyManagement, options? ): CancelablePromise; ``` Get decision instance Returns a decision instance. * #### Parameters ##### input [`getDecisionInstanceInput`](../type-aliases/getDecisionInstanceInput.md) ##### consistencyManagement [`getDecisionInstanceConsistency`](../type-aliases/getDecisionInstanceConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionInstanceGetQueryResult`](../type-aliases/DecisionInstanceGetQueryResult.md)\> #### Example **Get a decision instance** ```ts async function getDecisionInstanceExample( decisionEvaluationInstanceKey: DecisionEvaluationInstanceKey ) { const camunda = createCamundaClient(); const instance = await camunda.getDecisionInstance( { decisionEvaluationInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Decision: ${instance.decisionDefinitionId}`); } ``` #### Operation Id getDecisionInstance #### Tags Decision instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getDecisionRequirements() ```ts getDecisionRequirements( input, consistencyManagement, options? ): CancelablePromise; ``` Get decision requirements Returns Decision Requirements as JSON. * #### Parameters ##### input [`getDecisionRequirementsInput`](../type-aliases/getDecisionRequirementsInput.md) ##### consistencyManagement [`getDecisionRequirementsConsistency`](../type-aliases/getDecisionRequirementsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionRequirementsResult`](../type-aliases/DecisionRequirementsResult.md)\> #### Example **Get decision requirements** ```ts async function getDecisionRequirementsExample( decisionRequirementsKey: DecisionRequirementsKey ) { const camunda = createCamundaClient(); const requirements = await camunda.getDecisionRequirements( { decisionRequirementsKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Requirements: ${requirements.decisionRequirementsId}`); } ``` #### Operation Id getDecisionRequirements #### Tags Decision requirements #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getDecisionRequirementsXml() ```ts getDecisionRequirementsXml( input, consistencyManagement, options? ): CancelablePromise; ``` Get decision requirements XML Returns decision requirements as XML. * #### Parameters ##### input [`getDecisionRequirementsXmlInput`](../type-aliases/getDecisionRequirementsXmlInput.md) ##### consistencyManagement [`getDecisionRequirementsXmlConsistency`](../type-aliases/getDecisionRequirementsXmlConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\> #### Example **Get decision requirements XML** ```ts async function getDecisionRequirementsXmlExample( decisionRequirementsKey: DecisionRequirementsKey ) { const camunda = createCamundaClient(); const xml = await camunda.getDecisionRequirementsXml( { decisionRequirementsKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`XML length: ${JSON.stringify(xml).length}`); } ``` #### Operation Id getDecisionRequirementsXML #### Tags Decision requirements #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getDocument() ```ts getDocument(input, options?): CancelablePromise; ``` Download document Download a document from the Camunda 8 cluster. Note that this is currently supported for document stores of type: AWS, Azure, GCP, in-memory (non-production), local (non-production) - #### Parameters ##### input [`getDocumentInput`](../type-aliases/getDocumentInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`Blob`\> #### Example **Download a document** ```ts async function getDocumentExample(documentId: DocumentId) { const camunda = createCamundaClient(); await camunda.getDocument({ documentId }); console.log(`Downloaded document: ${documentId}`); } ``` #### Operation Id getDocument #### Tags Document --- ### getElementInstance() ```ts getElementInstance( input, consistencyManagement, options? ): CancelablePromise; ``` Get element instance Returns element instance as JSON. * #### Parameters ##### input [`getElementInstanceInput`](../type-aliases/getElementInstanceInput.md) ##### consistencyManagement [`getElementInstanceConsistency`](../type-aliases/getElementInstanceConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ElementInstanceResult`](../type-aliases/ElementInstanceResult.md)\> #### Example **Get an element instance** ```ts async function getElementInstanceExample( elementInstanceKey: ElementInstanceKey ) { const camunda = createCamundaClient(); const element = await camunda.getElementInstance( { elementInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Element: ${element.elementId} (${element.type})`); } ``` #### Operation Id getElementInstance #### Tags Element instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getErrorMode() ```ts getErrorMode(): "throw" | "result"; ``` Internal accessor (read-only) for eventual consistency error mode. #### Returns `"throw"` \| `"result"` #### Inherited from ```ts CamundaCore.getErrorMode; ``` --- ### getExportingStatus() ```ts getExportingStatus(options?): CancelablePromise; ``` Get exporting status Returns the exporting status of the physical tenant, aggregated over every replica of every one of its partitions. Because pause and resume are applied to all replicas, the status is only a single phase if every replica reports that phase; otherwise it is `MIXED`, which means a pause or resume is still in flight or was only partially applied. Backup tooling should treat only `PAUSED` and `SOFT_PAUSED` as confirmation that exporting is paused. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ExportingStatusResponse`](../type-aliases/ExportingStatusResponse.md)\> #### Example **Get exporting status** ```ts async function getExportingStatusExample() { const camunda = createCamundaClient(); // Reports the aggregated exporting status of the physical tenant — useful to // confirm exporting has actually paused before taking a backup, and that it // has resumed afterwards. const { status } = await camunda.getExportingStatus(); console.log(`Exporting status: ${status}`); } ``` #### Operation Id getExportingStatus #### Tags Exporting --- ### getFormByKey() ```ts getFormByKey( input, consistencyManagement, options? ): CancelablePromise; ``` Get form by key Get a form by its unique form key. - #### Parameters ##### input [`getFormByKeyInput`](../type-aliases/getFormByKeyInput.md) ##### consistencyManagement [`getFormByKeyConsistency`](../type-aliases/getFormByKeyConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`FormResult`](../type-aliases/FormResult.md)\> #### Example **Get a form by key** ```ts async function getFormByKeyExample(formKey: FormKey) { const camunda = createCamundaClient(); const form = await camunda.getFormByKey( { formKey, }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Form: ${form.formId}, version: ${form.version}`); } ``` #### Operation Id getFormByKey #### Tags Form #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getGlobalClusterVariable() ```ts getGlobalClusterVariable( input, consistencyManagement, options? ): CancelablePromise; ``` Get a global-scoped cluster variable Get a global-scoped cluster variable. * #### Parameters ##### input [`getGlobalClusterVariableInput`](../type-aliases/getGlobalClusterVariableInput.md) ##### consistencyManagement [`getGlobalClusterVariableConsistency`](../type-aliases/getGlobalClusterVariableConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Get a global cluster variable** ```ts async function getGlobalClusterVariableExample(name: ClusterVariableName) { const camunda = createCamundaClient(); const variable = await camunda.getGlobalClusterVariable( { name }, { consistency: { waitUpToMs: 5000 } } ); console.log(`${variable.name} = ${variable.value}`); } ``` #### Operation Id getGlobalClusterVariable #### Tags Cluster Variable #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getGlobalJobStatistics() ```ts getGlobalJobStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Global job statistics Returns global aggregated counts for jobs. Filter by the creation time window (required) and optionally by jobType. - #### Parameters ##### input [`getGlobalJobStatisticsInput`](../type-aliases/getGlobalJobStatisticsInput.md) ##### consistencyManagement [`getGlobalJobStatisticsConsistency`](../type-aliases/getGlobalJobStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GlobalJobStatisticsQueryResult`](../type-aliases/GlobalJobStatisticsQueryResult.md)\> #### Example **Get global job statistics** ```ts async function getGlobalJobStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getGlobalJobStatistics( { from: "2025-01-01T00:00:00Z", to: "2025-12-31T23:59:59Z", }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Statistics retrieved: ${JSON.stringify(result)}`); } ``` #### Operation Id getGlobalJobStatistics #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getGlobalTaskListener() ```ts getGlobalTaskListener( input, consistencyManagement, options? ): CancelablePromise; ``` Get global user task listener Get a global user task listener by its id. * #### Parameters ##### input [`getGlobalTaskListenerInput`](../type-aliases/getGlobalTaskListenerInput.md) ##### consistencyManagement [`getGlobalTaskListenerConsistency`](../type-aliases/getGlobalTaskListenerConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GlobalTaskListenerResult`](../type-aliases/GlobalTaskListenerResult.md)\> #### Example **Get a global task listener** ```ts async function getGlobalTaskListenerExample(id: GlobalListenerId) { const camunda = createCamundaClient(); const listener = await camunda.getGlobalTaskListener( { id }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Listener: ${listener.type} (${listener.eventTypes})`); } ``` #### Operation Id getGlobalTaskListener #### Tags Global listener #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getGroup() ```ts getGroup( input, consistencyManagement, options? ): CancelablePromise; ``` Get group Get a group by its ID. * #### Parameters ##### input [`getGroupInput`](../type-aliases/getGroupInput.md) ##### consistencyManagement [`getGroupConsistency`](../type-aliases/getGroupConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupResult`](../type-aliases/GroupResult.md)\> #### Example **Get a group** ```ts async function getGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const group = await camunda.getGroup( { groupId }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Group: ${group.name}`); } ``` #### Operation Id getGroup #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getHistoryBackup() ```ts getHistoryBackup(input, options?): CancelablePromise; ``` Get history backup Returns detailed status of the history backup with the given id. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. - #### Parameters ##### input [`getHistoryBackupInput`](../type-aliases/getHistoryBackupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`HistoryBackupInfo`](../type-aliases/HistoryBackupInfo.md)\> #### Example **Get a history backup** ```ts async function getHistoryBackupExample() { const camunda = createCamundaClient(); const backup = await camunda.getHistoryBackup({ backupId: 100 }); // The aggregated state is derived from the state of every expected snapshot. console.log(`History backup ${backup.backupId}: ${backup.state}`); } ``` #### Operation Id getHistoryBackup #### Tags Backup --- ### getHistoryBackupAsClusterAdmin() ```ts getHistoryBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Get a history backup across physical tenants Reports what every physical tenant of the cluster, or the one named by `physicalTenantId`, holds for the given backup id. There is no aggregated cluster-level state: a tenant that was reached and does not hold this backup reports `NOT_FOUND`, which is a successful observation rather than a failure. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `GET /v2/backups/history/{backupId}` to act as a single physical tenant. * #### Parameters ##### input [`getHistoryBackupAsClusterAdminInput`](../type-aliases/getHistoryBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterHistoryBackupInfo`](../type-aliases/ClusterHistoryBackupInfo.md)\> #### Example **Get a history backup (cluster admin)** ```ts async function getHistoryBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Looking a backup id up directly lists every targeted physical tenant, // including the ones reporting `NOT_FOUND` — a backup that only some tenants // hold is a supported outcome. const backup = await camunda.getHistoryBackupAsClusterAdmin({ backupId: 100, }); console.log(`Cluster history backup ${backup.backupId}:`); for (const tenant of backup.physicalTenants) { console.log(` [${tenant.physicalTenantId}] ${tenant.state}`); } } ``` #### Operation Id getHistoryBackupAsClusterAdmin #### Tags Backup --- ### getIncident() ```ts getIncident( input, consistencyManagement, options? ): CancelablePromise; ``` Get incident Returns incident as JSON. - #### Parameters ##### input [`getIncidentInput`](../type-aliases/getIncidentInput.md) ##### consistencyManagement [`getIncidentConsistency`](../type-aliases/getIncidentConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentResult`](../type-aliases/IncidentResult.md)\> #### Example **Get an incident** ```ts async function getIncidentExample(incidentKey: IncidentKey) { const camunda = createCamundaClient(); const incident = await camunda.getIncident( { incidentKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Type: ${incident.errorType}`); console.log(`State: ${incident.state}`); console.log(`Message: ${incident.errorMessage}`); } ``` #### Operation Id getIncident #### Tags Incident #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getJobErrorStatistics() ```ts getJobErrorStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get error metrics for a job type Returns aggregated metrics per error for the given jobType. - #### Parameters ##### input [`JobErrorStatisticsQuery`](../type-aliases/JobErrorStatisticsQuery.md) ##### consistencyManagement [`getJobErrorStatisticsConsistency`](../type-aliases/getJobErrorStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`JobErrorStatisticsQueryResult`](../type-aliases/JobErrorStatisticsQueryResult.md)\> #### Example **Get job error statistics** ```ts async function getJobErrorStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getJobErrorStatistics( { filter: { from: "2025-01-01T00:00:00Z", to: "2025-12-31T23:59:59Z", jobType: "payment-processing", }, }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Error: ${stat.errorMessage}, workers: ${stat.workers}`); } } ``` #### Operation Id getJobErrorStatistics #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getJobTimeSeriesStatistics() ```ts getJobTimeSeriesStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get time-series metrics for a job type Returns a list of time-bucketed metrics ordered ascending by time. The `from` and `to` fields select the time window of interest. Each item in the response corresponds to one time bucket of the requested resolution. - #### Parameters ##### input [`JobTimeSeriesStatisticsQuery`](../type-aliases/JobTimeSeriesStatisticsQuery.md) ##### consistencyManagement [`getJobTimeSeriesStatisticsConsistency`](../type-aliases/getJobTimeSeriesStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`JobTimeSeriesStatisticsQueryResult`](../type-aliases/JobTimeSeriesStatisticsQueryResult.md)\> #### Example **Get job time series statistics** ```ts async function getJobTimeSeriesStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getJobTimeSeriesStatistics( { filter: { from: "2025-01-01T00:00:00Z", to: "2025-12-31T23:59:59Z", jobType: "payment-processing", }, }, { consistency: { waitUpToMs: 5000 } } ); for (const point of result.items ?? []) { console.log(`Time: ${point.time}, created: ${point.created.count}`); } } ``` #### Operation Id getJobTimeSeriesStatistics #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getJobTypeStatistics() ```ts getJobTypeStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get job statistics by type Get statistics about jobs, grouped by job type. - #### Parameters ##### input [`JobTypeStatisticsQuery`](../type-aliases/JobTypeStatisticsQuery.md) ##### consistencyManagement [`getJobTypeStatisticsConsistency`](../type-aliases/getJobTypeStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`JobTypeStatisticsQueryResult`](../type-aliases/JobTypeStatisticsQueryResult.md)\> #### Example **Get job type statistics** ```ts async function getJobTypeStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getJobTypeStatistics( {}, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Type: ${stat.jobType}, workers: ${stat.workers}`); } } ``` #### Operation Id getJobTypeStatistics #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getJobWorkerStatistics() ```ts getJobWorkerStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get job statistics by worker Get statistics about jobs, grouped by worker, for a given job type. - #### Parameters ##### input [`JobWorkerStatisticsQuery`](../type-aliases/JobWorkerStatisticsQuery.md) ##### consistencyManagement [`getJobWorkerStatisticsConsistency`](../type-aliases/getJobWorkerStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`JobWorkerStatisticsQueryResult`](../type-aliases/JobWorkerStatisticsQueryResult.md)\> #### Example **Get job worker statistics** ```ts async function getJobWorkerStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getJobWorkerStatistics( { filter: { from: "2025-01-01T00:00:00Z", to: "2025-12-31T23:59:59Z", jobType: "payment-processing", }, }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Worker: ${stat.worker}, completed: ${stat.completed.count}`); } } ``` #### Operation Id getJobWorkerStatistics #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getLicense() ```ts getLicense(options?): CancelablePromise; ``` Get license status Obtains the status of the current Camunda license. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`LicenseResponse`](../type-aliases/LicenseResponse.md)\> #### Example **Get license information** ```ts async function getLicenseExample() { const camunda = createCamundaClient(); const license = await camunda.getLicense(); console.log(`License type: ${license.validLicense}`); } ``` #### Operation Id getLicense #### Tags License --- ### getMappingRule() ```ts getMappingRule( input, consistencyManagement, options? ): CancelablePromise; ``` Get a mapping rule Gets the mapping rule with the given ID. - #### Parameters ##### input [`getMappingRuleInput`](../type-aliases/getMappingRuleInput.md) ##### consistencyManagement [`getMappingRuleConsistency`](../type-aliases/getMappingRuleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MappingRuleResult`](../type-aliases/MappingRuleResult.md)\> #### Example **Get a mapping rule** ```ts async function getMappingRuleExample(mappingRuleId: MappingRuleId) { const camunda = createCamundaClient(); const rule = await camunda.getMappingRule( { mappingRuleId }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Rule: ${rule.name} (${rule.claimName}=${rule.claimValue})`); } ``` #### Operation Id getMappingRule #### Tags Mapping rule #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinition() ```ts getProcessDefinition( input, consistencyManagement, options? ): CancelablePromise; ``` Get process definition Returns process definition as JSON. * #### Parameters ##### input [`getProcessDefinitionInput`](../type-aliases/getProcessDefinitionInput.md) ##### consistencyManagement [`getProcessDefinitionConsistency`](../type-aliases/getProcessDefinitionConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionResult`](../type-aliases/ProcessDefinitionResult.md)\> #### Example **Get a process definition** ```ts async function getProcessDefinitionExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const definition = await camunda.getProcessDefinition( { processDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); console.log( `Process: ${definition.processDefinitionId} v${definition.version}` ); } ``` #### Operation Id getProcessDefinition #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinitionInstanceStatistics() ```ts getProcessDefinitionInstanceStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get process instance statistics Get statistics about process instances, grouped by process definition and tenant. - #### Parameters ##### input [`ProcessDefinitionInstanceStatisticsQuery`](../type-aliases/ProcessDefinitionInstanceStatisticsQuery.md) ##### consistencyManagement [`getProcessDefinitionInstanceStatisticsConsistency`](../type-aliases/getProcessDefinitionInstanceStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionInstanceStatisticsQueryResult`](../type-aliases/ProcessDefinitionInstanceStatisticsQueryResult.md)\> #### Example **Get process definition instance statistics** ```ts async function getProcessDefinitionInstanceStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getProcessDefinitionInstanceStatistics( {}, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log( `Definition ${stat.processDefinitionId}: ${stat.activeInstancesWithoutIncidentCount} active` ); } } ``` #### Operation Id getProcessDefinitionInstanceStatistics #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinitionInstanceVersionStatistics() ```ts getProcessDefinitionInstanceVersionStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get process instance statistics by version Get statistics about process instances, grouped by version for a given process definition. The process definition ID must be provided as a required field in the request body filter. - #### Parameters ##### input [`ProcessDefinitionInstanceVersionStatisticsQuery`](../type-aliases/ProcessDefinitionInstanceVersionStatisticsQuery.md) ##### consistencyManagement [`getProcessDefinitionInstanceVersionStatisticsConsistency`](../type-aliases/getProcessDefinitionInstanceVersionStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionInstanceVersionStatisticsQueryResult`](../type-aliases/ProcessDefinitionInstanceVersionStatisticsQueryResult.md)\> #### Example **Get version statistics** ```ts async function getProcessDefinitionInstanceVersionStatisticsExample( processDefinitionId: ProcessDefinitionId ) { const camunda = createCamundaClient(); const result = await camunda.getProcessDefinitionInstanceVersionStatistics( { filter: { processDefinitionId, }, }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log( `Version ${stat.processDefinitionVersion}: ${stat.activeInstancesWithoutIncidentCount} active` ); } } ``` #### Operation Id getProcessDefinitionInstanceVersionStatistics #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinitionMessageSubscriptionStatistics() ```ts getProcessDefinitionMessageSubscriptionStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get message subscription statistics Get message subscription statistics, grouped by process definition. - #### Parameters ##### input [`ProcessDefinitionMessageSubscriptionStatisticsQuery`](../type-aliases/ProcessDefinitionMessageSubscriptionStatisticsQuery.md) ##### consistencyManagement [`getProcessDefinitionMessageSubscriptionStatisticsConsistency`](../type-aliases/getProcessDefinitionMessageSubscriptionStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionMessageSubscriptionStatisticsQueryResult`](../type-aliases/ProcessDefinitionMessageSubscriptionStatisticsQueryResult.md)\> #### Example **Get message subscription statistics** ```ts async function getProcessDefinitionMessageSubscriptionStatisticsExample() { const camunda = createCamundaClient(); const result = await camunda.getProcessDefinitionMessageSubscriptionStatistics( {}, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log( `Definition ${stat.processDefinitionId}: ${stat.activeSubscriptions} subscriptions` ); } } ``` #### Operation Id getProcessDefinitionMessageSubscriptionStatistics #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinitionStatistics() ```ts getProcessDefinitionStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get process definition statistics Get statistics about elements in currently running process instances by process definition key and search filter. * #### Parameters ##### input [`getProcessDefinitionStatisticsInput`](../type-aliases/getProcessDefinitionStatisticsInput.md) ##### consistencyManagement [`getProcessDefinitionStatisticsConsistency`](../type-aliases/getProcessDefinitionStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionElementStatisticsQueryResult`](../type-aliases/ProcessDefinitionElementStatisticsQueryResult.md)\> #### Example **Get process definition element statistics** ```ts async function getProcessDefinitionStatisticsExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.getProcessDefinitionStatistics( { processDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Element ${stat.elementId}: active=${stat.active}`); } } ``` #### Operation Id getProcessDefinitionStatistics #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessDefinitionXml() ```ts getProcessDefinitionXml( input, consistencyManagement, options? ): CancelablePromise; ``` Get process definition XML Returns process definition as XML. * #### Parameters ##### input [`getProcessDefinitionXmlInput`](../type-aliases/getProcessDefinitionXmlInput.md) ##### consistencyManagement [`getProcessDefinitionXmlConsistency`](../type-aliases/getProcessDefinitionXmlConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\> #### Example **Get process definition XML** ```ts async function getProcessDefinitionXmlExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const xml = await camunda.getProcessDefinitionXml( { processDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`XML length: ${JSON.stringify(xml).length}`); } ``` #### Operation Id getProcessDefinitionXML #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstance() ```ts getProcessInstance( input, consistencyManagement, options? ): CancelablePromise; ``` Get process instance Get the process instance by the process instance key. * #### Parameters ##### input [`getProcessInstanceInput`](../type-aliases/getProcessInstanceInput.md) ##### consistencyManagement [`getProcessInstanceConsistency`](../type-aliases/getProcessInstanceConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceResult`](../type-aliases/ProcessInstanceResult.md)\> #### Example **Get a process instance** ```ts async function getProcessInstanceExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const instance = await camunda.getProcessInstance( { processInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`State: ${instance.state}`); console.log(`Process: ${instance.processDefinitionId}`); } ``` #### Operation Id getProcessInstance #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceCallHierarchy() ```ts getProcessInstanceCallHierarchy( input, consistencyManagement, options? ): CancelablePromise; ``` Get call hierarchy Returns the call hierarchy for a given process instance, showing its ancestry up to the root instance. * #### Parameters ##### input [`getProcessInstanceCallHierarchyInput`](../type-aliases/getProcessInstanceCallHierarchyInput.md) ##### consistencyManagement [`getProcessInstanceCallHierarchyConsistency`](../type-aliases/getProcessInstanceCallHierarchyConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceCallHierarchyEntry`](../type-aliases/ProcessInstanceCallHierarchyEntry.md)[]\> #### Example **Get process instance call hierarchy** ```ts async function getProcessInstanceCallHierarchyExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceCallHierarchy( { processInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Call hierarchy entries: ${result.length}`); } ``` #### Operation Id getProcessInstanceCallHierarchy #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceSequenceFlows() ```ts getProcessInstanceSequenceFlows( input, consistencyManagement, options? ): CancelablePromise; ``` Get sequence flows Get sequence flows taken by the process instance. * #### Parameters ##### input [`getProcessInstanceSequenceFlowsInput`](../type-aliases/getProcessInstanceSequenceFlowsInput.md) ##### consistencyManagement [`getProcessInstanceSequenceFlowsConsistency`](../type-aliases/getProcessInstanceSequenceFlowsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceSequenceFlowsQueryResult`](../type-aliases/ProcessInstanceSequenceFlowsQueryResult.md)\> #### Example **Get process instance sequence flows** ```ts async function getProcessInstanceSequenceFlowsExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceSequenceFlows( { processInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); for (const flow of result.items ?? []) { console.log(`Sequence flow: ${flow.sequenceFlowId}`); } } ``` #### Operation Id getProcessInstanceSequenceFlows #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceStatistics() ```ts getProcessInstanceStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get element instance statistics Get statistics about elements by the process instance key. * #### Parameters ##### input [`getProcessInstanceStatisticsInput`](../type-aliases/getProcessInstanceStatisticsInput.md) ##### consistencyManagement [`getProcessInstanceStatisticsConsistency`](../type-aliases/getProcessInstanceStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceElementStatisticsQueryResult`](../type-aliases/ProcessInstanceElementStatisticsQueryResult.md)\> #### Example **Get process instance statistics** ```ts async function getProcessInstanceStatisticsExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceStatistics( { processInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Element ${stat.elementId}: active=${stat.active}`); } } ``` #### Operation Id getProcessInstanceStatistics #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceStatisticsByDefinition() ```ts getProcessInstanceStatisticsByDefinition( input, consistencyManagement, options? ): CancelablePromise; ``` Get process instance statistics by definition Returns statistics for active process instances with incidents, grouped by process definition. The result set is scoped to a specific incident error hash code, which must be provided as a filter in the request body. - #### Parameters ##### input [`IncidentProcessInstanceStatisticsByDefinitionQuery`](../type-aliases/IncidentProcessInstanceStatisticsByDefinitionQuery.md) ##### consistencyManagement [`getProcessInstanceStatisticsByDefinitionConsistency`](../type-aliases/getProcessInstanceStatisticsByDefinitionConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentProcessInstanceStatisticsByDefinitionQueryResult`](../type-aliases/IncidentProcessInstanceStatisticsByDefinitionQueryResult.md)\> #### Example **Get instance statistics by definition** ```ts async function getProcessInstanceStatisticsByDefinitionExample() { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceStatisticsByDefinition( { filter: { errorHashCode: 12345, }, }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log( `Definition ${stat.processDefinitionId}: ${stat.activeInstancesWithErrorCount} incidents` ); } } ``` #### Operation Id getProcessInstanceStatisticsByDefinition #### Tags Incident #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceStatisticsByError() ```ts getProcessInstanceStatisticsByError( input, consistencyManagement, options? ): CancelablePromise; ``` Get process instance statistics by error Returns statistics for active process instances that currently have active incidents, grouped by incident error hash code. - #### Parameters ##### input [`IncidentProcessInstanceStatisticsByErrorQuery`](../type-aliases/IncidentProcessInstanceStatisticsByErrorQuery.md) ##### consistencyManagement [`getProcessInstanceStatisticsByErrorConsistency`](../type-aliases/getProcessInstanceStatisticsByErrorConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentProcessInstanceStatisticsByErrorQueryResult`](../type-aliases/IncidentProcessInstanceStatisticsByErrorQueryResult.md)\> #### Example **Get instance statistics by error** ```ts async function getProcessInstanceStatisticsByErrorExample() { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceStatisticsByError( {}, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log( `Error: ${stat.errorMessage}, count: ${stat.activeInstancesWithErrorCount}` ); } } ``` #### Operation Id getProcessInstanceStatisticsByError #### Tags Incident #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getProcessInstanceWaitStateStatistics() ```ts getProcessInstanceWaitStateStatistics( input, consistencyManagement, options? ): CancelablePromise; ``` Get wait state statistics Get statistics about waiting element instances by the process instance key, grouped by element id. * #### Parameters ##### input [`getProcessInstanceWaitStateStatisticsInput`](../type-aliases/getProcessInstanceWaitStateStatisticsInput.md) ##### consistencyManagement [`getProcessInstanceWaitStateStatisticsConsistency`](../type-aliases/getProcessInstanceWaitStateStatisticsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceWaitStateStatisticsQueryResult`](../type-aliases/ProcessInstanceWaitStateStatisticsQueryResult.md)\> #### Example **Get process instance wait state statistics** ```ts async function getProcessInstanceWaitStateStatisticsExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.getProcessInstanceWaitStateStatistics( { processInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); for (const stat of result.items ?? []) { console.log(`Element ${stat.elementId}: waiting=${stat.waitingCount}`); } } ``` #### Operation Id getProcessInstanceWaitStateStatistics #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getResource() ```ts getResource( input, consistencyManagement, options? ): CancelablePromise; ``` Get resource Returns a deployed resource. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - #### Parameters ##### input [`getResourceInput`](../type-aliases/getResourceInput.md) ##### consistencyManagement [`getResourceConsistency`](../type-aliases/getResourceConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ResourceResult`](../type-aliases/ResourceResult.md)\> #### Example **Get a resource** ```ts async function getResourceExample(resourceKey: ProcessDefinitionKey) { const camunda = createCamundaClient(); const resource = await camunda.getResource( { resourceKey, }, { consistency: { waitUpToMs: 0 } } ); console.log(`Resource: ${resource.resourceName} (${resource.resourceId})`); } ``` #### Operation Id getResource #### Tags Resource #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### ~~getResourceContent()~~ ```ts getResourceContent( input, consistencyManagement, options? ): CancelablePromise<{ [key: string]: unknown; }>; ``` Get RPA resource content (deprecated) **Deprecated** — use `/resources/{resourceKey}/content/binary` instead, which supports all resource types and returns content as binary (octet-stream). Returns the content of a deployed RPA resource as JSON. :::info This endpoint only supports RPA resources. For generic resource content in binary format, use the `/resources/{resourceKey}/content/binary` endpoint. ::: #### Parameters ##### input [`getResourceContentInput`](../type-aliases/getResourceContentInput.md) ##### consistencyManagement [`getResourceContentConsistency`](../type-aliases/getResourceContentConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ \[`key`: `string`\]: `unknown`; \}\> #### Deprecated - #### Example **Get resource content** ```ts async function getResourceContentExample(resourceKey: ProcessDefinitionKey) { const camunda = createCamundaClient(); const content = await camunda.getResourceContent( { resourceKey, }, { consistency: { waitUpToMs: 0 } } ); console.log(`Content retrieved (type: ${typeof content})`); } ``` #### Operation Id getResourceContent #### Tags Resource #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getResourceContentBinary() ```ts getResourceContentBinary( input, consistencyManagement, options? ): CancelablePromise; ``` Get resource content as binary Returns the content of a deployed resource in binary format (octet-stream). :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective APIs. ::: - #### Parameters ##### input [`getResourceContentBinaryInput`](../type-aliases/getResourceContentBinaryInput.md) ##### consistencyManagement [`getResourceContentBinaryConsistency`](../type-aliases/getResourceContentBinaryConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`Blob`\> #### Example **Get resource content as binary** ```ts async function getResourceContentBinaryExample( resourceKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const content = await camunda.getResourceContentBinary( { resourceKey, }, { consistency: { waitUpToMs: 0 } } ); console.log(`Binary content retrieved (type: ${typeof content})`); } ``` #### Operation Id getResourceContentBinary #### Tags Resource #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getRestoreStatus() ```ts getRestoreStatus(options?): CancelablePromise; ``` Get the status of the restore that is currently in progress Returns the status of the restore that is currently in progress, reported per broker and per partition. There is at most one restore in flight at any time. Once the restore has finished this endpoint returns 404; the per-partition detail is not retained after completion. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RestoreStatusResponse`](../type-aliases/RestoreStatusResponse.md)\> #### Example **Get restore status** ```ts async function getRestoreStatusExample() { const camunda = createCamundaClient(); const status = await camunda.getRestoreStatus(); console.log(`Restore status: ${status.status} (change ${status.changeId})`); for (const broker of status.brokers) { console.log( ` Broker ${broker.brokerId}: ${broker.partitionsRestored}/${broker.partitionsToRestore} partitions restored` ); } } ``` #### Operation Id getRestoreStatus #### Tags Recovery --- ### getRole() ```ts getRole( input, consistencyManagement, options? ): CancelablePromise; ``` Get role Get a role by its ID. * #### Parameters ##### input [`getRoleInput`](../type-aliases/getRoleInput.md) ##### consistencyManagement [`getRoleConsistency`](../type-aliases/getRoleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleResult`](../type-aliases/RoleResult.md)\> #### Example **Get a role** ```ts async function getRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const role = await camunda.getRole( { roleId }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Role: ${role.name}`); } ``` #### Operation Id getRole #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getRuntimeBackup() ```ts getRuntimeBackup(input, options?): CancelablePromise; ``` Get runtime backup Returns detailed status of the runtime backup with the given id. * #### Parameters ##### input [`getRuntimeBackupInput`](../type-aliases/getRuntimeBackupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BackupInfo`](../type-aliases/BackupInfo.md)\> #### Example **Get a runtime backup** ```ts async function getRuntimeBackupExample() { const camunda = createCamundaClient(); const backup = await camunda.getRuntimeBackup({ backupId: 100 }); console.log(`Backup ${backup.backupId}: ${backup.state}`); for (const partition of backup.details) { console.log(` Partition ${partition.partitionId}: ${partition.state}`); } } ``` #### Operation Id getRuntimeBackup #### Tags Backup --- ### getRuntimeBackupAsClusterAdmin() ```ts getRuntimeBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Get a runtime backup across physical tenants Reports what every physical tenant of the cluster, or the one named by `physicalTenantId`, holds for the given backup id, plus the state aggregated over all of them. A tenant that was reached and does not hold this backup reports `DOES_NOT_EXIST`, which is a successful observation rather than a failure — so a backup only some tenants hold aggregates to `INCOMPLETE`, the same way a backup only some partitions hold does within one tenant. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request. Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime/{backupId}` to act as a single physical tenant. * #### Parameters ##### input [`getRuntimeBackupAsClusterAdminInput`](../type-aliases/getRuntimeBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRuntimeBackupInfo`](../type-aliases/ClusterRuntimeBackupInfo.md)\> #### Example **Get a runtime backup (cluster admin)** ```ts async function getRuntimeBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Looking a backup id up directly lists every targeted physical tenant, // including the ones reporting `DOES_NOT_EXIST` — a backup that only some // tenants hold is a supported outcome. const backup = await camunda.getRuntimeBackupAsClusterAdmin({ backupId: 100, }); console.log(`Cluster runtime backup ${backup.backupId}: ${backup.state}`); for (const tenant of backup.physicalTenants) { console.log(` [${tenant.physicalTenantId}] ${tenant.state}`); } } ``` #### Operation Id getRuntimeBackupAsClusterAdmin #### Tags Backup --- ### getRuntimeBackupState() ```ts getRuntimeBackupState(options?): CancelablePromise; ``` Get runtime backup state Returns the current checkpoint and backup state of every partition of the physical tenant. Unlike the `backupRuntime` actuator, this fails the whole request if the checkpoint state or the backup ranges cannot be retrieved from any partition, instead of silently returning an empty section. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RuntimeBackupState`](../type-aliases/RuntimeBackupState.md)\> #### Example **Get the runtime backup state** ```ts async function getRuntimeBackupStateExample() { const camunda = createCamundaClient(); const state = await camunda.getRuntimeBackupState(); for (const checkpoint of state.checkpointStates) { console.log( `Partition ${checkpoint.partitionId} checkpoint ${checkpoint.checkpointId} (${checkpoint.checkpointType})` ); } for (const range of state.ranges) { console.log( `Partition ${range.partitionId} range: ${range.start?.checkpointId} -> ${range.end?.checkpointId}` ); } } ``` #### Operation Id getRuntimeBackupState #### Tags Backup --- ### getRuntimeBackupStateAsClusterAdmin() ```ts getRuntimeBackupStateAsClusterAdmin(input, options?): CancelablePromise; ``` Get runtime backup state across physical tenants Reports the checkpoint and backup state of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by physical tenant. Checkpoint ids and log positions only mean anything within one physical tenant's partitions, so nothing is aggregated across tenants. The request is all-or-nothing: a physical tenant whose state cannot be read fails the whole request rather than contributing an empty section, which an operator making a delete or restore decision could not tell apart from "nothing to report yet". Narrow the request with `physicalTenantId` to read the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime/state` to act as a single physical tenant. * #### Parameters ##### input [`getRuntimeBackupStateAsClusterAdminInput`](../type-aliases/getRuntimeBackupStateAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRuntimeBackupState`](../type-aliases/ClusterRuntimeBackupState.md)\> #### Example **Get the runtime backup state (cluster admin)** ```ts async function getRuntimeBackupStateAsClusterAdminExample() { const camunda = createCamundaClient(); // Returns the checkpoint and backup state of every targeted physical tenant. // Nothing is aggregated across tenants — checkpoint ids and log positions only // mean anything within one tenant's partitions. const clusterState = await camunda.getRuntimeBackupStateAsClusterAdmin({}); for (const tenant of clusterState.physicalTenants) { console.log( `[${tenant.physicalTenantId}] ${tenant.state.checkpointStates.length} checkpoints` ); } } ``` #### Operation Id getRuntimeBackupStateAsClusterAdmin #### Tags Backup --- ### getStartProcessForm() ```ts getStartProcessForm( input, consistencyManagement, options? ): CancelablePromise; ``` Get process start form Get the start form of a process. Note that this endpoint will only return linked forms. This endpoint does not support embedded forms. - #### Parameters ##### input [`getStartProcessFormInput`](../type-aliases/getStartProcessFormInput.md) ##### consistencyManagement [`getStartProcessFormConsistency`](../type-aliases/getStartProcessFormConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void` \| [`FormResult`](../type-aliases/FormResult.md)\> #### Example **Get start process form** ```ts async function getStartProcessFormExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const form = await camunda.getStartProcessForm( { processDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); if (form) { console.log(`Form key: ${form.formKey}`); } } ``` #### Operation Id getStartProcessForm #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getStatus() ```ts getStatus(options?): CancelablePromise; ``` Get physical tenant status Checks the health status of the default physical tenant by verifying if there's at least one partition of its group with a healthy leader. This endpoint is scoped to the default physical tenant only: it is available unprefixed and at `/physical-tenants/default/v2/status`, but not for any other physical tenant id (`/physical-tenants/{id}/v2/status` returns 404 for every other id, whether or not a physical tenant with that id exists). On a cluster with only the default physical tenant this endpoint answers the same question as `/cluster/v2/status`, though not with the same response: `/cluster/v2/status` reports its status in a body and so also distinguishes a degraded tenant from a healthy one. Use `/cluster/v2/status` for the aggregated status of the whole cluster, or `/physical-tenants/{id}/v2/topology` for the health of a specific physical tenant's partitions. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Check cluster status** ```ts async function getStatusExample() { const camunda = createCamundaClient(); await camunda.getStatus(); console.log("Cluster is healthy"); } ``` #### Operation Id getStatus #### Tags Cluster --- ### getSystemConfiguration() ```ts getSystemConfiguration(options?): CancelablePromise; ``` System configuration (alpha) Returns the current system configuration. The response is an envelope that groups settings by feature area. This endpoint is an alpha feature and may be subject to change in future releases. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`SystemConfigurationResponse`](../type-aliases/SystemConfigurationResponse.md)\> #### Example **Get system configuration** ```ts async function getSystemConfigurationExample() { const camunda = createCamundaClient(); const config = await camunda.getSystemConfiguration(); console.log(`Configuration loaded: ${JSON.stringify(config)}`); } ``` #### Operation Id getSystemConfiguration #### Tags System --- ### getTenant() ```ts getTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Get tenant Retrieves a single tenant by tenant ID. * #### Parameters ##### input [`getTenantInput`](../type-aliases/getTenantInput.md) ##### consistencyManagement [`getTenantConsistency`](../type-aliases/getTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantResult`](../type-aliases/TenantResult.md)\> #### Example **Get a tenant** ```ts async function getTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const tenant = await camunda.getTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Tenant: ${tenant.name}`); } ``` #### Operation Id getTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getTenantClusterVariable() ```ts getTenantClusterVariable( input, consistencyManagement, options? ): CancelablePromise; ``` Get a tenant-scoped cluster variable Get a tenant-scoped cluster variable. * #### Parameters ##### input [`getTenantClusterVariableInput`](../type-aliases/getTenantClusterVariableInput.md) ##### consistencyManagement [`getTenantClusterVariableConsistency`](../type-aliases/getTenantClusterVariableConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Get a tenant cluster variable** ```ts async function getTenantClusterVariableExample( tenantId: TenantId, name: ClusterVariableName ) { const camunda = createCamundaClient(); const variable = await camunda.getTenantClusterVariable( { tenantId, name, }, { consistency: { waitUpToMs: 5000 } } ); console.log(`${variable.name} = ${variable.value}`); } ``` #### Operation Id getTenantClusterVariable #### Tags Cluster Variable #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getTopology() ```ts getTopology(options?): CancelablePromise; ``` Get cluster topology Obtains the current topology of the cluster the gateway is part of. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TopologyResponse`](../type-aliases/TopologyResponse.md)\> #### Example **Get cluster topology** ```ts async function getTopologyExample() { const camunda = createCamundaClient(); const topology = await camunda.getTopology(); console.log(`Cluster size: ${topology.clusterSize}`); console.log(`Partitions: ${topology.partitionsCount}`); for (const broker of topology.brokers ?? []) { console.log(` Broker ${broker.nodeId}: ${broker.host}:${broker.port}`); } } ``` #### Operation Id getTopology #### Tags Cluster --- ### getUsageMetrics() ```ts getUsageMetrics( input, consistencyManagement, options? ): CancelablePromise; ``` Get usage metrics Retrieve the usage metrics based on given criteria. * #### Parameters ##### input [`getUsageMetricsInput`](../type-aliases/getUsageMetricsInput.md) ##### consistencyManagement [`getUsageMetricsConsistency`](../type-aliases/getUsageMetricsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UsageMetricsResponse`](../type-aliases/UsageMetricsResponse.md)\> #### Example **Get usage metrics** ```ts async function getUsageMetricsExample() { const camunda = createCamundaClient(); const metrics = await camunda.getUsageMetrics( { startTime: "2025-01-01T00:00:00Z", endTime: "2025-12-31T23:59:59Z", }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Usage metrics retrieved: ${JSON.stringify(metrics)}`); } ``` #### Operation Id getUsageMetrics #### Tags System #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getUser() ```ts getUser( input, consistencyManagement, options? ): CancelablePromise; ``` Get user Get a user by its username. * #### Parameters ##### input [`getUserInput`](../type-aliases/getUserInput.md) ##### consistencyManagement [`getUserConsistency`](../type-aliases/getUserConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserResult`](../type-aliases/UserResult.md)\> #### Example **Get a user** ```ts async function getUserExample(username: Username) { const camunda = createCamundaClient(); const user = await camunda.getUser( { username }, { consistency: { waitUpToMs: 5000 } } ); console.log(`User: ${user.name} (${user.email})`); } ``` #### Operation Id getUser #### Tags User #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getUserTask() ```ts getUserTask( input, consistencyManagement, options? ): CancelablePromise; ``` Get user task Get the user task by the user task key. * #### Parameters ##### input [`getUserTaskInput`](../type-aliases/getUserTaskInput.md) ##### consistencyManagement [`getUserTaskConsistency`](../type-aliases/getUserTaskConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserTaskResult`](../type-aliases/UserTaskResult.md)\> #### Example **Get a user task** ```ts async function getUserTaskExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); const task = await camunda.getUserTask( { userTaskKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`Task: ${task.name} (${task.state})`); } ``` #### Operation Id getUserTask #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getUserTaskForm() ```ts getUserTaskForm( input, consistencyManagement, options? ): CancelablePromise; ``` Get user task form Get the form of a user task. Note that this endpoint will only return linked forms. This endpoint does not support embedded forms. - #### Parameters ##### input [`getUserTaskFormInput`](../type-aliases/getUserTaskFormInput.md) ##### consistencyManagement [`getUserTaskFormConsistency`](../type-aliases/getUserTaskFormConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void` \| [`FormResult`](../type-aliases/FormResult.md)\> #### Example **Get a user task form** ```ts async function getUserTaskFormExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); const form = await camunda.getUserTaskForm( { userTaskKey }, { consistency: { waitUpToMs: 5000 } } ); if (form) { console.log(`Form key: ${form.formKey}`); } } ``` #### Operation Id getUserTaskForm #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getVariable() ```ts getVariable( input, consistencyManagement, options? ): CancelablePromise; ``` Get variable Get a variable by its key. This endpoint returns both process-level and local (element-scoped) variables. The variable's scopeKey indicates whether it's a process-level variable or scoped to a specific element instance. * #### Parameters ##### input [`getVariableInput`](../type-aliases/getVariableInput.md) ##### consistencyManagement [`getVariableConsistency`](../type-aliases/getVariableConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`VariableResult`](../type-aliases/VariableResult.md)\> #### Example **Get a variable** ```ts async function getVariableExample(variableKey: VariableKey) { const camunda = createCamundaClient(); const variable = await camunda.getVariable( { variableKey }, { consistency: { waitUpToMs: 5000 } } ); console.log(`${variable.name} = ${variable.value}`); } ``` #### Operation Id getVariable #### Tags Variable #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### getWorkers() ```ts getWorkers(): any[]; ``` Return a read-only snapshot of currently registered job workers. #### Returns `any`[] --- ### listHistoryBackups() ```ts listHistoryBackups(input, options?): CancelablePromise; ``` List history backups Returns a list of all available history backups of the physical tenant, with their state and additional info, most recent first by snapshot start time. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. - #### Parameters ##### input [`listHistoryBackupsInput`](../type-aliases/listHistoryBackupsInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`HistoryBackupInfo`](../type-aliases/HistoryBackupInfo.md)[]\> #### Example **List history backups** ```ts async function listHistoryBackupsExample() { const camunda = createCamundaClient(); // `prefix` must end in a single '*'. Omit it to list every history backup. const backups = await camunda.listHistoryBackups({ prefix: "10*" }); for (const backup of backups) { console.log(`History backup ${backup.backupId}: ${backup.state}`); } } ``` #### Operation Id listHistoryBackups #### Tags Backup --- ### listHistoryBackupsAsClusterAdmin() ```ts listHistoryBackupsAsClusterAdmin(input, options?): CancelablePromise; ``` List history backups across physical tenants Lists the history backups of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by backup id. A backup id that only some physical tenants hold is a supported outcome rather than a degraded one, so only the tenants that hold it are listed under it. The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole request rather than silently dropping out of the listing. Narrow the request with `physicalTenantId` to list the backups of the tenants that can still be read. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `GET /v2/backups/history` to act as a single physical tenant. * #### Parameters ##### input [`listHistoryBackupsAsClusterAdminInput`](../type-aliases/listHistoryBackupsAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterHistoryBackupInfo`](../type-aliases/ClusterHistoryBackupInfo.md)[]\> #### Example **List history backups (cluster admin)** ```ts async function listHistoryBackupsAsClusterAdminExample() { const camunda = createCamundaClient(); // `prefix` must end in a single '*'. Omit `physicalTenantId` to span every // physical tenant of the cluster — results are grouped by backup id, and each // group lists only the tenants that hold that id. const backups = await camunda.listHistoryBackupsAsClusterAdmin({ prefix: "10*", }); for (const backup of backups) { console.log(`Cluster history backup ${backup.backupId}:`); for (const tenant of backup.physicalTenants) { console.log(` [${tenant.physicalTenantId}] ${tenant.state}`); } } } ``` #### Operation Id listHistoryBackupsAsClusterAdmin #### Tags Backup --- ### listRuntimeBackups() ```ts listRuntimeBackups(input, options?): CancelablePromise; ``` List runtime backups Returns a list of all available runtime backups of the physical tenant, with their state and additional info, sorted in descending order of backupId. - #### Parameters ##### input [`listRuntimeBackupsInput`](../type-aliases/listRuntimeBackupsInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BackupInfo`](../type-aliases/BackupInfo.md)[]\> #### Example **List runtime backups** ```ts async function listRuntimeBackupsExample() { const camunda = createCamundaClient(); // `prefix` must end in a single '*'. Omit it to list every backup. const backups = await camunda.listRuntimeBackups({ prefix: "10*" }); for (const backup of backups) { console.log(`Backup ${backup.backupId}: ${backup.state}`); } } ``` #### Operation Id listRuntimeBackups #### Tags Backup --- ### listRuntimeBackupsAsClusterAdmin() ```ts listRuntimeBackupsAsClusterAdmin(input, options?): CancelablePromise; ``` List runtime backups across physical tenants Lists the runtime backups of every physical tenant of the cluster, or of the one named by `physicalTenantId`, grouped by backup id. Every group reports every targeted tenant, including the ones holding nothing for that id, so a backup only some tenants hold aggregates to `INCOMPLETE` here exactly as it does when looked up directly — the state of a listed group can be trusted to say whether the cluster can be restored from it. A backup id that only some physical tenants hold is a supported outcome rather than a degraded one; tenants that generate their own backup ids never share one, so in that mode each backup forms its own group and the other tenants report `DOES_NOT_EXIST` under it. The request is all-or-nothing: a physical tenant whose backups cannot be read fails the whole request rather than silently dropping out of the listing. Narrow the request with `physicalTenantId` to list the backups of the tenants that can still be read. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `GET /v2/backups/runtime` to act as a single physical tenant. * #### Parameters ##### input [`listRuntimeBackupsAsClusterAdminInput`](../type-aliases/listRuntimeBackupsAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRuntimeBackupInfo`](../type-aliases/ClusterRuntimeBackupInfo.md)[]\> #### Example **List runtime backups (cluster admin)** ```ts async function listRuntimeBackupsAsClusterAdminExample() { const camunda = createCamundaClient(); // `prefix` must end in a single '*'. Omit `physicalTenantId` to span every // physical tenant — results are grouped by backup id, and each group reports // every targeted tenant, including ones holding nothing for that id (reported // as `DOES_NOT_EXIST`). const backups = await camunda.listRuntimeBackupsAsClusterAdmin({ prefix: "10*", }); for (const backup of backups) { console.log(`Cluster runtime backup ${backup.backupId}: ${backup.state}`); for (const tenant of backup.physicalTenants) { console.log(` [${tenant.physicalTenantId}] ${tenant.state}`); } } } ``` #### Operation Id listRuntimeBackupsAsClusterAdmin #### Tags Backup --- ### listSecrets() ```ts listSecrets(input, options?): CancelablePromise; ``` List secrets List the `camunda.secrets.*` references known for the caller's physical tenant. Only references the caller holds `SECRET:READ` on are returned. This endpoint never returns secret values, only the reference names. The references are read from the secret stores configured for the caller's physical tenant. A store may hold names outside the reference name charset (for example one containing a dot); those are omitted, since `/secrets/resolve` would reject them and no permission can be granted on them. A returned reference is usable verbatim with `/secrets/resolve`. In a FEEL expression, however, a name that is not a bare identifier has to be backtick-escaped, since FEEL reads a bare dash as the minus operator: a listed `camunda.secrets.db-password` is written `` =camunda.secrets.`db-password` `` in a BPMN input mapping. - #### Parameters ##### input [`SecretListRequest`](../type-aliases/SecretListRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`SecretListResult`](../type-aliases/SecretListResult.md)\> #### Example **List secret references** ```ts async function listSecretsExample() { const camunda = createCamundaClient(); // The request body is reserved for future filtering options and currently // takes no properties. const result = await camunda.listSecrets({}); // Only the references are returned — never the secret values. Use // `resolveSecrets` to fetch a value when one is actually needed. for (const reference of result.references) { console.log(`Secret available: ${reference}`); } } ``` #### Operation Id listSecrets #### Tags Secret --- ### logger() ```ts logger(scope?): Logger; ``` Access a scoped logger (internal & future user emission). #### Parameters ##### scope? `string` #### Returns [`Logger`](../../logger/interfaces/Logger.md) #### Inherited from ```ts CamundaCore.logger; ``` --- ### migrateProcessInstance() ```ts migrateProcessInstance(input, options?): CancelablePromise; ``` Migrate process instance Migrates a process instance to a new process definition. This request can contain multiple mapping instructions to define mapping between the active process instance's elements and target process definition elements. Use this to upgrade a process instance to a new version of a process or to a different process definition, e.g. to keep your running instances up-to-date with the latest process improvements. - #### Parameters ##### input [`migrateProcessInstanceInput`](../type-aliases/migrateProcessInstanceInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Migrate a process instance** ```ts async function migrateProcessInstanceExample( processInstanceKey: ProcessInstanceKey, targetProcessDefinitionKey: ProcessDefinitionKey, sourceElementId: ElementId, targetElementId: ElementId ) { const camunda = createCamundaClient(); await camunda.migrateProcessInstance({ processInstanceKey, targetProcessDefinitionKey, mappingInstructions: [ { sourceElementId, targetElementId, }, ], }); } ``` #### Operation Id migrateProcessInstance #### Tags Process instance --- ### migrateProcessInstancesBatchOperation() ```ts migrateProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Migrate process instances (batch) Migrate multiple process instances. Since only process instances with ACTIVE state can be migrated, any given filters for state are ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceMigrationBatchOperationRequest`](../type-aliases/ProcessInstanceMigrationBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Migrate process instances in batch** ```ts async function migrateProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey, targetProcessDefinitionKey: ProcessDefinitionKey, sourceElementId: ElementId, targetElementId: ElementId ) { const camunda = createCamundaClient(); const result = await camunda.migrateProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, migrationPlan: { targetProcessDefinitionKey, mappingInstructions: [ { sourceElementId, targetElementId, }, ], }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id migrateProcessInstancesBatchOperation #### Tags Process instance --- ### modifyProcessInstance() ```ts modifyProcessInstance(input, options?): CancelablePromise; ``` Modify process instance Modifies a running process instance. This request can contain multiple instructions to activate an element of the process or to terminate an active instance of an element. Use this to repair a process instance that is stuck on an element or took an unintended path. For example, because an external system is not available or doesn't respond as expected. - #### Parameters ##### input [`modifyProcessInstanceInput`](../type-aliases/modifyProcessInstanceInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Modify a process instance** ```ts async function modifyProcessInstanceExample( processInstanceKey: ProcessInstanceKey, elementId: ElementId, elementInstanceKey: ElementInstanceKey ) { const camunda = createCamundaClient(); await camunda.modifyProcessInstance({ processInstanceKey, activateInstructions: [{ elementId }], terminateInstructions: [{ elementInstanceKey }], }); } ``` #### Operation Id modifyProcessInstance #### Tags Process instance --- ### modifyProcessInstancesBatchOperation() ```ts modifyProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Modify process instances (batch) Modify multiple process instances. Since only process instances with ACTIVE state can be modified, any given filters for state are ignored and overridden during this batch operation. In contrast to single modification operation, it is not possible to add variable instructions or modify by element key. It is only possible to use the element id of the source and target. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceModificationBatchOperationRequest`](../type-aliases/ProcessInstanceModificationBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Modify process instances in batch** ```ts async function modifyProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey, sourceElementId: ElementId, targetElementId: ElementId ) { const camunda = createCamundaClient(); const result = await camunda.modifyProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, moveInstructions: [ { sourceElementId, targetElementId, }, ], }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id modifyProcessInstancesBatchOperation #### Tags Process instance --- ### onAuthHeaders() ```ts onAuthHeaders(h): void; ``` #### Parameters ##### h (`headers`) => \| `Record`\<`string`, `string`\> \| `Promise`\<`Record`\<`string`, `string`\>\> #### Returns `void` #### Inherited from ```ts CamundaCore.onAuthHeaders; ``` --- ### pauseClusterExporting() ```ts pauseClusterExporting(input, options?): CancelablePromise; ``` Pause exporting across the whole cluster Pauses exporting on every physical tenant of the cluster in one call. With `soft=true`, every physical tenant is soft-paused instead. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### input [`pauseClusterExportingInput`](../type-aliases/pauseClusterExportingInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Pause cluster exporting** ```ts async function pauseClusterExportingExample() { const camunda = createCamundaClient(); // Cluster-admin variant: pauses exporting on every physical tenant of the // cluster. With `soft: true` exporting keeps running but its position is not // committed, so the log is still not compacted. await camunda.pauseClusterExporting({ soft: true }); } ``` #### Operation Id pauseClusterExporting #### Tags Exporting --- ### pauseExporting() ```ts pauseExporting(input, options?): CancelablePromise; ``` Pause exporting Pauses exporting on all partitions of the physical tenant. While paused, exported records are not committed, so the log is not compacted for the affected partitions. With `soft=true`, exporting continues to run but its position is not committed, so the state after resuming is identical to a hard pause; use this variant when exporting must keep progressing (e.g. to avoid falling behind) while still preventing log compaction, such as during a backup. - #### Parameters ##### input [`pauseExportingInput`](../type-aliases/pauseExportingInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Pause exporting** ```ts async function pauseExportingExample() { const camunda = createCamundaClient(); // With `soft: true` exporting keeps running but its position is not committed, // so the log is still not compacted — use it when exporting must keep // progressing, for example while a backup is taken. await camunda.pauseExporting({ soft: true }); } ``` #### Operation Id pauseExporting #### Tags Exporting --- ### pinClock() ```ts pinClock(input, options?): CancelablePromise; ``` Pin internal clock (alpha) Set a precise, static time for the Zeebe engine's internal clock. When the clock is pinned, it remains at the specified time and does not advance. To change the time, the clock must be pinned again with a new timestamp. This endpoint is an alpha feature and may be subject to change in future releases. - #### Parameters ##### input [`ClockPinRequest`](../type-aliases/ClockPinRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Pin the cluster clock** ```ts async function pinClockExample() { const camunda = createCamundaClient(); await camunda.pinClock({ timestamp: 1735689599000, }); console.log("Clock pinned"); } ``` #### Operation Id pinClock #### Tags Clock --- ### publishMessage() ```ts publishMessage(input, options?): CancelablePromise; ``` Publish message Publishes a single message. Messages are published to specific partitions computed from their correlation keys. Messages can be buffered. The endpoint does not wait for a correlation result. Use the message correlation endpoint for such use cases. - #### Parameters ##### input [`MessagePublicationRequest`](../type-aliases/MessagePublicationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MessagePublicationResult`](../type-aliases/MessagePublicationResult.md)\> #### Example **Publish a message** ```ts async function publishMessageExample() { const camunda = createCamundaClient(); await camunda.publishMessage({ name: "order-payment-received", correlationKey: "ORD-12345", timeToLive: 60000, variables: { paymentId: "PAY-123", }, }); } ``` #### Operation Id publishMessage #### Tags Message --- ### resetClock() ```ts resetClock(options?): CancelablePromise; ``` Reset internal clock (alpha) Resets the Zeebe engine's internal clock to the current system time, enabling it to tick in real-time. This operation is useful for returning the clock to normal behavior after it has been pinned to a specific time. This endpoint is an alpha feature and may be subject to change in future releases. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Reset the cluster clock** ```ts async function resetClockExample() { const camunda = createCamundaClient(); await camunda.resetClock(); console.log("Clock reset"); } ``` #### Operation Id resetClock #### Tags Clock --- ### resolveIncident() ```ts resolveIncident(input, options?): CancelablePromise; ``` Resolve incident Marks the incident as resolved; most likely a call to Update job will be necessary to reset the job's retries, followed by this call. - #### Parameters ##### input [`resolveIncidentInput`](../type-aliases/resolveIncidentInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Resolve an incident** ```ts async function resolveIncidentExample(incidentKey: IncidentKey) { const camunda = createCamundaClient(); await camunda.resolveIncident({ incidentKey }); } ``` #### Operation Id resolveIncident #### Tags Incident --- ### resolveIncidentsBatchOperation() ```ts resolveIncidentsBatchOperation(input, options?): CancelablePromise; ``` Resolve related incidents (batch) Resolves multiple instances of process instances. Since only process instances with ACTIVE state can have unresolved incidents, any given filters for state are ignored and overridden during this batch operation. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceIncidentResolutionBatchOperationRequest`](../type-aliases/ProcessInstanceIncidentResolutionBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Resolve incidents in batch** ```ts async function resolveIncidentsBatchOperationExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.resolveIncidentsBatchOperation({ filter: { processDefinitionKey, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id resolveIncidentsBatchOperation #### Tags Process instance --- ### resolveProcessInstanceIncidents() ```ts resolveProcessInstanceIncidents(input, options?): CancelablePromise; ``` Resolve related incidents Creates a batch operation to resolve multiple incidents of a process instance. * #### Parameters ##### input [`resolveProcessInstanceIncidentsInput`](../type-aliases/resolveProcessInstanceIncidentsInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Resolve process instance incidents** ```ts async function resolveProcessInstanceIncidentsExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.resolveProcessInstanceIncidents({ processInstanceKey, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id resolveProcessInstanceIncidents #### Tags Process instance --- ### resolveSecrets() ```ts resolveSecrets(input, options?): CancelablePromise; ``` Resolve secrets Resolve a deduplicated batch of `camunda.secrets.*` references for the caller's physical tenant in a single round-trip. Each reference is authorized and resolved independently. For valid requests, the endpoint always responds with HTTP 200: successfully resolved references are returned in `resolved`, while references that could not be resolved (for example not found, malformed or over-long, or the caller lacks `SECRET:REVEAL` on that reference) are returned in `errors`. A failure of one reference never fails the others. Only structurally invalid requests are rejected with HTTP 400: a missing or non-array `references` field, more than 20 references, or a null entry. References are resolved against the secret stores configured for the caller's physical tenant, served from the gateway's secret cache when the value is already cached and read from the store otherwise. - #### Parameters ##### input [`SecretResolveRequest`](../type-aliases/SecretResolveRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`SecretResolveResult`](../type-aliases/SecretResolveResult.md)\> #### Example **Resolve secrets** ```ts async function resolveSecretsExample() { const camunda = createCamundaClient(); const result = await camunda.resolveSecrets({ references: ["camunda.secrets.myApiToken", "camunda.secrets.dbPassword"], }); // Successfully resolved references are returned in `resolved`; references that // could not be resolved are returned in `errors`, each with a typed error code. // Never log a resolved value — it holds secret material. Pass it straight to the // consumer that needs it (HTTP client, DB driver, ...) instead. for (const resolved of result.resolved) { console.log(`Resolved ${resolved.reference} (value redacted)`); useSecret(resolved.value); } for (const error of result.errors) { console.log( `Failed to resolve ${error.reference}: ${error.code} - ${error.message}` ); } } // Hands the resolved secret to whatever needs it, without logging it. function useSecret(_value: string) {} ``` #### Operation Id resolveSecrets #### Tags Secret --- ### restore() ```ts restore(input, options?): CancelablePromise; ``` Restore from a backup Restores the cluster from a backup. The restore is described either by a single backup ID or by a time range (`from`/`to`) that selects the backups to restore. This endpoint is only accessible while the cluster is in recovery mode; requests are rejected otherwise. The request is validated and acknowledged, but the restore itself is performed asynchronously. * #### Parameters ##### input [`restoreInput`](../type-aliases/restoreInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRestoreResponse`](../type-aliases/ClusterRestoreResponse.md)\> #### Example **Restore from a backup** ```ts async function restoreExample() { const camunda = createCamundaClient(); // The cluster must be in recovery mode before a restore is accepted. Provide // either a list of backup IDs (one per partition) or a time range (`from`/`to`) // that selects the backups to restore, but not both. const change = await camunda.restore({ backupIds: [100, 101], }); console.log(`Cluster change ${change.changeId}:`); for (const group of change.plannedChanges) { console.log(` ${group.physicalTenantId ?? "cluster-wide"}:`); for (const op of group.operations) { const mode = "mode" in op ? op.mode : undefined; console.log(` ${op.operation}${mode ? ` -> ${mode}` : ""}`); } } } ``` #### Operation Id restore #### Tags Recovery --- ### restoreAsClusterAdmin() ```ts restoreAsClusterAdmin(input, options?): CancelablePromise; ``` Restore one or every physical tenant from a backup Restores physical tenants from backups. The restore is described either by a list of backup IDs or by a time range (`from`/`to`) that selects the backups to restore. Restores are only accepted while the targeted physical tenants are in recovery mode; requests are rejected otherwise. The request is validated and acknowledged, but the restore itself is performed asynchronously. If the `physicalTenantId` parameter is provided, only that physical tenant is restored and `overrides` must be omitted. If it is not provided, every physical tenant of the cluster is restored: those named in `overrides` with their own backup selection, all others with the selection at the top level of the request body. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### input [`restoreAsClusterAdminInput`](../type-aliases/restoreAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRestoreResponse`](../type-aliases/ClusterRestoreResponse.md)\> #### Example **Restore from a backup as cluster admin** ```ts async function restoreAsClusterAdminExample() { const camunda = createCamundaClient(); // The cluster-admin variant can target a specific physical tenant and supports // per-tenant overrides. Omit `physicalTenantId` to restore every physical // tenant. Provide either backup IDs (one per partition) or a time range // (`from`/`to`), but not both. const change = await camunda.restoreAsClusterAdmin({ backupIds: [200, 201], physicalTenantId: "default", dryRun: true, }); console.log(`Cluster change ${change.changeId}:`); for (const group of change.plannedChanges) { console.log(` ${group.physicalTenantId ?? "cluster-wide"}:`); for (const op of group.operations) { const mode = "mode" in op ? op.mode : undefined; console.log(` ${op.operation}${mode ? ` -> ${mode}` : ""}`); } } } ``` #### Operation Id restoreAsClusterAdmin #### Tags Recovery --- ### resumeBatchOperation() ```ts resumeBatchOperation(input, options?): CancelablePromise; ``` Resume Batch operation Resumes a suspended batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input ###### batchOperationKey [`BatchOperationKey`](../type-aliases/BatchOperationKey.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Resume a batch operation** ```ts async function resumeBatchOperationExample( batchOperationKey: BatchOperationKey ) { const camunda = createCamundaClient(); await camunda.resumeBatchOperation({ batchOperationKey }); } ``` #### Operation Id resumeBatchOperation #### Tags Batch operation --- ### resumeClusterExporting() ```ts resumeClusterExporting(options?): CancelablePromise; ``` Resume exporting across the whole cluster Resumes exporting on every physical tenant of the cluster in one call, after a pause or soft pause. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Resume cluster exporting** ```ts async function resumeClusterExportingExample() { const camunda = createCamundaClient(); await camunda.resumeClusterExporting(); } ``` #### Operation Id resumeClusterExporting #### Tags Exporting --- ### resumeExporting() ```ts resumeExporting(options?): CancelablePromise; ``` Resume exporting Resumes exporting on all partitions of the physical tenant after a pause or soft pause. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Resume exporting** ```ts async function resumeExportingExample() { const camunda = createCamundaClient(); await camunda.resumeExporting(); } ``` #### Operation Id resumeExporting #### Tags Exporting --- ### resumeProcessInstance() ```ts resumeProcessInstance(input, options?): CancelablePromise; ``` Resume process instance Resumes a suspended process instance, returning it to the ACTIVE state and continuing processing. Only process instances in the SUSPENDED state can be resumed. A child process instance can be resumed independently of its parent or root process instance; resumption does not cascade to or from related instances. - #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Resume a process instance** ```ts async function resumeProcessInstanceExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); await camunda.resumeProcessInstance({ processInstanceKey }); } ``` #### Operation Id resumeProcessInstance #### Tags Process instance --- ### resumeProcessInstancesBatchOperation() ```ts resumeProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Resume process instances (batch) Resumes multiple suspended process instances. Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only SUSPENDED process instances can be resumed and resumption does not cascade between parent and child instances, so child instances are resumed independently of their parent or root instance. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceResumptionBatchOperationRequest`](../type-aliases/ProcessInstanceResumptionBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Resume process instances in batch** ```ts async function resumeProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.resumeProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id resumeProcessInstancesBatchOperation #### Tags Process instance --- ### searchAgentDefinitions() ```ts searchAgentDefinitions( input, consistencyManagement, options? ): CancelablePromise; ``` Search agent definitions Search for agent definitions based on given criteria. * #### Parameters ##### input [`AgentDefinitionSearchQuery`](../type-aliases/AgentDefinitionSearchQuery.md) ##### consistencyManagement [`searchAgentDefinitionsConsistency`](../type-aliases/searchAgentDefinitionsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentDefinitionSearchQueryResult`](../type-aliases/AgentDefinitionSearchQueryResult.md)\> #### Example **Search agent definitions** ```ts async function searchAgentDefinitionsExample() { const camunda = createCamundaClient(); const result = await camunda.searchAgentDefinitions( { filter: { agentType: { $eq: "AI_AGENT_TASK" } }, sort: [{ field: "name", order: "ASC" }], page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const definition of result.items ?? []) { console.log( `${definition.agentDefinitionKey}: ${definition.name} (${definition.agentType})` ); } console.log(`Total: ${result.page.totalItems}`); } ``` #### Operation Id searchAgentDefinitions #### Tags Agent definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchAgentInstanceHistory() ```ts searchAgentInstanceHistory( input, consistencyManagement, options? ): CancelablePromise; ``` Search agent instance history Searches the conversation history of an agent instance. Committed items are returned by default. - #### Parameters ##### input [`searchAgentInstanceHistoryInput`](../type-aliases/searchAgentInstanceHistoryInput.md) ##### consistencyManagement [`searchAgentInstanceHistoryConsistency`](../type-aliases/searchAgentInstanceHistoryConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentInstanceHistorySearchQueryResult`](../type-aliases/AgentInstanceHistorySearchQueryResult.md)\> #### Example **Search agent instance history** ```ts async function searchAgentInstanceHistoryExample( agentInstanceKey: AgentInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.searchAgentInstanceHistory( { agentInstanceKey, filter: { role: { $eq: "ASSISTANT" } }, sort: [{ field: "producedAt", order: "ASC" }], page: { limit: 20 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const item of result.items ?? []) { console.log(`${item.historyItemKey} (${item.role})`); } console.log(`Total: ${result.page.totalItems}`); } ``` #### Operation Id searchAgentInstanceHistory #### Tags Agent instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchAgentInstances() ```ts searchAgentInstances( input, consistencyManagement, options? ): CancelablePromise; ``` Search agent instances Search for agent instances based on given criteria. * #### Parameters ##### input [`AgentInstanceSearchQuery`](../type-aliases/AgentInstanceSearchQuery.md) ##### consistencyManagement [`searchAgentInstancesConsistency`](../type-aliases/searchAgentInstancesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentInstanceSearchQueryResult`](../type-aliases/AgentInstanceSearchQueryResult.md)\> #### Example **Search agent instances** ```ts async function searchAgentInstancesExample() { const camunda = createCamundaClient(); const result = await camunda.searchAgentInstances( { filter: { status: { $eq: "IDLE" } }, sort: [{ field: "creationDate", order: "DESC" }], page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const instance of result.items ?? []) { console.log(`${instance.agentInstanceKey}: ${instance.status}`); } console.log(`Total: ${result.page.totalItems}`); } ``` #### Operation Id searchAgentInstances #### Tags Agent instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchAuditLogs() ```ts searchAuditLogs( input, consistencyManagement, options? ): CancelablePromise; ``` Search audit logs Search for audit logs based on given criteria. * #### Parameters ##### input [`AuditLogSearchQueryRequest`](../type-aliases/AuditLogSearchQueryRequest.md) ##### consistencyManagement [`searchAuditLogsConsistency`](../type-aliases/searchAuditLogsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuditLogSearchQueryResult`](../type-aliases/AuditLogSearchQueryResult.md)\> #### Example **Search audit logs** ```ts async function searchAuditLogsExample() { const camunda = createCamundaClient(); const result = await camunda.searchAuditLogs( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const log of result.items ?? []) { console.log(`${log.auditLogKey}: ${log.operationType}`); } } ``` #### Operation Id searchAuditLogs #### Tags Audit Log #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchAuthorizations() ```ts searchAuthorizations( input, consistencyManagement, options? ): CancelablePromise; ``` Search authorizations Search for authorizations based on given criteria. * #### Parameters ##### input [`AuthorizationSearchQuery`](../type-aliases/AuthorizationSearchQuery.md) ##### consistencyManagement [`searchAuthorizationsConsistency`](../type-aliases/searchAuthorizationsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuthorizationSearchResult`](../type-aliases/AuthorizationSearchResult.md)\> #### Example **Search authorizations** ```ts async function searchAuthorizationsExample() { const camunda = createCamundaClient(); const result = await camunda.searchAuthorizations( { filter: { ownerType: "USER" }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const auth of result.items ?? []) { console.log( `${auth.authorizationKey}: ${auth.ownerId} - ${auth.resourceType}` ); } } ``` #### Operation Id searchAuthorizations #### Tags Authorization #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchBatchOperationItems() ```ts searchBatchOperationItems( input, consistencyManagement, options? ): CancelablePromise; ``` Search batch operation items Search for batch operation items based on given criteria. * #### Parameters ##### input [`BatchOperationItemSearchQuery`](../type-aliases/BatchOperationItemSearchQuery.md) ##### consistencyManagement [`searchBatchOperationItemsConsistency`](../type-aliases/searchBatchOperationItemsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationItemSearchQueryResult`](../type-aliases/BatchOperationItemSearchQueryResult.md)\> #### Example **Search batch operation items** ```ts async function searchBatchOperationItemsExample() { const camunda = createCamundaClient(); const result = await camunda.searchBatchOperationItems( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const item of result.items ?? []) { console.log(`Item: ${item.itemKey} (${item.state})`); } } ``` #### Operation Id searchBatchOperationItems #### Tags Batch operation #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchBatchOperations() ```ts searchBatchOperations( input, consistencyManagement, options? ): CancelablePromise; ``` Search batch operations Search for batch operations based on given criteria. * #### Parameters ##### input [`BatchOperationSearchQuery`](../type-aliases/BatchOperationSearchQuery.md) ##### consistencyManagement [`searchBatchOperationsConsistency`](../type-aliases/searchBatchOperationsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationSearchQueryResult`](../type-aliases/BatchOperationSearchQueryResult.md)\> #### Example **Search batch operations** ```ts async function searchBatchOperationsExample() { const camunda = createCamundaClient(); const result = await camunda.searchBatchOperations( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const batch of result.items ?? []) { console.log( `${batch.batchOperationKey}: ${batch.batchOperationType} (${batch.state})` ); } } ``` #### Operation Id searchBatchOperations #### Tags Batch operation #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchClientsForGroup() ```ts searchClientsForGroup( input, consistencyManagement, options? ): CancelablePromise; ``` Search group clients Search clients assigned to a group. * #### Parameters ##### input [`searchClientsForGroupInput`](../type-aliases/searchClientsForGroupInput.md) ##### consistencyManagement [`searchClientsForGroupConsistency`](../type-aliases/searchClientsForGroupConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupClientSearchResult`](../type-aliases/GroupClientSearchResult.md)\> #### Example **Search clients in a group** ```ts async function searchClientsForGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const result = await camunda.searchClientsForGroup( { groupId }, { consistency: { waitUpToMs: 5000 } } ); for (const client of result.items ?? []) { console.log(`Client: ${client.clientId}`); } } ``` #### Operation Id searchClientsForGroup #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchClientsForRole() ```ts searchClientsForRole( input, consistencyManagement, options? ): CancelablePromise; ``` Search role clients Search clients with assigned role. * #### Parameters ##### input [`searchClientsForRoleInput`](../type-aliases/searchClientsForRoleInput.md) ##### consistencyManagement [`searchClientsForRoleConsistency`](../type-aliases/searchClientsForRoleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleClientSearchResult`](../type-aliases/RoleClientSearchResult.md)\> #### Example **Search clients for a role** ```ts async function searchClientsForRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const result = await camunda.searchClientsForRole( { roleId }, { consistency: { waitUpToMs: 5000 } } ); for (const client of result.items ?? []) { console.log(`Client: ${client.clientId}`); } } ``` #### Operation Id searchClientsForRole #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchClientsForTenant() ```ts searchClientsForTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Search clients for tenant Retrieves a filtered and sorted list of clients for a specified tenant. * #### Parameters ##### input [`searchClientsForTenantInput`](../type-aliases/searchClientsForTenantInput.md) ##### consistencyManagement [`searchClientsForTenantConsistency`](../type-aliases/searchClientsForTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantClientSearchResult`](../type-aliases/TenantClientSearchResult.md)\> #### Example **Search clients for a tenant** ```ts async function searchClientsForTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.searchClientsForTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); for (const client of result.items ?? []) { console.log(`Client: ${client.clientId}`); } } ``` #### Operation Id searchClientsForTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchClusterVariables() ```ts searchClusterVariables( input, consistencyManagement, options? ): CancelablePromise; ``` Search for cluster variables based on given criteria. By default, long variable values in the response are truncated. * #### Parameters ##### input [`searchClusterVariablesInput`](../type-aliases/searchClusterVariablesInput.md) ##### consistencyManagement [`searchClusterVariablesConsistency`](../type-aliases/searchClusterVariablesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableSearchQueryResult`](../type-aliases/ClusterVariableSearchQueryResult.md)\> #### Example **Search cluster variables** ```ts async function searchClusterVariablesExample() { const camunda = createCamundaClient(); const result = await camunda.searchClusterVariables( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const variable of result.items ?? []) { console.log(`${variable.name} = ${variable.value}`); } } ``` #### Operation Id searchClusterVariables #### Tags Cluster Variable #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchCorrelatedMessageSubscriptions() ```ts searchCorrelatedMessageSubscriptions( input, consistencyManagement, options? ): CancelablePromise; ``` Search correlated message subscriptions Search correlated message subscriptions based on given criteria. * #### Parameters ##### input [`CorrelatedMessageSubscriptionSearchQuery`](../type-aliases/CorrelatedMessageSubscriptionSearchQuery.md) ##### consistencyManagement [`searchCorrelatedMessageSubscriptionsConsistency`](../type-aliases/searchCorrelatedMessageSubscriptionsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`CorrelatedMessageSubscriptionSearchQueryResult`](../type-aliases/CorrelatedMessageSubscriptionSearchQueryResult.md)\> #### Example **Search correlated message subscriptions** ```ts async function searchCorrelatedMessageSubscriptionsExample() { const camunda = createCamundaClient(); const result = await camunda.searchCorrelatedMessageSubscriptions( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const sub of result.items ?? []) { console.log(`Correlated subscription: ${sub.messageName}`); } } ``` #### Operation Id searchCorrelatedMessageSubscriptions #### Tags Message subscription #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchDecisionDefinitions() ```ts searchDecisionDefinitions( input, consistencyManagement, options? ): CancelablePromise; ``` Search decision definitions Search for decision definitions based on given criteria. * #### Parameters ##### input [`DecisionDefinitionSearchQuery`](../type-aliases/DecisionDefinitionSearchQuery.md) ##### consistencyManagement [`searchDecisionDefinitionsConsistency`](../type-aliases/searchDecisionDefinitionsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionDefinitionSearchQueryResult`](../type-aliases/DecisionDefinitionSearchQueryResult.md)\> #### Example **Search decision definitions** ```ts async function searchDecisionDefinitionsExample( decisionDefinitionId: DecisionDefinitionId ) { const camunda = createCamundaClient(); const result = await camunda.searchDecisionDefinitions( { filter: { decisionDefinitionId }, }, { consistency: { waitUpToMs: 5000 } } ); for (const definition of result.items ?? []) { console.log(`${definition.decisionDefinitionId} v${definition.version}`); } } ``` #### Operation Id searchDecisionDefinitions #### Tags Decision definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchDecisionInstances() ```ts searchDecisionInstances( input, consistencyManagement, options? ): CancelablePromise; ``` Search decision instances Search for decision instances based on given criteria. * #### Parameters ##### input [`DecisionInstanceSearchQuery`](../type-aliases/DecisionInstanceSearchQuery.md) ##### consistencyManagement [`searchDecisionInstancesConsistency`](../type-aliases/searchDecisionInstancesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionInstanceSearchQueryResult`](../type-aliases/DecisionInstanceSearchQueryResult.md)\> #### Example **Search decision instances** ```ts async function searchDecisionInstancesExample() { const camunda = createCamundaClient(); const result = await camunda.searchDecisionInstances( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const instance of result.items ?? []) { console.log( `${instance.decisionEvaluationKey}: ${instance.decisionDefinitionId}` ); } } ``` #### Operation Id searchDecisionInstances #### Tags Decision instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchDecisionRequirements() ```ts searchDecisionRequirements( input, consistencyManagement, options? ): CancelablePromise; ``` Search decision requirements Search for decision requirements based on given criteria. * #### Parameters ##### input [`DecisionRequirementsSearchQuery`](../type-aliases/DecisionRequirementsSearchQuery.md) ##### consistencyManagement [`searchDecisionRequirementsConsistency`](../type-aliases/searchDecisionRequirementsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`DecisionRequirementsSearchQueryResult`](../type-aliases/DecisionRequirementsSearchQueryResult.md)\> #### Example **Search decision requirements** ```ts async function searchDecisionRequirementsExample() { const camunda = createCamundaClient(); const result = await camunda.searchDecisionRequirements( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const req of result.items ?? []) { console.log( `${req.decisionRequirementsKey}: ${req.decisionRequirementsId}` ); } } ``` #### Operation Id searchDecisionRequirements #### Tags Decision requirements #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchElementInstanceIncidents() ```ts searchElementInstanceIncidents( input, consistencyManagement, options? ): CancelablePromise; ``` Search for incidents of a specific element instance Search for incidents caused by the specified element instance, including incidents of any child instances created from this element instance. Although the `elementInstanceKey` is provided as a path parameter to indicate the root element instance, you may also include an `elementInstanceKey` within the filter object to narrow results to specific child element instances. This is useful, for example, if you want to isolate incidents associated with nested or subordinate elements within the given element instance while excluding incidents directly tied to the root element itself. - #### Parameters ##### input [`searchElementInstanceIncidentsInput`](../type-aliases/searchElementInstanceIncidentsInput.md) ##### consistencyManagement [`searchElementInstanceIncidentsConsistency`](../type-aliases/searchElementInstanceIncidentsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentSearchQueryResult`](../type-aliases/IncidentSearchQueryResult.md)\> #### Example **Search element instance incidents** ```ts async function searchElementInstanceIncidentsExample( elementInstanceKey: ElementInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.searchElementInstanceIncidents( { elementInstanceKey }, { consistency: { waitUpToMs: 5000 } } ); for (const incident of result.items ?? []) { console.log(`Incident: ${incident.errorType}`); } } ``` #### Operation Id searchElementInstanceIncidents #### Tags Element instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchElementInstances() ```ts searchElementInstances( input, consistencyManagement, options? ): CancelablePromise; ``` Search element instances Search for element instances based on given criteria. * #### Parameters ##### input [`ElementInstanceSearchQuery`](../type-aliases/ElementInstanceSearchQuery.md) ##### consistencyManagement [`searchElementInstancesConsistency`](../type-aliases/searchElementInstancesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ElementInstanceSearchQueryResult`](../type-aliases/ElementInstanceSearchQueryResult.md)\> #### Example **Search element instances** ```ts async function searchElementInstancesExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.searchElementInstances( { filter: { processInstanceKey, }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const element of result.items ?? []) { console.log(`${element.elementId}: ${element.type} (${element.state})`); } } ``` #### Operation Id searchElementInstances #### Tags Element instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchElementInstanceWaitStates() ```ts searchElementInstanceWaitStates( input, consistencyManagement, options? ): CancelablePromise; ``` Search element instance wait states Returns the wait states for element instances matching the given filter. - #### Parameters ##### input [`ElementInstanceWaitStateQuery`](../type-aliases/ElementInstanceWaitStateQuery.md) ##### consistencyManagement [`searchElementInstanceWaitStatesConsistency`](../type-aliases/searchElementInstanceWaitStatesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ElementInstanceWaitStateQueryResult`](../type-aliases/ElementInstanceWaitStateQueryResult.md)\> #### Example **Search element instance wait states** ```ts async function searchElementInstanceWaitStatesExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.searchElementInstanceWaitStates( { filter: { processInstanceKey, }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const waitState of result.items ?? []) { const { details } = waitState; let description: string; if (details.waitStateType === "JOB") { description = `waiting on job '${details.jobType}'`; } else if (details.waitStateType === "MESSAGE") { description = `waiting for message '${details.messageName}'`; } else { description = `waiting (${details.waitStateType})`; } console.log(`${waitState.elementId}: ${description}`); } } ``` #### Operation Id searchElementInstanceWaitStates #### Tags Element instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchGlobalTaskListeners() ```ts searchGlobalTaskListeners( input, consistencyManagement, options? ): CancelablePromise; ``` Search global user task listeners Search for global user task listeners based on given criteria. * #### Parameters ##### input [`GlobalTaskListenerSearchQueryRequest`](../type-aliases/GlobalTaskListenerSearchQueryRequest.md) ##### consistencyManagement [`searchGlobalTaskListenersConsistency`](../type-aliases/searchGlobalTaskListenersConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GlobalTaskListenerSearchQueryResult`](../type-aliases/GlobalTaskListenerSearchQueryResult.md)\> #### Example **Search global task listeners** ```ts async function searchGlobalTaskListenersExample() { const camunda = createCamundaClient(); const result = await camunda.searchGlobalTaskListeners( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const listener of result.items ?? []) { console.log(`${listener.id}: ${listener.type} (${listener.eventTypes})`); } } ``` #### Operation Id searchGlobalTaskListeners #### Tags Global listener #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchGroupIdsForTenant() ```ts searchGroupIdsForTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Search groups for tenant Retrieves a filtered and sorted list of groups for a specified tenant. * #### Parameters ##### input [`searchGroupIdsForTenantInput`](../type-aliases/searchGroupIdsForTenantInput.md) ##### consistencyManagement [`searchGroupIdsForTenantConsistency`](../type-aliases/searchGroupIdsForTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantGroupSearchResult`](../type-aliases/TenantGroupSearchResult.md)\> #### Example **Search groups for a tenant** ```ts async function searchGroupIdsForTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.searchGroupIdsForTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); for (const group of result.items ?? []) { console.log(`Group: ${group.groupId}`); } } ``` #### Operation Id searchGroupIdsForTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchGroups() ```ts searchGroups( input, consistencyManagement, options? ): CancelablePromise; ``` Search groups Search for groups based on given criteria. * #### Parameters ##### input [`GroupSearchQueryRequest`](../type-aliases/GroupSearchQueryRequest.md) ##### consistencyManagement [`searchGroupsConsistency`](../type-aliases/searchGroupsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupSearchQueryResult`](../type-aliases/GroupSearchQueryResult.md)\> #### Example **Search groups** ```ts async function searchGroupsExample() { const camunda = createCamundaClient(); const result = await camunda.searchGroups( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const group of result.items ?? []) { console.log(`${group.groupId}: ${group.name}`); } } ``` #### Operation Id searchGroups #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchGroupsForRole() ```ts searchGroupsForRole( input, consistencyManagement, options? ): CancelablePromise; ``` Search role groups Search groups with assigned role. * #### Parameters ##### input [`searchGroupsForRoleInput`](../type-aliases/searchGroupsForRoleInput.md) ##### consistencyManagement [`searchGroupsForRoleConsistency`](../type-aliases/searchGroupsForRoleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleGroupSearchResult`](../type-aliases/RoleGroupSearchResult.md)\> #### Example **Search groups for a role** ```ts async function searchGroupsForRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const result = await camunda.searchGroupsForRole( { roleId }, { consistency: { waitUpToMs: 5000 } } ); for (const group of result.items ?? []) { console.log(`Group: ${group.groupId}`); } } ``` #### Operation Id searchGroupsForRole #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchIncidents() ```ts searchIncidents( input, consistencyManagement, options? ): CancelablePromise; ``` Search incidents Search for incidents based on given criteria. - #### Parameters ##### input [`IncidentSearchQuery`](../type-aliases/IncidentSearchQuery.md) ##### consistencyManagement [`searchIncidentsConsistency`](../type-aliases/searchIncidentsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentSearchQueryResult`](../type-aliases/IncidentSearchQueryResult.md)\> #### Example **Search incidents** ```ts async function searchIncidentsExample() { const camunda = createCamundaClient(); const result = await camunda.searchIncidents( { filter: { state: "ACTIVE" }, sort: [{ field: "creationTime", order: "DESC" }], page: { limit: 20 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const incident of result.items ?? []) { console.log( `${incident.incidentKey}: ${incident.errorType} — ${incident.errorMessage}` ); } console.log(`Total active incidents: ${result.page.totalItems}`); } ``` #### Operation Id searchIncidents #### Tags Incident #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchJobs() ```ts searchJobs( input, consistencyManagement, options? ): CancelablePromise; ``` Search jobs Search for jobs based on given criteria. * #### Parameters ##### input [`JobSearchQuery`](../type-aliases/JobSearchQuery.md) ##### consistencyManagement [`searchJobsConsistency`](../type-aliases/searchJobsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`JobSearchQueryResult`](../type-aliases/JobSearchQueryResult.md)\> #### Example **Search jobs** ```ts async function searchJobsExample() { const camunda = createCamundaClient(); const result = await camunda.searchJobs( { filter: { type: "payment-processing", state: "CREATED" }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const job of result.items ?? []) { console.log(`Job ${job.jobKey}: ${job.type} (${job.state})`); } } ``` #### Operation Id searchJobs #### Tags Job #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchMappingRule() ```ts searchMappingRule( input, consistencyManagement, options? ): CancelablePromise; ``` Search mapping rules Search for mapping rules based on given criteria. - #### Parameters ##### input [`MappingRuleSearchQueryRequest`](../type-aliases/MappingRuleSearchQueryRequest.md) ##### consistencyManagement [`searchMappingRuleConsistency`](../type-aliases/searchMappingRuleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MappingRuleSearchQueryResult`](../type-aliases/MappingRuleSearchQueryResult.md)\> #### Example **Search mapping rules** ```ts async function searchMappingRulesExample() { const camunda = createCamundaClient(); const result = await camunda.searchMappingRule( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const rule of result.items ?? []) { console.log(`${rule.mappingRuleId}: ${rule.name}`); } } ``` #### Operation Id searchMappingRule #### Tags Mapping rule #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchMappingRulesForGroup() ```ts searchMappingRulesForGroup( input, consistencyManagement, options? ): CancelablePromise; ``` Search group mapping rules Search mapping rules assigned to a group. * #### Parameters ##### input [`searchMappingRulesForGroupInput`](../type-aliases/searchMappingRulesForGroupInput.md) ##### consistencyManagement [`searchMappingRulesForGroupConsistency`](../type-aliases/searchMappingRulesForGroupConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupMappingRuleSearchResult`](../type-aliases/GroupMappingRuleSearchResult.md)\> #### Example **Search mapping rules for a group** ```ts async function searchMappingRulesForGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const result = await camunda.searchMappingRulesForGroup( { groupId }, { consistency: { waitUpToMs: 5000 } } ); for (const rule of result.items ?? []) { console.log(`Mapping rule: ${rule.name}`); } } ``` #### Operation Id searchMappingRulesForGroup #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchMappingRulesForRole() ```ts searchMappingRulesForRole( input, consistencyManagement, options? ): CancelablePromise; ``` Search role mapping rules Search mapping rules with assigned role. * #### Parameters ##### input [`searchMappingRulesForRoleInput`](../type-aliases/searchMappingRulesForRoleInput.md) ##### consistencyManagement [`searchMappingRulesForRoleConsistency`](../type-aliases/searchMappingRulesForRoleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleMappingRuleSearchResult`](../type-aliases/RoleMappingRuleSearchResult.md)\> #### Example **Search mapping rules for a role** ```ts async function searchMappingRulesForRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const result = await camunda.searchMappingRulesForRole( { roleId }, { consistency: { waitUpToMs: 5000 } } ); for (const rule of result.items ?? []) { console.log(`Mapping rule: ${rule.name}`); } } ``` #### Operation Id searchMappingRulesForRole #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchMappingRulesForTenant() ```ts searchMappingRulesForTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Search mapping rules for tenant Retrieves a filtered and sorted list of MappingRules for a specified tenant. * #### Parameters ##### input [`searchMappingRulesForTenantInput`](../type-aliases/searchMappingRulesForTenantInput.md) ##### consistencyManagement [`searchMappingRulesForTenantConsistency`](../type-aliases/searchMappingRulesForTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantMappingRuleSearchResult`](../type-aliases/TenantMappingRuleSearchResult.md)\> #### Example **Search mapping rules for a tenant** ```ts async function searchMappingRulesForTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.searchMappingRulesForTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); for (const rule of result.items ?? []) { console.log(`Mapping rule: ${rule.name}`); } } ``` #### Operation Id searchMappingRulesForTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchMessageSubscriptions() ```ts searchMessageSubscriptions( input, consistencyManagement, options? ): CancelablePromise; ``` Search message subscriptions Search for message subscriptions based on given criteria. By default, both start and intermediate event subscriptions are returned. Use the `messageSubscriptionType` filter to restrict results to a single type. **Version notes:** - Start event subscriptions are only captured for deployments made with 8.10 or later. - The `messageSubscriptionType` field is only populated for data created with Camunda 8.10 or later. For pre-8.10 data, intermediate event entries have no `messageSubscriptionType` value stored. For convenience, the API returns `PROCESS_EVENT` as a default for such search results, though. - Searching for intermediate event subscriptions **including legacy data** can be achieved by filtering for `messageSubscriptionType` not matching `START_EVENT`. * #### Parameters ##### input [`MessageSubscriptionSearchQuery`](../type-aliases/MessageSubscriptionSearchQuery.md) ##### consistencyManagement [`searchMessageSubscriptionsConsistency`](../type-aliases/searchMessageSubscriptionsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MessageSubscriptionSearchQueryResult`](../type-aliases/MessageSubscriptionSearchQueryResult.md)\> #### Example **Search message subscriptions** ```ts async function searchMessageSubscriptionsExample() { const camunda = createCamundaClient(); const result = await camunda.searchMessageSubscriptions( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const sub of result.items ?? []) { console.log(`Subscription: ${sub.messageName}`); } } ``` #### Operation Id searchMessageSubscriptions #### Tags Message subscription #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchOwnAuthorizations() ```ts searchOwnAuthorizations( input, consistencyManagement, options? ): CancelablePromise; ``` Search own authorizations Search for the current authenticated principal's own authorization records — including authorizations granted directly to the user or client, as well as those granted via a group, role, or mapping rule the principal belongs to. * #### Parameters ##### input [`AuthorizationSearchQuery`](../type-aliases/AuthorizationSearchQuery.md) ##### consistencyManagement [`searchOwnAuthorizationsConsistency`](../type-aliases/searchOwnAuthorizationsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`OwnAuthorizationSearchResult`](../type-aliases/OwnAuthorizationSearchResult.md)\> #### Example **Search own authorizations** ```ts async function searchOwnAuthorizationsExample() { const camunda = createCamundaClient(); const result = await camunda.searchOwnAuthorizations( { filter: { resourceType: "PROCESS_DEFINITION" }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const auth of result.items ?? []) { console.log(`${auth.resourceId}: ${auth.permissionTypes?.join(", ")}`); } } ``` #### Operation Id searchOwnAuthorizations #### Tags Authentication #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchProcessDefinitions() ```ts searchProcessDefinitions( input, consistencyManagement, options? ): CancelablePromise; ``` Search process definitions Search for process definitions based on given criteria. * #### Parameters ##### input [`ProcessDefinitionSearchQuery`](../type-aliases/ProcessDefinitionSearchQuery.md) ##### consistencyManagement [`searchProcessDefinitionsConsistency`](../type-aliases/searchProcessDefinitionsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionSearchQueryResult`](../type-aliases/ProcessDefinitionSearchQueryResult.md)\> #### Example **Search process definitions** ```ts async function searchProcessDefinitionsExample() { const camunda = createCamundaClient(); const result = await camunda.searchProcessDefinitions( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const def of result.items ?? []) { console.log( `${def.processDefinitionKey}: ${def.processDefinitionId} v${def.version}` ); } } ``` #### Operation Id searchProcessDefinitions #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchProcessDefinitionVariableNames() ```ts searchProcessDefinitionVariableNames( input, consistencyManagement, options? ): CancelablePromise; ``` Search process definition variable names Search for distinct variable names defined on a process definition, optionally narrowed by the name filter. * #### Parameters ##### input [`searchProcessDefinitionVariableNamesInput`](../type-aliases/searchProcessDefinitionVariableNamesInput.md) ##### consistencyManagement [`searchProcessDefinitionVariableNamesConsistency`](../type-aliases/searchProcessDefinitionVariableNamesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessDefinitionVariableNameSearchQueryResult`](../type-aliases/ProcessDefinitionVariableNameSearchQueryResult.md)\> #### Example **Search process definition variable names** ```ts async function searchProcessDefinitionVariableNamesExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.searchProcessDefinitionVariableNames( { processDefinitionKey }, { consistency: { waitUpToMs: 5000 } } ); for (const variable of result.items ?? []) { console.log(`Variable name: ${variable.name}`); } } ``` #### Operation Id searchProcessDefinitionVariableNames #### Tags Process definition #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchProcessInstanceIncidents() ```ts searchProcessInstanceIncidents( input, consistencyManagement, options? ): CancelablePromise; ``` Search related incidents Search for incidents caused by the process instance or any of its called process or decision instances. Although the `processInstanceKey` is provided as a path parameter to indicate the root process instance, you may also include a `processInstanceKey` within the filter object to narrow results to specific child process instances. This is useful, for example, if you want to isolate incidents associated with subprocesses or called processes under the root instance while excluding incidents directly tied to the root. - #### Parameters ##### input [`searchProcessInstanceIncidentsInput`](../type-aliases/searchProcessInstanceIncidentsInput.md) ##### consistencyManagement [`searchProcessInstanceIncidentsConsistency`](../type-aliases/searchProcessInstanceIncidentsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`IncidentSearchQueryResult`](../type-aliases/IncidentSearchQueryResult.md)\> #### Example **Search process instance incidents** ```ts async function searchProcessInstanceIncidentsExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); const result = await camunda.searchProcessInstanceIncidents( { processInstanceKey, }, { consistency: { waitUpToMs: 5000 } } ); for (const incident of result.items ?? []) { console.log(`Incident: ${incident.errorType} - ${incident.errorMessage}`); } } ``` #### Operation Id searchProcessInstanceIncidents #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchProcessInstances() ```ts searchProcessInstances( input, consistencyManagement, options? ): CancelablePromise; ``` Search process instances Search for process instances based on given criteria. * #### Parameters ##### input [`ProcessInstanceSearchQuery`](../type-aliases/ProcessInstanceSearchQuery.md) ##### consistencyManagement [`searchProcessInstancesConsistency`](../type-aliases/searchProcessInstancesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ProcessInstanceSearchQueryResult`](../type-aliases/ProcessInstanceSearchQueryResult.md)\> #### Example **Search process instances** ```ts async function searchProcessInstancesExample( processDefinitionId: ProcessDefinitionId ) { const camunda = createCamundaClient(); const result = await camunda.searchProcessInstances( { filter: { processDefinitionId }, sort: [{ field: "startDate", order: "DESC" }], page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const instance of result.items ?? []) { console.log(`${instance.processInstanceKey}: ${instance.state}`); } console.log(`Total: ${result.page.totalItems}`); } ``` #### Operation Id searchProcessInstances #### Tags Process instance #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchResources() ```ts searchResources( input, consistencyManagement, options? ): CancelablePromise; ``` Search resources Search for deployed resources based on given criteria. :::info This endpoint does not return BPMN process definitions, DMN decision definitions, or form resources. To query BPMN process definitions or DMN decision definitions, use their respective search APIs. ::: - #### Parameters ##### input [`ResourceSearchQuery`](../type-aliases/ResourceSearchQuery.md) ##### consistencyManagement [`searchResourcesConsistency`](../type-aliases/searchResourcesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ResourceSearchQueryResult`](../type-aliases/ResourceSearchQueryResult.md)\> #### Example **Search resources** ```ts async function searchResourcesExample() { const camunda = createCamundaClient(); const result = await camunda.searchResources( { page: { limit: 10 } }, { consistency: { waitUpToMs: 5000 } } ); for (const resource of result.items ?? []) { console.log(`Resource: ${resource.resourceName}`); } } ``` #### Operation Id searchResources #### Tags Resource #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchRoles() ```ts searchRoles( input, consistencyManagement, options? ): CancelablePromise; ``` Search roles Search for roles based on given criteria. * #### Parameters ##### input [`RoleSearchQueryRequest`](../type-aliases/RoleSearchQueryRequest.md) ##### consistencyManagement [`searchRolesConsistency`](../type-aliases/searchRolesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleSearchQueryResult`](../type-aliases/RoleSearchQueryResult.md)\> #### Example **Search roles** ```ts async function searchRolesExample() { const camunda = createCamundaClient(); const result = await camunda.searchRoles( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const role of result.items ?? []) { console.log(`${role.roleId}: ${role.name}`); } } ``` #### Operation Id searchRoles #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchRolesForGroup() ```ts searchRolesForGroup( input, consistencyManagement, options? ): CancelablePromise; ``` Search group roles Search roles assigned to a group. * #### Parameters ##### input [`searchRolesForGroupInput`](../type-aliases/searchRolesForGroupInput.md) ##### consistencyManagement [`searchRolesForGroupConsistency`](../type-aliases/searchRolesForGroupConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupRoleSearchResult`](../type-aliases/GroupRoleSearchResult.md)\> #### Example **Search roles for a group** ```ts async function searchRolesForGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const result = await camunda.searchRolesForGroup( { groupId }, { consistency: { waitUpToMs: 5000 } } ); for (const role of result.items ?? []) { console.log(`Role: ${role.name}`); } } ``` #### Operation Id searchRolesForGroup #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchRolesForTenant() ```ts searchRolesForTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Search roles for tenant Retrieves a filtered and sorted list of roles for a specified tenant. * #### Parameters ##### input [`searchRolesForTenantInput`](../type-aliases/searchRolesForTenantInput.md) ##### consistencyManagement [`searchRolesForTenantConsistency`](../type-aliases/searchRolesForTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantRoleSearchResult`](../type-aliases/TenantRoleSearchResult.md)\> #### Example **Search roles for a tenant** ```ts async function searchRolesForTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.searchRolesForTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); for (const role of result.items ?? []) { console.log(`Role: ${role.name}`); } } ``` #### Operation Id searchRolesForTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchTenants() ```ts searchTenants( input, consistencyManagement, options? ): CancelablePromise; ``` Search tenants Retrieves a filtered and sorted list of tenants. * #### Parameters ##### input [`TenantSearchQueryRequest`](../type-aliases/TenantSearchQueryRequest.md) ##### consistencyManagement [`searchTenantsConsistency`](../type-aliases/searchTenantsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantSearchQueryResult`](../type-aliases/TenantSearchQueryResult.md)\> #### Example **Search tenants** ```ts async function searchTenantsExample() { const camunda = createCamundaClient(); const result = await camunda.searchTenants( { page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const tenant of result.items ?? []) { console.log(`${tenant.tenantId}: ${tenant.name}`); } } ``` #### Operation Id searchTenants #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUsers() ```ts searchUsers( input, consistencyManagement, options? ): CancelablePromise; ``` Search users Search for users based on given criteria. * #### Parameters ##### input [`UserSearchQueryRequest`](../type-aliases/UserSearchQueryRequest.md) ##### consistencyManagement [`searchUsersConsistency`](../type-aliases/searchUsersConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserSearchResult`](../type-aliases/UserSearchResult.md)\> #### Example **Search users** ```ts async function searchUsersExample() { const camunda = createCamundaClient(); const result = await camunda.searchUsers( { filter: {}, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const user of result.items ?? []) { console.log(`${user.username}: ${user.name}`); } } ``` #### Operation Id searchUsers #### Tags User #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUsersForGroup() ```ts searchUsersForGroup( input, consistencyManagement, options? ): CancelablePromise; ``` Search group users Search users assigned to a group. * #### Parameters ##### input [`searchUsersForGroupInput`](../type-aliases/searchUsersForGroupInput.md) ##### consistencyManagement [`searchUsersForGroupConsistency`](../type-aliases/searchUsersForGroupConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupUserSearchResult`](../type-aliases/GroupUserSearchResult.md)\> #### Example **Search users in a group** ```ts async function searchUsersForGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); const result = await camunda.searchUsersForGroup( { groupId }, { consistency: { waitUpToMs: 5000 } } ); for (const user of result.items ?? []) { console.log(`Member: ${user.username}`); } } ``` #### Operation Id searchUsersForGroup #### Tags Group #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUsersForRole() ```ts searchUsersForRole( input, consistencyManagement, options? ): CancelablePromise; ``` Search role users Search users with assigned role. * #### Parameters ##### input [`searchUsersForRoleInput`](../type-aliases/searchUsersForRoleInput.md) ##### consistencyManagement [`searchUsersForRoleConsistency`](../type-aliases/searchUsersForRoleConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleUserSearchResult`](../type-aliases/RoleUserSearchResult.md)\> #### Example **Search users for a role** ```ts async function searchUsersForRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); const result = await camunda.searchUsersForRole( { roleId }, { consistency: { waitUpToMs: 5000 } } ); for (const user of result.items ?? []) { console.log(`User: ${user.username}`); } } ``` #### Operation Id searchUsersForRole #### Tags Role #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUsersForTenant() ```ts searchUsersForTenant( input, consistencyManagement, options? ): CancelablePromise; ``` Search users for tenant Retrieves a filtered and sorted list of users for a specified tenant. * #### Parameters ##### input [`searchUsersForTenantInput`](../type-aliases/searchUsersForTenantInput.md) ##### consistencyManagement [`searchUsersForTenantConsistency`](../type-aliases/searchUsersForTenantConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantUserSearchResult`](../type-aliases/TenantUserSearchResult.md)\> #### Example **Search users for a tenant** ```ts async function searchUsersForTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); const result = await camunda.searchUsersForTenant( { tenantId }, { consistency: { waitUpToMs: 5000 } } ); for (const user of result.items ?? []) { console.log(`Tenant member: ${user.username}`); } } ``` #### Operation Id searchUsersForTenant #### Tags Tenant #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUserTaskAuditLogs() ```ts searchUserTaskAuditLogs( input, consistencyManagement, options? ): CancelablePromise; ``` Search user task audit logs Search for user task audit logs based on given criteria. * #### Parameters ##### input [`searchUserTaskAuditLogsInput`](../type-aliases/searchUserTaskAuditLogsInput.md) ##### consistencyManagement [`searchUserTaskAuditLogsConsistency`](../type-aliases/searchUserTaskAuditLogsConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AuditLogSearchQueryResult`](../type-aliases/AuditLogSearchQueryResult.md)\> #### Example **Search user task audit logs** ```ts async function searchUserTaskAuditLogsExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); const result = await camunda.searchUserTaskAuditLogs( { userTaskKey }, { consistency: { waitUpToMs: 5000 } } ); for (const log of result.items ?? []) { console.log(`Audit: ${log.operationType} at ${log.timestamp}`); } } ``` #### Operation Id searchUserTaskAuditLogs #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUserTaskEffectiveVariables() ```ts searchUserTaskEffectiveVariables( input, consistencyManagement, options? ): CancelablePromise; ``` Search user task effective variables Search for the effective variables of a user task. This endpoint returns deduplicated variables where each variable name appears at most once. When the same variable name exists at multiple scope levels in the scope hierarchy, the value from the innermost scope (closest to the user task) takes precedence. This is useful for retrieving the actual runtime state of variables as seen by the user task. By default, long variable values in the response are truncated. - #### Parameters ##### input [`searchUserTaskEffectiveVariablesInput`](../type-aliases/searchUserTaskEffectiveVariablesInput.md) ##### consistencyManagement [`searchUserTaskEffectiveVariablesConsistency`](../type-aliases/searchUserTaskEffectiveVariablesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`VariableSearchQueryResult`](../type-aliases/VariableSearchQueryResult.md)\> #### Example **Search user task effective variables** ```ts async function searchUserTaskEffectiveVariablesExample( userTaskKey: UserTaskKey ) { const camunda = createCamundaClient(); const result = await camunda.searchUserTaskEffectiveVariables( { userTaskKey }, { consistency: { waitUpToMs: 5000 } } ); for (const variable of result.items ?? []) { console.log(`${variable.name} = ${variable.value}`); } } ``` #### Operation Id searchUserTaskEffectiveVariables #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUserTasks() ```ts searchUserTasks( input, consistencyManagement, options? ): CancelablePromise; ``` Search user tasks Search for user tasks based on given criteria. * #### Parameters ##### input [`UserTaskSearchQuery`](../type-aliases/UserTaskSearchQuery.md) ##### consistencyManagement [`searchUserTasksConsistency`](../type-aliases/searchUserTasksConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserTaskSearchQueryResult`](../type-aliases/UserTaskSearchQueryResult.md)\> #### Example **Search user tasks** ```ts async function searchUserTasksExample() { const camunda = createCamundaClient(); const result = await camunda.searchUserTasks( { filter: { assignee: "alice", state: "CREATED" }, sort: [{ field: "creationDate", order: "DESC" }], page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const task of result.items ?? []) { console.log(`${task.userTaskKey}: ${task.name} (${task.state})`); } } ``` #### Operation Id searchUserTasks #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchUserTaskVariables() ```ts searchUserTaskVariables( input, consistencyManagement, options? ): CancelablePromise; ``` Search user task variables Search for user task variables based on given criteria. This endpoint returns all variable documents visible from the user task's scope, including variables from parent scopes in the scope hierarchy. If the same variable name exists at multiple scope levels, each scope's variable is returned as a separate result. Use the `/user-tasks/{userTaskKey}/effective-variables/search` endpoint to get deduplicated variables where the innermost scope takes precedence. By default, long variable values in the response are truncated. - #### Parameters ##### input [`searchUserTaskVariablesInput`](../type-aliases/searchUserTaskVariablesInput.md) ##### consistencyManagement [`searchUserTaskVariablesConsistency`](../type-aliases/searchUserTaskVariablesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`VariableSearchQueryResult`](../type-aliases/VariableSearchQueryResult.md)\> #### Example **Search user task variables** ```ts async function searchUserTaskVariablesExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); const result = await camunda.searchUserTaskVariables( { userTaskKey }, { consistency: { waitUpToMs: 5000 } } ); for (const variable of result.items ?? []) { console.log(`${variable.name} = ${variable.value}`); } } ``` #### Operation Id searchUserTaskVariables #### Tags User task #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchVariables() ```ts searchVariables( input, consistencyManagement, options? ): CancelablePromise; ``` Search variables Search for variables based on given criteria. This endpoint returns variables that exist directly at the specified scopes - it does not include variables from parent scopes that would be visible through the scope hierarchy. Variables can be process-level (scoped to the process instance) or local (scoped to specific BPMN elements like tasks, subprocesses, etc.). By default, long variable values in the response are truncated. * #### Parameters ##### input [`searchVariablesInput`](../type-aliases/searchVariablesInput.md) ##### consistencyManagement [`searchVariablesConsistency`](../type-aliases/searchVariablesConsistency.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`VariableSearchQueryResult`](../type-aliases/VariableSearchQueryResult.md)\> #### Example **Search variables** ```ts async function searchVariablesExample(processInstanceKey: ProcessInstanceKey) { const camunda = createCamundaClient(); const result = await camunda.searchVariables( { filter: { processInstanceKey, }, page: { limit: 10 }, }, { consistency: { waitUpToMs: 5000 } } ); for (const variable of result.items ?? []) { console.log(`${variable.name} = ${variable.value}`); } } ``` #### Operation Id searchVariables #### Tags Variable #### Consistency eventual - this endpoint is backed by data that is eventually consistent with the system state. --- ### searchVariablesAsDto() ```ts searchVariablesAsDto(schema, options): CancelablePromise>; ``` Search for process variables and bind them to a Zod schema (the DTO). The schema's keys are the exact variable names to fetch; its shape drives validation. Only those declared variables are queried (via a `name $in [...]` filter), so memory stays bound by the DTO shape rather than the total number of variables on the instance. Results are paged internally until every declared variable is found or the result set is exhausted. Returns a [VariableMap](VariableMap.md) offering lenient access (`has` / `get`) and a strict `validate()` that parses the collected values against the schema — returning a fully-typed object or throwing a `ZodError` when a required variable is missing or malformed. #### Type Parameters ##### TSchema `TSchema` _extends_ [`AnyVariableSchema`](../type-aliases/AnyVariableSchema.md) #### Parameters ##### schema `TSchema` A Zod object schema declaring the variables to fetch. ##### options Query scope. `processInstanceKey` is required; `scopeKey` narrows to a single element-instance scope, `tenantId` filters by tenant, and `pageSize` tunes the page limit. `consistency` controls eventual-consistency tolerance for the underlying `searchVariables` calls: it defaults to `{ waitUpToMs: 0 }` (no waiting), but a non-zero `waitUpToMs` makes the paging calls poll until the data is consistent, avoiding intermittent missing variables / `ZodError` on a freshly-updated instance. ###### consistency? \{ `pollIntervalMs?`: `number`; `waitUpToMs`: `number`; \} ###### consistency.pollIntervalMs? `number` ###### consistency.waitUpToMs `number` ###### pageSize? `number` ###### processInstanceKey [`ProcessInstanceKey`](../type-aliases/ProcessInstanceKey.md) ###### scopeKey? [`ScopeKey`](../type-aliases/ScopeKey.md) ###### tenantId? [`TenantId`](../type-aliases/TenantId.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`VariableMap`](VariableMap.md)\<`TSchema`\>\> #### Throws when a declared variable is found at more than one scope and no `scopeKey` was provided to disambiguate. #### Throws when a variable's value is not valid JSON. #### Example ```ts const OrderVariables = z.object({ orderId: z.string(), amount: z.number().optional(), }); const map = await client.searchVariablesAsDto(OrderVariables, { processInstanceKey, }); if (map.has("amount")) console.log(map.get("amount")); const order = map.validate(); // { orderId: string; amount?: number } ``` --- ### stopAllWorkers() ```ts stopAllWorkers(): void; ``` Stop all registered job workers (best-effort) and terminate the shared thread pool. #### Returns `void` --- ### suspendBatchOperation() ```ts suspendBatchOperation(input, options?): CancelablePromise; ``` Suspend Batch operation Suspends a running batch operation. This is done asynchronously, the progress can be tracked using the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input ###### batchOperationKey [`BatchOperationKey`](../type-aliases/BatchOperationKey.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Suspend a batch operation** ```ts async function suspendBatchOperationExample( batchOperationKey: BatchOperationKey ) { const camunda = createCamundaClient(); await camunda.suspendBatchOperation({ batchOperationKey }); } ``` #### Operation Id suspendBatchOperation #### Tags Batch operation --- ### suspendProcessInstance() ```ts suspendProcessInstance(input, options?): CancelablePromise; ``` Suspend process instance Suspends a running process instance, pausing further processing until it is resumed. Only process instances in the ACTIVE state can be suspended. A child process instance can be suspended independently of its parent or root process instance; suspension does not cascade to or from related instances. - #### Parameters ##### input `object` & `object` ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Suspend a process instance** ```ts async function suspendProcessInstanceExample( processInstanceKey: ProcessInstanceKey ) { const camunda = createCamundaClient(); await camunda.suspendProcessInstance({ processInstanceKey }); } ``` #### Operation Id suspendProcessInstance #### Tags Process instance --- ### suspendProcessInstancesBatchOperation() ```ts suspendProcessInstancesBatchOperation(input, options?): CancelablePromise; ``` Suspend process instances (batch) Suspends multiple running process instances. Any given filter for state or parentProcessInstanceKey is ignored and overridden, as only ACTIVE process instances can be suspended and suspension does not cascade between parent and child instances, so child instances are suspended independently of their parent or root instance. This is done asynchronously, the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`ProcessInstanceSuspensionBatchOperationRequest`](../type-aliases/ProcessInstanceSuspensionBatchOperationRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Suspend process instances in batch** ```ts async function suspendProcessInstancesBatchOperationExample( processDefinitionKey: ProcessDefinitionKey ) { const camunda = createCamundaClient(); const result = await camunda.suspendProcessInstancesBatchOperation({ filter: { processDefinitionKey, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id suspendProcessInstancesBatchOperation #### Tags Process instance --- ### syncRuntimeBackupState() ```ts syncRuntimeBackupState(options?): CancelablePromise; ``` Force-write runtime backup state Force-writes the checkpoint and backup metadata of every partition of the physical tenant to the backup store, independent of any backup being taken or confirmed, and returns the updated state. - #### Parameters ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RuntimeBackupState`](../type-aliases/RuntimeBackupState.md)\> #### Example **Force-write the runtime backup state** ```ts async function syncRuntimeBackupStateExample() { const camunda = createCamundaClient(); // Force-writes checkpoint and backup metadata of every partition to the backup // store, independent of any backup being taken, and returns the updated state. const state = await camunda.syncRuntimeBackupState(); console.log(`Synced ${state.backupStates.length} partition backup states`); } ``` #### Operation Id syncRuntimeBackupState #### Tags Backup --- ### syncRuntimeBackupStateAsClusterAdmin() ```ts syncRuntimeBackupStateAsClusterAdmin(input, options?): CancelablePromise; ``` Force-write runtime backup state across physical tenants Force-writes the checkpoint and backup metadata of every partition of every physical tenant of the cluster, or of the one named by `physicalTenantId`, to that tenant's backup store, independent of any backup being taken or confirmed, and returns the updated state per physical tenant. The request is all-or-nothing: a physical tenant whose metadata cannot be written fails the whole request, and the writes that already succeeded on other tenants are not undone. The operation is idempotent, so retrying the same call is the correct remedy. Narrow the request with `physicalTenantId` to write the tenants that can still be reached. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `POST /v2/backups/runtime/state/sync` to act as a single physical tenant. * #### Parameters ##### input [`syncRuntimeBackupStateAsClusterAdminInput`](../type-aliases/syncRuntimeBackupStateAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterRuntimeBackupState`](../type-aliases/ClusterRuntimeBackupState.md)\> #### Example **Force-write the runtime backup state (cluster admin)** ```ts async function syncRuntimeBackupStateAsClusterAdminExample() { const camunda = createCamundaClient(); // Force-writes checkpoint and backup metadata of every partition to the backup // store on every targeted physical tenant, independent of any backup being // taken, and returns the updated per-tenant state. const clusterState = await camunda.syncRuntimeBackupStateAsClusterAdmin({}); console.log(`Synced ${clusterState.physicalTenants.length} physical tenants`); } ``` #### Operation Id syncRuntimeBackupStateAsClusterAdmin #### Tags Backup --- ### takeHistoryBackup() ```ts takeHistoryBackup(input, options?): CancelablePromise; ``` Take a history backup Triggers a backup of the physical tenant's history, by scheduling a snapshot of every secondary storage index it owns. Unlike runtime backups, history backups have no generated-id mode: `backupId` is always required. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. - #### Parameters ##### input [`TakeHistoryBackupRequest`](../type-aliases/TakeHistoryBackupRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TakeHistoryBackupResponse`](../type-aliases/TakeHistoryBackupResponse.md)\> #### Example **Take a history backup** ```ts async function takeHistoryBackupExample() { const camunda = createCamundaClient(); // Backups are logically ordered by id, so each successive backup must use a // higher id than the previous one. const backup = await camunda.takeHistoryBackup({ backupId: 100 }); console.log(`Scheduled history backup ${backup.backupId}`); for (const snapshot of backup.scheduledSnapshots) { console.log(` ${snapshot}`); } } ``` #### Operation Id takeHistoryBackup #### Tags Backup --- ### takeHistoryBackupAsClusterAdmin() ```ts takeHistoryBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Take a history backup on one or every physical tenant Triggers a history backup on every physical tenant of the cluster, or on the one named by `physicalTenantId`. Every targeted tenant uses the same caller-supplied `backupId`, but the backups are independent: they are neither coordinated nor rolled back together. The request is all-or-nothing: the `backupId` is checked on every targeted tenant before any snapshot is scheduled, so a tenant that already holds this id, or that cannot be reached, fails the whole request and no backup is started anywhere. There is no aggregated cluster-level state in the response. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Only available on clusters whose secondary storage is Elasticsearch or OpenSearch. Use `POST /v2/backups/history` to act as a single physical tenant. * #### Parameters ##### input [`takeHistoryBackupAsClusterAdminInput`](../type-aliases/takeHistoryBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterTakeHistoryBackupResponse`](../type-aliases/ClusterTakeHistoryBackupResponse.md)\> #### Example **Take a history backup (cluster admin)** ```ts async function takeHistoryBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Cluster-admin variant: fans the backup out to every physical tenant of the // cluster (or a single one when `physicalTenantId` is given). Requires a // separate cluster-admin security chain — Orchestration Cluster user // credentials are NOT accepted. Each backup must use a higher id than the last. const backup = await camunda.takeHistoryBackupAsClusterAdmin({ backupId: 100, }); console.log(`Scheduled cluster history backup ${backup.backupId}`); for (const tenant of backup.physicalTenants) { console.log( ` [${tenant.physicalTenantId}] scheduled ${tenant.scheduledSnapshots.length} snapshots` ); } } ``` #### Operation Id takeHistoryBackupAsClusterAdmin #### Tags Backup --- ### takeRuntimeBackup() ```ts takeRuntimeBackup(input, options?): CancelablePromise; ``` Take a runtime backup Triggers a backup of runtime data on all partitions of the physical tenant. The `backupId` must be omitted if continuous backups and/or a backup or checkpoint schedule is enabled for the physical tenant, as the id is generated automatically. Otherwise, `backupId` is required. - #### Parameters ##### input [`TakeRuntimeBackupRequest`](../type-aliases/TakeRuntimeBackupRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TakeRuntimeBackupResponse`](../type-aliases/TakeRuntimeBackupResponse.md)\> #### Example **Take a runtime backup** ```ts async function takeRuntimeBackupExample() { const camunda = createCamundaClient(); // Omit `backupId` when continuous backups or a backup/checkpoint schedule is // enabled for the physical tenant — the id is then generated by the cluster. // Otherwise `backupId` is required and must be higher than any existing one. const backup = await camunda.takeRuntimeBackup({ backupId: 100 }); console.log(`Scheduled backup ${backup.backupId}`); } ``` #### Operation Id takeRuntimeBackup #### Tags Backup --- ### takeRuntimeBackupAsClusterAdmin() ```ts takeRuntimeBackupAsClusterAdmin(input, options?): CancelablePromise; ``` Take a runtime backup on one or every physical tenant Triggers a runtime backup on every physical tenant of the cluster, or on the one named by `physicalTenantId`. A cluster-wide backup is a set of independent per-tenant backups, not an atomic snapshot of the cluster: they are neither coordinated nor rolled back together, and each tenant stores its own, so the same `backupId` can be used for all of them. Every targeted physical tenant must be in the same backup-id mode. `backupId` must be omitted when every targeted tenant generates its own ids (because continuous backups and/or a backup or checkpoint schedule is enabled for it), and is required when none of them does. A cluster whose targeted tenants mix the two modes is rejected with 400 and has to be driven one tenant at a time through `POST /v2/backups/runtime`. In generated-id mode each tenant generates its own id, so the response reports an id per physical tenant rather than one for the cluster. The trigger is all-or-error, and never silent about a partial trigger: if any targeted tenant cannot be triggered the response carries an error status, but its body still lists every targeted tenant — which ones were triggered, under which `backupId` to monitor or delete them, and why the others failed. Nothing is rolled back, so the backups that were triggered keep running and have to be deleted explicitly. A request rejected before any tenant was triggered answers with a problem detail instead, and nothing is running. Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. Use `POST /v2/backups/runtime` to act as a single physical tenant. * #### Parameters ##### input [`takeRuntimeBackupAsClusterAdminInput`](../type-aliases/takeRuntimeBackupAsClusterAdminInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterTakeRuntimeBackupResponse`](../type-aliases/ClusterTakeRuntimeBackupResponse.md)\> #### Example **Take a runtime backup (cluster admin)** ```ts async function takeRuntimeBackupAsClusterAdminExample() { const camunda = createCamundaClient(); // Cluster-admin variant: triggers a runtime backup on every physical tenant of // the cluster (or a single one when `physicalTenantId` is given). Requires the // separate cluster-admin security chain — Orchestration Cluster user // credentials are NOT accepted. Passing an explicit `backupId` is manual-id // mode: every targeted tenant must share that id (omit it for generated-id // mode, where each tenant generates its own). Either way the response lists the // outcome per physical tenant rather than cluster-wide. const backup = await camunda.takeRuntimeBackupAsClusterAdmin({ backupId: 100, }); for (const tenant of backup.physicalTenants) { console.log( `[${tenant.physicalTenantId}] ${tenant.outcome} (backupId ${tenant.backupId})` ); } } ``` #### Operation Id takeRuntimeBackupAsClusterAdmin #### Tags Backup --- ### throwJobError() ```ts throwJobError(input, options?): CancelablePromise; ``` Throw error for job Reports a business error (i.e. non-technical) that occurs while processing a job. - #### Parameters ##### input [`throwJobErrorInput`](../type-aliases/throwJobErrorInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Throw a job error** ```ts async function throwJobErrorExample(jobKey: JobKey) { const camunda = createCamundaClient(); await camunda.throwJobError({ jobKey, errorCode: "PAYMENT_FAILED", errorMessage: "Payment provider returned error", }); } ``` #### Operation Id throwJobError #### Tags Job --- ### triggerClusterRebalance() ```ts triggerClusterRebalance(input, options?): CancelablePromise; ``` Trigger a cluster-wide leadership rebalance Transfers leadership of every partition that is not led by its highest-priority replica towards that replica, one partition at a time. Returns as soon as the rebalance has been accepted (poll `GET /cluster/v2/rebalance` to monitor progress). Each rebalance can specify overrides for the configured rebalance settings (e.g. maximum replication lag to allow). An absent request body means "use the configured settings". Requires the cluster-admin security chain. Although this operation lists `bearerAuth` / `basicAuth` like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here. * #### Parameters ##### input [`triggerClusterRebalanceInput`](../type-aliases/triggerClusterRebalanceInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterBalanceResponse`](../type-aliases/ClusterBalanceResponse.md)\> #### Example **Trigger a cluster-wide leadership rebalance** ```ts async function triggerClusterRebalanceExample() { const camunda = createCamundaClient(); const balance = await camunda.triggerClusterRebalance({ replicationLagThreshold: 10_000_000, maxTransferAttempts: 3, }); console.log(`Cluster balance state: ${balance.state}`); if (balance.runningRebalance) { console.log( `Rebalance started: id=${balance.runningRebalance.rebalanceId}` ); } } ``` #### Operation Id triggerClusterRebalance #### Tags Cluster --- ### unassignClientFromGroup() ```ts unassignClientFromGroup(input, options?): CancelablePromise; ``` Unassign a client from a group Unassigns a client from a group. The client is removed as a group member, with associated authorizations, roles, and tenant assignments no longer applied. - #### Parameters ##### input [`unassignClientFromGroupInput`](../type-aliases/unassignClientFromGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a client from a group** ```ts async function unassignClientFromGroupExample( groupId: GroupId, clientId: ClientId ) { const camunda = createCamundaClient(); await camunda.unassignClientFromGroup({ groupId, clientId, }); } ``` #### Operation Id unassignClientFromGroup #### Tags Group --- ### unassignClientFromTenant() ```ts unassignClientFromTenant(input, options?): CancelablePromise; ``` Unassign a client from a tenant Unassigns the client from the specified tenant. The client can no longer access tenant data. - #### Parameters ##### input [`unassignClientFromTenantInput`](../type-aliases/unassignClientFromTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a client from a tenant** ```ts async function unassignClientFromTenantExample( tenantId: TenantId, clientId: ClientId ) { const camunda = createCamundaClient(); await camunda.unassignClientFromTenant({ tenantId, clientId, }); } ``` #### Operation Id unassignClientFromTenant #### Tags Tenant --- ### unassignGroupFromTenant() ```ts unassignGroupFromTenant(input, options?): CancelablePromise; ``` Unassign a group from a tenant Unassigns a group from a specified tenant. Members of the group (users, clients) will no longer have access to the tenant's data - except they are assigned directly to the tenant. - #### Parameters ##### input [`unassignGroupFromTenantInput`](../type-aliases/unassignGroupFromTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a group from a tenant** ```ts async function unassignGroupFromTenantExample( tenantId: TenantId, groupId: GroupId ) { const camunda = createCamundaClient(); await camunda.unassignGroupFromTenant({ tenantId, groupId, }); } ``` #### Operation Id unassignGroupFromTenant #### Tags Tenant --- ### unassignMappingRuleFromGroup() ```ts unassignMappingRuleFromGroup(input, options?): CancelablePromise; ``` Unassign a mapping rule from a group Unassigns a mapping rule from a group. * #### Parameters ##### input [`unassignMappingRuleFromGroupInput`](../type-aliases/unassignMappingRuleFromGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a mapping rule from a group** ```ts async function unassignMappingRuleFromGroupExample( groupId: GroupId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.unassignMappingRuleFromGroup({ groupId, mappingRuleId, }); } ``` #### Operation Id unassignMappingRuleFromGroup #### Tags Group --- ### unassignMappingRuleFromTenant() ```ts unassignMappingRuleFromTenant(input, options?): CancelablePromise; ``` Unassign a mapping rule from a tenant Unassigns a single mapping rule from a specified tenant without deleting the rule. * #### Parameters ##### input [`unassignMappingRuleFromTenantInput`](../type-aliases/unassignMappingRuleFromTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a mapping rule from a tenant** ```ts async function unassignMappingRuleFromTenantExample( tenantId: TenantId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.unassignMappingRuleFromTenant({ tenantId, mappingRuleId, }); } ``` #### Operation Id unassignMappingRuleFromTenant #### Tags Tenant --- ### unassignRoleFromClient() ```ts unassignRoleFromClient(input, options?): CancelablePromise; ``` Unassign a role from a client Unassigns the specified role from the client. The client will no longer inherit the authorizations associated with this role. * #### Parameters ##### input [`unassignRoleFromClientInput`](../type-aliases/unassignRoleFromClientInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a role from a client** ```ts async function unassignRoleFromClientExample( roleId: RoleId, clientId: ClientId ) { const camunda = createCamundaClient(); await camunda.unassignRoleFromClient({ roleId, clientId, }); } ``` #### Operation Id unassignRoleFromClient #### Tags Role --- ### unassignRoleFromGroup() ```ts unassignRoleFromGroup(input, options?): CancelablePromise; ``` Unassign a role from a group Unassigns the specified role from the group. All group members (user or client) no longer inherit the authorizations associated with this role. * #### Parameters ##### input [`unassignRoleFromGroupInput`](../type-aliases/unassignRoleFromGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a role from a group** ```ts async function unassignRoleFromGroupExample(roleId: RoleId, groupId: GroupId) { const camunda = createCamundaClient(); await camunda.unassignRoleFromGroup({ roleId, groupId, }); } ``` #### Operation Id unassignRoleFromGroup #### Tags Role --- ### unassignRoleFromMappingRule() ```ts unassignRoleFromMappingRule(input, options?): CancelablePromise; ``` Unassign a role from a mapping rule Unassigns a role from a mapping rule. * #### Parameters ##### input [`unassignRoleFromMappingRuleInput`](../type-aliases/unassignRoleFromMappingRuleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a role from a mapping rule** ```ts async function unassignRoleFromMappingRuleExample( roleId: RoleId, mappingRuleId: MappingRuleId ) { const camunda = createCamundaClient(); await camunda.unassignRoleFromMappingRule({ roleId, mappingRuleId, }); } ``` #### Operation Id unassignRoleFromMappingRule #### Tags Role --- ### unassignRoleFromTenant() ```ts unassignRoleFromTenant(input, options?): CancelablePromise; ``` Unassign a role from a tenant Unassigns a role from a specified tenant. Users, Clients or Groups, that have the role assigned, will no longer have access to the tenant's data - unless they are assigned directly to the tenant. - #### Parameters ##### input [`unassignRoleFromTenantInput`](../type-aliases/unassignRoleFromTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a role from a tenant** ```ts async function unassignRoleFromTenantExample( tenantId: TenantId, roleId: RoleId ) { const camunda = createCamundaClient(); await camunda.unassignRoleFromTenant({ tenantId, roleId, }); } ``` #### Operation Id unassignRoleFromTenant #### Tags Tenant --- ### unassignRoleFromUser() ```ts unassignRoleFromUser(input, options?): CancelablePromise; ``` Unassign a role from a user Unassigns a role from a user. The user will no longer inherit the authorizations associated with this role. * #### Parameters ##### input [`unassignRoleFromUserInput`](../type-aliases/unassignRoleFromUserInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a role from a user** ```ts async function unassignRoleFromUserExample(roleId: RoleId, username: Username) { const camunda = createCamundaClient(); await camunda.unassignRoleFromUser({ roleId, username, }); } ``` #### Operation Id unassignRoleFromUser #### Tags Role --- ### unassignUserFromGroup() ```ts unassignUserFromGroup(input, options?): CancelablePromise; ``` Unassign a user from a group Unassigns a user from a group. The user is removed as a group member, with associated authorizations, roles, and tenant assignments no longer applied. - #### Parameters ##### input [`unassignUserFromGroupInput`](../type-aliases/unassignUserFromGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a user from a group** ```ts async function unassignUserFromGroupExample( groupId: GroupId, username: Username ) { const camunda = createCamundaClient(); await camunda.unassignUserFromGroup({ groupId, username, }); } ``` #### Operation Id unassignUserFromGroup #### Tags Group --- ### unassignUserFromTenant() ```ts unassignUserFromTenant(input, options?): CancelablePromise; ``` Unassign a user from a tenant Unassigns the user from the specified tenant. The user can no longer access tenant data. - #### Parameters ##### input [`unassignUserFromTenantInput`](../type-aliases/unassignUserFromTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a user from a tenant** ```ts async function unassignUserFromTenantExample( tenantId: TenantId, username: Username ) { const camunda = createCamundaClient(); await camunda.unassignUserFromTenant({ tenantId, username, }); } ``` #### Operation Id unassignUserFromTenant #### Tags Tenant --- ### unassignUserTask() ```ts unassignUserTask(input, options?): CancelablePromise; ``` Unassign user task Removes the assignee of a task with the given key. Unassignment waits for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input [`unassignUserTaskInput`](../type-aliases/unassignUserTaskInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Unassign a user task** ```ts async function unassignUserTaskExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); await camunda.unassignUserTask({ userTaskKey }); } ``` #### Operation Id unassignUserTask #### Tags User task --- ### updateAgentInstance() ```ts updateAgentInstance(input, options?): CancelablePromise; ``` Update agent instance Updates the status of an agent instance and appends a batch of history items to its conversation history. Each history item created for this request is echoed back in the response. - #### Parameters ##### input [`updateAgentInstanceInput`](../type-aliases/updateAgentInstanceInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`AgentInstanceUpdateResult`](../type-aliases/AgentInstanceUpdateResult.md)\> #### Example **Update an agent instance** ```ts async function updateAgentInstanceExample( agentInstanceKey: AgentInstanceKey, elementInstanceKey: ElementInstanceKey, jobKey: JobKey, jobLeaseToken: JobLeaseToken ) { const camunda = createCamundaClient(); await camunda.updateAgentInstance({ agentInstanceKey, elementInstanceKey, jobKey, jobLeaseToken, status: "THINKING", history: [ { historyItemId: HistoryItemId.assumeExists("assistant-1"), loopIteration: 1, role: "ASSISTANT", content: [{ contentType: "TEXT", text: "How can I help you?" }], producedAt: new Date().toISOString(), metrics: { inputTokens: 150, outputTokens: 50, durationMs: 820 }, }, ], }); console.log(`Updated agent instance: ${agentInstanceKey}`); } ``` #### Operation Id updateAgentInstance #### Tags Agent instance --- ### updateAuthorization() ```ts updateAuthorization(input, options?): CancelablePromise; ``` Update authorization Update the authorization with the given key. * #### Parameters ##### input [`updateAuthorizationInput`](../type-aliases/updateAuthorizationInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Update an authorization** ```ts async function updateAuthorizationExample(authorizationKey: AuthorizationKey) { const camunda = createCamundaClient(); await camunda.updateAuthorization({ authorizationKey, ownerId: "user-123", ownerType: "USER", resourceId: "order-process", resourceType: "PROCESS_DEFINITION", permissionTypes: [ "CREATE_PROCESS_INSTANCE", "READ_PROCESS_INSTANCE", "DELETE_PROCESS_INSTANCE", ], }); } ``` #### Operation Id updateAuthorization #### Tags Authorization --- ### updateGlobalClusterVariable() ```ts updateGlobalClusterVariable(input, options?): CancelablePromise; ``` Update a global-scoped cluster variable Updates the value of an existing global cluster variable. The variable must exist, otherwise a 404 error is returned. - #### Parameters ##### input [`updateGlobalClusterVariableInput`](../type-aliases/updateGlobalClusterVariableInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Update a global cluster variable** ```ts async function updateGlobalClusterVariableExample(name: ClusterVariableName) { const camunda = createCamundaClient(); await camunda.updateGlobalClusterVariable({ name, value: { darkMode: false }, }); } ``` #### Operation Id updateGlobalClusterVariable #### Tags Cluster Variable --- ### updateGlobalTaskListener() ```ts updateGlobalTaskListener(input, options?): CancelablePromise; ``` Update global user task listener Updates a global user task listener. * #### Parameters ##### input [`updateGlobalTaskListenerInput`](../type-aliases/updateGlobalTaskListenerInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GlobalTaskListenerResult`](../type-aliases/GlobalTaskListenerResult.md)\> #### Example **Update a global task listener** ```ts async function updateGlobalTaskListenerExample(id: GlobalListenerId) { const camunda = createCamundaClient(); await camunda.updateGlobalTaskListener({ id, eventTypes: ["completing"], type: "updated-audit-listener", }); } ``` #### Operation Id updateGlobalTaskListener #### Tags Global listener --- ### updateGroup() ```ts updateGroup(input, options?): CancelablePromise; ``` Update group Update a group with the given ID. * #### Parameters ##### input [`updateGroupInput`](../type-aliases/updateGroupInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`GroupUpdateResult`](../type-aliases/GroupUpdateResult.md)\> #### Example **Update a group** ```ts async function updateGroupExample(groupId: GroupId) { const camunda = createCamundaClient(); await camunda.updateGroup({ groupId, name: "Engineering Team", }); } ``` #### Operation Id updateGroup #### Tags Group --- ### updateJob() ```ts updateJob(input, options?): CancelablePromise; ``` Update job Update a job with the given key. * #### Parameters ##### input [`updateJobInput`](../type-aliases/updateJobInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Update a job** ```ts async function updateJobExample(jobKey: JobKey) { const camunda = createCamundaClient(); await camunda.updateJob({ jobKey, changeset: { retries: 5, timeout: 60000 }, }); } ``` #### Operation Id updateJob #### Tags Job --- ### updateJobsBatchOperation() ```ts updateJobsBatchOperation(input, options?): CancelablePromise; ``` Update jobs (batch) Creates a batch operation to update jobs matching the given filter. At least one changeset field must be non-null. This is done asynchronously; the progress can be tracked using the batchOperationKey from the response and the batch operation status endpoint (/batch-operations/{batchOperationKey}). - #### Parameters ##### input [`JobBatchUpdateRequest`](../type-aliases/JobBatchUpdateRequest.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`BatchOperationCreatedResult`](../type-aliases/BatchOperationCreatedResult.md)\> #### Example **Update jobs in batch** ```ts async function updateJobsBatchOperationExample() { const camunda = createCamundaClient(); const result = await camunda.updateJobsBatchOperation({ filter: { type: "payment-processing", hasFailedWithRetriesLeft: false, }, changeset: { retries: 3, }, }); console.log(`Batch operation key: ${result.batchOperationKey}`); } ``` #### Operation Id updateJobsBatchOperation #### Tags Job --- ### updateMappingRule() ```ts updateMappingRule(input, options?): CancelablePromise; ``` Update mapping rule Update a mapping rule. - #### Parameters ##### input [`updateMappingRuleInput`](../type-aliases/updateMappingRuleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`MappingRuleCreateUpdateResult`](../type-aliases/MappingRuleCreateUpdateResult.md)\> #### Example **Update a mapping rule** ```ts async function updateMappingRuleExample(mappingRuleId: MappingRuleId) { const camunda = createCamundaClient(); await camunda.updateMappingRule({ mappingRuleId, name: "LDAP Group Mapping", claimName: "groups", claimValue: "engineering-team", }); } ``` #### Operation Id updateMappingRule #### Tags Mapping rule --- ### updateRole() ```ts updateRole(input, options?): CancelablePromise; ``` Update role Update a role with the given ID. * #### Parameters ##### input [`updateRoleInput`](../type-aliases/updateRoleInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`RoleUpdateResult`](../type-aliases/RoleUpdateResult.md)\> #### Example **Update a role** ```ts async function updateRoleExample(roleId: RoleId) { const camunda = createCamundaClient(); await camunda.updateRole({ roleId, name: "Process Administrator", }); } ``` #### Operation Id updateRole #### Tags Role --- ### updateTenant() ```ts updateTenant(input, options?): CancelablePromise; ``` Update tenant Updates an existing tenant. * #### Parameters ##### input [`updateTenantInput`](../type-aliases/updateTenantInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`TenantUpdateResult`](../type-aliases/TenantUpdateResult.md)\> #### Example **Update a tenant** ```ts async function updateTenantExample(tenantId: TenantId) { const camunda = createCamundaClient(); await camunda.updateTenant({ tenantId, name: "Customer Service Team", }); } ``` #### Operation Id updateTenant #### Tags Tenant --- ### updateTenantClusterVariable() ```ts updateTenantClusterVariable(input, options?): CancelablePromise; ``` Update a tenant-scoped cluster variable Updates the value of an existing tenant-scoped cluster variable. The variable must exist, otherwise a 404 error is returned. - #### Parameters ##### input [`updateTenantClusterVariableInput`](../type-aliases/updateTenantClusterVariableInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`ClusterVariableResult`](../type-aliases/ClusterVariableResult.md)\> #### Example **Update a tenant cluster variable** ```ts async function updateTenantClusterVariableExample( tenantId: TenantId, name: ClusterVariableName ) { const camunda = createCamundaClient(); await camunda.updateTenantClusterVariable({ tenantId, name, value: { region: "eu-west-1" }, }); } ``` #### Operation Id updateTenantClusterVariable #### Tags Cluster Variable --- ### updateUser() ```ts updateUser(input, options?): CancelablePromise; ``` Update user Updates a user. * #### Parameters ##### input [`updateUserInput`](../type-aliases/updateUserInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<[`UserUpdateResult`](../type-aliases/UserUpdateResult.md)\> #### Example **Update a user** ```ts async function updateUserExample(username: Username) { const camunda = createCamundaClient(); await camunda.updateUser({ username, name: "Alice Jones", email: "alice.jones@example.com", }); } ``` #### Operation Id updateUser #### Tags User --- ### updateUserTask() ```ts updateUserTask(input, options?): CancelablePromise; ``` Update user task Update a user task with the given key. Updates wait for blocking task listeners on this lifecycle transition. If listener processing is delayed beyond the request timeout, this endpoint can return 504. Other gateway timeout causes are also possible. Retry with backoff and inspect listener worker availability and logs when this repeats. - #### Parameters ##### input [`updateUserTaskInput`](../type-aliases/updateUserTaskInput.md) ##### options? [`OperationOptions`](../interfaces/OperationOptions.md) #### Returns [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\> #### Example **Update a user task** ```ts async function updateUserTaskExample(userTaskKey: UserTaskKey) { const camunda = createCamundaClient(); await camunda.updateUserTask({ userTaskKey, changeset: { candidateUsers: ["alice", "bob"], dueDate: "2025-12-31T23:59:59Z", priority: 80, }, }); } ``` #### Operation Id updateUserTask #### Tags User task --- ### withCorrelation() ```ts withCorrelation(id, fn): Promise; ``` #### Type Parameters ##### T `T` #### Parameters ##### id `string` ##### fn () => `T` \| `Promise`\<`T`\> #### Returns `Promise`\<`T`\> #### Inherited from ```ts CamundaCore.withCorrelation; ``` --- ## Class: CamundaValidationError(Classes) ## Extends - `Error` ## Constructors ### Constructor ```ts new CamundaValidationError(params): CamundaValidationError; ``` #### Parameters ##### params ###### issues `string`[] ###### message `string` ###### operationId? `string` ###### side `"request"` \| `"response"` ###### summary `string` #### Returns `CamundaValidationError` #### Overrides ```ts Error.constructor; ``` ## Properties ### issues ```ts issues: string[]; ``` --- ### operationId? ```ts optional operationId?: string; ``` --- ### side ```ts side: "request" | "response"; ``` --- ### summary ```ts summary: string; ``` --- ## Class: CancelError ## Extends - `Error` ## Constructors ### Constructor ```ts new CancelError(): CancelError; ``` #### Returns `CancelError` #### Overrides ```ts Error.constructor; ``` --- ## Class: EventualConsistencyTimeoutError ## Extends - `Error` ## Constructors ### Constructor ```ts new EventualConsistencyTimeoutError(params): EventualConsistencyTimeoutError; ``` #### Parameters ##### params ###### attempts `number` ###### elapsedMs `number` ###### lastResponse? `any` ###### lastStatus? `number` ###### message? `string` ###### operationId? `string` #### Returns `EventualConsistencyTimeoutError` #### Overrides ```ts Error.constructor; ``` ## Properties ### attempts ```ts attempts: number; ``` --- ### code ```ts code: string = "CAMUNDA_SDK_EVENTUAL_TIMEOUT"; ``` --- ### elapsedMs ```ts elapsedMs: number; ``` --- ### lastResponseSnippet? ```ts optional lastResponseSnippet?: string; ``` --- ### lastStatus? ```ts optional lastStatus?: number; ``` --- ### operationId? ```ts optional operationId?: string; ``` --- ## Class: TypedVariablesError Base class for all typed-variable errors, so callers can catch the whole family. ## Extends - `Error` ## Extended by - [`VariableDeserializationError`](VariableDeserializationError.md) - [`VariableScopeCollisionError`](VariableScopeCollisionError.md) ## Constructors ### Constructor ```ts new TypedVariablesError(message, options?): TypedVariablesError; ``` #### Parameters ##### message `string` ##### options? ###### cause? `unknown` #### Returns `TypedVariablesError` #### Overrides ```ts Error.constructor; ``` --- ## Class: VariableCollector Incrementally collapses paged variable items into a parsed name-to-value map. Memory stays bounded by the DTO shape rather than the total number of paged items: only the first value seen per requested name is retained, alongside the set of scope keys observed for that name (used for collision detection). Items for undeclared variables are dropped, so large values for variables outside the DTO are never accumulated. ## Constructors ### Constructor ```ts new VariableCollector(queryNames): VariableCollector; ``` #### Parameters ##### queryNames `Iterable`\<`string`\> #### Returns `VariableCollector` ## Methods ### build() ```ts build(): Record; ``` Parse retained values, raising on scope collisions or malformed JSON. #### Returns `Record`\<`string`, `unknown`\> #### Throws when a name was observed at more than one scope. #### Throws when a retained value is not valid JSON. --- ### ingest() ```ts ingest(items): void; ``` Fold one page of results into the retained per-name state. #### Parameters ##### items `Iterable`\<[`TypedVariableItem`](../interfaces/TypedVariableItem.md)\> #### Returns `void` --- ## Class: VariableDeserializationError Raised when a variable's serialized value is not valid JSON. ## Extends - [`TypedVariablesError`](TypedVariablesError.md) ## Constructors ### Constructor ```ts new VariableDeserializationError(variableName, options?): VariableDeserializationError; ``` #### Parameters ##### variableName `string` ##### options? ###### cause? `unknown` #### Returns `VariableDeserializationError` #### Overrides [`TypedVariablesError`](TypedVariablesError.md).[`constructor`](TypedVariablesError.md#constructor) ## Properties ### variableName ```ts readonly variableName: string; ``` --- ## Class: VariableMap # Class: VariableMap\ Result of a DTO-driven variable search. Holds the parsed variable values keyed by their declared name. Provides lenient, defensive access via [has](#has) / [get](#get), and a strict [validate](#validate) that parses the values against the schema — returning a fully-typed object or throwing a `ZodError` when a required variable is missing or malformed. ## Type Parameters ### TSchema `TSchema` _extends_ [`AnyVariableSchema`](../type-aliases/AnyVariableSchema.md) ## Constructors ### Constructor ```ts new VariableMap(_raw, _schema): VariableMap; ``` #### Parameters ##### \_raw `Readonly`\<`Record`\<`string`, `unknown`\>\> ##### \_schema `TSchema` #### Returns `VariableMap`\<`TSchema`\> ## Accessors ### raw #### Get Signature ```ts get raw(): Readonly>; ``` The parsed variable values, keyed by variable name. ##### Returns `Readonly`\<`Record`\<`string`, `unknown`\>\> ## Methods ### get() ```ts get(variableName): K extends keyof input ? input[K] | undefined : undefined; ``` Lenient access. Returns the JSON-parsed wire value, or `undefined` when the variable is absent. The value is _not_ run through the schema, so a declared key is narrowed to that field's schema _input_ type (`z.input`) unioned with `undefined` — not the post-validation output type. This keeps the type honest for schemas with transforms or effects, where the parsed wire value can differ from `validate()`'s output. Any other key resolves to `undefined`: the result only ever holds the declared variable names, so an undeclared key can never carry a value. #### Type Parameters ##### K `K` _extends_ `string` #### Parameters ##### variableName `K` #### Returns `K` _extends_ keyof `input`\<`TSchema`\> ? `input`\<`TSchema`\>\[`K`\] \| `undefined` : `undefined` --- ### has() #### Call Signature ```ts has(variableName): boolean; ``` Whether a variable with the given name is present in the result. ##### Parameters ###### variableName keyof `input`\<`TSchema`\> & `string` ##### Returns `boolean` #### Call Signature ```ts has(variableName): boolean; ``` Whether a variable with the given name is present in the result. ##### Parameters ###### variableName `string` ##### Returns `boolean` --- ### validate() ```ts validate(): output; ``` Strict access. Parses the collected values against the schema and returns the typed object. Required variables must be present and well-formed, otherwise a `ZodError` is thrown. #### Returns `output`\<`TSchema`\> --- ## Class: VariableScopeCollisionError Raised when a declared variable name is observed at more than one scope (for example a local variable shadowing a process-level variable). The result would be ambiguous, so the search fails loudly rather than silently picking one. Pass an explicit `scopeKey` to disambiguate. ## Extends - [`TypedVariablesError`](TypedVariablesError.md) ## Constructors ### Constructor ```ts new VariableScopeCollisionError(variableName, scopeKeys): VariableScopeCollisionError; ``` #### Parameters ##### variableName `string` ##### scopeKeys readonly `string`[] #### Returns `VariableScopeCollisionError` #### Overrides [`TypedVariablesError`](TypedVariablesError.md).[`constructor`](TypedVariablesError.md#constructor) ## Properties ### scopeKeys ```ts readonly scopeKeys: readonly string[]; ``` --- ### variableName ```ts readonly variableName: string; ``` --- ## Function: assertConstraint() ```ts function assertConstraint(value, label, c): void; ``` ## Parameters ### value `string` ### label `string` ### c #### maxLength? `number` #### minLength? `number` #### pattern? `string` ## Returns `void` --- ## Function: collectTypedVariables() ```ts function collectTypedVariables(params): Promise>; ``` Page through variable search results until every declared variable is found or the result set is exhausted, then collapse them into a [VariableMap](../classes/VariableMap.md). Eventual-consistency waiting (when `consistency.waitUpToMs > 0`) is applied here, at the collection level — not on the underlying search calls. A freshly-written instance indexes its declared variables independently, so an early read can return only a subset (e.g. `orderId` before `amount`). Waiting on the first _search_ alone is too weak: that search's success condition is "at least one matching variable", so it settles on a partial result. Instead we re-run the whole collection until every declared name is visible or the budget expires. On expiry we return the best snapshot gathered so far rather than throwing: a genuinely-absent variable is indistinguishable from a late one, and [VariableMap.validate](../classes/VariableMap.md#validate) is the right place to surface a missing required variable. This also keeps pagination correct — a paging read that legitimately returns zero items never blocks, because the inner search never waits. The `fetchPage` callback isolates the HTTP call so the paging and collapse logic is unit-testable in isolation; `clock` isolates time so the consistency loop is too. ## Type Parameters ### TSchema `TSchema` _extends_ [`AnyVariableSchema`](../type-aliases/AnyVariableSchema.md) ## Parameters ### params #### clock? `CollectClock` Injectable clock for deterministic tests; defaults to real time. #### consistency? `VariableConsistencyOptions` Eventual-consistency tolerance. Omitted or `waitUpToMs: 0` reads exactly once. #### fetchPage (`after`) => `Promise`\<[`TypedVariablePage`](../interfaces/TypedVariablePage.md)\> #### schema `TSchema` #### singleScope `boolean` Whether the query is scoped to a single scope (collisions impossible, early-stop safe). ## Returns `Promise`\<[`VariableMap`](../classes/VariableMap.md)\<`TSchema`\>\> --- ## Function: createCamundaClient() ```ts function createCamundaClient(options?): CamundaClient; ``` ## Parameters ### options? [`CamundaOptions`](../interfaces/CamundaOptions.md) ## Returns [`CamundaClient`](../type-aliases/CamundaClient.md) --- ## Function: createCamundaClientLoose() ```ts function createCamundaClientLoose(...args): WithSearchPagination<{ clock: { deadline(...a): { dispose: (...a) => void; signal: { }; }; now(...a): number; sleep(...a): Promise; }; config: { __raw: { [key: string]: string | undefined; }; auth: { basic?: { password?: string; username?: string; }; strategy: AuthStrategy; }; backpressure: { decayQuietMs: number; enabled: boolean; floor: number; healthyRecoveryMultiplier: number; initialMax: number; maxWaiters: number; observeOnly: boolean; profile: string; recoveryIntervalMs: number; recoveryStep: number; severeFactor: number; severeThreshold: number; softFactor: number; unlimitedAfterHealthyMs: number; }; defaultTenantId: string; eventual?: { pollDefaultMs: number; }; httpRetry: { baseDelayMs: number; maxAttempts: number; maxDelayMs: number; }; logLevel: "trace" | "error" | "silent" | "warn" | "info" | "debug"; mtls?: { ca?: string; caPath?: string; cert?: string; certPath?: string; key?: string; keyPassphrase?: string; keyPath?: string; }; oauth: { cacheDir?: string; clientId?: string; clientSecret?: string; grantType: string; oauthUrl: string; retry: { baseDelayMs: number; max: number; }; scope?: string; timeoutMs: number; }; restAddress: string; supportLog?: { enabled: boolean; filePath: string; }; telemetry?: { correlation: boolean; log: boolean; }; tokenAudience: string; validation: { raw: string; req: ValidationMode; res: ValidationMode; }; workerDefaults?: { jobTimeoutMs?: number; maxParallelJobs?: number; pollTimeoutMs?: number; startupJitterMaxSeconds?: number; workerName?: string; }; }; random: { next(...a): number; }; _getSupportLogger(...a): { log(...a): void; }; _invokeWithRetry(...a): Promise; activateAdHocSubProcessActivities(...a): CancelablePromise; activateJobs(...a): CancelablePromise<{ jobs: object[]; }>; assignClientToGroup(...a): CancelablePromise; assignClientToTenant(...a): CancelablePromise; assignGroupToTenant(...a): CancelablePromise; assignMappingRuleToGroup(...a): CancelablePromise; assignMappingRuleToTenant(...a): CancelablePromise; assignProcessInstanceBusinessId(...a): CancelablePromise; assignRoleToClient(...a): CancelablePromise; assignRoleToGroup(...a): CancelablePromise; assignRoleToMappingRule(...a): CancelablePromise; assignRoleToTenant(...a): CancelablePromise; assignRoleToUser(...a): CancelablePromise; assignUserTask(...a): CancelablePromise; assignUserToGroup(...a): CancelablePromise; assignUserToTenant(...a): CancelablePromise; broadcastSignal(...a): CancelablePromise<{ signalKey: string; tenantId: string; }>; cancelBatchOperation(...a): CancelablePromise; cancelClusterRebalance(...a): CancelablePromise<{ wasRunning: boolean; }>; cancelProcessInstance(...a): CancelablePromise; cancelProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; changeClusterMode(...a): CancelablePromise<{ changeId: string; plannedChanges: object[]; }>; changeClusterModeAsClusterAdmin(...a): CancelablePromise<{ changeId: string; plannedChanges: object[]; }>; clearAuthCache(...a): void; completeJob(...a): CancelablePromise; completeUserTask(...a): CancelablePromise; configure(...a): void; correlateMessage(...a): CancelablePromise<{ messageKey: string; processInstanceKey: string; tenantId: string; }>; createAdminUser(...a): CancelablePromise<{ email: string | null; name: string | null; username: string; }>; createAgentInstance(...a): CancelablePromise<{ agentInstanceKey: string; createdHistory: object[]; }>; createAuthorization(...a): CancelablePromise<{ authorizationKey: string; }>; createDeployment(...a): CancelablePromise<{ decisionRequirements: object[]; decisions: object[]; deploymentKey: string; deployments: object[]; forms: object[]; processes: object[]; resources: object[]; tenantId: string; }>; createDocument(...a): CancelablePromise<{ camunda.document.type: "camunda"; contentHash: string | null; documentId: string; metadata: { contentType: string; customProperties: { [key: string]: unknown; }; expiresAt: string | null; fileName: string; processDefinitionId: | { [key: number]: string; __brand: "ProcessDefinitionId"; } | null; processInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; size: number; }; storeId: string; }>; createDocumentLink(...a): CancelablePromise<{ expiresAt: string; url: string; }>; createDocuments(...a): CancelablePromise<{ createdDocuments: object[]; failedDocuments: object[]; }>; createElementInstanceVariables(...a): CancelablePromise; createGlobalClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; createGlobalTaskListener(...a): CancelablePromise<{ afterNonGlobal?: boolean; eventTypes: GlobalTaskListenerEventTypeEnum[]; id: string; priority?: number; retries?: number; source: GlobalListenerSourceEnum; type?: string; }>; createGroup(...a): CancelablePromise<{ description: string | null; groupId: string; name: string; }>; createJobWorker(...a): { activeJobs: number; name: string; stopped: boolean; start(...a): void; stop(...a): void; stopGracefully(...a): Promise<{ remainingJobs: number; timedOut: boolean; }>; }; createMappingRule(...a): CancelablePromise<{ claimName: string; claimValue: string; mappingRuleId: string; name: string; }>; createProcessInstance(...a): CancelablePromise<{ businessId: | { [key: number]: string; __brand: "BusinessId"; } | null; processDefinitionId: string; processDefinitionKey: string; processDefinitionVersion: number; processInstanceKey: string; tags: string[]; tenantId: string; variables: { [key: string]: unknown; }; }>; createRole(...a): CancelablePromise<{ description: string | null; name: string; roleId: string; }>; createTenant(...a): CancelablePromise<{ description: string | null; name: string; tenantId: string; }>; createTenantClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; createThreadedJobWorker(...a): { activeJobs: number; busyThreads: number; name: string; poolSize: number; ready: Promise; stopped: boolean; start(...a): void; stop(...a): void; stopGracefully(...a): Promise<{ remainingJobs: number; timedOut: boolean; }>; }; createUser(...a): CancelablePromise<{ email: string | null; name: string | null; username: string; }>; deleteAuthorization(...a): CancelablePromise; deleteDecisionInstance(...a): CancelablePromise; deleteDecisionInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; deleteDocument(...a): CancelablePromise; deleteGlobalClusterVariable(...a): CancelablePromise; deleteGlobalTaskListener(...a): CancelablePromise; deleteGroup(...a): CancelablePromise; deleteHistoryBackup(...a): CancelablePromise; deleteHistoryBackupAsClusterAdmin(...a): CancelablePromise; deleteMappingRule(...a): CancelablePromise; deleteProcessInstance(...a): CancelablePromise; deleteProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; deleteResource(...a): CancelablePromise<{ batchOperation: | { batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; } | null; resourceKey: string; }>; deleteRole(...a): CancelablePromise; deleteRuntimeBackup(...a): CancelablePromise; deleteRuntimeBackupAsClusterAdmin(...a): CancelablePromise; deleteRuntimeBackupState(...a): CancelablePromise; deleteRuntimeBackupStateAsClusterAdmin(...a): CancelablePromise; deleteTenant(...a): CancelablePromise; deleteTenantClusterVariable(...a): CancelablePromise; deleteUser(...a): CancelablePromise; deployResourcesFromFiles(...a): CancelablePromise<{ decisionRequirements: object[]; decisions: object[]; deploymentKey: string; deployments: object[]; forms: object[]; processes: object[]; resources: object[]; tenantId: string; }>; emitSupportLogPreamble(...a): void; evaluateConditionals(...a): CancelablePromise<{ conditionalEvaluationKey: string; processInstances: object[]; tenantId: string; }>; evaluateDecision(...a): CancelablePromise<{ decisionDefinitionId: string; decisionDefinitionKey: string; decisionDefinitionName: string; decisionDefinitionVersion: number; decisionEvaluationKey: string; decisionInstanceKey: string; decisionRequirementsId: string; decisionRequirementsKey: string; evaluatedDecisions: object[]; failedDecisionDefinitionId: | { [key: number]: string; __brand: "DecisionDefinitionId"; } | null; failureMessage: string | null; output: string; tenantId: string; }>; evaluateExpression(...a): CancelablePromise<{ expression: string; referencedSecrets: object[]; result: unknown; warnings: object[]; }>; failJob(...a): CancelablePromise; forceAuthRefresh(...a): Promise; getAgentDefinition(...a): CancelablePromise<{ agentDefinitionKey: string; agentType: AgentDefinitionTypeEnum; elementId: string; name: string; processDefinitionId: string; processDefinitionKey: string; processDefinitionVersion: number; processDefinitionVersionTag: string | null; tenantId: string; }>; getAgentInstance(...a): CancelablePromise<{ agentDefinitionKey: string; agentInstanceKey: string; completionDate: string | null; creationDate: string; definition: { model: string; provider: string; systemPrompt: ( | { contentType: "TEXT"; text: string; } | { contentType: "DOCUMENT"; documentReference: { camunda.document.type: "camunda"; contentHash: string | null; documentId: string; metadata: { contentType: string; customProperties: { [key: ...]: ...; }; expiresAt: ... | ...; fileName: string; processDefinitionId: ... | ...; processInstanceKey: ... | ...; size: number; }; storeId: string; }; } | { contentType: "OBJECT"; object: unknown; })[]; }; elementId: string; elementInstanceKeys: string[]; lastUpdatedDate: string; limits: { maxModelCalls: number; maxTokens: number; maxToolCalls: number; }; metrics: { cacheCreationTokenCount: number; cacheReadTokenCount: number; inputTokens: number; modelCalls: number; outputTokens: number; reasoningTokenCount: number; toolCalls: number; }; processDefinitionId: string; processDefinitionKey: string; processDefinitionVersion: number; processDefinitionVersionTag: string | null; processInstanceKey: string; rootProcessInstanceKey: string; status: AgentInstanceStatusEnum; tenantId: string; tools: object[]; }>; getAuditLog(...a): CancelablePromise<{ actorId: string | null; actorType: | AuditLogActorTypeEnum | null; agentElementId: string | null; auditLogKey: string; batchOperationKey: | { [key: number]: string; __brand: "BatchOperationKey"; } | null; batchOperationType: | BatchOperationTypeEnum | null; category: AuditLogCategoryEnum; decisionDefinitionId: | { [key: number]: string; __brand: "DecisionDefinitionId"; } | null; decisionDefinitionKey: | { [key: number]: string; __brand: "DecisionDefinitionKey"; } | null; decisionEvaluationKey: | { [key: number]: string; __brand: "DecisionEvaluationKey"; } | null; decisionRequirementsId: string | null; decisionRequirementsKey: | { [key: number]: string; __brand: "DecisionRequirementsKey"; } | null; deploymentKey: | { [key: number]: string; __brand: "DeploymentKey"; } | null; elementInstanceKey: | { [key: number]: string; __brand: "ElementInstanceKey"; } | null; entityDescription: string | null; entityKey: string; entityType: AuditLogEntityTypeEnum; formKey: | { [key: number]: string; __brand: "FormKey"; } | null; inboundChannelToolName: string | null; inboundChannelType: string | null; jobKey: | { [key: number]: string; __brand: "JobKey"; } | null; operationType: AuditLogOperationTypeEnum; processDefinitionId: | { [key: number]: string; __brand: "ProcessDefinitionId"; } | null; processDefinitionKey: | { [key: number]: string; __brand: "ProcessDefinitionKey"; } | null; processInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; relatedEntityKey: | { [key: number]: string; __brand: "AuditLogEntityKey"; } | null; relatedEntityType: | AuditLogEntityTypeEnum | null; resourceKey: | { [key: number]: string; __brand: "ProcessDefinitionKey"; } | { [key: number]: string; __brand: "DecisionRequirementsKey"; } | { [key: number]: string; __brand: "DecisionDefinitionKey"; } | { [key: number]: string; __brand: "FormKey"; } | null; result: AuditLogResultEnum; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; tenantId: | { [key: number]: string; __brand: "TenantId"; } | null; timestamp: string; userTaskKey: | { [key: number]: string; __brand: "UserTaskKey"; } | null; }>; getAuthentication(...a): CancelablePromise<{ authorizedComponents: string[]; c8Links: { [key: string]: string; }; canLogout: boolean; displayName: string | null; email: string | null; groups: string[]; roles: string[]; salesPlanType: string | null; tenants: object[]; username: string; }>; getAuthHeaders(...a): Promise<{ [key: string]: string; }>; getAuthorization(...a): CancelablePromise<{ authorizationKey: string; ownerId: string; ownerType: OwnerTypeEnum; permissionTypes: PermissionTypeEnum[]; resourceId: string | null; resourcePropertyName: string | null; resourceType: ResourceTypeEnum; }>; getBackpressureState(...a): | { backoffMs: number; consecutive: number; permitsCurrent: number; permitsMax: number | null; severity: BackpressureSeverity; waiters: number; } | { consecutive: number; permitsCurrent: number; permitsMax: null; severity: string; waiters: number; }; getBatchOperation(...a): CancelablePromise<{ actorId: string | null; actorType: | AuditLogActorTypeEnum | null; batchOperationKey: string; batchOperationType: | BatchOperationTypeEnum | null; endDate: string | null; errors: object[]; operationsCompletedCount: number; operationsFailedCount: number; operationsTotalCount: number; startDate: string | null; state: BatchOperationStateEnum; }>; getClusterExportingStatus(...a): CancelablePromise<{ status: ExportingStatusCode; }>; getClusterRebalance(...a): CancelablePromise<{ lastCompletedRebalance: | { finishedAt: string; partitions: object[]; rebalanceId: number; result: "COMPLETED" | "FAILED" | "CANCELLED"; startedAt: string; } | null; partitions: object[]; runningRebalance: | { cancelRequested: boolean; dryRun: boolean; partitions: object[]; rebalanceId: number; startedAt: string; } | null; state: "BALANCED" | "BALANCING" | "UNBALANCED"; }>; getClusterStatus(...a): CancelablePromise<{ status: "HEALTHY" | "DEGRADED" | "DOWN"; }>; getClusterTopology(...a): CancelablePromise<{ brokers: object[]; clusterId: string | null; clusterSize: number; gatewayVersion: string | null; physicalTenants: object[]; }>; getClusterUpgradeStatus(...a): CancelablePromise<{ status: "UNKNOWN" | "MIGRATED" | "MIGRATION_IN_PROGRESS"; }>; getConfig(...a): { __raw: { [key: string]: string | undefined; }; auth: { basic?: { password?: string; username?: string; }; strategy: AuthStrategy; }; backpressure: { decayQuietMs: number; enabled: boolean; floor: number; healthyRecoveryMultiplier: number; initialMax: number; maxWaiters: number; observeOnly: boolean; profile: string; recoveryIntervalMs: number; recoveryStep: number; severeFactor: number; severeThreshold: number; softFactor: number; unlimitedAfterHealthyMs: number; }; defaultTenantId: string; eventual?: { pollDefaultMs: number; }; httpRetry: { baseDelayMs: number; maxAttempts: number; maxDelayMs: number; }; logLevel: "trace" | "error" | "silent" | "warn" | "info" | "debug"; mtls?: { ca?: string; caPath?: string; cert?: string; certPath?: string; key?: string; keyPassphrase?: string; keyPath?: string; }; oauth: { cacheDir?: string; clientId?: string; clientSecret?: string; grantType: string; oauthUrl: string; retry: { baseDelayMs: number; max: number; }; scope?: string; timeoutMs: number; }; restAddress: string; supportLog?: { enabled: boolean; filePath: string; }; telemetry?: { correlation: boolean; log: boolean; }; tokenAudience: string; validation: { raw: string; req: ValidationMode; res: ValidationMode; }; workerDefaults?: { jobTimeoutMs?: number; maxParallelJobs?: number; pollTimeoutMs?: number; startupJitterMaxSeconds?: number; workerName?: string; }; }; getDecisionDefinition(...a): CancelablePromise<{ decisionDefinitionId: string; decisionDefinitionKey: string; decisionRequirementsId: string; decisionRequirementsKey: string; decisionRequirementsName: string; decisionRequirementsVersion: number; name: string; tenantId: string; version: number; }>; getDecisionDefinitionXml(...a): CancelablePromise; getDecisionInstance(...a): CancelablePromise<{ businessId: | { [key: number]: string; __brand: "BusinessId"; } | null; decisionDefinitionId: string; decisionDefinitionKey: string; decisionDefinitionName: string; decisionDefinitionType: DecisionDefinitionTypeEnum; decisionDefinitionVersion: number; decisionEvaluationInstanceKey: string; decisionEvaluationKey: string; elementInstanceKey: | { [key: number]: string; __brand: "ElementInstanceKey"; } | null; evaluatedInputs: object[]; evaluationDate: string; evaluationFailure: string | null; matchedRules: object[]; processDefinitionKey: | { [key: number]: string; __brand: "ProcessDefinitionKey"; } | null; processInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; result: string; rootDecisionDefinitionKey: string; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; state: DecisionInstanceStateEnum; tenantId: string; }>; getDecisionRequirements(...a): CancelablePromise<{ decisionRequirementsId: string; decisionRequirementsKey: string; decisionRequirementsName: string; resourceName: string; tenantId: string; version: number; }>; getDecisionRequirementsXml(...a): CancelablePromise; getDocument(...a): CancelablePromise<{ }>; getElementInstance(...a): CancelablePromise<{ elementId: string; elementInstanceKey: string; elementName: string; endDate: string | null; hasIncident: boolean; incidentKey: | { [key: number]: string; __brand: "IncidentKey"; } | null; processDefinitionId: string; processDefinitionKey: string; processInstanceKey: string; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; startDate: string; state: ElementInstanceStateEnum; tenantId: string; type: | "UNKNOWN" | "USER_TASK" | "UNSPECIFIED" | "PROCESS" | "SUB_PROCESS" | "EVENT_SUB_PROCESS" | "AD_HOC_SUB_PROCESS" | "AD_HOC_SUB_PROCESS_INNER_INSTANCE" | "START_EVENT" | "INTERMEDIATE_CATCH_EVENT" | "INTERMEDIATE_THROW_EVENT" | "BOUNDARY_EVENT" | "END_EVENT" | "SERVICE_TASK" | "RECEIVE_TASK" | "MANUAL_TASK" | "TASK" | "EXCLUSIVE_GATEWAY" | "INCLUSIVE_GATEWAY" | "PARALLEL_GATEWAY" | "EVENT_BASED_GATEWAY" | "SEQUENCE_FLOW" | "MULTI_INSTANCE_BODY" | "CALL_ACTIVITY" | "BUSINESS_RULE_TASK" | "SCRIPT_TASK" | "SEND_TASK"; }>; getErrorMode(...a): "throw" | "result"; getExportingStatus(...a): CancelablePromise<{ status: ExportingStatusCode; }>; getFormByKey(...a): CancelablePromise<{ formId: string; formKey: string; schema: string; tenantId: string; version: number; }>; getGlobalClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; getGlobalJobStatistics(...a): CancelablePromise<{ completed: { count: number; lastUpdatedAt: string | null; }; created: { count: number; lastUpdatedAt: string | null; }; failed: { count: number; lastUpdatedAt: string | null; }; isIncomplete: boolean; }>; getGlobalTaskListener(...a): CancelablePromise<{ afterNonGlobal?: boolean; eventTypes: GlobalTaskListenerEventTypeEnum[]; id: string; priority?: number; retries?: number; source: GlobalListenerSourceEnum; type?: string; }>; getGroup(...a): CancelablePromise<{ description: string | null; groupId: string; name: string; }>; getHistoryBackup(...a): CancelablePromise<{ backupId: number; details: object[]; failureReason: string | null; state: HistoryBackupStateCode; }>; getHistoryBackupAsClusterAdmin(...a): CancelablePromise<{ backupId: number; physicalTenants: object[]; }>; getIncident(...a): CancelablePromise<{ creationTime: string; elementId: string; elementInstanceKey: string; errorMessage: string; errorType: IncidentErrorTypeEnum; incidentKey: string; jobKey: | { [key: number]: string; __brand: "JobKey"; } | null; processDefinitionId: string; processDefinitionKey: string; processInstanceKey: string; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; state: IncidentStateEnum; tenantId: string; }>; getJobErrorStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getJobTimeSeriesStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getJobTypeStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getJobWorkerStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getLicense(...a): CancelablePromise<{ expiresAt: string | null; isCommercial: boolean; licenseType: string; validLicense: boolean; }>; getMappingRule(...a): CancelablePromise<{ claimName: string; claimValue: string; mappingRuleId: string; name: string; }>; getProcessDefinition(...a): CancelablePromise<{ hasStartForm: boolean; name: string | null; processDefinitionId: string; processDefinitionKey: string; resourceName: string; state: "ACTIVE" | "DRAINING" | "DELETED"; tenantId: string; version: number; versionTag: string | null; }>; getProcessDefinitionInstanceStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getProcessDefinitionInstanceVersionStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getProcessDefinitionMessageSubscriptionStatistics(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getProcessDefinitionStatistics(...a): CancelablePromise<{ items: object[]; }>; getProcessDefinitionXml(...a): CancelablePromise; getProcessInstance(...a): CancelablePromise<{ businessId: | { [key: number]: string; __brand: "BusinessId"; } | null; endDate: string | null; hasIncident: boolean; parentElementInstanceKey: | { [key: number]: string; __brand: "ElementInstanceKey"; } | null; parentProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; processDefinitionId: string; processDefinitionKey: string; processDefinitionName: string | null; processDefinitionVersion: number; processDefinitionVersionTag: string | null; processInstanceKey: string; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; startDate: string; state: ProcessInstanceStateEnum; suspendedDate: string | null; tags: string[]; tenantId: string; }>; getProcessInstanceCallHierarchy(...a): CancelablePromise; getProcessInstanceSequenceFlows(...a): CancelablePromise<{ items: object[]; }>; getProcessInstanceStatistics(...a): CancelablePromise<{ items: object[]; }>; getProcessInstanceStatisticsByDefinition(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getProcessInstanceStatisticsByError(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; getProcessInstanceWaitStateStatistics(...a): CancelablePromise<{ items: object[]; }>; getResource(...a): CancelablePromise<{ resourceId: string; resourceKey: string; resourceName: string; tenantId: string; version: number; versionTag: string | null; }>; getResourceContent(...a): CancelablePromise<{ [key: string]: unknown; }>; getResourceContentBinary(...a): CancelablePromise<{ }>; getRestoreStatus(...a): CancelablePromise<{ brokers: object[]; changeId: string; startedAt: string | null; status: "COMPLETED" | "FAILED" | "IN_PROGRESS" | "CANCELLED"; }>; getRole(...a): CancelablePromise<{ description: string | null; name: string; roleId: string; }>; getRuntimeBackup(...a): CancelablePromise<{ backupId: number; details: object[]; failureReason: string | null; state: StateCode; }>; getRuntimeBackupAsClusterAdmin(...a): CancelablePromise<{ backupId: number; failureReason: string | null; physicalTenants: object[]; state: StateCode; }>; getRuntimeBackupState(...a): CancelablePromise<{ backupStates: object[]; checkpointStates: object[]; ranges: object[]; }>; getRuntimeBackupStateAsClusterAdmin(...a): CancelablePromise<{ physicalTenants: object[]; }>; getStartProcessForm(...a): CancelablePromise< | void | { formId: string; formKey: string; schema: string; tenantId: string; version: number; }>; getStatus(...a): CancelablePromise; getSystemConfiguration(...a): CancelablePromise<{ authentication: { canLogout: boolean; isCamundaGroupsEnabled: boolean; isLoginDelegated: boolean; }; cloud: { stage: CloudStage | null; }; components: { active: WebappComponent[]; }; deployment: { isMultiTenancyEnabled: boolean; isTenantsApiEnabled: boolean; maxRequestSize: number; }; jobMetrics: { enabled: boolean; exportInterval: string; maxJobTypeLength: number; maxTenantIdLength: number; maxUniqueKeys: number; maxWorkerNameLength: number; }; }>; getTenant(...a): CancelablePromise<{ description: string | null; name: string; tenantId: string; }>; getTenantClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; getTopology(...a): CancelablePromise<{ brokers: object[]; clusterId: string | null; clusterSize: number; gatewayVersion: string; lastCompletedChangeId: string; partitionsCount: number; replicationFactor: number; }>; getUsageMetrics(...a): CancelablePromise<{ activeTenants: number; assignees: number; decisionInstances: number; processInstances: number; tenants: { [key: string]: object; }; }>; getUser(...a): CancelablePromise<{ email: string | null; name: string | null; username: string; }>; getUserTask(...a): CancelablePromise<{ assignee: string | null; businessId: | { [key: number]: string; __brand: "BusinessId"; } | null; candidateGroups: string[]; candidateUsers: string[]; completionDate: string | null; creationDate: string; customHeaders: { [key: string]: string; }; dueDate: string | null; elementId: string; elementInstanceKey: string; externalFormReference: string | null; followUpDate: string | null; formKey: | { [key: number]: string; __brand: "FormKey"; } | null; isSuspended: boolean; name: string | null; priority: number; processDefinitionId: string; processDefinitionKey: string; processDefinitionVersion: number; processInstanceKey: string; processName: string | null; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; state: UserTaskStateEnum; tags: string[]; tenantId: string; userTaskKey: string; }>; getUserTaskForm(...a): CancelablePromise< | void | { formId: string; formKey: string; schema: string; tenantId: string; version: number; }>; getVariable(...a): CancelablePromise<{ name: string; processInstanceKey: string; rootProcessInstanceKey: | { [key: number]: string; __brand: "ProcessInstanceKey"; } | null; scopeKey: string; tenantId: string; value: string; variableKey: string; }>; getWorkers(...a): any[]; listHistoryBackups(...a): CancelablePromise; listHistoryBackupsAsClusterAdmin(...a): CancelablePromise; listRuntimeBackups(...a): CancelablePromise; listRuntimeBackupsAsClusterAdmin(...a): CancelablePromise; listSecrets(...a): CancelablePromise<{ references: string[]; }>; logger(...a): { code(...a): void; debug(...a): void; error(...a): void; info(...a): void; level(...a): LogLevel; scope(...a): { level: () => LogLevel; setLevel: (level: LogLevel) => void; setTransport: (t?: ((e: { level: LogLevel; scope: string; ts: number; args: any[]; code?: string | undefined; data?: any; }) => void) | undefined) => void; ... 7 more ...; code: (level: LogLevel, code: string, msg: string, data?: any) => void; }; setLevel(...a): void; setTransport(...a): void; silly(...a): void; trace(...a): void; warn(...a): void; }; migrateProcessInstance(...a): CancelablePromise; migrateProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; modifyProcessInstance(...a): CancelablePromise; modifyProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; onAuthHeaders(...a): void; pauseClusterExporting(...a): CancelablePromise; pauseExporting(...a): CancelablePromise; pinClock(...a): CancelablePromise; publishMessage(...a): CancelablePromise<{ messageKey: string; tenantId: string; }>; resetClock(...a): CancelablePromise; resolveIncident(...a): CancelablePromise; resolveIncidentsBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; resolveProcessInstanceIncidents(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; resolveSecrets(...a): CancelablePromise<{ errors: object[]; resolved: object[]; }>; restore(...a): CancelablePromise<{ changeId: string; plannedChanges: object[]; }>; restoreAsClusterAdmin(...a): CancelablePromise<{ changeId: string; plannedChanges: object[]; }>; resumeBatchOperation(...a): CancelablePromise; resumeClusterExporting(...a): CancelablePromise; resumeExporting(...a): CancelablePromise; resumeProcessInstance(...a): CancelablePromise; resumeProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; searchAgentDefinitions(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchAgentInstanceHistory(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchAgentInstances(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchAuditLogs(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchAuthorizations(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchBatchOperationItems(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchBatchOperations(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchClientsForGroup(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchClientsForRole(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchClientsForTenant(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchClusterVariables(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchCorrelatedMessageSubscriptions(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchDecisionDefinitions(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchDecisionInstances(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchDecisionRequirements(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchElementInstanceIncidents(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchElementInstances(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchElementInstanceWaitStates(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchGlobalTaskListeners(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchGroupIdsForTenant(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchGroups(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchGroupsForRole(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchIncidents(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchJobs(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchMappingRule(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchMappingRulesForGroup(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchMappingRulesForRole(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchMappingRulesForTenant(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchMessageSubscriptions(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchOwnAuthorizations(...a): CancelablePromise<{ authorizationsEnabled: boolean; items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchProcessDefinitions(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchProcessDefinitionVariableNames(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchProcessInstanceIncidents(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchProcessInstances(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchResources(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchRoles(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchRolesForGroup(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchRolesForTenant(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchTenants(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUsers(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUsersForGroup(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUsersForRole(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUsersForTenant(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUserTaskAuditLogs(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUserTaskEffectiveVariables(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUserTasks(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchUserTaskVariables(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchVariables(...a): CancelablePromise<{ items: object[]; page: { endCursor: | { [key: number]: string; __brand: "EndCursor"; } | null; hasMoreTotalItems: boolean; startCursor: | { [key: number]: string; __brand: "StartCursor"; } | null; totalItems: number; }; }>; searchVariablesAsDto(...a): CancelablePromise<{ raw: { [key: string]: unknown; }; get(...a): unknown; has(...a): boolean; validate(...a): { [key: string]: unknown; }; }>; stopAllWorkers(...a): void; suspendBatchOperation(...a): CancelablePromise; suspendProcessInstance(...a): CancelablePromise; suspendProcessInstancesBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; syncRuntimeBackupState(...a): CancelablePromise<{ backupStates: object[]; checkpointStates: object[]; ranges: object[]; }>; syncRuntimeBackupStateAsClusterAdmin(...a): CancelablePromise<{ physicalTenants: object[]; }>; takeHistoryBackup(...a): CancelablePromise<{ backupId: number; scheduledSnapshots: string[]; }>; takeHistoryBackupAsClusterAdmin(...a): CancelablePromise<{ backupId: number; physicalTenants: object[]; }>; takeRuntimeBackup(...a): CancelablePromise<{ backupId: number; }>; takeRuntimeBackupAsClusterAdmin(...a): CancelablePromise<{ physicalTenants: object[]; }>; throwJobError(...a): CancelablePromise; triggerClusterRebalance(...a): CancelablePromise<{ lastCompletedRebalance: | { finishedAt: string; partitions: object[]; rebalanceId: number; result: "COMPLETED" | "FAILED" | "CANCELLED"; startedAt: string; } | null; partitions: object[]; runningRebalance: | { cancelRequested: boolean; dryRun: boolean; partitions: object[]; rebalanceId: number; startedAt: string; } | null; state: "BALANCED" | "BALANCING" | "UNBALANCED"; }>; unassignClientFromGroup(...a): CancelablePromise; unassignClientFromTenant(...a): CancelablePromise; unassignGroupFromTenant(...a): CancelablePromise; unassignMappingRuleFromGroup(...a): CancelablePromise; unassignMappingRuleFromTenant(...a): CancelablePromise; unassignRoleFromClient(...a): CancelablePromise; unassignRoleFromGroup(...a): CancelablePromise; unassignRoleFromMappingRule(...a): CancelablePromise; unassignRoleFromTenant(...a): CancelablePromise; unassignRoleFromUser(...a): CancelablePromise; unassignUserFromGroup(...a): CancelablePromise; unassignUserFromTenant(...a): CancelablePromise; unassignUserTask(...a): CancelablePromise; updateAgentInstance(...a): CancelablePromise<{ createdHistory: object[]; }>; updateAuthorization(...a): CancelablePromise; updateGlobalClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; updateGlobalTaskListener(...a): CancelablePromise<{ afterNonGlobal?: boolean; eventTypes: GlobalTaskListenerEventTypeEnum[]; id: string; priority?: number; retries?: number; source: GlobalListenerSourceEnum; type?: string; }>; updateGroup(...a): CancelablePromise<{ description: string | null; groupId: string; name: string; }>; updateJob(...a): CancelablePromise; updateJobsBatchOperation(...a): CancelablePromise<{ batchOperationKey: string; batchOperationType: BatchOperationTypeEnum; }>; updateMappingRule(...a): CancelablePromise<{ claimName: string; claimValue: string; mappingRuleId: string; name: string; }>; updateRole(...a): CancelablePromise<{ description: string | null; name: string; roleId: string; }>; updateTenant(...a): CancelablePromise<{ description: string | null; name: string; tenantId: string; }>; updateTenantClusterVariable(...a): CancelablePromise<{ kind: ClusterVariableKindEnum; metadata: { [key: string]: string | number; }; name: string; scope: ClusterVariableScopeEnum; tenantId: string | null; value: string; }>; updateUser(...a): CancelablePromise<{ email: string | null; name: string | null; username: string; }>; updateUserTask(...a): CancelablePromise; withCorrelation(...a): Promise; }>; ``` Create a client where all branded key types are widened to string. Use when integrating with external systems or when dynamic string keys are common and brand friction is unwanted. For maximum type safety prefer the strict createCamundaClient. `Loose` rebuilds callable types and drops properties attached to them, which would strip the `.paginate` methods installed on every `search*` operation. We re-apply `WithSearchPagination` on top of the loosened client so loose clients keep `.paginate` in their static type (recomputed from the loosened search signatures), matching the runtime wrappers the constructor installs. ## Parameters ### args ...\[`options?`: [`CamundaOptions`](../interfaces/CamundaOptions.md)\] ## Returns [`WithSearchPagination`](../type-aliases/WithSearchPagination.md)\<\{ `clock`: \{ `deadline`(...`a`): \{ `dispose`: (...`a`) => `void`; `signal`: \{ \}; \}; `now`(...`a`): `number`; `sleep`(...`a`): `Promise`\<`void`\>; \}; `config`: \{ `__raw`: \{ \[`key`: `string`\]: `string` \| `undefined`; \}; `auth`: \{ `basic?`: \{ `password?`: `string`; `username?`: `string`; \}; `strategy`: [`AuthStrategy`](../type-aliases/AuthStrategy.md); \}; `backpressure`: \{ `decayQuietMs`: `number`; `enabled`: `boolean`; `floor`: `number`; `healthyRecoveryMultiplier`: `number`; `initialMax`: `number`; `maxWaiters`: `number`; `observeOnly`: `boolean`; `profile`: `string`; `recoveryIntervalMs`: `number`; `recoveryStep`: `number`; `severeFactor`: `number`; `severeThreshold`: `number`; `softFactor`: `number`; `unlimitedAfterHealthyMs`: `number`; \}; `defaultTenantId`: `string`; `eventual?`: \{ `pollDefaultMs`: `number`; \}; `httpRetry`: \{ `baseDelayMs`: `number`; `maxAttempts`: `number`; `maxDelayMs`: `number`; \}; `logLevel`: `"trace"` \| `"error"` \| `"silent"` \| `"warn"` \| `"info"` \| `"debug"`; `mtls?`: \{ `ca?`: `string`; `caPath?`: `string`; `cert?`: `string`; `certPath?`: `string`; `key?`: `string`; `keyPassphrase?`: `string`; `keyPath?`: `string`; \}; `oauth`: \{ `cacheDir?`: `string`; `clientId?`: `string`; `clientSecret?`: `string`; `grantType`: `string`; `oauthUrl`: `string`; `retry`: \{ `baseDelayMs`: `number`; `max`: `number`; \}; `scope?`: `string`; `timeoutMs`: `number`; \}; `restAddress`: `string`; `supportLog?`: \{ `enabled`: `boolean`; `filePath`: `string`; \}; `telemetry?`: \{ `correlation`: `boolean`; `log`: `boolean`; \}; `tokenAudience`: `string`; `validation`: \{ `raw`: `string`; `req`: [`ValidationMode`](../type-aliases/ValidationMode.md); `res`: [`ValidationMode`](../type-aliases/ValidationMode.md); \}; `workerDefaults?`: \{ `jobTimeoutMs?`: `number`; `maxParallelJobs?`: `number`; `pollTimeoutMs?`: `number`; `startupJitterMaxSeconds?`: `number`; `workerName?`: `string`; \}; \}; `random`: \{ `next`(...`a`): `number`; \}; `_getSupportLogger`(...`a`): \{ `log`(...`a`): `void`; \}; `_invokeWithRetry`(...`a`): `Promise`\<`unknown`\>; `activateAdHocSubProcessActivities`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `activateJobs`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `jobs`: `object`[]; \}\>; `assignClientToGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignClientToTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignGroupToTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignMappingRuleToGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignMappingRuleToTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignProcessInstanceBusinessId`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignRoleToClient`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignRoleToGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignRoleToMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignRoleToTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignRoleToUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignUserTask`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignUserToGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `assignUserToTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `broadcastSignal`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `signalKey`: `string`; `tenantId`: `string`; \}\>; `cancelBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `cancelClusterRebalance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `wasRunning`: `boolean`; \}\>; `cancelProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `cancelProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `changeClusterMode`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `changeId`: `string`; `plannedChanges`: `object`[]; \}\>; `changeClusterModeAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `changeId`: `string`; `plannedChanges`: `object`[]; \}\>; `clearAuthCache`(...`a`): `void`; `completeJob`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `completeUserTask`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `configure`(...`a`): `void`; `correlateMessage`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `messageKey`: `string`; `processInstanceKey`: `string`; `tenantId`: `string`; \}\>; `createAdminUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `email`: `string` \| `null`; `name`: `string` \| `null`; `username`: `string`; \}\>; `createAgentInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `agentInstanceKey`: `string`; `createdHistory`: `object`[]; \}\>; `createAuthorization`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `authorizationKey`: `string`; \}\>; `createDeployment`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `decisionRequirements`: `object`[]; `decisions`: `object`[]; `deploymentKey`: `string`; `deployments`: `object`[]; `forms`: `object`[]; `processes`: `object`[]; `resources`: `object`[]; `tenantId`: `string`; \}\>; `createDocument`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `camunda.document.type`: `"camunda"`; `contentHash`: `string` \| `null`; `documentId`: `string`; `metadata`: \{ `contentType`: `string`; `customProperties`: \{ \[`key`: `string`\]: `unknown`; \}; `expiresAt`: `string` \| `null`; `fileName`: `string`; `processDefinitionId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessDefinitionId"`; \} \| `null`; `processInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `size`: `number`; \}; `storeId`: `string`; \}\>; `createDocumentLink`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `expiresAt`: `string`; `url`: `string`; \}\>; `createDocuments`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `createdDocuments`: `object`[]; `failedDocuments`: `object`[]; \}\>; `createElementInstanceVariables`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `createGlobalClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `createGlobalTaskListener`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `afterNonGlobal?`: `boolean`; `eventTypes`: [`GlobalTaskListenerEventTypeEnum`](../type-aliases/GlobalTaskListenerEventTypeEnum.md)[]; `id`: `string`; `priority?`: `number`; `retries?`: `number`; `source`: [`GlobalListenerSourceEnum`](../type-aliases/GlobalListenerSourceEnum.md); `type?`: `string`; \}\>; `createGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `groupId`: `string`; `name`: `string`; \}\>; `createJobWorker`(...`a`): \{ `activeJobs`: `number`; `name`: `string`; `stopped`: `boolean`; `start`(...`a`): `void`; `stop`(...`a`): `void`; `stopGracefully`(...`a`): `Promise`\<\{ `remainingJobs`: `number`; `timedOut`: `boolean`; \}\>; \}; `createMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `claimName`: `string`; `claimValue`: `string`; `mappingRuleId`: `string`; `name`: `string`; \}\>; `createProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `businessId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"BusinessId"`; \} \| `null`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processDefinitionVersion`: `number`; `processInstanceKey`: `string`; `tags`: `string`[]; `tenantId`: `string`; `variables`: \{ \[`key`: `string`\]: `unknown`; \}; \}\>; `createRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `roleId`: `string`; \}\>; `createTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `tenantId`: `string`; \}\>; `createTenantClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `createThreadedJobWorker`(...`a`): \{ `activeJobs`: `number`; `busyThreads`: `number`; `name`: `string`; `poolSize`: `number`; `ready`: `Promise`\<`void`\>; `stopped`: `boolean`; `start`(...`a`): `void`; `stop`(...`a`): `void`; `stopGracefully`(...`a`): `Promise`\<\{ `remainingJobs`: `number`; `timedOut`: `boolean`; \}\>; \}; `createUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `email`: `string` \| `null`; `name`: `string` \| `null`; `username`: `string`; \}\>; `deleteAuthorization`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteDecisionInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteDecisionInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `deleteDocument`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteGlobalClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteGlobalTaskListener`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteHistoryBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteHistoryBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `deleteResource`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperation`: \| \{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \} \| `null`; `resourceKey`: `string`; \}\>; `deleteRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteRuntimeBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteRuntimeBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteRuntimeBackupState`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteRuntimeBackupStateAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteTenantClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deleteUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `deployResourcesFromFiles`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `decisionRequirements`: `object`[]; `decisions`: `object`[]; `deploymentKey`: `string`; `deployments`: `object`[]; `forms`: `object`[]; `processes`: `object`[]; `resources`: `object`[]; `tenantId`: `string`; \}\>; `emitSupportLogPreamble`(...`a`): `void`; `evaluateConditionals`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `conditionalEvaluationKey`: `string`; `processInstances`: `object`[]; `tenantId`: `string`; \}\>; `evaluateDecision`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `decisionDefinitionId`: `string`; `decisionDefinitionKey`: `string`; `decisionDefinitionName`: `string`; `decisionDefinitionVersion`: `number`; `decisionEvaluationKey`: `string`; `decisionInstanceKey`: `string`; `decisionRequirementsId`: `string`; `decisionRequirementsKey`: `string`; `evaluatedDecisions`: `object`[]; `failedDecisionDefinitionId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionDefinitionId"`; \} \| `null`; `failureMessage`: `string` \| `null`; `output`: `string`; `tenantId`: `string`; \}\>; `evaluateExpression`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `expression`: `string`; `referencedSecrets`: `object`[]; `result`: `unknown`; `warnings`: `object`[]; \}\>; `failJob`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `forceAuthRefresh`(...`a`): `Promise`\<`string` \| `undefined`\>; `getAgentDefinition`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `agentDefinitionKey`: `string`; `agentType`: [`AgentDefinitionTypeEnum`](../type-aliases/AgentDefinitionTypeEnum.md); `elementId`: `string`; `name`: `string`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processDefinitionVersion`: `number`; `processDefinitionVersionTag`: `string` \| `null`; `tenantId`: `string`; \}\>; `getAgentInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `agentDefinitionKey`: `string`; `agentInstanceKey`: `string`; `completionDate`: `string` \| `null`; `creationDate`: `string`; `definition`: \{ `model`: `string`; `provider`: `string`; `systemPrompt`: ( \| \{ `contentType`: `"TEXT"`; `text`: `string`; \} \| \{ `contentType`: `"DOCUMENT"`; `documentReference`: \{ `camunda.document.type`: `"camunda"`; `contentHash`: `string` \| `null`; `documentId`: `string`; `metadata`: \{ `contentType`: `string`; `customProperties`: \{ \[`key`: ...\]: ...; \}; `expiresAt`: ... \| ...; `fileName`: `string`; `processDefinitionId`: ... \| ...; `processInstanceKey`: ... \| ...; `size`: `number`; \}; `storeId`: `string`; \}; \} \| \{ `contentType`: `"OBJECT"`; `object`: `unknown`; \})[]; \}; `elementId`: `string`; `elementInstanceKeys`: `string`[]; `lastUpdatedDate`: `string`; `limits`: \{ `maxModelCalls`: `number`; `maxTokens`: `number`; `maxToolCalls`: `number`; \}; `metrics`: \{ `cacheCreationTokenCount`: `number`; `cacheReadTokenCount`: `number`; `inputTokens`: `number`; `modelCalls`: `number`; `outputTokens`: `number`; `reasoningTokenCount`: `number`; `toolCalls`: `number`; \}; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processDefinitionVersion`: `number`; `processDefinitionVersionTag`: `string` \| `null`; `processInstanceKey`: `string`; `rootProcessInstanceKey`: `string`; `status`: [`AgentInstanceStatusEnum`](../type-aliases/AgentInstanceStatusEnum.md); `tenantId`: `string`; `tools`: `object`[]; \}\>; `getAuditLog`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `actorId`: `string` \| `null`; `actorType`: \| [`AuditLogActorTypeEnum`](../type-aliases/AuditLogActorTypeEnum.md) \| `null`; `agentElementId`: `string` \| `null`; `auditLogKey`: `string`; `batchOperationKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"BatchOperationKey"`; \} \| `null`; `batchOperationType`: \| [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md) \| `null`; `category`: [`AuditLogCategoryEnum`](../type-aliases/AuditLogCategoryEnum.md); `decisionDefinitionId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionDefinitionId"`; \} \| `null`; `decisionDefinitionKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionDefinitionKey"`; \} \| `null`; `decisionEvaluationKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionEvaluationKey"`; \} \| `null`; `decisionRequirementsId`: `string` \| `null`; `decisionRequirementsKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionRequirementsKey"`; \} \| `null`; `deploymentKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DeploymentKey"`; \} \| `null`; `elementInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ElementInstanceKey"`; \} \| `null`; `entityDescription`: `string` \| `null`; `entityKey`: `string`; `entityType`: [`AuditLogEntityTypeEnum`](../type-aliases/AuditLogEntityTypeEnum.md); `formKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"FormKey"`; \} \| `null`; `inboundChannelToolName`: `string` \| `null`; `inboundChannelType`: `string` \| `null`; `jobKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"JobKey"`; \} \| `null`; `operationType`: [`AuditLogOperationTypeEnum`](../type-aliases/AuditLogOperationTypeEnum.md); `processDefinitionId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessDefinitionId"`; \} \| `null`; `processDefinitionKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessDefinitionKey"`; \} \| `null`; `processInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `relatedEntityKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"AuditLogEntityKey"`; \} \| `null`; `relatedEntityType`: \| [`AuditLogEntityTypeEnum`](../type-aliases/AuditLogEntityTypeEnum.md) \| `null`; `resourceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessDefinitionKey"`; \} \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionRequirementsKey"`; \} \| \{ \[`key`: `number`\]: `string`; `__brand`: `"DecisionDefinitionKey"`; \} \| \{ \[`key`: `number`\]: `string`; `__brand`: `"FormKey"`; \} \| `null`; `result`: [`AuditLogResultEnum`](../type-aliases/AuditLogResultEnum.md); `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `tenantId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"TenantId"`; \} \| `null`; `timestamp`: `string`; `userTaskKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"UserTaskKey"`; \} \| `null`; \}\>; `getAuthentication`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `authorizedComponents`: `string`[]; `c8Links`: \{ \[`key`: `string`\]: `string`; \}; `canLogout`: `boolean`; `displayName`: `string` \| `null`; `email`: `string` \| `null`; `groups`: `string`[]; `roles`: `string`[]; `salesPlanType`: `string` \| `null`; `tenants`: `object`[]; `username`: `string`; \}\>; `getAuthHeaders`(...`a`): `Promise`\<\{ \[`key`: `string`\]: `string`; \}\>; `getAuthorization`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `authorizationKey`: `string`; `ownerId`: `string`; `ownerType`: [`OwnerTypeEnum`](../type-aliases/OwnerTypeEnum.md); `permissionTypes`: [`PermissionTypeEnum`](../type-aliases/PermissionTypeEnum.md)[]; `resourceId`: `string` \| `null`; `resourcePropertyName`: `string` \| `null`; `resourceType`: [`ResourceTypeEnum`](../type-aliases/ResourceTypeEnum.md); \}\>; `getBackpressureState`(...`a`): \| \{ `backoffMs`: `number`; `consecutive`: `number`; `permitsCurrent`: `number`; `permitsMax`: `number` \| `null`; `severity`: [`BackpressureSeverity`](../type-aliases/BackpressureSeverity.md); `waiters`: `number`; \} \| \{ `consecutive`: `number`; `permitsCurrent`: `number`; `permitsMax`: `null`; `severity`: `string`; `waiters`: `number`; \}; `getBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `actorId`: `string` \| `null`; `actorType`: \| [`AuditLogActorTypeEnum`](../type-aliases/AuditLogActorTypeEnum.md) \| `null`; `batchOperationKey`: `string`; `batchOperationType`: \| [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md) \| `null`; `endDate`: `string` \| `null`; `errors`: `object`[]; `operationsCompletedCount`: `number`; `operationsFailedCount`: `number`; `operationsTotalCount`: `number`; `startDate`: `string` \| `null`; `state`: [`BatchOperationStateEnum`](../type-aliases/BatchOperationStateEnum.md); \}\>; `getClusterExportingStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `status`: [`ExportingStatusCode`](../type-aliases/ExportingStatusCode.md); \}\>; `getClusterRebalance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `lastCompletedRebalance`: \| \{ `finishedAt`: `string`; `partitions`: `object`[]; `rebalanceId`: `number`; `result`: `"COMPLETED"` \| `"FAILED"` \| `"CANCELLED"`; `startedAt`: `string`; \} \| `null`; `partitions`: `object`[]; `runningRebalance`: \| \{ `cancelRequested`: `boolean`; `dryRun`: `boolean`; `partitions`: `object`[]; `rebalanceId`: `number`; `startedAt`: `string`; \} \| `null`; `state`: `"BALANCED"` \| `"BALANCING"` \| `"UNBALANCED"`; \}\>; `getClusterStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `status`: `"HEALTHY"` \| `"DEGRADED"` \| `"DOWN"`; \}\>; `getClusterTopology`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `brokers`: `object`[]; `clusterId`: `string` \| `null`; `clusterSize`: `number`; `gatewayVersion`: `string` \| `null`; `physicalTenants`: `object`[]; \}\>; `getClusterUpgradeStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `status`: `"UNKNOWN"` \| `"MIGRATED"` \| `"MIGRATION_IN_PROGRESS"`; \}\>; `getConfig`(...`a`): \{ `__raw`: \{ \[`key`: `string`\]: `string` \| `undefined`; \}; `auth`: \{ `basic?`: \{ `password?`: `string`; `username?`: `string`; \}; `strategy`: [`AuthStrategy`](../type-aliases/AuthStrategy.md); \}; `backpressure`: \{ `decayQuietMs`: `number`; `enabled`: `boolean`; `floor`: `number`; `healthyRecoveryMultiplier`: `number`; `initialMax`: `number`; `maxWaiters`: `number`; `observeOnly`: `boolean`; `profile`: `string`; `recoveryIntervalMs`: `number`; `recoveryStep`: `number`; `severeFactor`: `number`; `severeThreshold`: `number`; `softFactor`: `number`; `unlimitedAfterHealthyMs`: `number`; \}; `defaultTenantId`: `string`; `eventual?`: \{ `pollDefaultMs`: `number`; \}; `httpRetry`: \{ `baseDelayMs`: `number`; `maxAttempts`: `number`; `maxDelayMs`: `number`; \}; `logLevel`: `"trace"` \| `"error"` \| `"silent"` \| `"warn"` \| `"info"` \| `"debug"`; `mtls?`: \{ `ca?`: `string`; `caPath?`: `string`; `cert?`: `string`; `certPath?`: `string`; `key?`: `string`; `keyPassphrase?`: `string`; `keyPath?`: `string`; \}; `oauth`: \{ `cacheDir?`: `string`; `clientId?`: `string`; `clientSecret?`: `string`; `grantType`: `string`; `oauthUrl`: `string`; `retry`: \{ `baseDelayMs`: `number`; `max`: `number`; \}; `scope?`: `string`; `timeoutMs`: `number`; \}; `restAddress`: `string`; `supportLog?`: \{ `enabled`: `boolean`; `filePath`: `string`; \}; `telemetry?`: \{ `correlation`: `boolean`; `log`: `boolean`; \}; `tokenAudience`: `string`; `validation`: \{ `raw`: `string`; `req`: [`ValidationMode`](../type-aliases/ValidationMode.md); `res`: [`ValidationMode`](../type-aliases/ValidationMode.md); \}; `workerDefaults?`: \{ `jobTimeoutMs?`: `number`; `maxParallelJobs?`: `number`; `pollTimeoutMs?`: `number`; `startupJitterMaxSeconds?`: `number`; `workerName?`: `string`; \}; \}; `getDecisionDefinition`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `decisionDefinitionId`: `string`; `decisionDefinitionKey`: `string`; `decisionRequirementsId`: `string`; `decisionRequirementsKey`: `string`; `decisionRequirementsName`: `string`; `decisionRequirementsVersion`: `number`; `name`: `string`; `tenantId`: `string`; `version`: `number`; \}\>; `getDecisionDefinitionXml`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\>; `getDecisionInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `businessId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"BusinessId"`; \} \| `null`; `decisionDefinitionId`: `string`; `decisionDefinitionKey`: `string`; `decisionDefinitionName`: `string`; `decisionDefinitionType`: [`DecisionDefinitionTypeEnum`](../type-aliases/DecisionDefinitionTypeEnum.md); `decisionDefinitionVersion`: `number`; `decisionEvaluationInstanceKey`: `string`; `decisionEvaluationKey`: `string`; `elementInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ElementInstanceKey"`; \} \| `null`; `evaluatedInputs`: `object`[]; `evaluationDate`: `string`; `evaluationFailure`: `string` \| `null`; `matchedRules`: `object`[]; `processDefinitionKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessDefinitionKey"`; \} \| `null`; `processInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `result`: `string`; `rootDecisionDefinitionKey`: `string`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `state`: [`DecisionInstanceStateEnum`](../type-aliases/DecisionInstanceStateEnum.md); `tenantId`: `string`; \}\>; `getDecisionRequirements`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `decisionRequirementsId`: `string`; `decisionRequirementsKey`: `string`; `decisionRequirementsName`: `string`; `resourceName`: `string`; `tenantId`: `string`; `version`: `number`; \}\>; `getDecisionRequirementsXml`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\>; `getDocument`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ \}\>; `getElementInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `elementId`: `string`; `elementInstanceKey`: `string`; `elementName`: `string`; `endDate`: `string` \| `null`; `hasIncident`: `boolean`; `incidentKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"IncidentKey"`; \} \| `null`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processInstanceKey`: `string`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `startDate`: `string`; `state`: [`ElementInstanceStateEnum`](../type-aliases/ElementInstanceStateEnum.md); `tenantId`: `string`; `type`: \| `"UNKNOWN"` \| `"USER_TASK"` \| `"UNSPECIFIED"` \| `"PROCESS"` \| `"SUB_PROCESS"` \| `"EVENT_SUB_PROCESS"` \| `"AD_HOC_SUB_PROCESS"` \| `"AD_HOC_SUB_PROCESS_INNER_INSTANCE"` \| `"START_EVENT"` \| `"INTERMEDIATE_CATCH_EVENT"` \| `"INTERMEDIATE_THROW_EVENT"` \| `"BOUNDARY_EVENT"` \| `"END_EVENT"` \| `"SERVICE_TASK"` \| `"RECEIVE_TASK"` \| `"MANUAL_TASK"` \| `"TASK"` \| `"EXCLUSIVE_GATEWAY"` \| `"INCLUSIVE_GATEWAY"` \| `"PARALLEL_GATEWAY"` \| `"EVENT_BASED_GATEWAY"` \| `"SEQUENCE_FLOW"` \| `"MULTI_INSTANCE_BODY"` \| `"CALL_ACTIVITY"` \| `"BUSINESS_RULE_TASK"` \| `"SCRIPT_TASK"` \| `"SEND_TASK"`; \}\>; `getErrorMode`(...`a`): `"throw"` \| `"result"`; `getExportingStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `status`: [`ExportingStatusCode`](../type-aliases/ExportingStatusCode.md); \}\>; `getFormByKey`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `formId`: `string`; `formKey`: `string`; `schema`: `string`; `tenantId`: `string`; `version`: `number`; \}\>; `getGlobalClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `getGlobalJobStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `completed`: \{ `count`: `number`; `lastUpdatedAt`: `string` \| `null`; \}; `created`: \{ `count`: `number`; `lastUpdatedAt`: `string` \| `null`; \}; `failed`: \{ `count`: `number`; `lastUpdatedAt`: `string` \| `null`; \}; `isIncomplete`: `boolean`; \}\>; `getGlobalTaskListener`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `afterNonGlobal?`: `boolean`; `eventTypes`: [`GlobalTaskListenerEventTypeEnum`](../type-aliases/GlobalTaskListenerEventTypeEnum.md)[]; `id`: `string`; `priority?`: `number`; `retries?`: `number`; `source`: [`GlobalListenerSourceEnum`](../type-aliases/GlobalListenerSourceEnum.md); `type?`: `string`; \}\>; `getGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `groupId`: `string`; `name`: `string`; \}\>; `getHistoryBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `details`: `object`[]; `failureReason`: `string` \| `null`; `state`: [`HistoryBackupStateCode`](../type-aliases/HistoryBackupStateCode.md); \}\>; `getHistoryBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `physicalTenants`: `object`[]; \}\>; `getIncident`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `creationTime`: `string`; `elementId`: `string`; `elementInstanceKey`: `string`; `errorMessage`: `string`; `errorType`: [`IncidentErrorTypeEnum`](../type-aliases/IncidentErrorTypeEnum.md); `incidentKey`: `string`; `jobKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"JobKey"`; \} \| `null`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processInstanceKey`: `string`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `state`: [`IncidentStateEnum`](../type-aliases/IncidentStateEnum.md); `tenantId`: `string`; \}\>; `getJobErrorStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getJobTimeSeriesStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getJobTypeStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getJobWorkerStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getLicense`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `expiresAt`: `string` \| `null`; `isCommercial`: `boolean`; `licenseType`: `string`; `validLicense`: `boolean`; \}\>; `getMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `claimName`: `string`; `claimValue`: `string`; `mappingRuleId`: `string`; `name`: `string`; \}\>; `getProcessDefinition`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `hasStartForm`: `boolean`; `name`: `string` \| `null`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `resourceName`: `string`; `state`: `"ACTIVE"` \| `"DRAINING"` \| `"DELETED"`; `tenantId`: `string`; `version`: `number`; `versionTag`: `string` \| `null`; \}\>; `getProcessDefinitionInstanceStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getProcessDefinitionInstanceVersionStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getProcessDefinitionMessageSubscriptionStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getProcessDefinitionStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; \}\>; `getProcessDefinitionXml`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`string`\>; `getProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `businessId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"BusinessId"`; \} \| `null`; `endDate`: `string` \| `null`; `hasIncident`: `boolean`; `parentElementInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ElementInstanceKey"`; \} \| `null`; `parentProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processDefinitionName`: `string` \| `null`; `processDefinitionVersion`: `number`; `processDefinitionVersionTag`: `string` \| `null`; `processInstanceKey`: `string`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `startDate`: `string`; `state`: [`ProcessInstanceStateEnum`](../type-aliases/ProcessInstanceStateEnum.md); `suspendedDate`: `string` \| `null`; `tags`: `string`[]; `tenantId`: `string`; \}\>; `getProcessInstanceCallHierarchy`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`object`[]\>; `getProcessInstanceSequenceFlows`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; \}\>; `getProcessInstanceStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; \}\>; `getProcessInstanceStatisticsByDefinition`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getProcessInstanceStatisticsByError`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `getProcessInstanceWaitStateStatistics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; \}\>; `getResource`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `resourceId`: `string`; `resourceKey`: `string`; `resourceName`: `string`; `tenantId`: `string`; `version`: `number`; `versionTag`: `string` \| `null`; \}\>; `getResourceContent`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ \[`key`: `string`\]: `unknown`; \}\>; `getResourceContentBinary`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ \}\>; `getRestoreStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `brokers`: `object`[]; `changeId`: `string`; `startedAt`: `string` \| `null`; `status`: `"COMPLETED"` \| `"FAILED"` \| `"IN_PROGRESS"` \| `"CANCELLED"`; \}\>; `getRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `roleId`: `string`; \}\>; `getRuntimeBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `details`: `object`[]; `failureReason`: `string` \| `null`; `state`: [`StateCode`](../type-aliases/StateCode.md); \}\>; `getRuntimeBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `failureReason`: `string` \| `null`; `physicalTenants`: `object`[]; `state`: [`StateCode`](../type-aliases/StateCode.md); \}\>; `getRuntimeBackupState`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupStates`: `object`[]; `checkpointStates`: `object`[]; `ranges`: `object`[]; \}\>; `getRuntimeBackupStateAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `physicalTenants`: `object`[]; \}\>; `getStartProcessForm`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\< \| `void` \| \{ `formId`: `string`; `formKey`: `string`; `schema`: `string`; `tenantId`: `string`; `version`: `number`; \}\>; `getStatus`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `getSystemConfiguration`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `authentication`: \{ `canLogout`: `boolean`; `isCamundaGroupsEnabled`: `boolean`; `isLoginDelegated`: `boolean`; \}; `cloud`: \{ `stage`: [`CloudStage`](../type-aliases/CloudStage.md) \| `null`; \}; `components`: \{ `active`: [`WebappComponent`](../type-aliases/WebappComponent.md)[]; \}; `deployment`: \{ `isMultiTenancyEnabled`: `boolean`; `isTenantsApiEnabled`: `boolean`; `maxRequestSize`: `number`; \}; `jobMetrics`: \{ `enabled`: `boolean`; `exportInterval`: `string`; `maxJobTypeLength`: `number`; `maxTenantIdLength`: `number`; `maxUniqueKeys`: `number`; `maxWorkerNameLength`: `number`; \}; \}\>; `getTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `tenantId`: `string`; \}\>; `getTenantClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `getTopology`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `brokers`: `object`[]; `clusterId`: `string` \| `null`; `clusterSize`: `number`; `gatewayVersion`: `string`; `lastCompletedChangeId`: `string`; `partitionsCount`: `number`; `replicationFactor`: `number`; \}\>; `getUsageMetrics`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `activeTenants`: `number`; `assignees`: `number`; `decisionInstances`: `number`; `processInstances`: `number`; `tenants`: \{ \[`key`: `string`\]: `object`; \}; \}\>; `getUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `email`: `string` \| `null`; `name`: `string` \| `null`; `username`: `string`; \}\>; `getUserTask`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `assignee`: `string` \| `null`; `businessId`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"BusinessId"`; \} \| `null`; `candidateGroups`: `string`[]; `candidateUsers`: `string`[]; `completionDate`: `string` \| `null`; `creationDate`: `string`; `customHeaders`: \{ \[`key`: `string`\]: `string`; \}; `dueDate`: `string` \| `null`; `elementId`: `string`; `elementInstanceKey`: `string`; `externalFormReference`: `string` \| `null`; `followUpDate`: `string` \| `null`; `formKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"FormKey"`; \} \| `null`; `isSuspended`: `boolean`; `name`: `string` \| `null`; `priority`: `number`; `processDefinitionId`: `string`; `processDefinitionKey`: `string`; `processDefinitionVersion`: `number`; `processInstanceKey`: `string`; `processName`: `string` \| `null`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `state`: [`UserTaskStateEnum`](../type-aliases/UserTaskStateEnum.md); `tags`: `string`[]; `tenantId`: `string`; `userTaskKey`: `string`; \}\>; `getUserTaskForm`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\< \| `void` \| \{ `formId`: `string`; `formKey`: `string`; `schema`: `string`; `tenantId`: `string`; `version`: `number`; \}\>; `getVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `name`: `string`; `processInstanceKey`: `string`; `rootProcessInstanceKey`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"ProcessInstanceKey"`; \} \| `null`; `scopeKey`: `string`; `tenantId`: `string`; `value`: `string`; `variableKey`: `string`; \}\>; `getWorkers`(...`a`): `any`[]; `listHistoryBackups`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`object`[]\>; `listHistoryBackupsAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`object`[]\>; `listRuntimeBackups`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`object`[]\>; `listRuntimeBackupsAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`object`[]\>; `listSecrets`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `references`: `string`[]; \}\>; `logger`(...`a`): \{ `code`(...`a`): `void`; `debug`(...`a`): `void`; `error`(...`a`): `void`; `info`(...`a`): `void`; `level`(...`a`): [`LogLevel`](../../logger/type-aliases/LogLevel.md); `scope`(...`a`): \{ level: () =\> LogLevel; setLevel: (level: LogLevel) =\> void; setTransport: (t?: ((e: \{ level: LogLevel; scope: string; ts: number; args: any\[\]; code?: string \| undefined; data?: any; \}) =\> void) \| undefined) =\> void; ... 7 more ...; code: (level: LogLevel, code: string, msg: string, data?: any) =\> void; \}; `setLevel`(...`a`): `void`; `setTransport`(...`a`): `void`; `silly`(...`a`): `void`; `trace`(...`a`): `void`; `warn`(...`a`): `void`; \}; `migrateProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `migrateProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `modifyProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `modifyProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `onAuthHeaders`(...`a`): `void`; `pauseClusterExporting`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `pauseExporting`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `pinClock`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `publishMessage`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `messageKey`: `string`; `tenantId`: `string`; \}\>; `resetClock`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resolveIncident`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resolveIncidentsBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `resolveProcessInstanceIncidents`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `resolveSecrets`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `errors`: `object`[]; `resolved`: `object`[]; \}\>; `restore`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `changeId`: `string`; `plannedChanges`: `object`[]; \}\>; `restoreAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `changeId`: `string`; `plannedChanges`: `object`[]; \}\>; `resumeBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resumeClusterExporting`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resumeExporting`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resumeProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `resumeProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `searchAgentDefinitions`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchAgentInstanceHistory`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchAgentInstances`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchAuditLogs`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchAuthorizations`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchBatchOperationItems`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchBatchOperations`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchClientsForGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchClientsForRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchClientsForTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchClusterVariables`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchCorrelatedMessageSubscriptions`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchDecisionDefinitions`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchDecisionInstances`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchDecisionRequirements`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchElementInstanceIncidents`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchElementInstances`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchElementInstanceWaitStates`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchGlobalTaskListeners`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchGroupIdsForTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchGroups`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchGroupsForRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchIncidents`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchJobs`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchMappingRulesForGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchMappingRulesForRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchMappingRulesForTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchMessageSubscriptions`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchOwnAuthorizations`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `authorizationsEnabled`: `boolean`; `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchProcessDefinitions`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchProcessDefinitionVariableNames`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchProcessInstanceIncidents`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchProcessInstances`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchResources`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchRoles`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchRolesForGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchRolesForTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchTenants`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUsers`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUsersForGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUsersForRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUsersForTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUserTaskAuditLogs`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUserTaskEffectiveVariables`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUserTasks`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchUserTaskVariables`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchVariables`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `items`: `object`[]; `page`: \{ `endCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"EndCursor"`; \} \| `null`; `hasMoreTotalItems`: `boolean`; `startCursor`: \| \{ \[`key`: `number`\]: `string`; `__brand`: `"StartCursor"`; \} \| `null`; `totalItems`: `number`; \}; \}\>; `searchVariablesAsDto`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `raw`: \{ \[`key`: `string`\]: `unknown`; \}; `get`(...`a`): `unknown`; `has`(...`a`): `boolean`; `validate`(...`a`): \{ \[`key`: `string`\]: `unknown`; \}; \}\>; `stopAllWorkers`(...`a`): `void`; `suspendBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `suspendProcessInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `suspendProcessInstancesBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `syncRuntimeBackupState`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupStates`: `object`[]; `checkpointStates`: `object`[]; `ranges`: `object`[]; \}\>; `syncRuntimeBackupStateAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `physicalTenants`: `object`[]; \}\>; `takeHistoryBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `scheduledSnapshots`: `string`[]; \}\>; `takeHistoryBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; `physicalTenants`: `object`[]; \}\>; `takeRuntimeBackup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `backupId`: `number`; \}\>; `takeRuntimeBackupAsClusterAdmin`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `physicalTenants`: `object`[]; \}\>; `throwJobError`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `triggerClusterRebalance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `lastCompletedRebalance`: \| \{ `finishedAt`: `string`; `partitions`: `object`[]; `rebalanceId`: `number`; `result`: `"COMPLETED"` \| `"FAILED"` \| `"CANCELLED"`; `startedAt`: `string`; \} \| `null`; `partitions`: `object`[]; `runningRebalance`: \| \{ `cancelRequested`: `boolean`; `dryRun`: `boolean`; `partitions`: `object`[]; `rebalanceId`: `number`; `startedAt`: `string`; \} \| `null`; `state`: `"BALANCED"` \| `"BALANCING"` \| `"UNBALANCED"`; \}\>; `unassignClientFromGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignClientFromTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignGroupFromTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignMappingRuleFromGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignMappingRuleFromTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignRoleFromClient`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignRoleFromGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignRoleFromMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignRoleFromTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignRoleFromUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignUserFromGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignUserFromTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `unassignUserTask`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `updateAgentInstance`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `createdHistory`: `object`[]; \}\>; `updateAuthorization`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `updateGlobalClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `updateGlobalTaskListener`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `afterNonGlobal?`: `boolean`; `eventTypes`: [`GlobalTaskListenerEventTypeEnum`](../type-aliases/GlobalTaskListenerEventTypeEnum.md)[]; `id`: `string`; `priority?`: `number`; `retries?`: `number`; `source`: [`GlobalListenerSourceEnum`](../type-aliases/GlobalListenerSourceEnum.md); `type?`: `string`; \}\>; `updateGroup`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `groupId`: `string`; `name`: `string`; \}\>; `updateJob`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `updateJobsBatchOperation`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `batchOperationKey`: `string`; `batchOperationType`: [`BatchOperationTypeEnum`](../type-aliases/BatchOperationTypeEnum.md); \}\>; `updateMappingRule`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `claimName`: `string`; `claimValue`: `string`; `mappingRuleId`: `string`; `name`: `string`; \}\>; `updateRole`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `roleId`: `string`; \}\>; `updateTenant`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `description`: `string` \| `null`; `name`: `string`; `tenantId`: `string`; \}\>; `updateTenantClusterVariable`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `kind`: [`ClusterVariableKindEnum`](../type-aliases/ClusterVariableKindEnum.md); `metadata`: \{ \[`key`: `string`\]: `string` \| `number`; \}; `name`: `string`; `scope`: [`ClusterVariableScopeEnum`](../type-aliases/ClusterVariableScopeEnum.md); `tenantId`: `string` \| `null`; `value`: `string`; \}\>; `updateUser`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<\{ `email`: `string` \| `null`; `name`: `string` \| `null`; `username`: `string`; \}\>; `updateUserTask`(...`a`): [`CancelablePromise`](../interfaces/CancelablePromise.md)\<`void`\>; `withCorrelation`(...`a`): `Promise`\<`unknown`\>; \}\> --- ## Function: createCamundaResultClient() ```ts function createCamundaResultClient(options?): CamundaResultClient; ``` **`Experimental`** This feature is under development and is not guaranteed to be fully tested or stable. ## Parameters ### options? [`CamundaOptions`](../interfaces/CamundaOptions.md) ## Returns [`CamundaResultClient`](../type-aliases/CamundaResultClient.md) ## Description Factory returning a proxy that mirrors the CamundaClient surface but never throws. All async returning methods (Promise or CancelablePromise) are wrapped into Promise>. Synchronous utility methods (e.g. logger(), getConfig()) are passed through unchanged. --- ## Function: createEngineClock() ```ts function createEngineClock(target, options?): EngineClock; ``` A clock bound to the engine's own clock, so client cadence and engine time advance together. This is the point of the whole exercise. The engine has been pinnable for a long time (`PUT /clock`), but the SDK's poll loops ran on the platform timer, so the two were decoupled: you could pin the engine and the worker would still poll on real time. A worker waiting on something that never becomes ready burned real seconds inside a test that was otherwise deterministic. Here `sleep` does not wait — it moves the engine forward by the requested duration and returns. A poll loop therefore _drives_ engine time rather than racing it, and a test that would have taken a real minute finishes as fast as the requests complete. Intended for tests and embedded scenarios that own the engine. Pinning is global to the cluster, so never point one of these at an environment shared with anything else. `target` must be a client that is _not_ itself configured with this clock. The client's HTTP retry sleeps on its injected clock, so a self-referential setup would have a failed `pinClock` back off through `sleep`, which issues another `pinClock`, and so on. ## Parameters ### target [`EngineClockTarget`](../interfaces/EngineClockTarget.md) ### options? #### start? `number` ## Returns [`EngineClock`](../interfaces/EngineClock.md) --- ## Function: createLiveClock() ```ts function createLiveClock(source?): Clock; ``` The live clock: the platform clock, made non-decreasing and self-correcting. This is the single place the SDK runtime is allowed to read ambient time or use a platform timer. Everything else takes a `Clock`. Ruling 2a requires three properties together, and the C# pilot shipped three implementations that each satisfied only two: - **Never decreases.** Wall clocks step backwards (NTP correction, VM resume, manual change), and a deadline measured across a backward step waits longer than asked. - **Keeps advancing immediately after a step.** Clamping to a high-water mark satisfies the first property but freezes logical time for the _whole_ duration of the correction, so an hour-long step adds an hour to every deadline in flight — the very damage the rule exists to prevent. - **Converges back.** Absorbing the step into a permanent offset satisfies the first two but leaves reported time ahead of true time forever, so any comparison against a server-supplied absolute time is wrong for the life of the process. A backward step is therefore absorbed and then repaid gradually out of forward progress, the way NTP slews rather than steps. ## Parameters ### source? () => `number` injectable purely so the slew behaviour itself is testable; production callers use the default. Called through rather than captured, so a test that swaps the global `Date` (fake timers) still drives the shared `liveClock`. ## Returns [`Clock`](../interfaces/Clock.md) --- ## Function: createSeededRandom() ```ts function createSeededRandom(seed): SeededRandom; ``` A deterministic source for tests: the same seed yields the same draws on every run, and in every Camunda SDK. SplitMix64, taking the top 53 bits of each output. Specified by the cross-SDK contract rather than borrowed from the platform, so a seed reproduces the same jitter in any SDK. ## Parameters ### seed `number` \| `bigint` ## Returns [`SeededRandom`](../interfaces/SeededRandom.md) --- ## Function: createTestClock() ```ts function createTestClock(options?): TestClock; ``` A deterministic clock for tests: virtual time, so poll loops and backoff settle without burning real time. Exists so nobody hand-rolls one. Every ad-hoc clock this replaced got some clause of the contract wrong — most often settling `sleep` in a microtask, which spins any caller that reschedules itself on resolution. See #478. With `autoAdvance` (the default) a sleep settles itself on the next macrotask, having moved time to its wake point; the SDK's loops make progress without the test driving them. Set it to `false` to hold every sleep until `advance()` releases it, which is what you want when asserting on the state _between_ two waits. ## Parameters ### options? #### autoAdvance? `boolean` #### start? `number` ## Returns [`TestClock`](../interfaces/TestClock.md) --- ## Function: isErr() ```ts function isErr(r): r is { error: E; ok: false }; ``` ## Type Parameters ### T `T` ### E `E` ## Parameters ### r [`Result`](../type-aliases/Result.md)\<`T`, `E`\> ## Returns `r is { error: E; ok: false }` --- ## Function: isOk() ```ts function isOk(r): r is { ok: true; value: T }; ``` ## Type Parameters ### T `T` ### E `E` ## Parameters ### r [`Result`](../type-aliases/Result.md)\<`T`, `E`\> ## Returns `r is { ok: true; value: T }` --- ## Function: isPresentWhenUnsupportedError() ```ts function isPresentWhenUnsupportedError(e): e is PresentWhenUnsupportedError; ``` Discriminates the terminal dependent-presence guard error. A worker poll loop uses this to stop instead of rescheduling: the fault is a server/contract mismatch, not a transient transport error, so exponential backoff would loop forever. ## Parameters ### e `unknown` ## Returns `e is PresentWhenUnsupportedError` --- ## Function: isSdkError() ```ts function isSdkError(e): e is SdkError; ``` ## Parameters ### e `unknown` ## Returns `e is SdkError` --- ## Function: nextPageRequest() ```ts function nextPageRequest(body, response, mode?): TBody | null; ``` Compute the next request body from the previous body + response, or `null` when no further page exists. Pure — the async generator is built on top of it. ## Type Parameters ### TItem `TItem` ### TBody `TBody` _extends_ [`SearchBody`](../type-aliases/SearchBody.md) ## Parameters ### body `TBody` ### response [`SearchResponse`](../interfaces/SearchResponse.md)\<`TItem`\> ### mode? [`PaginationMode`](../type-aliases/PaginationMode.md) = `'auto'` ## Returns `TBody` \| `null` --- ## Function: paginate() ```ts function paginate(fetchPage, body, opts?): Paginator; ``` Wrap a search operation as a lazy, cancelable async stream. ## Type Parameters ### TItem `TItem` ### TBody `TBody` _extends_ [`SearchBody`](../type-aliases/SearchBody.md) ## Parameters ### fetchPage [`FetchPage`](../type-aliases/FetchPage.md)\<`TItem`, `TBody`\> ### body `TBody` ### opts? [`PaginateOptions`](../interfaces/PaginateOptions.md) = `{}` ## Returns [`Paginator`](../interfaces/Paginator.md)\<`TItem`\> ## Example const p = paginate((b, s) => searchProcessInstances(b, { ... }), body); for await (const pi of p.items()) { ... } // item-by-item for await (const page of p.pages()) { ... } // page-by-page --- ## Function: seededRandomFromEnv() ```ts function seededRandomFromEnv(env?): SeededRandom; ``` A [SeededRandom](../interfaces/SeededRandom.md) seeded from `CAMUNDA_TEST_SEED` when it is set, otherwise from a fresh random seed. Report its seed on failure, and set the variable to it to replay the run. Only an unset variable means "absent": any other value that is not an unsigned 64-bit decimal integer throws rather than silently replacing the seed being replayed. ## Parameters ### env? `Record`\<`string`, `string` \| `undefined`\> = `...` ## Returns [`SeededRandom`](../interfaces/SeededRandom.md) --- ## Function: variableNamesFromSchema() ```ts function variableNamesFromSchema(schema): string[]; ``` The declared variable names, in declaration order. These key the `name $in [...]` filter. Guards against non-schema inputs (e.g. a JS caller, or an `any` cast) so the failure is a clear, actionable error rather than an opaque `Cannot read properties of undefined` deep in paging. ## Parameters ### schema [`AnyVariableSchema`](../type-aliases/AnyVariableSchema.md) ## Returns `string`[] --- ## index ## Classes - [CamundaClientBase](classes/CamundaClientBase.md) - [CamundaValidationError](classes/CamundaValidationError.md) - [CancelError](classes/CancelError.md) - [EventualConsistencyTimeoutError](classes/EventualConsistencyTimeoutError.md) - [TypedVariablesError](classes/TypedVariablesError.md) - [VariableCollector](classes/VariableCollector.md) - [VariableDeserializationError](classes/VariableDeserializationError.md) - [VariableMap](classes/VariableMap.md) - [VariableScopeCollisionError](classes/VariableScopeCollisionError.md) ## Interfaces - [CamundaConfig](interfaces/CamundaConfig.md) - [CamundaOptions](interfaces/CamundaOptions.md) - [CancelablePromise](interfaces/CancelablePromise.md) - [Clock](interfaces/Clock.md) - [CreateLoggerOptions](interfaces/CreateLoggerOptions.md) - [EngineClock](interfaces/EngineClock.md) - [EngineClockTarget](interfaces/EngineClockTarget.md) - [EnrichedActivatedJob](interfaces/EnrichedActivatedJob.md) - [ExtendedDeploymentResult](interfaces/ExtendedDeploymentResult.md) - [HttpRetryPolicy](interfaces/HttpRetryPolicy.md) - [JobWorker](interfaces/JobWorker.md) - [JobWorkerConfig](interfaces/JobWorkerConfig.md) - [OperationOptions](interfaces/OperationOptions.md) - [PaginateOptions](interfaces/PaginateOptions.md) - [Paginator](interfaces/Paginator.md) - [PresentWhenUnsupportedError](interfaces/PresentWhenUnsupportedError.md) - [RandomSource](interfaces/RandomSource.md) - [SearchPageRequest](interfaces/SearchPageRequest.md) - [SearchPageResponse](interfaces/SearchPageResponse.md) - [SearchPaginateOptions](interfaces/SearchPaginateOptions.md) - [SearchResponse](interfaces/SearchResponse.md) - [SeededRandom](interfaces/SeededRandom.md) - [SupportLogger](interfaces/SupportLogger.md) - [TelemetryHooks](interfaces/TelemetryHooks.md) - [TestClock](interfaces/TestClock.md) - [ThreadedJobWorker](interfaces/ThreadedJobWorker.md) - [ThreadedJobWorkerConfig](interfaces/ThreadedJobWorkerConfig.md) - [ThreadPool](interfaces/ThreadPool.md) - [TypedVariableItem](interfaces/TypedVariableItem.md) - [TypedVariablePage](interfaces/TypedVariablePage.md) ## Type Aliases - [ActivateAdHocSubProcessActivitiesData](type-aliases/ActivateAdHocSubProcessActivitiesData.md) - [ActivateAdHocSubProcessActivitiesError](type-aliases/ActivateAdHocSubProcessActivitiesError.md) - [ActivateAdHocSubProcessActivitiesErrors](type-aliases/ActivateAdHocSubProcessActivitiesErrors.md) - [activateAdHocSubProcessActivitiesInput](type-aliases/activateAdHocSubProcessActivitiesInput.md) - [ActivateAdHocSubProcessActivitiesResponse](type-aliases/ActivateAdHocSubProcessActivitiesResponse.md) - [ActivateAdHocSubProcessActivitiesResponses](type-aliases/ActivateAdHocSubProcessActivitiesResponses.md) - [ActivatedJobResult](type-aliases/ActivatedJobResult.md) - [ActivatedJobResultWithJobLeaseToken](type-aliases/ActivatedJobResultWithJobLeaseToken.md) - [ActivatedJobResultWithoutJobLeaseToken](type-aliases/ActivatedJobResultWithoutJobLeaseToken.md) - [ActivateJobsData](type-aliases/ActivateJobsData.md) - [ActivateJobsError](type-aliases/ActivateJobsError.md) - [ActivateJobsErrors](type-aliases/ActivateJobsErrors.md) - [activateJobsInput](type-aliases/activateJobsInput.md) - [ActivateJobsResponse](type-aliases/ActivateJobsResponse.md) - [ActivateJobsResponses](type-aliases/ActivateJobsResponses.md) - [AdHocSubProcessActivateActivitiesInstruction](type-aliases/AdHocSubProcessActivateActivitiesInstruction.md) - [AdHocSubProcessActivateActivityReference](type-aliases/AdHocSubProcessActivateActivityReference.md) - [AdvancedActorTypeFilter](type-aliases/AdvancedActorTypeFilter.md) - [AdvancedAgentDefinitionKeyFilter](type-aliases/AdvancedAgentDefinitionKeyFilter.md) - [AdvancedAgentDefinitionTypeFilter](type-aliases/AdvancedAgentDefinitionTypeFilter.md) - [AdvancedAgentHistoryItemKeyFilter](type-aliases/AdvancedAgentHistoryItemKeyFilter.md) - [AdvancedAgentInstanceHistoryCommitStatusFilter](type-aliases/AdvancedAgentInstanceHistoryCommitStatusFilter.md) - [AdvancedAgentInstanceHistoryRoleFilter](type-aliases/AdvancedAgentInstanceHistoryRoleFilter.md) - [AdvancedAgentInstanceKeyFilter](type-aliases/AdvancedAgentInstanceKeyFilter.md) - [AdvancedAgentInstanceStatusFilter](type-aliases/AdvancedAgentInstanceStatusFilter.md) - [AdvancedAuditLogEntityKeyFilter](type-aliases/AdvancedAuditLogEntityKeyFilter.md) - [AdvancedAuditLogKeyFilter](type-aliases/AdvancedAuditLogKeyFilter.md) - [AdvancedBatchOperationItemStateFilter](type-aliases/AdvancedBatchOperationItemStateFilter.md) - [AdvancedBatchOperationStateFilter](type-aliases/AdvancedBatchOperationStateFilter.md) - [AdvancedBatchOperationTypeFilter](type-aliases/AdvancedBatchOperationTypeFilter.md) - [AdvancedCategoryFilter](type-aliases/AdvancedCategoryFilter.md) - [AdvancedClusterVariableKindFilter](type-aliases/AdvancedClusterVariableKindFilter.md) - [AdvancedClusterVariableScopeFilter](type-aliases/AdvancedClusterVariableScopeFilter.md) - [AdvancedDateTimeFilter](type-aliases/AdvancedDateTimeFilter.md) - [AdvancedDecisionDefinitionKeyFilter](type-aliases/AdvancedDecisionDefinitionKeyFilter.md) - [AdvancedDecisionEvaluationInstanceKeyFilter](type-aliases/AdvancedDecisionEvaluationInstanceKeyFilter.md) - [AdvancedDecisionEvaluationKeyFilter](type-aliases/AdvancedDecisionEvaluationKeyFilter.md) - [AdvancedDecisionInstanceStateFilter](type-aliases/AdvancedDecisionInstanceStateFilter.md) - [AdvancedDecisionRequirementsKeyFilter](type-aliases/AdvancedDecisionRequirementsKeyFilter.md) - [AdvancedDeploymentKeyFilter](type-aliases/AdvancedDeploymentKeyFilter.md) - [AdvancedElementIdFilter](type-aliases/AdvancedElementIdFilter.md) - [AdvancedElementInstanceKeyFilter](type-aliases/AdvancedElementInstanceKeyFilter.md) - [AdvancedElementInstanceStateFilter](type-aliases/AdvancedElementInstanceStateFilter.md) - [AdvancedEntityTypeFilter](type-aliases/AdvancedEntityTypeFilter.md) - [AdvancedFormKeyFilter](type-aliases/AdvancedFormKeyFilter.md) - [AdvancedGlobalListenerSourceFilter](type-aliases/AdvancedGlobalListenerSourceFilter.md) - [AdvancedGlobalTaskListenerEventTypeFilter](type-aliases/AdvancedGlobalTaskListenerEventTypeFilter.md) - [AdvancedIncidentErrorTypeFilter](type-aliases/AdvancedIncidentErrorTypeFilter.md) - [AdvancedIncidentStateFilter](type-aliases/AdvancedIncidentStateFilter.md) - [AdvancedIntegerFilter](type-aliases/AdvancedIntegerFilter.md) - [AdvancedJobKeyFilter](type-aliases/AdvancedJobKeyFilter.md) - [AdvancedJobKindFilter](type-aliases/AdvancedJobKindFilter.md) - [AdvancedJobListenerEventTypeFilter](type-aliases/AdvancedJobListenerEventTypeFilter.md) - [AdvancedJobStateFilter](type-aliases/AdvancedJobStateFilter.md) - [AdvancedMessageSubscriptionKeyFilter](type-aliases/AdvancedMessageSubscriptionKeyFilter.md) - [AdvancedMessageSubscriptionStateFilter](type-aliases/AdvancedMessageSubscriptionStateFilter.md) - [AdvancedMessageSubscriptionTypeFilter](type-aliases/AdvancedMessageSubscriptionTypeFilter.md) - [AdvancedMetadataValueFilter](type-aliases/AdvancedMetadataValueFilter.md) - [AdvancedOperationTypeFilter](type-aliases/AdvancedOperationTypeFilter.md) - [AdvancedProcessDefinitionIdFilter](type-aliases/AdvancedProcessDefinitionIdFilter.md) - [AdvancedProcessDefinitionKeyFilter](type-aliases/AdvancedProcessDefinitionKeyFilter.md) - [AdvancedProcessInstanceKeyFilter](type-aliases/AdvancedProcessInstanceKeyFilter.md) - [AdvancedProcessInstanceStateFilter](type-aliases/AdvancedProcessInstanceStateFilter.md) - [AdvancedResourceKeyFilter](type-aliases/AdvancedResourceKeyFilter.md) - [AdvancedResultFilter](type-aliases/AdvancedResultFilter.md) - [AdvancedScopeKeyFilter](type-aliases/AdvancedScopeKeyFilter.md) - [AdvancedStringFilter](type-aliases/AdvancedStringFilter.md) - [AdvancedUserTaskStateFilter](type-aliases/AdvancedUserTaskStateFilter.md) - [AdvancedVariableKeyFilter](type-aliases/AdvancedVariableKeyFilter.md) - [AdvancedWaitStateElementTypeFilter](type-aliases/AdvancedWaitStateElementTypeFilter.md) - [AdvancedWaitStateTypeFilter](type-aliases/AdvancedWaitStateTypeFilter.md) - [AgentDefinitionFilter](type-aliases/AgentDefinitionFilter.md) - [AgentDefinitionKey](type-aliases/AgentDefinitionKey.md) - [AgentDefinitionKeyExactMatch](type-aliases/AgentDefinitionKeyExactMatch.md) - [AgentDefinitionKeyExactMatchWritable](type-aliases/AgentDefinitionKeyExactMatchWritable.md) - [AgentDefinitionKeyFilterProperty](type-aliases/AgentDefinitionKeyFilterProperty.md) - [AgentDefinitionKeyWritable](type-aliases/AgentDefinitionKeyWritable.md) - [AgentDefinitionResult](type-aliases/AgentDefinitionResult.md) - [AgentDefinitionSearchQuery](type-aliases/AgentDefinitionSearchQuery.md) - [AgentDefinitionSearchQueryResult](type-aliases/AgentDefinitionSearchQueryResult.md) - [AgentDefinitionSearchQuerySortRequest](type-aliases/AgentDefinitionSearchQuerySortRequest.md) - [AgentDefinitionTypeEnum](type-aliases/AgentDefinitionTypeEnum.md) - [AgentDefinitionTypeExactMatch](type-aliases/AgentDefinitionTypeExactMatch.md) - [AgentDefinitionTypeExactMatchWritable](type-aliases/AgentDefinitionTypeExactMatchWritable.md) - [AgentDefinitionTypeFilterProperty](type-aliases/AgentDefinitionTypeFilterProperty.md) - [AgentHistoryItemKey](type-aliases/AgentHistoryItemKey.md) - [AgentHistoryItemKeyExactMatch](type-aliases/AgentHistoryItemKeyExactMatch.md) - [AgentHistoryItemKeyExactMatchWritable](type-aliases/AgentHistoryItemKeyExactMatchWritable.md) - [AgentHistoryItemKeyFilterProperty](type-aliases/AgentHistoryItemKeyFilterProperty.md) - [AgentHistoryItemKeyWritable](type-aliases/AgentHistoryItemKeyWritable.md) - [AgentInstanceCreatedHistoryItem](type-aliases/AgentInstanceCreatedHistoryItem.md) - [AgentInstanceCreationRequest](type-aliases/AgentInstanceCreationRequest.md) - [AgentInstanceCreationResult](type-aliases/AgentInstanceCreationResult.md) - [AgentInstanceDefinitionResult](type-aliases/AgentInstanceDefinitionResult.md) - [AgentInstanceDocumentContent](type-aliases/AgentInstanceDocumentContent.md) - [AgentInstanceFilter](type-aliases/AgentInstanceFilter.md) - [AgentInstanceHistoryCommitStatusEnum](type-aliases/AgentInstanceHistoryCommitStatusEnum.md) - [AgentInstanceHistoryCommitStatusExactMatch](type-aliases/AgentInstanceHistoryCommitStatusExactMatch.md) - [AgentInstanceHistoryCommitStatusExactMatchWritable](type-aliases/AgentInstanceHistoryCommitStatusExactMatchWritable.md) - [AgentInstanceHistoryCommitStatusFilterProperty](type-aliases/AgentInstanceHistoryCommitStatusFilterProperty.md) - [AgentInstanceHistoryFilter](type-aliases/AgentInstanceHistoryFilter.md) - [AgentInstanceHistoryItem](type-aliases/AgentInstanceHistoryItem.md) - [AgentInstanceHistoryItemMetrics](type-aliases/AgentInstanceHistoryItemMetrics.md) - [AgentInstanceHistoryItemMetricsRequest](type-aliases/AgentInstanceHistoryItemMetricsRequest.md) - [AgentInstanceHistoryItemResult](type-aliases/AgentInstanceHistoryItemResult.md) - [AgentInstanceHistoryRoleEnum](type-aliases/AgentInstanceHistoryRoleEnum.md) - [AgentInstanceHistoryRoleExactMatch](type-aliases/AgentInstanceHistoryRoleExactMatch.md) - [AgentInstanceHistoryRoleExactMatchWritable](type-aliases/AgentInstanceHistoryRoleExactMatchWritable.md) - [AgentInstanceHistoryRoleFilterProperty](type-aliases/AgentInstanceHistoryRoleFilterProperty.md) - [AgentInstanceHistorySearchQuery](type-aliases/AgentInstanceHistorySearchQuery.md) - [AgentInstanceHistorySearchQueryResult](type-aliases/AgentInstanceHistorySearchQueryResult.md) - [AgentInstanceHistorySearchQuerySortRequest](type-aliases/AgentInstanceHistorySearchQuerySortRequest.md) - [AgentInstanceKey](type-aliases/AgentInstanceKey.md) - [AgentInstanceKeyExactMatch](type-aliases/AgentInstanceKeyExactMatch.md) - [AgentInstanceKeyExactMatchWritable](type-aliases/AgentInstanceKeyExactMatchWritable.md) - [AgentInstanceKeyFilterProperty](type-aliases/AgentInstanceKeyFilterProperty.md) - [AgentInstanceKeyWritable](type-aliases/AgentInstanceKeyWritable.md) - [AgentInstanceLimits](type-aliases/AgentInstanceLimits.md) - [AgentInstanceMessageContent](type-aliases/AgentInstanceMessageContent.md) - [AgentInstanceMessageContentTypeEnum](type-aliases/AgentInstanceMessageContentTypeEnum.md) - [AgentInstanceMetrics](type-aliases/AgentInstanceMetrics.md) - [AgentInstanceObjectContent](type-aliases/AgentInstanceObjectContent.md) - [AgentInstanceResult](type-aliases/AgentInstanceResult.md) - [AgentInstanceSearchQuery](type-aliases/AgentInstanceSearchQuery.md) - [AgentInstanceSearchQueryResult](type-aliases/AgentInstanceSearchQueryResult.md) - [AgentInstanceSearchQuerySortRequest](type-aliases/AgentInstanceSearchQuerySortRequest.md) - [AgentInstanceStatusEnum](type-aliases/AgentInstanceStatusEnum.md) - [AgentInstanceStatusExactMatch](type-aliases/AgentInstanceStatusExactMatch.md) - [AgentInstanceStatusExactMatchWritable](type-aliases/AgentInstanceStatusExactMatchWritable.md) - [AgentInstanceStatusFilterProperty](type-aliases/AgentInstanceStatusFilterProperty.md) - [AgentInstanceTextContent](type-aliases/AgentInstanceTextContent.md) - [AgentInstanceToolCall](type-aliases/AgentInstanceToolCall.md) - [AgentInstanceUpdateRequest](type-aliases/AgentInstanceUpdateRequest.md) - [AgentInstanceUpdateResult](type-aliases/AgentInstanceUpdateResult.md) - [AgentInstanceUpdateStatusEnum](type-aliases/AgentInstanceUpdateStatusEnum.md) - [AgentTool](type-aliases/AgentTool.md) - [AncestorScopeInstruction](type-aliases/AncestorScopeInstruction.md) - [AnyVariableSchema](type-aliases/AnyVariableSchema.md) - [AssignClientToGroupData](type-aliases/AssignClientToGroupData.md) - [AssignClientToGroupError](type-aliases/AssignClientToGroupError.md) - [AssignClientToGroupErrors](type-aliases/AssignClientToGroupErrors.md) - [assignClientToGroupInput](type-aliases/assignClientToGroupInput.md) - [AssignClientToGroupResponse](type-aliases/AssignClientToGroupResponse.md) - [AssignClientToGroupResponses](type-aliases/AssignClientToGroupResponses.md) - [AssignClientToTenantData](type-aliases/AssignClientToTenantData.md) - [AssignClientToTenantError](type-aliases/AssignClientToTenantError.md) - [AssignClientToTenantErrors](type-aliases/AssignClientToTenantErrors.md) - [assignClientToTenantInput](type-aliases/assignClientToTenantInput.md) - [AssignClientToTenantResponse](type-aliases/AssignClientToTenantResponse.md) - [AssignClientToTenantResponses](type-aliases/AssignClientToTenantResponses.md) - [AssignGroupToTenantData](type-aliases/AssignGroupToTenantData.md) - [AssignGroupToTenantError](type-aliases/AssignGroupToTenantError.md) - [AssignGroupToTenantErrors](type-aliases/AssignGroupToTenantErrors.md) - [assignGroupToTenantInput](type-aliases/assignGroupToTenantInput.md) - [AssignGroupToTenantResponse](type-aliases/AssignGroupToTenantResponse.md) - [AssignGroupToTenantResponses](type-aliases/AssignGroupToTenantResponses.md) - [AssignMappingRuleToGroupData](type-aliases/AssignMappingRuleToGroupData.md) - [AssignMappingRuleToGroupError](type-aliases/AssignMappingRuleToGroupError.md) - [AssignMappingRuleToGroupErrors](type-aliases/AssignMappingRuleToGroupErrors.md) - [assignMappingRuleToGroupInput](type-aliases/assignMappingRuleToGroupInput.md) - [AssignMappingRuleToGroupResponse](type-aliases/AssignMappingRuleToGroupResponse.md) - [AssignMappingRuleToGroupResponses](type-aliases/AssignMappingRuleToGroupResponses.md) - [AssignMappingRuleToTenantData](type-aliases/AssignMappingRuleToTenantData.md) - [AssignMappingRuleToTenantError](type-aliases/AssignMappingRuleToTenantError.md) - [AssignMappingRuleToTenantErrors](type-aliases/AssignMappingRuleToTenantErrors.md) - [assignMappingRuleToTenantInput](type-aliases/assignMappingRuleToTenantInput.md) - [AssignMappingRuleToTenantResponse](type-aliases/AssignMappingRuleToTenantResponse.md) - [AssignMappingRuleToTenantResponses](type-aliases/AssignMappingRuleToTenantResponses.md) - [AssignProcessInstanceBusinessIdData](type-aliases/AssignProcessInstanceBusinessIdData.md) - [AssignProcessInstanceBusinessIdError](type-aliases/AssignProcessInstanceBusinessIdError.md) - [AssignProcessInstanceBusinessIdErrors](type-aliases/AssignProcessInstanceBusinessIdErrors.md) - [assignProcessInstanceBusinessIdInput](type-aliases/assignProcessInstanceBusinessIdInput.md) - [AssignProcessInstanceBusinessIdResponse](type-aliases/AssignProcessInstanceBusinessIdResponse.md) - [AssignProcessInstanceBusinessIdResponses](type-aliases/AssignProcessInstanceBusinessIdResponses.md) - [AssignRoleToClientData](type-aliases/AssignRoleToClientData.md) - [AssignRoleToClientError](type-aliases/AssignRoleToClientError.md) - [AssignRoleToClientErrors](type-aliases/AssignRoleToClientErrors.md) - [assignRoleToClientInput](type-aliases/assignRoleToClientInput.md) - [AssignRoleToClientResponse](type-aliases/AssignRoleToClientResponse.md) - [AssignRoleToClientResponses](type-aliases/AssignRoleToClientResponses.md) - [AssignRoleToGroupData](type-aliases/AssignRoleToGroupData.md) - [AssignRoleToGroupError](type-aliases/AssignRoleToGroupError.md) - [AssignRoleToGroupErrors](type-aliases/AssignRoleToGroupErrors.md) - [assignRoleToGroupInput](type-aliases/assignRoleToGroupInput.md) - [AssignRoleToGroupResponse](type-aliases/AssignRoleToGroupResponse.md) - [AssignRoleToGroupResponses](type-aliases/AssignRoleToGroupResponses.md) - [AssignRoleToMappingRuleData](type-aliases/AssignRoleToMappingRuleData.md) - [AssignRoleToMappingRuleError](type-aliases/AssignRoleToMappingRuleError.md) - [AssignRoleToMappingRuleErrors](type-aliases/AssignRoleToMappingRuleErrors.md) - [assignRoleToMappingRuleInput](type-aliases/assignRoleToMappingRuleInput.md) - [AssignRoleToMappingRuleResponse](type-aliases/AssignRoleToMappingRuleResponse.md) - [AssignRoleToMappingRuleResponses](type-aliases/AssignRoleToMappingRuleResponses.md) - [AssignRoleToTenantData](type-aliases/AssignRoleToTenantData.md) - [AssignRoleToTenantError](type-aliases/AssignRoleToTenantError.md) - [AssignRoleToTenantErrors](type-aliases/AssignRoleToTenantErrors.md) - [assignRoleToTenantInput](type-aliases/assignRoleToTenantInput.md) - [AssignRoleToTenantResponse](type-aliases/AssignRoleToTenantResponse.md) - [AssignRoleToTenantResponses](type-aliases/AssignRoleToTenantResponses.md) - [AssignRoleToUserData](type-aliases/AssignRoleToUserData.md) - [AssignRoleToUserError](type-aliases/AssignRoleToUserError.md) - [AssignRoleToUserErrors](type-aliases/AssignRoleToUserErrors.md) - [assignRoleToUserInput](type-aliases/assignRoleToUserInput.md) - [AssignRoleToUserResponse](type-aliases/AssignRoleToUserResponse.md) - [AssignRoleToUserResponses](type-aliases/AssignRoleToUserResponses.md) - [AssignUserTaskData](type-aliases/AssignUserTaskData.md) - [AssignUserTaskError](type-aliases/AssignUserTaskError.md) - [AssignUserTaskErrors](type-aliases/AssignUserTaskErrors.md) - [assignUserTaskInput](type-aliases/assignUserTaskInput.md) - [AssignUserTaskResponse](type-aliases/AssignUserTaskResponse.md) - [AssignUserTaskResponses](type-aliases/AssignUserTaskResponses.md) - [AssignUserToGroupData](type-aliases/AssignUserToGroupData.md) - [AssignUserToGroupError](type-aliases/AssignUserToGroupError.md) - [AssignUserToGroupErrors](type-aliases/AssignUserToGroupErrors.md) - [assignUserToGroupInput](type-aliases/assignUserToGroupInput.md) - [AssignUserToGroupResponse](type-aliases/AssignUserToGroupResponse.md) - [AssignUserToGroupResponses](type-aliases/AssignUserToGroupResponses.md) - [AssignUserToTenantData](type-aliases/AssignUserToTenantData.md) - [AssignUserToTenantError](type-aliases/AssignUserToTenantError.md) - [AssignUserToTenantErrors](type-aliases/AssignUserToTenantErrors.md) - [assignUserToTenantInput](type-aliases/assignUserToTenantInput.md) - [AssignUserToTenantResponse](type-aliases/AssignUserToTenantResponse.md) - [AssignUserToTenantResponses](type-aliases/AssignUserToTenantResponses.md) - [AuditLogActorTypeEnum](type-aliases/AuditLogActorTypeEnum.md) - [AuditLogActorTypeExactMatch](type-aliases/AuditLogActorTypeExactMatch.md) - [AuditLogActorTypeExactMatchWritable](type-aliases/AuditLogActorTypeExactMatchWritable.md) - [AuditLogActorTypeFilterProperty](type-aliases/AuditLogActorTypeFilterProperty.md) - [AuditLogCategoryEnum](type-aliases/AuditLogCategoryEnum.md) - [AuditLogEntityKey](type-aliases/AuditLogEntityKey.md) - [AuditLogEntityKeyExactMatch](type-aliases/AuditLogEntityKeyExactMatch.md) - [AuditLogEntityKeyExactMatchWritable](type-aliases/AuditLogEntityKeyExactMatchWritable.md) - [AuditLogEntityKeyFilterProperty](type-aliases/AuditLogEntityKeyFilterProperty.md) - [AuditLogEntityTypeEnum](type-aliases/AuditLogEntityTypeEnum.md) - [AuditLogFilter](type-aliases/AuditLogFilter.md) - [AuditLogKey](type-aliases/AuditLogKey.md) - [AuditLogKeyExactMatch](type-aliases/AuditLogKeyExactMatch.md) - [AuditLogKeyExactMatchWritable](type-aliases/AuditLogKeyExactMatchWritable.md) - [AuditLogKeyFilterProperty](type-aliases/AuditLogKeyFilterProperty.md) - [AuditLogKeyWritable](type-aliases/AuditLogKeyWritable.md) - [AuditLogOperationTypeEnum](type-aliases/AuditLogOperationTypeEnum.md) - [AuditLogResult](type-aliases/AuditLogResult.md) - [AuditLogResultEnum](type-aliases/AuditLogResultEnum.md) - [AuditLogResultExactMatch](type-aliases/AuditLogResultExactMatch.md) - [AuditLogResultExactMatchWritable](type-aliases/AuditLogResultExactMatchWritable.md) - [AuditLogResultFilterProperty](type-aliases/AuditLogResultFilterProperty.md) - [AuditLogSearchQueryRequest](type-aliases/AuditLogSearchQueryRequest.md) - [AuditLogSearchQueryResult](type-aliases/AuditLogSearchQueryResult.md) - [AuditLogSearchQuerySortRequest](type-aliases/AuditLogSearchQuerySortRequest.md) - [AuthenticationConfigurationResponse](type-aliases/AuthenticationConfigurationResponse.md) - [AuthorizationCreateResult](type-aliases/AuthorizationCreateResult.md) - [AuthorizationFilter](type-aliases/AuthorizationFilter.md) - [AuthorizationIdBasedRequest](type-aliases/AuthorizationIdBasedRequest.md) - [AuthorizationKey](type-aliases/AuthorizationKey.md) - [AuthorizationKeyWritable](type-aliases/AuthorizationKeyWritable.md) - [AuthorizationPropertyBasedRequest](type-aliases/AuthorizationPropertyBasedRequest.md) - [AuthorizationRequest](type-aliases/AuthorizationRequest.md) - [AuthorizationResult](type-aliases/AuthorizationResult.md) - [AuthorizationSearchQuery](type-aliases/AuthorizationSearchQuery.md) - [AuthorizationSearchQuerySortRequest](type-aliases/AuthorizationSearchQuerySortRequest.md) - [AuthorizationSearchResult](type-aliases/AuthorizationSearchResult.md) - [AuthStrategy](type-aliases/AuthStrategy.md) - [BackpressureSeverity](type-aliases/BackpressureSeverity.md) - [BackupId](type-aliases/BackupId.md) - [BackupIdPrefix](type-aliases/BackupIdPrefix.md) - [BackupInfo](type-aliases/BackupInfo.md) - [BackupInfoWritable](type-aliases/BackupInfoWritable.md) - [BackupType](type-aliases/BackupType.md) - [BaseProcessInstanceFilterFields](type-aliases/BaseProcessInstanceFilterFields.md) - [BaseWaitStateDetails](type-aliases/BaseWaitStateDetails.md) - [BasicStringFilter](type-aliases/BasicStringFilter.md) - [BasicStringFilterProperty](type-aliases/BasicStringFilterProperty.md) - [BatchOperationCreatedResult](type-aliases/BatchOperationCreatedResult.md) - [BatchOperationError](type-aliases/BatchOperationError.md) - [BatchOperationFilter](type-aliases/BatchOperationFilter.md) - [BatchOperationItemFilter](type-aliases/BatchOperationItemFilter.md) - [BatchOperationItemResponse](type-aliases/BatchOperationItemResponse.md) - [BatchOperationItemSearchQuery](type-aliases/BatchOperationItemSearchQuery.md) - [BatchOperationItemSearchQueryResult](type-aliases/BatchOperationItemSearchQueryResult.md) - [BatchOperationItemSearchQuerySortRequest](type-aliases/BatchOperationItemSearchQuerySortRequest.md) - [BatchOperationItemStateEnum](type-aliases/BatchOperationItemStateEnum.md) - [BatchOperationItemStateExactMatch](type-aliases/BatchOperationItemStateExactMatch.md) - [BatchOperationItemStateExactMatchWritable](type-aliases/BatchOperationItemStateExactMatchWritable.md) - [BatchOperationItemStateFilterProperty](type-aliases/BatchOperationItemStateFilterProperty.md) - [BatchOperationKey](type-aliases/BatchOperationKey.md) - [BatchOperationResponse](type-aliases/BatchOperationResponse.md) - [BatchOperationSearchQuery](type-aliases/BatchOperationSearchQuery.md) - [BatchOperationSearchQueryResult](type-aliases/BatchOperationSearchQueryResult.md) - [BatchOperationSearchQuerySortRequest](type-aliases/BatchOperationSearchQuerySortRequest.md) - [BatchOperationStateEnum](type-aliases/BatchOperationStateEnum.md) - [BatchOperationStateExactMatch](type-aliases/BatchOperationStateExactMatch.md) - [BatchOperationStateExactMatchWritable](type-aliases/BatchOperationStateExactMatchWritable.md) - [BatchOperationStateFilterProperty](type-aliases/BatchOperationStateFilterProperty.md) - [BatchOperationTypeEnum](type-aliases/BatchOperationTypeEnum.md) - [BatchOperationTypeExactMatch](type-aliases/BatchOperationTypeExactMatch.md) - [BatchOperationTypeExactMatchWritable](type-aliases/BatchOperationTypeExactMatchWritable.md) - [BatchOperationTypeFilterProperty](type-aliases/BatchOperationTypeFilterProperty.md) - [BroadcastSignalData](type-aliases/BroadcastSignalData.md) - [BroadcastSignalError](type-aliases/BroadcastSignalError.md) - [BroadcastSignalErrors](type-aliases/BroadcastSignalErrors.md) - [broadcastSignalInput](type-aliases/broadcastSignalInput.md) - [BroadcastSignalResponse](type-aliases/BroadcastSignalResponse.md) - [BroadcastSignalResponses](type-aliases/BroadcastSignalResponses.md) - [BrokerInfo](type-aliases/BrokerInfo.md) - [BusinessId](type-aliases/BusinessId.md) - [CamundaClient](type-aliases/CamundaClient.md) - [CamundaClientLoose](type-aliases/CamundaClientLoose.md) - [CamundaKey](type-aliases/CamundaKey.md) - [CamundaResultClient](type-aliases/CamundaResultClient.md) - [CamundaUserResult](type-aliases/CamundaUserResult.md) - [CancelBatchOperationData](type-aliases/CancelBatchOperationData.md) - [CancelBatchOperationError](type-aliases/CancelBatchOperationError.md) - [CancelBatchOperationErrors](type-aliases/CancelBatchOperationErrors.md) - [cancelBatchOperationInput](type-aliases/cancelBatchOperationInput.md) - [CancelBatchOperationResponse](type-aliases/CancelBatchOperationResponse.md) - [CancelBatchOperationResponses](type-aliases/CancelBatchOperationResponses.md) - [CancelClusterRebalanceData](type-aliases/CancelClusterRebalanceData.md) - [CancelClusterRebalanceError](type-aliases/CancelClusterRebalanceError.md) - [CancelClusterRebalanceErrors](type-aliases/CancelClusterRebalanceErrors.md) - [cancelClusterRebalanceInput](type-aliases/cancelClusterRebalanceInput.md) - [CancelClusterRebalanceResponse](type-aliases/CancelClusterRebalanceResponse.md) - [CancelClusterRebalanceResponses](type-aliases/CancelClusterRebalanceResponses.md) - [CancelProcessInstanceData](type-aliases/CancelProcessInstanceData.md) - [CancelProcessInstanceError](type-aliases/CancelProcessInstanceError.md) - [CancelProcessInstanceErrors](type-aliases/CancelProcessInstanceErrors.md) - [cancelProcessInstanceInput](type-aliases/cancelProcessInstanceInput.md) - [CancelProcessInstanceRequest](type-aliases/CancelProcessInstanceRequest.md) - [CancelProcessInstanceResponse](type-aliases/CancelProcessInstanceResponse.md) - [CancelProcessInstanceResponses](type-aliases/CancelProcessInstanceResponses.md) - [CancelProcessInstancesBatchOperationData](type-aliases/CancelProcessInstancesBatchOperationData.md) - [CancelProcessInstancesBatchOperationError](type-aliases/CancelProcessInstancesBatchOperationError.md) - [CancelProcessInstancesBatchOperationErrors](type-aliases/CancelProcessInstancesBatchOperationErrors.md) - [cancelProcessInstancesBatchOperationInput](type-aliases/cancelProcessInstancesBatchOperationInput.md) - [CancelProcessInstancesBatchOperationResponse](type-aliases/CancelProcessInstancesBatchOperationResponse.md) - [CancelProcessInstancesBatchOperationResponses](type-aliases/CancelProcessInstancesBatchOperationResponses.md) - [CategoryExactMatch](type-aliases/CategoryExactMatch.md) - [CategoryExactMatchWritable](type-aliases/CategoryExactMatchWritable.md) - [CategoryFilterProperty](type-aliases/CategoryFilterProperty.md) - [ChangeClusterModeAsClusterAdminData](type-aliases/ChangeClusterModeAsClusterAdminData.md) - [ChangeClusterModeAsClusterAdminError](type-aliases/ChangeClusterModeAsClusterAdminError.md) - [ChangeClusterModeAsClusterAdminErrors](type-aliases/ChangeClusterModeAsClusterAdminErrors.md) - [changeClusterModeAsClusterAdminInput](type-aliases/changeClusterModeAsClusterAdminInput.md) - [ChangeClusterModeAsClusterAdminResponse](type-aliases/ChangeClusterModeAsClusterAdminResponse.md) - [ChangeClusterModeAsClusterAdminResponses](type-aliases/ChangeClusterModeAsClusterAdminResponses.md) - [ChangeClusterModeData](type-aliases/ChangeClusterModeData.md) - [ChangeClusterModeError](type-aliases/ChangeClusterModeError.md) - [ChangeClusterModeErrors](type-aliases/ChangeClusterModeErrors.md) - [changeClusterModeInput](type-aliases/changeClusterModeInput.md) - [ChangeClusterModeResponse](type-aliases/ChangeClusterModeResponse.md) - [ChangeClusterModeResponses](type-aliases/ChangeClusterModeResponses.md) - [Changeset](type-aliases/Changeset.md) - [CheckpointId](type-aliases/CheckpointId.md) - [CheckpointType](type-aliases/CheckpointType.md) - [ClientId](type-aliases/ClientId.md) - [ClientOptions](type-aliases/ClientOptions.md) - [ClockPinRequest](type-aliases/ClockPinRequest.md) - [CloudConfigurationResponse](type-aliases/CloudConfigurationResponse.md) - [CloudStage](type-aliases/CloudStage.md) - [ClusterBalanceResponse](type-aliases/ClusterBalanceResponse.md) - [ClusterBrokerInfo](type-aliases/ClusterBrokerInfo.md) - [ClusterCompletedRebalance](type-aliases/ClusterCompletedRebalance.md) - [ClusterHistoryBackupInfo](type-aliases/ClusterHistoryBackupInfo.md) - [ClusterHistoryBackupInfoWritable](type-aliases/ClusterHistoryBackupInfoWritable.md) - [ClusterHistoryBackupTakeResult](type-aliases/ClusterHistoryBackupTakeResult.md) - [ClusterHistoryBackupTenantInfo](type-aliases/ClusterHistoryBackupTenantInfo.md) - [ClusterHistoryBackupTenantInfoWritable](type-aliases/ClusterHistoryBackupTenantInfoWritable.md) - [ClusterHistoryBackupTenantState](type-aliases/ClusterHistoryBackupTenantState.md) - [ClusterModeChangeOperation](type-aliases/ClusterModeChangeOperation.md) - [ClusterModeChangePlannedChange](type-aliases/ClusterModeChangePlannedChange.md) - [ClusterModeChangeResponse](type-aliases/ClusterModeChangeResponse.md) - [ClusterRebalance](type-aliases/ClusterRebalance.md) - [ClusterRebalanceOperationPartition](type-aliases/ClusterRebalanceOperationPartition.md) - [ClusterRebalancePartition](type-aliases/ClusterRebalancePartition.md) - [ClusterRebalanceRequest](type-aliases/ClusterRebalanceRequest.md) - [ClusterRestoreAwaitModeChangeOperation](type-aliases/ClusterRestoreAwaitModeChangeOperation.md) - [ClusterRestoreBrokerOperation](type-aliases/ClusterRestoreBrokerOperation.md) - [ClusterRestoreModeChangeOperation](type-aliases/ClusterRestoreModeChangeOperation.md) - [ClusterRestoreOperation](type-aliases/ClusterRestoreOperation.md) - [ClusterRestorePartitionOperation](type-aliases/ClusterRestorePartitionOperation.md) - [ClusterRestorePartitionRestoreOperation](type-aliases/ClusterRestorePartitionRestoreOperation.md) - [ClusterRestorePlannedChange](type-aliases/ClusterRestorePlannedChange.md) - [ClusterRestoreRequest](type-aliases/ClusterRestoreRequest.md) - [ClusterRestoreResponse](type-aliases/ClusterRestoreResponse.md) - [ClusterRunningRebalance](type-aliases/ClusterRunningRebalance.md) - [ClusterRuntimeBackupInfo](type-aliases/ClusterRuntimeBackupInfo.md) - [ClusterRuntimeBackupInfoWritable](type-aliases/ClusterRuntimeBackupInfoWritable.md) - [ClusterRuntimeBackupState](type-aliases/ClusterRuntimeBackupState.md) - [ClusterRuntimeBackupTakeOutcome](type-aliases/ClusterRuntimeBackupTakeOutcome.md) - [ClusterRuntimeBackupTakeResult](type-aliases/ClusterRuntimeBackupTakeResult.md) - [ClusterRuntimeBackupTenantInfo](type-aliases/ClusterRuntimeBackupTenantInfo.md) - [ClusterRuntimeBackupTenantInfoWritable](type-aliases/ClusterRuntimeBackupTenantInfoWritable.md) - [ClusterRuntimeBackupTenantState](type-aliases/ClusterRuntimeBackupTenantState.md) - [ClusterStatusResponse](type-aliases/ClusterStatusResponse.md) - [ClusterTakeHistoryBackupResponse](type-aliases/ClusterTakeHistoryBackupResponse.md) - [ClusterTakeRuntimeBackupResponse](type-aliases/ClusterTakeRuntimeBackupResponse.md) - [ClusterTopologyResponse](type-aliases/ClusterTopologyResponse.md) - [ClusterUpgradeStatusResponse](type-aliases/ClusterUpgradeStatusResponse.md) - [ClusterVariableKindEnum](type-aliases/ClusterVariableKindEnum.md) - [ClusterVariableKindExactMatch](type-aliases/ClusterVariableKindExactMatch.md) - [ClusterVariableKindExactMatchWritable](type-aliases/ClusterVariableKindExactMatchWritable.md) - [ClusterVariableKindFilterProperty](type-aliases/ClusterVariableKindFilterProperty.md) - [ClusterVariableName](type-aliases/ClusterVariableName.md) - [ClusterVariableResult](type-aliases/ClusterVariableResult.md) - [ClusterVariableResultBase](type-aliases/ClusterVariableResultBase.md) - [ClusterVariableScopeEnum](type-aliases/ClusterVariableScopeEnum.md) - [ClusterVariableScopeExactMatch](type-aliases/ClusterVariableScopeExactMatch.md) - [ClusterVariableScopeExactMatchWritable](type-aliases/ClusterVariableScopeExactMatchWritable.md) - [ClusterVariableScopeFilterProperty](type-aliases/ClusterVariableScopeFilterProperty.md) - [ClusterVariableSearchQueryFilterRequest](type-aliases/ClusterVariableSearchQueryFilterRequest.md) - [ClusterVariableSearchQueryRequest](type-aliases/ClusterVariableSearchQueryRequest.md) - [ClusterVariableSearchQueryResult](type-aliases/ClusterVariableSearchQueryResult.md) - [ClusterVariableSearchQuerySortRequest](type-aliases/ClusterVariableSearchQuerySortRequest.md) - [ClusterVariableSearchResult](type-aliases/ClusterVariableSearchResult.md) - [CompleteJobData](type-aliases/CompleteJobData.md) - [CompleteJobError](type-aliases/CompleteJobError.md) - [CompleteJobErrors](type-aliases/CompleteJobErrors.md) - [completeJobInput](type-aliases/completeJobInput.md) - [CompleteJobResponse](type-aliases/CompleteJobResponse.md) - [CompleteJobResponses](type-aliases/CompleteJobResponses.md) - [CompleteUserTaskData](type-aliases/CompleteUserTaskData.md) - [CompleteUserTaskError](type-aliases/CompleteUserTaskError.md) - [CompleteUserTaskErrors](type-aliases/CompleteUserTaskErrors.md) - [completeUserTaskInput](type-aliases/completeUserTaskInput.md) - [CompleteUserTaskResponse](type-aliases/CompleteUserTaskResponse.md) - [CompleteUserTaskResponses](type-aliases/CompleteUserTaskResponses.md) - [ComponentsConfigurationResponse](type-aliases/ComponentsConfigurationResponse.md) - [ConditionalEvaluationInstruction](type-aliases/ConditionalEvaluationInstruction.md) - [ConditionalEvaluationKey](type-aliases/ConditionalEvaluationKey.md) - [ConditionalEvaluationKeyWritable](type-aliases/ConditionalEvaluationKeyWritable.md) - [ConditionWaitStateDetails](type-aliases/ConditionWaitStateDetails.md) - [CorrelatedMessageSubscriptionFilter](type-aliases/CorrelatedMessageSubscriptionFilter.md) - [CorrelatedMessageSubscriptionResult](type-aliases/CorrelatedMessageSubscriptionResult.md) - [CorrelatedMessageSubscriptionSearchQuery](type-aliases/CorrelatedMessageSubscriptionSearchQuery.md) - [CorrelatedMessageSubscriptionSearchQueryResult](type-aliases/CorrelatedMessageSubscriptionSearchQueryResult.md) - [CorrelatedMessageSubscriptionSearchQuerySortRequest](type-aliases/CorrelatedMessageSubscriptionSearchQuerySortRequest.md) - [CorrelateMessageData](type-aliases/CorrelateMessageData.md) - [CorrelateMessageError](type-aliases/CorrelateMessageError.md) - [CorrelateMessageErrors](type-aliases/CorrelateMessageErrors.md) - [correlateMessageInput](type-aliases/correlateMessageInput.md) - [CorrelateMessageResponse](type-aliases/CorrelateMessageResponse.md) - [CorrelateMessageResponses](type-aliases/CorrelateMessageResponses.md) - [CreateAdminUserData](type-aliases/CreateAdminUserData.md) - [CreateAdminUserError](type-aliases/CreateAdminUserError.md) - [CreateAdminUserErrors](type-aliases/CreateAdminUserErrors.md) - [createAdminUserInput](type-aliases/createAdminUserInput.md) - [CreateAdminUserResponse](type-aliases/CreateAdminUserResponse.md) - [CreateAdminUserResponses](type-aliases/CreateAdminUserResponses.md) - [CreateAgentInstanceData](type-aliases/CreateAgentInstanceData.md) - [CreateAgentInstanceError](type-aliases/CreateAgentInstanceError.md) - [CreateAgentInstanceErrors](type-aliases/CreateAgentInstanceErrors.md) - [createAgentInstanceInput](type-aliases/createAgentInstanceInput.md) - [CreateAgentInstanceResponse](type-aliases/CreateAgentInstanceResponse.md) - [CreateAgentInstanceResponses](type-aliases/CreateAgentInstanceResponses.md) - [CreateAuthorizationData](type-aliases/CreateAuthorizationData.md) - [CreateAuthorizationError](type-aliases/CreateAuthorizationError.md) - [CreateAuthorizationErrors](type-aliases/CreateAuthorizationErrors.md) - [createAuthorizationInput](type-aliases/createAuthorizationInput.md) - [CreateAuthorizationResponse](type-aliases/CreateAuthorizationResponse.md) - [CreateAuthorizationResponses](type-aliases/CreateAuthorizationResponses.md) - [CreateClusterVariableRequest](type-aliases/CreateClusterVariableRequest.md) - [CreateDeploymentData](type-aliases/CreateDeploymentData.md) - [CreateDeploymentError](type-aliases/CreateDeploymentError.md) - [CreateDeploymentErrors](type-aliases/CreateDeploymentErrors.md) - [createDeploymentInput](type-aliases/createDeploymentInput.md) - [CreateDeploymentResponse](type-aliases/CreateDeploymentResponse.md) - [CreateDeploymentResponses](type-aliases/CreateDeploymentResponses.md) - [CreateDocumentData](type-aliases/CreateDocumentData.md) - [CreateDocumentError](type-aliases/CreateDocumentError.md) - [CreateDocumentErrors](type-aliases/CreateDocumentErrors.md) - [createDocumentInput](type-aliases/createDocumentInput.md) - [CreateDocumentLinkData](type-aliases/CreateDocumentLinkData.md) - [CreateDocumentLinkError](type-aliases/CreateDocumentLinkError.md) - [CreateDocumentLinkErrors](type-aliases/CreateDocumentLinkErrors.md) - [createDocumentLinkInput](type-aliases/createDocumentLinkInput.md) - [CreateDocumentLinkResponse](type-aliases/CreateDocumentLinkResponse.md) - [CreateDocumentLinkResponses](type-aliases/CreateDocumentLinkResponses.md) - [CreateDocumentResponse](type-aliases/CreateDocumentResponse.md) - [CreateDocumentResponses](type-aliases/CreateDocumentResponses.md) - [CreateDocumentsData](type-aliases/CreateDocumentsData.md) - [CreateDocumentsError](type-aliases/CreateDocumentsError.md) - [CreateDocumentsErrors](type-aliases/CreateDocumentsErrors.md) - [createDocumentsInput](type-aliases/createDocumentsInput.md) - [CreateDocumentsResponse](type-aliases/CreateDocumentsResponse.md) - [CreateDocumentsResponses](type-aliases/CreateDocumentsResponses.md) - [CreateElementInstanceVariablesData](type-aliases/CreateElementInstanceVariablesData.md) - [CreateElementInstanceVariablesError](type-aliases/CreateElementInstanceVariablesError.md) - [CreateElementInstanceVariablesErrors](type-aliases/CreateElementInstanceVariablesErrors.md) - [createElementInstanceVariablesInput](type-aliases/createElementInstanceVariablesInput.md) - [CreateElementInstanceVariablesResponse](type-aliases/CreateElementInstanceVariablesResponse.md) - [CreateElementInstanceVariablesResponses](type-aliases/CreateElementInstanceVariablesResponses.md) - [CreateGlobalClusterVariableData](type-aliases/CreateGlobalClusterVariableData.md) - [CreateGlobalClusterVariableError](type-aliases/CreateGlobalClusterVariableError.md) - [CreateGlobalClusterVariableErrors](type-aliases/CreateGlobalClusterVariableErrors.md) - [createGlobalClusterVariableInput](type-aliases/createGlobalClusterVariableInput.md) - [CreateGlobalClusterVariableResponse](type-aliases/CreateGlobalClusterVariableResponse.md) - [CreateGlobalClusterVariableResponses](type-aliases/CreateGlobalClusterVariableResponses.md) - [CreateGlobalTaskListenerData](type-aliases/CreateGlobalTaskListenerData.md) - [CreateGlobalTaskListenerError](type-aliases/CreateGlobalTaskListenerError.md) - [CreateGlobalTaskListenerErrors](type-aliases/CreateGlobalTaskListenerErrors.md) - [createGlobalTaskListenerInput](type-aliases/createGlobalTaskListenerInput.md) - [CreateGlobalTaskListenerRequest](type-aliases/CreateGlobalTaskListenerRequest.md) - [CreateGlobalTaskListenerResponse](type-aliases/CreateGlobalTaskListenerResponse.md) - [CreateGlobalTaskListenerResponses](type-aliases/CreateGlobalTaskListenerResponses.md) - [CreateGroupData](type-aliases/CreateGroupData.md) - [CreateGroupError](type-aliases/CreateGroupError.md) - [CreateGroupErrors](type-aliases/CreateGroupErrors.md) - [createGroupInput](type-aliases/createGroupInput.md) - [CreateGroupResponse](type-aliases/CreateGroupResponse.md) - [CreateGroupResponses](type-aliases/CreateGroupResponses.md) - [CreateMappingRuleData](type-aliases/CreateMappingRuleData.md) - [CreateMappingRuleError](type-aliases/CreateMappingRuleError.md) - [CreateMappingRuleErrors](type-aliases/CreateMappingRuleErrors.md) - [createMappingRuleInput](type-aliases/createMappingRuleInput.md) - [CreateMappingRuleResponse](type-aliases/CreateMappingRuleResponse.md) - [CreateMappingRuleResponses](type-aliases/CreateMappingRuleResponses.md) - [CreateProcessInstanceData](type-aliases/CreateProcessInstanceData.md) - [CreateProcessInstanceError](type-aliases/CreateProcessInstanceError.md) - [CreateProcessInstanceErrors](type-aliases/CreateProcessInstanceErrors.md) - [createProcessInstanceInput](type-aliases/createProcessInstanceInput.md) - [CreateProcessInstanceResponse](type-aliases/CreateProcessInstanceResponse.md) - [CreateProcessInstanceResponses](type-aliases/CreateProcessInstanceResponses.md) - [CreateProcessInstanceResult](type-aliases/CreateProcessInstanceResult.md) - [CreateRoleData](type-aliases/CreateRoleData.md) - [CreateRoleError](type-aliases/CreateRoleError.md) - [CreateRoleErrors](type-aliases/CreateRoleErrors.md) - [createRoleInput](type-aliases/createRoleInput.md) - [CreateRoleResponse](type-aliases/CreateRoleResponse.md) - [CreateRoleResponses](type-aliases/CreateRoleResponses.md) - [CreateTenantClusterVariableData](type-aliases/CreateTenantClusterVariableData.md) - [CreateTenantClusterVariableError](type-aliases/CreateTenantClusterVariableError.md) - [CreateTenantClusterVariableErrors](type-aliases/CreateTenantClusterVariableErrors.md) - [createTenantClusterVariableInput](type-aliases/createTenantClusterVariableInput.md) - [CreateTenantClusterVariableResponse](type-aliases/CreateTenantClusterVariableResponse.md) - [CreateTenantClusterVariableResponses](type-aliases/CreateTenantClusterVariableResponses.md) - [CreateTenantData](type-aliases/CreateTenantData.md) - [CreateTenantError](type-aliases/CreateTenantError.md) - [CreateTenantErrors](type-aliases/CreateTenantErrors.md) - [createTenantInput](type-aliases/createTenantInput.md) - [CreateTenantResponse](type-aliases/CreateTenantResponse.md) - [CreateTenantResponses](type-aliases/CreateTenantResponses.md) - [CreateUserData](type-aliases/CreateUserData.md) - [CreateUserError](type-aliases/CreateUserError.md) - [CreateUserErrors](type-aliases/CreateUserErrors.md) - [createUserInput](type-aliases/createUserInput.md) - [CreateUserResponse](type-aliases/CreateUserResponse.md) - [CreateUserResponses](type-aliases/CreateUserResponses.md) - [CursorBackwardPagination](type-aliases/CursorBackwardPagination.md) - [CursorForwardPagination](type-aliases/CursorForwardPagination.md) - [DateTimeFilterProperty](type-aliases/DateTimeFilterProperty.md) - [DecisionDefinitionFilter](type-aliases/DecisionDefinitionFilter.md) - [DecisionDefinitionId](type-aliases/DecisionDefinitionId.md) - [DecisionDefinitionKey](type-aliases/DecisionDefinitionKey.md) - [DecisionDefinitionKeyExactMatch](type-aliases/DecisionDefinitionKeyExactMatch.md) - [DecisionDefinitionKeyExactMatchWritable](type-aliases/DecisionDefinitionKeyExactMatchWritable.md) - [DecisionDefinitionKeyFilterProperty](type-aliases/DecisionDefinitionKeyFilterProperty.md) - [DecisionDefinitionKeyWritable](type-aliases/DecisionDefinitionKeyWritable.md) - [DecisionDefinitionResult](type-aliases/DecisionDefinitionResult.md) - [DecisionDefinitionSearchQuery](type-aliases/DecisionDefinitionSearchQuery.md) - [DecisionDefinitionSearchQueryResult](type-aliases/DecisionDefinitionSearchQueryResult.md) - [DecisionDefinitionSearchQuerySortRequest](type-aliases/DecisionDefinitionSearchQuerySortRequest.md) - [DecisionDefinitionTypeEnum](type-aliases/DecisionDefinitionTypeEnum.md) - [DecisionEvaluationById](type-aliases/DecisionEvaluationById.md) - [DecisionEvaluationByKey](type-aliases/DecisionEvaluationByKey.md) - [DecisionEvaluationInstanceKey](type-aliases/DecisionEvaluationInstanceKey.md) - [DecisionEvaluationInstanceKeyExactMatch](type-aliases/DecisionEvaluationInstanceKeyExactMatch.md) - [DecisionEvaluationInstanceKeyExactMatchWritable](type-aliases/DecisionEvaluationInstanceKeyExactMatchWritable.md) - [DecisionEvaluationInstanceKeyFilterProperty](type-aliases/DecisionEvaluationInstanceKeyFilterProperty.md) - [DecisionEvaluationInstruction](type-aliases/DecisionEvaluationInstruction.md) - [DecisionEvaluationKey](type-aliases/DecisionEvaluationKey.md) - [DecisionEvaluationKeyExactMatch](type-aliases/DecisionEvaluationKeyExactMatch.md) - [DecisionEvaluationKeyExactMatchWritable](type-aliases/DecisionEvaluationKeyExactMatchWritable.md) - [DecisionEvaluationKeyFilterProperty](type-aliases/DecisionEvaluationKeyFilterProperty.md) - [DecisionEvaluationKeyWritable](type-aliases/DecisionEvaluationKeyWritable.md) - [DecisionInstanceDeletionBatchOperationRequest](type-aliases/DecisionInstanceDeletionBatchOperationRequest.md) - [DecisionInstanceFilter](type-aliases/DecisionInstanceFilter.md) - [DecisionInstanceGetQueryResult](type-aliases/DecisionInstanceGetQueryResult.md) - [DecisionInstanceKey](type-aliases/DecisionInstanceKey.md) - [DecisionInstanceKeyWritable](type-aliases/DecisionInstanceKeyWritable.md) - [DecisionInstanceResult](type-aliases/DecisionInstanceResult.md) - [DecisionInstanceSearchQuery](type-aliases/DecisionInstanceSearchQuery.md) - [DecisionInstanceSearchQueryResult](type-aliases/DecisionInstanceSearchQueryResult.md) - [DecisionInstanceSearchQuerySortRequest](type-aliases/DecisionInstanceSearchQuerySortRequest.md) - [DecisionInstanceStateEnum](type-aliases/DecisionInstanceStateEnum.md) - [DecisionInstanceStateExactMatch](type-aliases/DecisionInstanceStateExactMatch.md) - [DecisionInstanceStateExactMatchWritable](type-aliases/DecisionInstanceStateExactMatchWritable.md) - [DecisionInstanceStateFilterProperty](type-aliases/DecisionInstanceStateFilterProperty.md) - [DecisionRequirementsFilter](type-aliases/DecisionRequirementsFilter.md) - [DecisionRequirementsKey](type-aliases/DecisionRequirementsKey.md) - [DecisionRequirementsKeyExactMatch](type-aliases/DecisionRequirementsKeyExactMatch.md) - [DecisionRequirementsKeyExactMatchWritable](type-aliases/DecisionRequirementsKeyExactMatchWritable.md) - [DecisionRequirementsKeyFilterProperty](type-aliases/DecisionRequirementsKeyFilterProperty.md) - [DecisionRequirementsKeyWritable](type-aliases/DecisionRequirementsKeyWritable.md) - [DecisionRequirementsResult](type-aliases/DecisionRequirementsResult.md) - [DecisionRequirementsSearchQuery](type-aliases/DecisionRequirementsSearchQuery.md) - [DecisionRequirementsSearchQueryResult](type-aliases/DecisionRequirementsSearchQueryResult.md) - [DecisionRequirementsSearchQuerySortRequest](type-aliases/DecisionRequirementsSearchQuerySortRequest.md) - [DeleteAuthorizationData](type-aliases/DeleteAuthorizationData.md) - [DeleteAuthorizationError](type-aliases/DeleteAuthorizationError.md) - [DeleteAuthorizationErrors](type-aliases/DeleteAuthorizationErrors.md) - [deleteAuthorizationInput](type-aliases/deleteAuthorizationInput.md) - [DeleteAuthorizationResponse](type-aliases/DeleteAuthorizationResponse.md) - [DeleteAuthorizationResponses](type-aliases/DeleteAuthorizationResponses.md) - [DeleteDecisionInstanceData](type-aliases/DeleteDecisionInstanceData.md) - [DeleteDecisionInstanceError](type-aliases/DeleteDecisionInstanceError.md) - [DeleteDecisionInstanceErrors](type-aliases/DeleteDecisionInstanceErrors.md) - [deleteDecisionInstanceInput](type-aliases/deleteDecisionInstanceInput.md) - [DeleteDecisionInstanceRequest](type-aliases/DeleteDecisionInstanceRequest.md) - [DeleteDecisionInstanceResponse](type-aliases/DeleteDecisionInstanceResponse.md) - [DeleteDecisionInstanceResponses](type-aliases/DeleteDecisionInstanceResponses.md) - [DeleteDecisionInstancesBatchOperationData](type-aliases/DeleteDecisionInstancesBatchOperationData.md) - [DeleteDecisionInstancesBatchOperationError](type-aliases/DeleteDecisionInstancesBatchOperationError.md) - [DeleteDecisionInstancesBatchOperationErrors](type-aliases/DeleteDecisionInstancesBatchOperationErrors.md) - [deleteDecisionInstancesBatchOperationInput](type-aliases/deleteDecisionInstancesBatchOperationInput.md) - [DeleteDecisionInstancesBatchOperationResponse](type-aliases/DeleteDecisionInstancesBatchOperationResponse.md) - [DeleteDecisionInstancesBatchOperationResponses](type-aliases/DeleteDecisionInstancesBatchOperationResponses.md) - [DeleteDocumentData](type-aliases/DeleteDocumentData.md) - [DeleteDocumentError](type-aliases/DeleteDocumentError.md) - [DeleteDocumentErrors](type-aliases/DeleteDocumentErrors.md) - [deleteDocumentInput](type-aliases/deleteDocumentInput.md) - [DeleteDocumentResponse](type-aliases/DeleteDocumentResponse.md) - [DeleteDocumentResponses](type-aliases/DeleteDocumentResponses.md) - [DeleteGlobalClusterVariableData](type-aliases/DeleteGlobalClusterVariableData.md) - [DeleteGlobalClusterVariableError](type-aliases/DeleteGlobalClusterVariableError.md) - [DeleteGlobalClusterVariableErrors](type-aliases/DeleteGlobalClusterVariableErrors.md) - [deleteGlobalClusterVariableInput](type-aliases/deleteGlobalClusterVariableInput.md) - [DeleteGlobalClusterVariableResponse](type-aliases/DeleteGlobalClusterVariableResponse.md) - [DeleteGlobalClusterVariableResponses](type-aliases/DeleteGlobalClusterVariableResponses.md) - [DeleteGlobalTaskListenerData](type-aliases/DeleteGlobalTaskListenerData.md) - [DeleteGlobalTaskListenerError](type-aliases/DeleteGlobalTaskListenerError.md) - [DeleteGlobalTaskListenerErrors](type-aliases/DeleteGlobalTaskListenerErrors.md) - [deleteGlobalTaskListenerInput](type-aliases/deleteGlobalTaskListenerInput.md) - [DeleteGlobalTaskListenerResponse](type-aliases/DeleteGlobalTaskListenerResponse.md) - [DeleteGlobalTaskListenerResponses](type-aliases/DeleteGlobalTaskListenerResponses.md) - [DeleteGroupData](type-aliases/DeleteGroupData.md) - [DeleteGroupError](type-aliases/DeleteGroupError.md) - [DeleteGroupErrors](type-aliases/DeleteGroupErrors.md) - [deleteGroupInput](type-aliases/deleteGroupInput.md) - [DeleteGroupResponse](type-aliases/DeleteGroupResponse.md) - [DeleteGroupResponses](type-aliases/DeleteGroupResponses.md) - [DeleteHistoryBackupAsClusterAdminData](type-aliases/DeleteHistoryBackupAsClusterAdminData.md) - [DeleteHistoryBackupAsClusterAdminError](type-aliases/DeleteHistoryBackupAsClusterAdminError.md) - [DeleteHistoryBackupAsClusterAdminErrors](type-aliases/DeleteHistoryBackupAsClusterAdminErrors.md) - [deleteHistoryBackupAsClusterAdminInput](type-aliases/deleteHistoryBackupAsClusterAdminInput.md) - [DeleteHistoryBackupAsClusterAdminResponse](type-aliases/DeleteHistoryBackupAsClusterAdminResponse.md) - [DeleteHistoryBackupAsClusterAdminResponses](type-aliases/DeleteHistoryBackupAsClusterAdminResponses.md) - [DeleteHistoryBackupData](type-aliases/DeleteHistoryBackupData.md) - [DeleteHistoryBackupError](type-aliases/DeleteHistoryBackupError.md) - [DeleteHistoryBackupErrors](type-aliases/DeleteHistoryBackupErrors.md) - [deleteHistoryBackupInput](type-aliases/deleteHistoryBackupInput.md) - [DeleteHistoryBackupResponse](type-aliases/DeleteHistoryBackupResponse.md) - [DeleteHistoryBackupResponses](type-aliases/DeleteHistoryBackupResponses.md) - [DeleteMappingRuleData](type-aliases/DeleteMappingRuleData.md) - [DeleteMappingRuleError](type-aliases/DeleteMappingRuleError.md) - [DeleteMappingRuleErrors](type-aliases/DeleteMappingRuleErrors.md) - [deleteMappingRuleInput](type-aliases/deleteMappingRuleInput.md) - [DeleteMappingRuleResponse](type-aliases/DeleteMappingRuleResponse.md) - [DeleteMappingRuleResponses](type-aliases/DeleteMappingRuleResponses.md) - [DeleteProcessInstanceData](type-aliases/DeleteProcessInstanceData.md) - [DeleteProcessInstanceError](type-aliases/DeleteProcessInstanceError.md) - [DeleteProcessInstanceErrors](type-aliases/DeleteProcessInstanceErrors.md) - [deleteProcessInstanceInput](type-aliases/deleteProcessInstanceInput.md) - [DeleteProcessInstanceRequest](type-aliases/DeleteProcessInstanceRequest.md) - [DeleteProcessInstanceResponse](type-aliases/DeleteProcessInstanceResponse.md) - [DeleteProcessInstanceResponses](type-aliases/DeleteProcessInstanceResponses.md) - [DeleteProcessInstancesBatchOperationData](type-aliases/DeleteProcessInstancesBatchOperationData.md) - [DeleteProcessInstancesBatchOperationError](type-aliases/DeleteProcessInstancesBatchOperationError.md) - [DeleteProcessInstancesBatchOperationErrors](type-aliases/DeleteProcessInstanc