curl --request PATCH \
--url http://localhost:8787/api/v1/share/{shareId} \
--header 'Content-Type: application/json' \
--data '{
"isAnonymous": true,
"isPublic": true
}'
{
"shareId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shareUrl": "<string>",
"isAnonymous": true,
"isPublic": true,
"type": "<string>",
"quiz": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"topic": [
"<string>"
],
"tags": [
"<string>"
],
"passingScore": 123,
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"createdAt": "<string>",
"language": "<string>",
"userScore": 123,
"correctAnswersCount": 123,
"totalTimeTaken": 123,
"passed": true,
"createdBy": "<string>",
"questionsCount": 123,
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Update a singleplayer quiz share
curl --request PATCH \
--url http://localhost:8787/api/v1/share/{shareId} \
--header 'Content-Type: application/json' \
--data '{
"isAnonymous": true,
"isPublic": true
}'
{
"shareId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shareUrl": "<string>",
"isAnonymous": true,
"isPublic": true,
"type": "<string>",
"quiz": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"topic": [
"<string>"
],
"tags": [
"<string>"
],
"passingScore": 123,
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"createdAt": "<string>",
"language": "<string>",
"userScore": 123,
"correctAnswersCount": 123,
"totalTimeTaken": 123,
"passed": true,
"createdBy": "<string>",
"questionsCount": 123,
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Quiz share updated successfully
The response is of type object
.