Hello,
A few months back, i was able to add multiple organizations via the API in one call, i would simple set the data to:
{
"name": "COMPANY A",
"name": "COMPANY B",
"name": "CCOMPANY C"
}
And all my Organizations would be created, now, the API throws an error about not recognizing "name" when more than 1 organization is passed... I guess this was changed?
Also, I need to add about 1000 customers (internal customers). looks like i will have to do a call for each user, correct?
Will i need to add any delays in between calls?
Thanks
Hi Romer,
Are you using the API provided on our documentation?
As per I could check, there is no restriction to add more than one customer.
Can you please send us the errors that you are receiving?
Regards,
Angélica
Yeah, that's what i am using and saying, before i could pass multiple organizations in 1 call, now i cant:
I am passing as data:
/rest/servicedeskapi/organization
{
"name": "COMP-1",
"name": "COMP-2",
"name": "COMP-3",
"name": "COMP-4"
}
Response:
{
"errorMessage": "Unrecognized field \"name\" (Class com.atlassian.servicedesk.api.rest.dto.domain.organization.OrganizationCreateDTO), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@774cca17; line: 3, column: 12] (through reference chain: com.atlassian.servicedesk.api.rest.dto.domain.organization.OrganizationCreateDTO[\"name\"])"
}
This no longer works. According to Postman, last time i used the above and that it worked was in April, i used it to create multiple orgs at once.
And for creating customers, if i send:
/rest/servicedeskapi/customer
{
"email": "user1@company.com",
"displayName": "User 1"
},
{
"email": "user2@company.com",
"displayName": "User 2"
},
{
"email": "user3@company.com",
"displayName": "User 3"
}
Then, only the first user is created. The rest are ignored. TO be fair, i never tried to add more than 1 customer in the past so i cant tell if it worked or not before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Romer,
I've tested here and it indeed does not work, only works if I create one organization. I've tried to provide an array of strings, but I received a 500 error saying that Jira was not able to deserialize the instance.
I've checked here with the team responsible for API and they said that it never worked.
What might have worked is the first org got created, by accident, and the JSON parser is now stricter.
About customer creation, I tested here too and it creates only the first one.
Regards,
Angélica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.