Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Add a value in the PV dropdown

/openspecimen/rest/ng/permissible-values/

Use this resource URL to create a PV dropdown value.

attribute

A unique name of dropdown where you are adding a new value.

Props

Properties of dropdown. e.g., {"abbreviation": "cDNA"}

Value

A unique dropdown value.

Concept Code

A unique concept code

http[s]:<host>:<port>/openspecimen/rest/ng/permissible-values/

Use this URL to add a new dropdown value.

Result:

The response to this request will contain the details of the added new PV dropdown value.

Below is an example of adding a PV dropdown value:

URL

http[s]:<host>:<port>/openspecimen/rest/ng/permissible-values/

Method

POST

Request

application/json

Request Payload

{ "attribute": "spsz", "props": { "abbreviation": "5mmx5mm" }, "value": "5*5mm", "conceptCode": "size in mm" }

Response

{ "id": 91621, "value": "5*5mm", "attribute": "spsz", "conceptCode": "size in mm", "props": { "abbreviation": "5mmx5mm" }, "activityStatus": "Active" }

 

code

Applies to

Status Message

code

Applies to

Status Message

200

All resources

A PV dropdown value created successfully

400

All requests

Invalid parameters.

401

All requests

Authorization failed, user doesn’t have authority

500

All requests

Internal server error, encountered server error while performing operations

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com