Got feedback or spotted a mistake?

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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers/{tier-id}

Use this resource to update consent-tier for Collection Protocol in the OpenSpecimen application. Use HTTP PUT method to call this API by passing the below details in JSON format.

Below are the attributes which need to be sent in the request body:

Parameter
Details
cpIdCollection Protocol Id
tier-ididentifier of consent-tier to update
statementconsent-tier statement

 

http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers/1

Use this URL to update consent-tier for Collection Protocol in the OpenSpecimen application.

Result:

The response of this request will contains the details of the updated  consent-tier

Below is the example of the add consent-tier:

URLhttp://<host>:<port>/openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers/1
MethodPUT
Requestapplication/json
json

{
"statement": "Consent to store the samples for research"
}

Response

{

    "id" : "1",

    "statement": "Consent to store the samples for research"
}

 

  • No labels