These are chat archives for fossasia/open-event-server

30th
Apr 2018
Priyanshu Khandelwal
@Masquerade0097
Apr 30 2018 03:03 UTC
@schedutron Can you please share your request headers here ? Are you requesting token from auth/session and then using it in request header ?
/v1/users POST requires
Headers
Content-Type: application/vnd.api+json
Authorization: JWT <Auth Key>
Body
{
  "data": {
    "attributes": {
      "email": "example@example.com",
      "password": "password",
      "avatar_url": "http://example.com/example.png",
      "first-name": "John",
      "last-name": "Doe",
      "details": "example",
      "contact": "example",
      "facebook-url": "http://facebook.com/facebook",
      "twitter-url": "http://twitter.com/twitter",
      "instagram-url": "http://instagram.com/instagram",
      "google-plus-url": "http://plus.google.com/plus.google",
      "original-image-url": "https://cdn.pixabay.com/photo/2013/11/23/16/25/birds-216412_1280.jpg"
    },
    "type": "user"
  }
}