Forums

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

Can't get the body structure correct for an API send

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2023

Hi there,

I am trying to create multiple attributes in an objecttype via the API but not sure how to build the body to hold multiple attributes.

{
  "name""Owner",
  "type""2"
  }
I get the one I need, but if I want to create 10 more.  I put a , and then another bracketed set but I only get the one.
No doubt this is something basic but I just am missing the formating.

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2023

Put my brain to it and realised I just needed a loop and to convert the result to Json and then it's fine.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events