cancel
Showing results for 
Search instead for 
Did you mean: 

API Call Error

TejashriNevase
Level 4
I am working on Facebook graph API  for workplace.ie Account management API(Graph API - Workplace - Documentation - Facebook for Developers) .I have integrate the account management API with blue prism .But I got error with code 400. I am new at webservices.
I am sharing some Attachment. I am doing something wrong. I didn't get that. please suggest something for that. With same  details I also test that  API  in the postman and request  successfully sent with status code 200 in postman.
29824.png
29825.png
29826.png
  .please give me suggestion regarding that
29827.png
29828.png
29830.png
29832.png
29833.png


------------------------------
Tejashri Nevase

------------------------------
2 REPLIES 2

ewilson
Staff
Staff
@Tejashri Nevase,

You're attempting to perform a POST, but you haven't defined a request body. According to the FB documentation, for that end point, you wat to create a JSON payload that looks something like this:

{
  "name"         : "John McLane",
  "email"        : "john@mclane.com",
  "title"        : "Salesman",
  "department"   : "US Sales",
  "organization" : "Global Sales",
  "manager"      : 100013693981877,
  "division"     : "Cars",
  "cost_center"  : "CC1",
  "external_id"  : "1232112",
  "invited"      : true,
  "work_locale"  : "en_US",
  "auth_method"  : "PASSWORD"
}​

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Now I am defining the request body as well. still get the same error as mention above

------------------------------
Tejashri Nevase
------------------------------