Update question
curl --request PUT \
--url http://localhost:8081/protocols/{id}/questions/{questionId} \
--header 'Content-Type: application/json' \
--data '
{
"questionText": "<string>",
"metadata": {},
"required": true,
"weight": 123,
"position": 123
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
questionText: '<string>',
metadata: {},
required: true,
weight: 123,
position: 123
})
};
fetch('http://localhost:8081/protocols/{id}/questions/{questionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}/questions/{questionId}"
payload = {
"questionText": "<string>",
"metadata": {},
"required": True,
"weight": 123,
"position": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Update question
PUT
/
protocols
/
{id}
/
questions
/
{questionId}
Update question
curl --request PUT \
--url http://localhost:8081/protocols/{id}/questions/{questionId} \
--header 'Content-Type: application/json' \
--data '
{
"questionText": "<string>",
"metadata": {},
"required": true,
"weight": 123,
"position": 123
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
questionText: '<string>',
metadata: {},
required: true,
weight: 123,
position: 123
})
};
fetch('http://localhost:8081/protocols/{id}/questions/{questionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}/questions/{questionId}"
payload = {
"questionText": "<string>",
"metadata": {},
"required": True,
"weight": 123,
"position": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)