Update an Exception

Updating Product Option Exceptions

PUT /api/exceptions/{exception_id}/

To update an existing product option exception, send a PUT request to the endpoint with the exception ID in the URL.

Request Example

PUT /api/exceptions/10

Include the exception details in the HTTP request body according to the specified Content-Type. None of the fields are required.

Request Parameters

Parameter Type Required Description
combination object No The combination of option variants that form this exception

Example JSON Payload

{
  "combination": {
    "3": "-1",
    "4": "18",
    "17": "60"
  }
}

This request changes the option variants that form the exception. The combination includes:

  • Option with ID 3: variant -1 (negative value indicates this option should not be selected)
  • Option with ID 4: variant 18
  • Option with ID 17: variant 60
Important: When updating the combination object, you must specify all options that should be part of the exception. Any options not included in the request will be removed from the exception.

Response

{
  "exception_id": "10"
}

Response Status Codes

Status Code Description
200 OK Exception was updated successfully
400 Bad Request Invalid request parameters
404 Not Found Exception with the specified ID does not exist