Link a questionnaire to a customer
PATCH
/v1/customers/questionnaires/{questionnaireId}
const url = 'https://api.varman.io/v1/customers/questionnaires/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"customerId":"cus_abc123"}'};
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://api.varman.io/v1/customers/questionnaires/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "customerId": "cus_abc123" }'Sets which customer a security questionnaire belongs to, so its answer progress shows on the customer page. Send customerId null to unlink it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”questionnaireId
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
customerId
required
Customer ID to link the questionnaire to, or null to unlink
string
Example
cus_abc123