Delete a distributor
DELETE
/distribution/{id}
const url = 'https://app.surveyrock.com/api/v1/distribution/example';const options = { method: 'DELETE', headers: {'Idempotency-Key': 'example', 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 DELETE \ --url https://app.surveyrock.com/api/v1/distribution/example \ --header 'Authorization: Bearer <token>' \ --header 'Idempotency-Key: example'DELETE /api/v1/distribution/{id}
Requirements: 9.5
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
1 to 128 characters, chosen by the caller. A retry with the same key and body replays the first response instead of applying the write twice; the same key with a different body is a 409
Responses
Section titled “Responses”Distributor deleted
Distributor not found