TeaseDocs
DevelopersAPI referenceSmart links

Replace link rules

Replace the rows; the last one has no countries and a country sits in one row only.

Path Parameters

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The whole routing of a smart link; an omitted fallback is cleared, as PUT replaces.

Response Body

application/json

application/json

PUT
/v1/smart-links/{smart_link_id}/rules
curl -X PUT "https://example.com/v1/smart-links/1/rules" \  -H "Content-Type: application/json" \  -d '{    "rules": [      {        "variants": [          {            "destination_id": 1,            "weight": 0          }        ]      }    ]  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}