> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.solvimon.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.solvimon.com/_mcp/server.

# Activate a workflow

POST https://test.api.solvimon.com/v{version}/workflows/{resourceIdOrReference}/activate

Transitions a workflow to ACTIVE so it can be matched by workflow trigger creation. Requires the WORKFLOW.UPDATE permission.

Reference: https://docs.solvimon.com/api-docs/configuration-api/workflows/post-workflows-by-resource-id-or-reference-activate

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://test.api.solvimon.com` (The TEST environment for our API, default)
- `https://api.solvimon.com` (The live environment for our API)

## Request

### Path parameters

- `version` (string, required, default: 1) — version
- `resourceIdOrReference` (string, required, default: ) — The ID or reference of the resource.

### Headers

- `x-platform-id` (string, optional) — Platform ID.

## Response

### 200

OK

- `object_type` (string, optional, nullable)
- `id` (string, optional, nullable)
- `name` (string, optional) — Name of the workflow.
- `description` (string, optional, nullable) — Description of what the workflow is used for.
- `type` (enum, optional) — Resource type the workflow runs for. This selects the matching workflow configuration and trigger data.
  - Allowed values: `INVOICE`, `PAYMENT`, `PRICING_PLAN_SUBSCRIPTION`, `WALLET`, `USAGE`
- `reference` (string, optional) — Unique reference.
- `status` (enum, optional) — Status of the workflow.
  - Allowed values: `ACTIVE`, `INACTIVE`, `DRAFT`, `ARCHIVED`
- `created_at` (string, optional, nullable) — Date time when the workflow was created.
- `updated_at` (string, optional, nullable) — Date time when the workflow was last updated.
- `conditions` (WorkflowConditions, optional) — Condition tree that gates whether the workflow's actions run. When present, actions execute only if the conditions evaluate to true.
- `customer_ids` (list of string, optional, nullable) — Customer scope for the workflow. This limits which customers can use the workflow when it is triggered.
- `invoice` (InvoiceWorkflow, optional) — Invoice workflow configuration that defines how the workflow runs for invoice events and executions.
- `payment` (PaymentWorkflow, optional) — Payment workflow configuration that defines how the workflow runs for payment events and executions.
- `pricing_plan_subscription` (PricingPlanSubscriptionWorkflow, optional) — Pricing plan subscription workflow configuration that defines how the workflow runs for subscription events and executions.
- `wallet` (WalletWorkflow, optional) — Wallet workflow configuration that defines how the workflow runs for wallet (balance) events and executions.
- `usage` (UsageWorkflow, optional) — Usage workflow configuration that defines how the workflow runs for usage (metric threshold) events and executions.

## Errors

### 401 Unauthorized Error

Unauthorized

- `type` (enum, required)
  - Allowed values: `API_ERROR`, `INVALID_REQUEST`
- `code` (enum, required)
  - Allowed values: `RESOURCE_NOT_FOUND`, `RESOURCES_NOT_FOUND`, `UNABLE_TO_PROCESS_INSTRUCTIONS`, `BAD_REQUEST`, `UNSUPPORTED_MEDIA_TYPE`, `RESOURCE_ALREADY_EXISTS`, `CUSTOM_FIELD_VALUE_ALREADY_EXISTS`, `COULD_NOT_CREATE_RESOURCE`, `COULD_NOT_UPDATE_RESOURCE`, `COULD_NOT_DELETE_RESOURCE`, `MISSING_VERSION`, `UNSUPPORTED_VERSION`, `UNAUTHORISED`, `CUSTOMER_NOT_FOUND`, `PLATFORM_NOT_FOUND`, `PRICING_PLAN_NOT_FOUND`, `PRODUCT_NOT_FOUND`, `PRODUCT_ITEM_NOT_FOUND`, `PRICING_NOT_FOUND`, `PRICING_ITEM_NOT_FOUND`, `USER_NOT_FOUND`, `METER_NOT_FOUND`, `METER_VALUE_NOT_FOUND`, `METER_PROPERTY_NOT_FOUND`, `PRICING_ITEM_SUMMARIES_NOT_FOUND`, `MISSING_ID`, `INVALID_ID`, `MISSING_REFERENCE`, `MISSING_FIELD`, `INVALID_FIELD`, `INVALID_OPERATION`, `INTERNAL_ERROR`, `USER_NOT_ALLOWED`, `IDEMPOTENCY_CHECK_FAILED`, `INVALID_REQUEST`
