curl --request PUT \
--url https://api.comm.com/api/v1/hub/profit-logic/rules/{rule} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"current_profit": 123,
"country_id": 123,
"id": "<string>",
"network_id": 123,
"client_company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"margin_type": "percentage",
"old_profit": 123,
"upcoming_profit": 123,
"applied_at": "<string>"
}'
{
"data": {
"current_profit": 123,
"country_id": 123,
"id": "<string>",
"network_id": 123,
"client_company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"margin_type": "percentage",
"old_profit": 123,
"upcoming_profit": 123,
"applied_at": "<string>"
}
}
curl --request PUT \
--url https://api.comm.com/api/v1/hub/profit-logic/rules/{rule} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"current_profit": 123,
"country_id": 123,
"id": "<string>",
"network_id": 123,
"client_company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"margin_type": "percentage",
"old_profit": 123,
"upcoming_profit": 123,
"applied_at": "<string>"
}'
{
"data": {
"current_profit": 123,
"country_id": 123,
"id": "<string>",
"network_id": 123,
"client_company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"margin_type": "percentage",
"old_profit": 123,
"upcoming_profit": 123,
"applied_at": "<string>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The rule ID
SellerProfitLogicRuleDataRequest
The body is of type object
.
SellerProfitLogicRuleData
The response is of type object
.