Attach tags to a bookmark
POSThttps://try.hoarder.app/api/v1/bookmarks/:bookmarkId/tags
Attach tags to a bookmark
Request
Path Parameters
bookmarkId BookmarkIdrequired
- application/json
Body
The tags to attach.
tags object[]required
Responses
- 200
- 404
The list of attached tag ids
- application/json
- Schema
- Example (auto)
Schema
attachedTagId (string)[]required
{
"attached": [
"ieidlxygmwj87oxz5hxttoc8"
]
}
Bookmark not found
- application/json
- Schema
- Example (auto)
Schema
codestringrequired
messagestringrequired
{
"code": "string",
"message": "string"
}
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://try.hoarder.app/api/v1/bookmarks/:bookmarkId/tags");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"tags\": [\n {\n \"tagId\": \"string\",\n \"tagName\": \"string\"\n }\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());