PUT /options/{id}

Update an existing custom option by its ID.

Path parameters

  • id integer Required
application/json

Body Required

  • id integer
  • optionTypeID integer
  • value string
  • description string
  • companyID integer
  • createdBy integer
  • updatedBy integer

Responses

  • 200

    Custom option updated successfully

  • 404

    Custom option not found

  • 500

    Error occurred while updating the custom option

PUT /options/{id}
curl \
 -X PUT http://api.example.com/options/{id} \
 -H "Content-Type: application/json" \
 -d '{"id":42,"optionTypeID":42,"value":"string","description":"string","companyID":42,"createdBy":42,"updatedBy":42}'
Request example
{
  "id": 42,
  "optionTypeID": 42,
  "value": "string",
  "description": "string",
  "companyID": 42,
  "createdBy": 42,
  "updatedBy": 42
}