You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 15
Next »
Endpoints
Create new user
Code referene: US05
Path | Case | CRUD |
---|
/bookmarks
| Bookmark createBookmark( @RestQuery Set<String> folderIds, Bookmark bookmark) Possible Code(s): 200 (Ok) | 401 | 500 200 = Bookmark created 400 = Item Id is missing (required) 401 = User is not authorized 500 = Internal server error | Create (POST)
|
Request-Params folderIds=Sjszo4cBdHmpxQQKUvah&folderIds=rjwQKYgBdHmpxQQKKgSs |
Request-Body => Bookmark { "id": "rjzgAIgBdHmpxQQKvQHm", // Not used "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", // Required "description": "My important description", // Optional "userId": "fachstelle_museum", // Not used "type": "CULTURAL_ITEM", // Required "createdAt": 1683641908448, // Not used "updatedAt": 1683641908448, // Not used "keywordTool": { // Optional "done": true } } |
Response-Body => Bookmark { "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "My important description", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": true } } |