REST API to send records details

omsa1
Kilo Guru

Hi All,

I need help with REST API . i'm trying to establish communication with monitoring tool. 

when state of change request changes to "implement", i need to send that record information via REST to monitoring tool.

i need to send variables in this format. 

<Task_type>, <CHG Ticket number>,<Start time in UTC>,<End time in UTC>,<CHG short description>,<CHG requestor (firstname.lastname)>,<CI list separated with a delimiter> 

i tried with REST API Explorer using POST and getting result as below. But what i actually need is

1.The <task_type> i need to add values manually like "ADD" or "DELETE" 

2. Add CI list separated with a delimiter <CI list separated with a delimiter>  , we have related list called "affected CIs" for change_request, i need to get the values from this related list to populate in the response , separate with delimiter. 

response example : 'ADD,CHG0123456,20190607152055,20190607162055,system down,nisha.rahul,host1;host2;host3'

 

find_real_file.png

 

 

 

6 REPLIES 6

Hi Harshvardhan,

i need to provide values to other system ,  which is suitable method in this case post or get

are you consuming scripted rest API in other system ? if yes then you can use get method here.