Skip to main content
PATCH
/
api
/
v1
/
share
/
{shareId}
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
}
'
{
  "quiz": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "description": "<string>",
    "topic": [
      "<string>"
    ],
    "tags": [
      "<string>"
    ],
    "passingScore": 123,
    "documentId": 123,
    "type": "<string>",
    "createdAt": "<string>",
    "language": "<string>",
    "userScore": 123,
    "correctAnswersCount": 123,
    "questionsCount": 123,
    "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "totalTimeTaken": 123,
    "passed": true,
    "createdBy": "<string>"
  },
  "shareId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "shareUrl": "<string>",
  "isPublic": true,
  "isAnonymous": true,
  "type": "<string>"
}

Path Parameters

shareId
string<uuid>
required

Body

application/json
isAnonymous
boolean
required
isPublic
boolean
required

Response

200 - application/json

Quiz share updated successfully

quiz
object
required
shareId
string<uuid>
required
shareUrl
string<uri>
required
isPublic
boolean
required
isAnonymous
boolean
required
type
string
required