Activate a distributor
POST
/distributors/{id}/activate
const url = 'https://app.surveyrock.com/api/v1/distributors/example/activate';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/distributors/example/activate \ --header 'Authorization: Bearer <token>'POST /api/v1/distributors/{id}/activate
Requirements: 9.1–9.3
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Distributor activated
Distributor not found
Survey not published