AnsweredAssumed Answered

API Help Needed for POST, PUT, PATCH

Question asked by Kurt Pruhs on May 11, 2018
Latest reply on May 15, 2018 by Joshua Pope

I have just started learning the API capabilities of Bridge. So far I have successfully connected with the API and can get responses for any of the GET requests I have made. However, I get 401 codes every time I attempt a POST, PUT, or PATCH request.

 

My primary objective is to be able to create new users through the API and all attempts to use the /api/admin/users/ resource have failed. The following are the strings and headers I have used. I would appreciate any insights, helps, and suggestions the community may have.

 

I have been using the RESTer addon in Firefox and Postman for testing the API. I want to create a new user.

  • URL: https://<company domain>.bridgeapp.com/api/admin/users/
  • Accept: application/json
  • Content-Type: application/json
  • Authorization: Bearer <Base64 encoded Key & Secret>
  • Body:

  "users":

    { 

        "uid": "<user.email@address>", 

        "email": "<user.email@address>", 

        "first_name": "Test", 

        "last_name": "User", 

        "manager_id": "<manager.email@address>", 

        "locale": "en", 

        "job_title": "Assistant Window Washer"

    } 

   

}

 

Thanks in advance for any help you can offer.

Outcomes