Create score range
curl --request POST \
--url http://localhost:8081/protocols/{id}/score-ranges \
--header 'Content-Type: application/json' \
--data '
{
"minScore": 123,
"maxScore": 123,
"classification": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({minScore: 123, maxScore: 123, classification: '<string>'})
};
fetch('http://localhost:8081/protocols/{id}/score-ranges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}/score-ranges"
payload = {
"minScore": 123,
"maxScore": 123,
"classification": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"protocolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"minScore": 123,
"maxScore": 123,
"classification": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Create score range
POST
/
protocols
/
{id}
/
score-ranges
Create score range
curl --request POST \
--url http://localhost:8081/protocols/{id}/score-ranges \
--header 'Content-Type: application/json' \
--data '
{
"minScore": 123,
"maxScore": 123,
"classification": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({minScore: 123, maxScore: 123, classification: '<string>'})
};
fetch('http://localhost:8081/protocols/{id}/score-ranges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}/score-ranges"
payload = {
"minScore": 123,
"maxScore": 123,
"classification": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"protocolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"minScore": 123,
"maxScore": 123,
"classification": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}