Update a distributor
PATCH
/distributors/{id}
const url = 'https://app.surveyrock.com/api/v1/distributors/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.surveyrock.com/api/v1/distributors/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'PATCH /api/v1/distributors/{id}
Requirements: 8.1–8.7
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Examplegenerated
{}Responses
Section titled “Responses”Distributor updated
Distributor not found
ETag mismatch
If-Match header required