Skip to main content
POST
/
api
/
rf
/
flows
/
{id}
/
duplicate
Duplicate an HHD flow
curl --request POST \
  --url https://clarus-api.com/api/rf/flows/{id}/duplicate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Clarus-Subdomain: <api-key>' \
  --data '
{
  "data": {
    "type": "rf_flows",
    "attributes": {
      "code": "PICK_STANDARD_COPY"
    }
  }
}
'
{
  "data": {
    "id": 123,
    "type": "rf_flows",
    "attributes": {
      "code": "PICK_STANDARD",
      "name": "Standard Pick Flow",
      "flow_type": "standard",
      "implementation_id": 1,
      "is_default": false,
      "definition": {
        "steps": []
      }
    }
  }
}

Request Structure

{
  "data": {
    "type": "rf_flows",
    "attributes": {
      "code": "PICK_STANDARD_COPY"
    }
  }
}

Key Fields

FieldRequiredDescription
codeYesThe code for the new (duplicated) flow
The duplicate inherits the source flow’s name, type, implementation, and definition.

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the HHD flow to duplicate

Body

application/json
data
object
required

Response

HHD flow duplicated successfully

data
object