question

Viresh V Pandit avatar image
Viresh V Pandit asked Anirban Sen Chowdhary answered

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

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

1 Answer

·
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary 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

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.