- `message` (string, required)
- `field` (string, optional, nullable)
- `resource_id` (string, optional, nullable)
- `resource_type` (enum, optional, nullable)
  - Allowed values: `CUSTOMER`, `CUSTOM_FIELD`, `PLATFORM`, `PLATFORM_UPTODATE`, `METER`, `METER_VALUE`, `METER_PROPERTY`, `METER_PROPERTY_VARIABLE`, `METER_VALUE_CALCULATION`, `INGEST_DATA`, `METER_DATA`, `CHARGE_DATA`, `PERSIST_DATA`, `ADJUSTMENT_DATA`, `PRODUCT_CATEGORY`, `PRODUCT`, `PRODUCT_ITEM`, `PRICING`, `PRICING_GROUP`, `PRICING_ITEM`, `PRICING_ITEM_CONFIG`, `PRICING_PLAN_SUBSCRIPTION`, `PRICING_PLAN_SUBSCRIPTION_GROUP`, `PRICING_PLAN_SCHEDULE`, `SEAT_ASSIGNMENT`, `SHIPPING_ADDRESS`, `PRICING_PLAN`, `PRICING_PLAN_VERSION`, `PRICING_PLAN_GROUP`, `QUOTE`, `QUOTE_VERSION`, `QUOTE_TEMPLATE`, `QUOTE_VERSION_SUMMARY`, `API_KEY`, `USER`, `ROLE`, `PROXY_USER`, `EXTERNAL_CREDENTIALS`, `TOKEN`, `INVOICE`, `E_INVOICE`, `PDF`, `BILLING_ENTITY`, `FEATURE`, `MEMBERSHIP`, `PAYMENT`, `PAYMENT_ACCEPTOR`, `PAYMENT_METHOD`, `PAYMENT_METHOD_OPTIONS`, `PAYMENT_SCHEDULE`, `PAYMENT_REQUEST`, `INTEGRATION`, `WEBHOOK`, `WEBHOOK_EVENT`, `FILE`, `FILE_PROCESSING_SETTINGS`, `TEAM`, `DOWNLOAD_URL`, `CSV_REPORT`, `REPORT`, `REPORT_GENERATE_REQUEST`, `REPORT_CONFIGURATION`, `REPORT_SUBSCRIPTION`, `REPORT_DEFINITION`, `ACCOUNT_GROUP`, `ENTITY`, `EVENT_TRACE`, `EVENT_TRACE_LINK`, `PRICING_CATEGORY`, `CONTACT`, `ALERT_RULE`, `ALERT`, `USAGE_LIMIT`, `AUDIT_RECORD`, `PORTAL_URL`, `AUTHENTICATION_PROVIDER`, `REPROCESS`, `APPROVAL_POLICY`, `APPROVAL_REQUEST`, `BULK_ACTION`, `COUPON`, `PROMOTION_CODE`, `WALLET`, `WALLET_TYPE`, `WALLET_GRANT`, `AUTO_TOPUP_CONFIG`, `WORKFLOW`, `WORKFLOW_TRIGGER`, `WORKFLOW_ACTION`, `WORKFLOW_ACTION_EXECUTION`, `CREDIT_TYPE`, `SIGNATURE_REQUEST`, `ATTACHMENT`, `DOCUMENT`, `EXCHANGE_RATE`

### 403 Forbidden Error

Forbidden

- `type` (enum, required)
  - Allowed values: `API_ERROR`, `INVALID_REQUEST`
