Assign Tags
PUT
/api/v1/tags/items
const url = 'https://example.com/api/v1/tags/items';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"path":"example","tags":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/tags/items \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "example", "tags": [ "example" ] }'Assigns the Tags. It requires a signed-in User with the data scope. It can return 400 if the request is invalid, 401 if the session is missing or expired and 403 if access is denied. Route: /api/v1/tags/items. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
path
required
string
tags
required
Array<string>
Examplegenerated
{ "path": "example", "tags": [ "example" ]}Responses
Section titled “Responses”Media typeapplication/json
object
path
required
string
tags
required
Array<string>
Examplegenerated
{ "path": "example", "tags": [ "example" ]}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}