curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promoters/set_password \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"user": {
"new_password": "<string>",
"new_password_confirmation": "<string>"
}
}'
{
"id": 123,
"email": "<string>",
"name": "<string>",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"balances": {},
"custom_fields": {},
"first_event_at": "2023-11-07T05:31:56Z",
"invoice_details_status": "<string>",
"joined_at": "2023-11-07T05:31:56Z",
"selected_payout_method": "<string>",
"pending_contract_documents": [
"<string>"
],
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "<string>",
"address": "<string>",
"avatar": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"state": "<string>",
"promoter_id": 123,
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123
},
"ref_token": "<string>",
"ref_link": "<string>",
"has_monetary_rewards": true
}
],
"is_confirmed": true
}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promoters/set_password \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"user": {
"new_password": "<string>",
"new_password_confirmation": "<string>"
}
}'
{
"id": 123,
"email": "<string>",
"name": "<string>",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"balances": {},
"custom_fields": {},
"first_event_at": "2023-11-07T05:31:56Z",
"invoice_details_status": "<string>",
"joined_at": "2023-11-07T05:31:56Z",
"selected_payout_method": "<string>",
"pending_contract_documents": [
"<string>"
],
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "<string>",
"address": "<string>",
"avatar": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"state": "<string>",
"promoter_id": 123,
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123
},
"ref_token": "<string>",
"ref_link": "<string>",
"has_monetary_rewards": true
}
],
"is_confirmed": true
}
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Successful response
The response is of type object
.