NX-API REST uses HTTP POST to send configuration commands or JSON payloads. The Content-Type header must be application/json when sending JSON. The body contains the configuration in JSON format, such as the VLAN creation object. This is the standard way to configure via NX-API REST.
Why this answer
NX-API REST uses HTTP POST to send configuration payloads. When sending JSON, the Content-Type header must be application/json. The body contains the JSON representation of the configuration, such as the VLAN object.
Other methods or content types do not match the requirement to send a JSON payload for configuration.
Exam trap
The trap here is assuming PUT is used for creation in REST, but NX-API specifically uses POST for configuration changes, and the Content-Type must match the payload format.