HTTP 404 error "Page not found" when using a write method

Symptom

Using the GET method is successful, but attempting a POST, PUT, or DELETE method results in an HTTP 404 "Page not found" error.

Cause

The REST API access mode is set to read-only.

Action
Set the REST API access mode to read-write.
switch(config)# https-server rest access-mode read-write

Enabling the read/write mode on the REST API allows POST, PUT, and DELETE operations to be called on all configurable elements in the switch database.