Create a new distributor
POST
/surveys/{surveyId}/distributors
const url = 'https://app.surveyrock.com/api/v1/surveys/example/distributors';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"channel":"web_link","name":"example","settings":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.surveyrock.com/api/v1/surveys/example/distributors \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "channel": "web_link", "name": "example", "settings": {} }'POST /api/v1/surveys/{surveyId}/distributors
Requirements: 7.1–7.5
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”surveyId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
channel
required
string
name
string
settings
object
Responses
Section titled “Responses”Distributor created
Validation error
Survey not found