Integrating MS Flow for Create Person API

Not Yet Reviewed

Hi all,

 

I'm quite new to xMatters and really new to using webhooks/ APIs and really need some help please to integrate MS Flow to the Create Person API.

 

I need to transfer this curl request to a post request made by Flow.

curl -H "Content-Type: application/json" --user username -X POST -d @input.txt "https://xxxx.hosted.xmatters.com/api/xm/1/people"

 

The input.txt file contains the following as I couldn't format the JSON so the windows command prompt liked it using Curl.

{
  "targetName":"tester",
  "firstName" : "Test",
  "lastName": "Tester",
  "roles":  ["Standard User"]
}

Here are the fields I have in Flow to fill in and my attempt which returns a 400 error.  I know I need to add auth into the request but don't know how and not sure the body is right either.

 

I'd very much appreciate any help you can give.

 

Thanks

 

Scott

0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post