question

Viresh P avatar image
Viresh P asked ·

Getting "Method not allowed" exception from Java

I am trying to call Api Get Message List from my Java class:

/restapi/v1.0/account/accountId/extension/extensionId/message-store

but getting "Method not allowed" exception with http 405

Can someone say what is the issue? Cannot figure it out

java
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Anirban avatar image
Anirban answered ·

This happens when you make mistake in choosing the API method to call.

The Api Get Message List is having GET method to call and any other API method not supported

Make sure in your Java class if you had used the same

1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Work together.
From anywhere.

Team messaging, video meetings
and phone - all in one app.


Get the new RingCentral app