METHOD-DELETE
Delete has never a Body. Delete is only allowed for the owner, even write-access is not sufficient.
_auth | Semantic | Response | Status |
0|1 | - user not authenticated - user has no publickey |
{“_info”:”DELETE requires authentication”, ”_auth”:<0|1> } |
401 |
2 | - user not authenticated - user has publickey |
{“_info”:”DELETE requires authentication”, ”_auth”:2, ”_cpin”:”...” } |
401 |
3 | - user authenticated - UNIT not existing |
{“_info”:”UNIT not existing”, ”_auth”: 3 } |
400 |
4| 5 | - user authenticated - UNIT existing - user is not owner |
{“_info”:”DELETE only allowed for owner”, "_auth":<4|5> } | 401 |
6 | - user authenticated - UNIT existing - user is owner |
{“_info”:”UNIT deleted”, ”_auth”: 6 } |
200 |