Skip to main content

Create or update participant

This endpoint enables you to create or update a participant.

How to use

You can use the following cURL to obtain a response from this endpoint:

curl --location --request POST https://nodeapi.superviz.com/participants \
--header "Authorization: Bearer ${TOKEN}" \
--header "apiKey: ${APIKEY}" \
--header "Content-Type: application/json" \
--data-raw '{
"participantId": "123",
"id": "123",
"name": "John Doe",
"email": "john@superviz.com",
"avatar": "https://www.superviz.com/avatar.png"
}'

HTTP Request

POST https://nodeapi.superviz.com/participants

Headers

When using this endpoint, you need to provide the Authorization Bearer token and the API Key. The following headers are required:

NameDescription
AuthorizationRequired. You must utilize the authentication token.
apikeyRequired. You must utilize the SuperViz Token that can be found on the developer page. By utilizing this key, we will define whether to get data from the developer or the production environment.

Request Body

When sending a request, include the following fields in JSON format:

NameTypeDescription
participantIdstringThe ID of the participant.
namestringThe name of the participant.
emailstringThe email of the participant.
avatarstringThe avatar of the participant.

Response

Status code 201 will indicate that the participant was created or updated successfully.