Setting the REST API access mode to 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.

The REST API in read/write mode is intended for use by advanced users who have a good understanding of the system schema and data relationships in the switch database.

CAUTION:

Because the REST API in read/write mode can access every configurable element in the database, it is powerful but must be used with extreme caution: No semantic validation is performed on the data you write to the database, and configuration errors can destabilize the switch.

Prerequisites

You must be in the global configuration context: switch(config)#

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