the program membership id
value of the trait
name of the trait
curl -L \ --request POST \ --url '/v2/program-memberships/{program_membership_id}/add-trait' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'trait_value=text&trait_name=text'
{ "traits": [ { "name": "text", "value": "text" } ] }