POST
/transactional-api/create-future-action-rule-versionCreate Future Action Rule Version
Creates a new draft version of a future action rule.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-future-action-rule-version' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"ruleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"versionNumber": "string",
"ruleDefinition": {}
}'
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
ruleId | string<uuid> | Yes | ID of the future action rule to create a version for. |
versionNumber | string | Yes | Version identifier. Free-form string, for example 1.0 or 2025-01. Must be unique within the template (case-insensitive). |
ruleDefinition | object | Yes | The rule definition structure. |
Responses
201 Created.
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Invalid request.
3 possible code values
| Code | Description | When |
|---|---|---|
missing-required-field | fieldName is required | a required field is absent |
invalid-operation | Human-readable reason. | business rule violation |
invalid-field | fieldName must be a valid UUID | a UUID field is not a valid UUID |
{
"errors": [
{
"code": "missing-required-field",
"description": "fieldName is required"
}
]
}
404 Future action rule not found.