POST/api/v2/users/{userId}/referrals/terms-acceptance

Records the inviter's acceptance of the current program terms.

Authentication

Send your API key in the x-api-key header on every request.

Parameters

Request parameters
FieldTypeRequiredDescription
userId (path)integer (int32)Yes
programId (query)string (uuid)No

Request body

application/json

Request body fields
FieldTypeRequiredDescription
TermsVersionunknownNo

Responses

200 — OK

Response 200 fields
FieldTypeRequiredDescription
VersionunknownYes
TextstringYes
PrivacyNoticestringYes
AcceptedbooleanYes
AcceptedVersionunknownYes
AcceptedAtstring (date-time)Yes

Example request

curl -X POST "https://{base_url}/api/v2/users/{userId}/referrals/terms-acceptance" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

This page is generated from the live OpenAPI specification and always matches the current API.