Add Compound
This ClearTrial Web Services API adds a new product by issuing an HTTP PUT command. The server expects a name, code, and description. An attempt to create a compound with the same name or code as an existing compound causes the server to return an error message.
Method: PUT
URL: /cleartrial-ws/compounds
Sample input in JSON:
{ "compound": [ "name":"Test Compound", "code":"ABC-123", "description":"test", } }
Corresponding response by server in JSON:
{ "compound": [ "id": 10502, "name":"Test Compound", "code":"ABC-123", "description":"test", "createdBy":"joeuser", "createdDate":"03-May-2011", "lastModifiedBy":"joeuser", "lastModifiedDate":"03-May-2011", "url":"/cleartrial-ws/compounds/10502" } }
Sub-Resources: None
Parent topic: Compound Resource API