How do I build a JSON request for a Webservice call to be in this format?

rakshith_shetty
Tera Contributor

Hi Team,

 

How do I build a JSON request in body for a Webservice call to be in this format?

 


"template": "Change Request Descriptiont",
"fields": [
{
"name": "Subject",
"values": [
"SCTASK Number - 757"
]
},
{
"name": "Change Request Description",
"values": [
"Test justification"
]
},
{
"name": "sctask",
"values": [
"757"
}
],
"traffic": [
{
"source": {
"items": [
{
"address": "10.0.0.0/24"
}
]
},
"destination": {
"items": [
{
"address": "192.168.0.0/24"
}
]
},
"service": {
"items": [
{
"service": "tcp/4141"
}
]
},
"application": {
"items": [
{
"name": "any"
}
]
},
"user": {
"items": [
{
"name": "any"
}
]
},
"action": "Allow"
}
]
}

0 REPLIES 0