Update Profile
Member Management
Update Profile
Update an existing member’s profile attributes.
POST
Update Profile
Updates one or more profile fields for an existing member. Only the fields you include in the
data object are changed — omitted fields are left unchanged. The internal id (not RelationReference) is required as the update key; obtain it from Get Member Profile first. Custom attributes defined in your CPD schema can be updated the same way as standard fields.
At least one
data.* field must be present. Custom attributes from your CPD schema can also be included under data. Member status (Active, Suspended, etc.) can be managed via the Loyalife Admin portal or via API — see Create Profile for the full status code reference.Responses
200 — Success
200 — Success
| Path | Type | Description |
|---|---|---|
results.IsSucessful | boolean | true |
results.ErrorCode | string | 000 |
results.ExceptionMessage | string | Success |
results.ReturnObject | boolean | true on successful update |
Error Codes
| Code | ExceptionMessage | Cause |
|---|---|---|
000 | Success | Profile updated successfully |
E202 | Member nonexistent | Member with the provided internal id does not exist |
E204 | Record updation failed — cancelled member | Cannot update a cancelled member |
E205 | Duplicate Email: The email already exists | Updated email_id already belongs to another member |
E206 | Duplicate Mobile: The mobile number already exists | Updated mobile_number already belongs to another member |
103 | Member does not exist | Member not found in the program |
104 | Failed to update member profile | Update operation failed |
113 | Member is cancelled | Member account has been cancelled |
999 | Bad request | Malformed payload or missing internal member id |
Authorizations
JWT obtained from Generate Auth Token. Pass as Authorization: bearer {token}.
Query Parameters
Your loyalty program ID
Example:
19
Body
application/json
Response
200 - application/json
Profile updated