*I am using below code to register a user but I am getting 401 error. *

*I am able to get token in first request but registering user is not working 
and generating 401 error.*


curl -X POST --header 'Content-Type: application/json' --header 'Accept: 
application/json' --header 'Authorization: 
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImhlYWx0aHN0YXR1c3FhIiwiV2VsbGJlYXRzVXNlclR5cGUiOiJTRVJWSUNFVVNFUiIsIkVudGl0eUlEIjoiU0VSVklDRVVTRVJfMTA4NTgwIiwiVG9rZW5JRCI6ImM4MDFkYmFkLWNlOWMtNDA5Zi05MjNhLTA3MGJiOTM2YTViOSIsIm5iZiI6MTQ5ODc1NzMyMiwiZXhwIjoxNDk4NzU4ODIyLCJpYXQiOjE0OTg3NTczMjIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NTU1MjQiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjU1NTI0In0.k_KwBjHL_cvafF7PmyEd2Oe2osnz1p7DbF7OysJxu4k'
 -d '{ \ 
  "firstName": "John",  \ 
  "lastName": "Doe",  \ 
  "email": "johndoe%40xyz.com",  \ 
  "externalId": "123abc",  \ 
  "gender": 1, \ 
  "age": 33 \ 
 }' 'https://qapartnerservice.wellbeats.com/api/v1/Member/Register'

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to