ProductsReplace model redemption URLs

Replace model redemption URLs

Replaces the complete ordered URL list for a product model.

curl -X PUT "http://localhost:8080/api/products/123/models/123/redemption_urls" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "urls": [
    {
      "label": "example_string",
      "url": "example_string",
      "sort_order": 42,
      "active": true
    }
  ]
}'
{
  "success": true
}
PUT
/api/products/{product_id}/models/{model_id}/redemption_urls
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
path
product_idinteger
Required

Product identifier.

Format: int64
path
model_idinteger
Required

Shopee model identifier.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Path Parameters

product_idinteger
Required

Product identifier.

model_idinteger
Required

Shopee model identifier.

Body

application/json

Responses

successboolean
Required

Whether the operation succeeded.