Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Update a price relay target rule

PUT/api/v1/{team_slug}/{app_slug}/price-relay-target-rules/{rule_id}
Authorization
AuthorizationBearer token · headerrequired

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

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

rule_idstringrequired

Target rule ID

Request body
requiredapplication/json

target rule details

activeboolean
aggregationstringrequired
market_slugstringrequired
namestringrequired
store_group_slugstringrequired
Responses
200

target rule updated

datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelayTargetRulerequired
Show properties
activeboolean
aggregationstring
app_idstring
created_atstring
idstring
marketstring
market_slugstring
namestring
store_groupstring
store_group_slugstring
updated_atstring
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

Not found

detailsstring[]
messagestring
successbooleanrequired
409

Conflict

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.enad.io/api/v1/string/string/price-relay-target-rules/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "active": true,
  "aggregation": "string",
  "market_slug": "string",
  "name": "string",
  "store_group_slug": "string"
}'
Response
{
  "data": {
    "active": true,
    "aggregation": "string",
    "app_id": "string",
    "created_at": "string",
    "id": "string",
    "market": "string",
    "market_slug": "string",
    "name": "string",
    "store_group": "string",
    "store_group_slug": "string",
    "updated_at": "string"
  },
  "details": [
    "string"
  ],
  "success": true
}