title: How to use POST request in Django using graph api?
body: <p>Basically, I am trying to create a form that will create a new user in my Azure Active Directory.
  According to the <a href="https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&amp;tabs=http" rel="nofollow noreferrer">Microsoft document</a>, I need to use the given HTTP request. 
  can anybody please guide me on how to make it happen.
  If code is provided then it will awesome, else explanation or guidance is also great.</p>
  
  <p>I have been able to successfully run the tutorial code with GET requests. Now I wish to make POST requests with a graph_client.post(<a href="https://graph.microsoft.com/v1.0/users" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/users</a>, data={'userPrincipalName': 'sue@example.com', etc... }) type of construction. Unfortunately, this generates a HTTP 400 message of the form 'code': 'BadRequest', 'message': 'Entity only allows writes with a JSON Content-Type header.'. Will the tutorial constructs work with POST requests?</p>
  
  <p>If you can guide me on where to add the lines to make a POST method work successfully. I am attaching screenshots of my code please find below:-</p>
  
  <p>HTML page:-
  <a href="https://i.stack.imgur.com/cawfQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cawfQ.png" alt="enter image description here"></a></p>
  
  <p>views.py:-
  <a href="https://i.stack.imgur.com/NjDkN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NjDkN.png" alt="enter image description here"></a></p>
  
  <p>graph_helper.py;-
  <a href="https://i.stack.imgur.com/8FnNE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8FnNE.png" alt="enter image description here"></a></p>
  
  <p>Your time and effort will be appreciated.
  Thank you...</p>