Referência de APIMembers
Update a member
Update member details. Email cannot be changed after creation.
Update member details. Email cannot be changed after creation.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication. Use your API key as the bearer token.
In: header
Path Parameters
id*string
Member ID
Request Body
application/json
name?string
external_id?string
campaign_id?string
status?string
Value in
"active" | "inactive" | "blocked"metadata?
Response Body
application/json
application/json
application/json
curl -X PATCH "https://api-base.rafo.work/api/v1/members/string" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": "mem_xxxxx",
"email": "john@example.com",
"name": "John Doe",
"external_id": "cust_123",
"coupon_code": "NUT-JOHN-A7X",
"campaign_id": "camp_xxxxx",
"status": "active",
"wallet": {
"pending": 0,
"available": 0,
"currency": "BRL"
},
"stats": {
"total_referrals": 0,
"total_earnings": 0
},
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}