- `code` (enum, required)
  - Allowed values: `RESOURCE_NOT_FOUND`, `RESOURCES_NOT_FOUND`, `UNABLE_TO_PROCESS_INSTRUCTIONS`, `BAD_REQUEST`, `UNSUPPORTED_MEDIA_TYPE`, `RESOURCE_ALREADY_EXISTS`, `CUSTOM_FIELD_VALUE_ALREADY_EXISTS`, `COULD_NOT_CREATE_RESOURCE`, `COULD_NOT_UPDATE_RESOURCE`, `COULD_NOT_DELETE_RESOURCE`, `MISSING_VERSION`, `UNSUPPORTED_VERSION`, `UNAUTHORISED`, `CUSTOMER_NOT_FOUND`, `PLATFORM_NOT_FOUND`, `PRICING_PLAN_NOT_FOUND`, `PRODUCT_NOT_FOUND`, `PRODUCT_ITEM_NOT_FOUND`, `PRICING_NOT_FOUND`, `PRICING_ITEM_NOT_FOUND`, `USER_NOT_FOUND`, `METER_NOT_FOUND`, `METER_VALUE_NOT_FOUND`, `METER_PROPERTY_NOT_FOUND`, `PRICING_ITEM_SUMMARIES_NOT_FOUND`, `MISSING_ID`, `INVALID_ID`, `MISSING_REFERENCE`, `MISSING_FIELD`, `INVALID_FIELD`, `INVALID_OPERATION`, `INTERNAL_ERROR`, `USER_NOT_ALLOWED`, `IDEMPOTENCY_CHECK_FAILED`, `INVALID_REQUEST`
- `message` (string, required)
- `field` (string, optional, nullable)
- `resource_id` (string, optional, nullable)
- `resource_type` (enum, optional, nullable)
  - Allowed values: `CUSTOMER`, `CUSTOM_FIELD`, `PLATFORM`, `PLATFORM_UPTODATE`, `METER`, `METER_VALUE`, `METER_PROPERTY`, `METER_PROPERTY_VARIABLE`, `METER_VALUE_CALCULATION`, `INGEST_DATA`, `METER_DATA`, `CHARGE_DATA`, `PERSIST_DATA`, `ADJUSTMENT_DATA`, `PRODUCT_CATEGORY`, `PRODUCT`, `PRODUCT_ITEM`, `PRICING`, `PRICING_GROUP`, `PRICING_ITEM`, `PRICING_ITEM_CONFIG`, `PRICING_PLAN_SUBSCRIPTION`, `PRICING_PLAN_SUBSCRIPTION_GROUP`, `PRICING_PLAN_SCHEDULE`, `SEAT_ASSIGNMENT`, `SHIPPING_ADDRESS`, `PRICING_PLAN`, `PRICING_PLAN_VERSION`, `PRICING_PLAN_GROUP`, `QUOTE`, `QUOTE_VERSION`, `QUOTE_TEMPLATE`, `QUOTE_VERSION_SUMMARY`, `API_KEY`, `USER`, `ROLE`, `PROXY_USER`, `EXTERNAL_CREDENTIALS`, `TOKEN`, `INVOICE`, `E_INVOICE`, `PDF`, `BILLING_ENTITY`, `FEATURE`, `MEMBERSHIP`, `PAYMENT`, `PAYMENT_ACCEPTOR`, `PAYMENT_METHOD`, `PAYMENT_METHOD_OPTIONS`, `PAYMENT_SCHEDULE`, `PAYMENT_REQUEST`, `INTEGRATION`, `WEBHOOK`, `WEBHOOK_EVENT`, `FILE`, `FILE_PROCESSING_SETTINGS`, `TEAM`, `DOWNLOAD_URL`, `CSV_REPORT`, `REPORT`, `REPORT_GENERATE_REQUEST`, `REPORT_CONFIGURATION`, `REPORT_SUBSCRIPTION`, `REPORT_DEFINITION`, `ACCOUNT_GROUP`, `ENTITY`, `EVENT_TRACE`, `EVENT_TRACE_LINK`, `PRICING_CATEGORY`, `CONTACT`, `ALERT_RULE`, `ALERT`, `USAGE_LIMIT`, `AUDIT_RECORD`, `PORTAL_URL`, `AUTHENTICATION_PROVIDER`, `REPROCESS`, `APPROVAL_POLICY`, `APPROVAL_REQUEST`, `BULK_ACTION`, `COUPON`, `PROMOTION_CODE`, `WALLET`, `WALLET_TYPE`, `WALLET_GRANT`, `AUTO_TOPUP_CONFIG`, `WORKFLOW`, `WORKFLOW_TRIGGER`, `WORKFLOW_ACTION`, `WORKFLOW_ACTION_EXECUTION`, `CREDIT_TYPE`, `SIGNATURE_REQUEST`, `ATTACHMENT`, `DOCUMENT`, `EXCHANGE_RATE`

