Create a Resource
Creating a resource is achieved by sending a POST request to a resource URI. The request content holds XML/JSON representation of the resource, and must be well formatted according the schema. The request header holds the encrypted authorization and the content-type which defines the resource content. The client can also send the resource version using the ERS-Media-Type header. Create flow main characteristics:Description Create | The specified resource |
---|---|
Synopsis | POST /ers/config/{resource type}/ |
Request Headers | CONTENT-TYPE, AUTHORIZATION, ERS-MEDIA-TYPE (not mandatory) |
Request Message Body | XML/JSON representation of the resource |
Response Headers | Content-Length, Content-Type, Location |
Response Message Body | success - No Content / fail - ersResponse with Error messages |
Response Status | 201, 400, 401, 403, 415, 500 |
The example below shows the request and response for creating resource type - endpoint: * Note the newborn ID, in the LOCATION header.
