Overview
The http POST method is used to create new entity records. All non-nullable fields must be passed in.
There are three core entity types in Relayware: Organization, Location and Person. An Organization can have one or more Locations and a Location can have one or more persons. Both Organizations and Locations are in a country, and a Location may be in a different Country than its parent Organization.

Relationship between Organization, Location, and Person
Return:
| Status Code | Error Code | Return | |
|---|---|---|---|
| Success | 201 | The entityID of the newly inserted record. The location is put into the repsonse header to enable quick access to the new record. | |
| The entity already exists based on the matching rules for that given entity type. | 500 | ENTITY_EXISTS |
Example:
| Method | URL | Content |
|---|---|---|
| POST | https://<relaywareHost>/api/v1/pricebookEntries | application/x-www-form-urlencoded or text/json |
| HTML Example |
|---|
|
POST/api/v1/pricebookEntriesHTTP/1.1 Host:<relaywareHost> sessionID: xxxxxxxxxxxxxxxxxxxxxxxxx Content-Type: application/x-www-form-urlencoded
unityPrice=10.00&active=1&pricebookID=3&productID=30 |
Comments
0 comments
Please sign in to leave a comment.