## Types

### WorkflowConditions

A node in a workflow's condition tree. A node is either a logical group of nested conditions or a single field comparison, selected by its type.

- `type` (enum, optional) — The kind of condition node. GROUP combines nested conditions with a logical operator; COMPARISON evaluates a single field against a value.
  - Allowed values: `GROUP`, `COMPARISON`
- `group` (WorkflowConditionsGroup, optional) — Logical grouping of nested conditions. Applicable when the type is GROUP.
- `comparison` (WorkflowConditionsComparison, optional) — Single field comparison. Applicable when the type is COMPARISON.

### InvoiceWorkflow

Defines the invoice-specific workflow settings that determine when invoice workflows should run.

- `variant` (enum, optional) — Invoice workflow variant that determines which invoice condition starts the workflow.
  - Allowed values: `TO_FINAL`, `OVERDUE`, `UPCOMING_PAYMENT_REMINDER`
- `overdue` (InvoiceOverdue, optional) — Overdue workflow settings that define the overdue steps used for execution.
- `upcoming_payment` (InvoiceUpcomingPayment, optional) — Upcoming payment reminder settings that define when reminders are sent before the charge date.

### PaymentWorkflow

Defines the payment-specific workflow settings that determine when payment workflows should run.

- `variant` (enum, optional) — Payment workflow variant that determines which payment condition starts the workflow.
  - Allowed values: `FAILED_PAYMENT`

### PricingPlanSubscriptionWorkflow

- `variant` (enum, optional)
  - Allowed values: `FREE_TRIAL_REMINDER`
- `reminder_periods` (list of Period, optional, nullable)

### WalletWorkflow

Defines the wallet-specific workflow settings that determine when wallet workflows should run.

- `variant` (enum, optional) — Wallet workflow variant that determines which wallet condition starts the workflow.
  - Allowed values: `WALLET_BALANCE`
- `wallet_balance` (WalletWalletBalance, optional) — Wallet balance workflow settings that define the configuration used for execution.

### UsageWorkflow

Defines the usage-specific workflow settings that determine when usage workflows should run.

- `variant` (enum, optional) — Usage workflow variant that determines which usage condition starts the workflow.
  - Allowed values: `USAGE_LIMIT`
- `meter_value_calculation_id` (string, optional) — Meter value calculation the usage is measured against.
- `thresholds` (list of UsageThreshold, optional, nullable) — Thresholds that trigger the workflow. Each threshold sets exactly one of percentage, number, amount, or credits.

### WorkflowConditionsGroup

Combines nested condition nodes using a logical operator.

- `operator` (enum, optional) — Logical operator applied to the operands. AND requires every operand to match; OR requires at least one to match.
  - Allowed values: `AND`, `OR`
- `operands` (list of WorkflowConditionsGroupOperandsItems, optional) — The nested condition nodes evaluated by the operator.

### WorkflowConditionsComparison

Evaluates a single trigger field against a value using a comparator.

- `field` (string, optional) — The trigger field to evaluate, identified by its JSON path, e.g. invoice.type.
- `comparator` (enum, optional) — The comparator used to compare the field value against the provided value.
  - Allowed values: `EQUALS`, `NOT_EQUALS`, `IN`, `NOT_IN`, `GREATER_THAN`, `GREATER_THAN_OR_EQUALS`, `LESS_THAN`, `LESS_THAN_OR_EQUALS`, `EMPTY`, `NOT_EMPTY`, `CONTAINS`, `NOT_CONTAINS`
- `value` (string, optional) — The value the field is compared against.

### InvoiceOverdue

Defines the overdue schedule used by an invoice workflow.

- `periods` (list of Period, optional) — Overdue periods that define the steps of the workflow.

### InvoiceUpcomingPayment

Defines the upcoming payment reminder schedule used by an invoice workflow.

- `periods` (list of Period, optional) — Periods before the charge date at which reminders are sent.

### Period

