Hi!
I’m trying to programmatically add members, using the /members/
route on the Admin API. I’m using Python.
GHOST_MEMBERS_URL = 'http://myghostsite.com/ghost/api/admin/members/'
body = {
"members": [
{
"email": "test_email@hotmail.co.uk",
}
]
}
r = requests.post(GHOST_MEMBERS_URL, json=body, headers=get_ghost_auth_headers())
I am authorised successfully, but the POST request does not add the new member. It returns a list of the most recently added members, but does not add the member specified in the payload.
Any assistance greatly appreciated!