๐Ÿ“ฆ directus / v6-archive

๐Ÿ“„ delete-bookmark.md ยท 47 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47# Delete Bookmark

<span class="request">`DELETE` **/api/1.1/bookmarks/_[bookmark-id]_**</span>

<span class="description">Deletes a bookmark</span>

### Example Request

```bash
$ curl -X DELETE https://instance--key.directus.io/api/1.1/bookmarks/1 \
  -u [user-token]:
```

```php
$bookmark = $client->deleteBookmark(1);
```

```javascript
client.deleteBookmark(1);
```

## Response

<span class="attributes">Attribute</span> | Description
--------|------------
**success** _Boolean_ | Whether or not the bookmark was deleted
**error** _Error Object_ | This object contains error information (if any) <a class="object">**Error Object**: View Nested Attributes</a>

### Example Request (Success)

```json
{
  "success": true
}
```

### Example Request (Failure)

```json
{
  "success": false,
  "error": {
    "message": "bookmark_not_found"
  }
}
```