Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Use this URL to add to create a new update the PV dropdown.

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

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

Response

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

...