- `type` (enum, optional)
  - Allowed values: `DAY`, `WEEK`, `MONTH`, `YEAR`
- `value` (integer, optional, nullable)

### WalletWalletBalance

Defines the overdue schedule used by an invoice workflow.

- `wallet_type_id` (string, optional, nullable) — Resource ID of type WALLET_TYPE
- `comparator` (enum, optional) — For wallet workflows only LESS_THAN is supported.
  - Allowed values: `EQUALS`, `NOT_EQUALS`, `IN`, `NOT_IN`, `GREATER_THAN`, `GREATER_THAN_OR_EQUALS`, `LESS_THAN`, `LESS_THAN_OR_EQUALS`, `EMPTY`, `NOT_EMPTY`, `CONTAINS`, `NOT_CONTAINS`
- `threshold` (WalletThreshold, optional)

### UsageThreshold

Defines a single usage threshold. Exactly one of percentage, number, amount, or credits must be set.

- `percentage` (string, optional, nullable)
- `number` (string, optional, nullable)
- `amount` (Amount, optional)
- `credits` (Credits, optional)

### WorkflowConditionsGroupOperandsItems

### WalletThreshold

- `percentage` (string, optional, nullable)
- `amount` (Amount, optional)
- `credits` (Credits, optional)

### Amount

- `quantity` (string, optional)
- `currency` (enum, optional)
  - Allowed values: `AED`, `AFN`, `ALL`, `AMD`, `ANG`, `AOA`, `ARS`, `AUD`, `AWG`, `AZN`, `BAM`, `BBD`, `BDT`, `BGN`, `BHD`, `BIF`, `BMD`, `BND`, `BOB`, `BRL`, `BSD`, `BTN`, `BWP`, `BYN`, `BZD`, `CAD`, `CDF`, `CHF`, `CLF`, `CLP`, `CNY`, `COP`, `CRC`, `CUC`, `CUP`, `CVE`, `CZK`, `DJF`, `DKK`, `DOP`, `DZD`, `EGP`, `ERN`, `ETB`, `EUR`, `FJD`, `FKP`, `GBP`, `GEL`, `GHS`, `GIP`, `GMD`, `GNF`, `GTQ`, `GYD`, `HKD`, `HNL`, `HRK`, `HTG`, `HUF`, `IDR`, `ILS`, `INR`, `IQD`, `IRR`, `ISK`, `JMD`, `JOD`, `JPY`, `KES`, `KGS`, `KHR`, `KMF`, `KPW`, `KRW`, `KWD`, `KYD`, `KZT`, `LAK`, `LBP`, `LKR`, `LRD`, `LSL`, `LYD`, `MAD`, `MDL`, `MGA`, `MKD`, `MMK`, `MNT`, `MOP`, `MRO`, `MRU`, `MUR`, `MVR`, `MWK`, `MXN`, `MXV`, `MYR`, `MZN`, `NAD`, `NGN`, `NIO`, `NOK`, `NPR`, `NZD`, `OMR`, `PAB`, `PEN`, `PGK`, `PHP`, `PKR`, `PLN`, `PYG`, `QAR`, `RON`, `RSD`, `RUB`, `RWF`, `SAR`, `SBD`, `SCR`, `SDG`, `SEK`, `SGD`, `SHP`, `SLE`, `SOS`, `SRD`, `SSP`, `STN`, `SVC`, `SYP`, `SZL`, `THB`, `TJS`, `TMT`, `TND`, `TOP`, `TRY`, `TTD`, `TWD`, `TZS`, `UAH`, `UGX`, `USD`, `USN`, `UYI`, `UYU`, `UZS`, `VEF`, `VES`, `VND`, `VUV`, `WST`, `XAF`, `XAG`, `XAU`, `XBA`, `XBB`, `XBC`, `XBD`, `XCD`, `XDR`, `XOF`, `XPD`, `XPF`, `XPT`, `XSU`, `XTS`, `XUA`, `XXX`, `YER`, `ZAR`, `ZMW`, `ZWL`

### Credits

- `quantity` (string, optional)
- `credit_type_id` (string, optional) — Resource ID of type CREDIT_TYPE
- `credit_type` (CreditType, optional, nullable)

### CreditType

