Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Connect a source rule to a target rule

POST/api/v1/{team_slug}/{app_slug}/price-relay-connections
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

Request body
requiredapplication/json

connection details

source_rule_idstringrequired
target_rule_idstringrequired
Responses
200

connection created

datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelayConnectionrequired
Show properties
created_atstring
idstring
source_rule_idstring
target_rule_idstring
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request

detailsstring[]
messagestring
successbooleanrequired
404

Rule not found

detailsstring[]
messagestring
successbooleanrequired
409

Already connected

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.enad.io/api/v1/string/string/price-relay-connections' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "source_rule_id": "string",
  "target_rule_id": "string"
}'
Response
{
  "data": {
    "created_at": "string",
    "id": "string",
    "source_rule_id": "string",
    "target_rule_id": "string"
  },
  "details": [
    "string"
  ],
  "success": true
}