Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,100
Community Members
 
Community Events
168
Community Groups

500 Internal Server Error.

Hello team,

May you please assist with the following problem.

I tried to remove users from an organistation in our Jira ServiceDesk using experimental method. The link is https://docs.atlassian.com/jira-servicedesk/REST/4.17.1/#servicedeskapi/organization-removeUsersFromOrganization

Then I try to send DELETE the request "https://XXX.com/rest/servicedeskapi/organization/186/user?organizationId=186" using Postman I receive the following error message

"com.sun.jersey.api.MessageException: A message body reader for Java class com.atlassian.servicedesk.api.rest.dto.domain.organization.UsersOrganizationUpdateDTO, and Java type class com.atlassian.servicedesk.api.rest.dto.domain.organization.UsersOrganizationUpdateDTO, and MIME media type application/octet-stream was not found.\n" and 
500 Internal Server Error.

Thank you in advance!

1 answer

1 accepted

2 votes
Answer accepted

Hi @Stepan Matveev 

Are you in JSM 4.17.1 or higher ?

It's experimental so it may not be available if you have an older version.

The doc do not make sense to me can you try to send the following payload instead as body and do not use parameter.

https://XXX.com/rest/servicedeskapi/organization/186/user

 

{ "usernames": [ "USERNAME" ] }

Make sure to add Content-Type header with application/json as value

 

Regards

Hello @Florian Bonniec 
Appreciate for your help, it's work for me.

Thanks a lot! :)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events