- `object_type` (string, optional, nullable)
- `id` (string, optional, nullable)
- `reference` (string, optional)
- `status` (enum, optional, nullable)
  - Allowed values: `DRAFT`, `ACTIVE`, `INACTIVE`, `DEPRECATED`, `ARCHIVED`
- `name` (string, optional)
- `description` (string, optional, nullable)
- `unit_name` (UnitName, optional)
- `created_at` (string, optional, nullable)
- `updated_at` (string, optional, nullable)

### UnitName

- `singular` (string, optional)
- `plural` (string, optional, nullable)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "object_type": "workflow",
  "id": "wf_9a3f2c1e-4b87-4d6e-a123-bc9d8e7f0123",
  "name": "Invoice Overdue Notification",
  "description": "Triggers notifications when invoices become overdue or are finalized",
  "type": "INVOICE",
  "reference": "WF-INVOICE-OVERDUE-001",
  "status": "ACTIVE",
  "created_at": "2024-01-10T08:00:00Z",
  "updated_at": "2024-03-15T14:30:00Z",
  "conditions": {
    "type": "GROUP",
    "group": {
      "operator": "AND",
      "operands": [
        {}
      ]
    },
    "comparison": {
      "field": "invoice.total_amount",
      "comparator": "EQUALS",
      "value": "500.00"
    }
  },
  "customer_ids": [
    "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  ],
  "invoice": {
    "variant": "TO_FINAL",
    "overdue": {
      "periods": [
        {
          "type": "DAY",
          "value": 7
        }
      ]
    },
    "upcoming_payment": {
      "periods": [
        {
          "type": "DAY",
          "value": 3
        }
      ]
    }
  },
  "payment": {
    "variant": "FAILED_PAYMENT"
  },
  "pricing_plan_subscription": {
    "variant": "FREE_TRIAL_REMINDER",
    "reminder_periods": [
      {
        "type": "DAY",
        "value": 5
      }
    ]
  },
  "wallet": {
    "variant": "WALLET_BALANCE",
    "wallet_balance": {
      "wallet_type_id": "wlt_type_7f3e2a1b-9c4d-4e8f-b567-123456789abc",
      "comparator": "EQUALS",
      "threshold": {
        "percentage": "20.00",
        "amount": {
          "quantity": "100.00",
          "currency": "USD"
        },
        "credits": {
          "quantity": "50",
          "credit_type_id": "crt_1a2b3c4d-5e6f-7890-abcd-ef0987654321",
          "credit_type": {
            "object_type": "credit_type",
            "id": "crt_1a2b3c4d-5e6f-7890-abcd-ef0987654321",
            "reference": "CREDIT-TYPE-STANDARD-001",
            "status": "DRAFT",
            "name": "Standard Credits",
            "description": "General purpose credits redeemable across all services",
            "unit_name": {
              "singular": "credit",
              "plural": "credits"
            },
            "created_at": "2024-01-05T09:00:00Z",
            "updated_at": "2024-02-20T11:15:00Z"
          }
        }
      }
    }
  },
  "usage": {
    "variant": "USAGE_LIMIT",
    "meter_value_calculation_id": "mvc_3d4e5f6a-7b8c-9d0e-f123-456789abcdef",
    "thresholds": [
      {
        "percentage": "80.00",
        "number": "10000",
        "amount": {
          "quantity": "250.00",
          "currency": "USD"
        },
        "credits": {
          "quantity": "200",
          "credit_type_id": "crt_1a2b3c4d-5e6f-7890-abcd-ef0987654321",
          "credit_type": {
            "object_type": "credit_type",
            "id": "crt_1a2b3c4d-5e6f-7890-abcd-ef0987654321",
            "reference": "CREDIT-TYPE-STANDARD-001",
            "status": "DRAFT",
            "name": "Standard Credits",
            "description": "General purpose credits redeemable across all services",
            "unit_name": {
              "singular": "credit",
              "plural": "credits"
            },
            "created_at": "2024-01-05T09:00:00Z",
            "updated_at": "2024-02-20T11:15:00Z"
          }
        }
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate"

payload = {}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate';
const options = {
  method: 'POST',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://test.api.solvimon.com/v1/workflows/:resourceIdOrReference/activate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```