...
http[s]:<host>:<port>/openspecimen/rest/ng/permissible-values/{ID}
Use this URL to add to create a new update the PV dropdown value.
Result:
The response to this request will contain the details of the added new updated PV dropdown.
Below is an example of adding updating a PV dropdown:
URL | http[s]:<host>:<port>/openspecimen/rest/ng/permissible-values/ | ||
Method | PUT | ||
Request | application/json | ||
Request Payload |
| ||
Response |
|
...
code | Applies to | Status Message |
---|---|---|
200 | All resources | Collection Protocol Event PV dropdown value has been created updated successfully |
400 | All requests | Invalid parameters, e.g duplicate event label, blank event label etc |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |