Endpoints
POST /api/connectionsGET /api/connectionsGET /api/connections/:idPATCH /api/connections/:idDELETE /api/connections/:idPUT /api/connections/:id/enablePUT /api/connections/:id/disable
Create / Update Payload
| Field | Type | Required on Create | Notes | |||
|---|---|---|---|---|---|---|
apiType | string | Yes | `public | b2b | cug | mobile` |
rateName | string | No | Optional placeholder | |||
rateLimit | number | Yes | >= 0 | |||
rateLimitWindowMs | number | Yes | >= 0 | |||
netMarkups | number | Yes | >= 0 | |||
connectionType | string | Yes | `direct | tgx | metasearch` | |
notificationEmail | string | No | Optional | |||
currentInUse | boolean | No | Optional | |||
partnerId | string | Yes | Partner ObjectId |
List Query Parameters
GET /api/connections
| Query | Type | Required | Notes |
|---|---|---|---|
page | number | No | >= 1 |
size | number | No | >= 1 |
partnerId | string | No | Filter by partner |
Enable / Disable Rules
PUT /:id/enablechecks conflict: only one connection can becurrentInUse=trueunder same(partner, apiType, connectionType)PUT /:id/disablesetscurrentInUse=false
Common Errors
404 Partner not found404 Connection not found409 Another connection is already currentInUse for this partner/apiType/connectionType