> ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Update membership attributes > Updates the member attributes for a user within a group if the user is a member of the group.

If an attribute already exists, the value will be updated

If not, a new attribute will be created.
Request body example:
[
[
{"name":"car","value":"BMW"},
{"name":"mascot","value":"cat"},
{"name":"age","value":"18"}
]
## OpenAPI ````json POST /membership/updateAttributes { "openapi": "3.0.4", "info": { "title": "Engage public API", "version": "1" }, "servers": [ { "url": "https://your-engage-domain.com/api/rest" } ], "tags": [ { "name": "Address Attributes" }, { "name": "Async" }, { "name": "Audit Log" }, { "name": "Automation" }, { "name": "Blacklist" }, { "name": "CMS (legacy)" }, { "name": "CMS Blocks" }, { "name": "CMS Frameworks" }, { "name": "CMS Messages" }, { "name": "CMS Templates" }, { "name": "Contact" }, { "name": "Content" }, { "name": "Coupon" }, { "name": "Draft Message" }, { "name": "Ecommerce" }, { "name": "Group" }, { "name": "Group Attributes" }, { "name": "Landing Page" }, { "name": "Member Attributes" }, { "name": "Membership" }, { "name": "Message" }, { "name": "Meta" }, { "name": "Mobile Push" }, { "name": "Prepared Message" }, { "name": "Process" }, { "name": "Profile Attributes" }, { "name": "Related Data" }, { "name": "Segmentation" }, { "name": "System" }, { "name": "System User" }, { "name": "Usage Statistics" }, { "name": "User" }, { "name": "Whiteboard" } ], "paths": { "/membership/updateAttributes": { "post": { "tags": [ "Membership" ], "summary": "Update membership attributes", "description": "Updates the member attributes for a user within a group if the user is a member of the group.

If an attribute already exists, the value will be updated

If not, a new attribute will be created.
Request body example:
[
[
{\"name\":\"car\",\"value\":\"BMW\"},
{\"name\":\"mascot\",\"value\":\"cat\"},
{\"name\":\"age\",\"value\":\"18\"}
]
", "operationId": "updateAttributes", "parameters": [ { "name": "userId", "in": "query", "description": "ID of the user", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "groupId", "in": "query", "description": "ID of the group", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Attribute" } } } }, "x-bodyName": "body" }, "responses": { "200": { "description": "", "content": { "application/json": {} } }, "400": { "description": "userId and groupId are mandatory, but are missing or incorrect.", "content": { "application/json": {} } }, "404": { "description": "Not found", "content": { "application/json": {} } } } } } }, "components": { "schemas": { "Attribute": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } } } } } } ````