To delete an existing module the documentation (http://cumulocity.com/guides/reference/real-time-statements/) says to do a DELETE request against /cep/module/<<moduleId>>
. But this results in a response status 500 with the reason that "Request method 'DELETE' not supported".
What is the correct request to delete a single module?
Asked
Active
Viewed 83 times
1

rob retro
- 70
- 5
1 Answers
3
The documentation gives the wrong path. It needs to be /cep/modules/<<moduleId>>
instead of /cep/module/<<moduleId>>
. This can be seen by debugging the behaviour of the web-GUI.

Gereon
- 17,258
- 4
- 42
- 73
-
The same seems to be true for updates via PUT: they also use /cep/modules/<
>, and not /cep/module/< – rob retro Sep 06 '17 at 17:22>. In addition, "Modify a Module with statements" doesn't really seem to use multipart/form-data (as creation does), but just a simple text/plain. -
1Well spotted! I fixed this, it should be online as soon as Jenkins wakes up. – André Sep 06 '17 at 19:03
-
Cool, @André! Could You verify the content-type of the statement-update as well? It says multipart/form-data, but for me it only works as simple text/plain. – rob retro Sep 07 '17 at 09:14
-
I will check with support and update the docs. It looks to me like you can do text/plain with PUT to set the text, or multipart/form-data with POST to upload a file. – André Sep 08 '17 at 19:42