Versions Compared

Key

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

...

Use this URL to archive the PV dropdown value.

Result:

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

Below is an example of an archived PV dropdown value:

URL

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

Method

PUT

Request

application/json

Request Payload

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

Response

Code Block
{
    "id": 91622,
    "value": "5*5mm",
    "attribute": "spsz",
    "conceptCode": "size in mm",
    "props": {},
    "activityStatus": "Closed"
}

...

code

Applies to

Status Message

200

All resources

PV dropdown value has been archived successfully

400

All requests

Invalid parameters, e.g  entry not found … etc

401

All requests

Authorization failed, user doesn’t have authority

500

All requests

Internal server error, encountered server error while performing operations