API POST Requests


I’m trying to setup an API request that updates a ‘memberPage’ of a user via POST. Struggling so far. See pics.

Hard to understand what you’re doing here. From what I can see you are just showing the results of a failed call. Can you instead make a cURL request, show the request and show the failed results?

1 Like

We’re trying to update the memberpage with some data using this documentation:

E.g: https://api.memberstack.com/v1/members/5fa55d3102f9790004a4a59a

We tried using the information at the link above:

curl -XPOST -H ‘X-API-KEY: ourapi’ -d ‘{
name: “test”,
}’ ‘https://api.memberstack.com/v1/members/userID

But are getting:

{“error”:"{ \n name: “test”, \n } is not a valid field."}

For clarity, we’ve tried with “name”, “memberPage” and a load of other fields - given the sheet of existing field names in front of us.

curl -XPOST -H ‘X-API-KEY: ourapi’ -d ‘{
name: “test”,
}’ ‘https://api.memberstack.com/v1/members/userID’

Can you change this :point_up_2: to this :point_down:and post the results:

curl -XPOST -H 'X-API-KEY: ourapi' -d '{name: "test"}' 'https://api.memberstack.com/v1/members/5fa55d3102f9790004a4a59a'