The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Json Body in groovy script

Pradeep A
Contributor
July 15, 2021

{
"template@odata.bind":"https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
"displayName":"My Sample Team",
"description":"My Sample Team’s Description",
"members":[
{
"@odata.type":"#microsoft.graph.aadUserConversationMember",
"roles":[
"owner"
],
"user@odata.bind":"https://graph.microsoft.com/v1.0/users('56d0e712-f795-4374-ab9a-01bb6f5a5576')"
}
]
}

 

Hi I want to send this Json body to my API. How should I send this nested request body.

I have used HttpUrlConnection to access my API. And jsonBody.put("key":"value")

jason= variable. created as jsonBody=[ : ]  

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.