An example of posting JSON to the REST API endpoint. In this REST API POST example, the Content-Type: application/json request header specifies the media type of the resource in the body as JSON. The Accept: application/json request header tells the server that the client expects a JSON string. The Content-Type: application/json response header indicates that the server returned JSON. The Java code was automatically generated from the REST API POST Example.