How do I call the tags endpoints over HTTP?

Table of Contents

This file documents the tags resource over HTTP, one section per endpoint. Every section exports its own Hurl file into projects/ores.http/scripts/library/. Running a file sends that one request, so a failure names the endpoint it came from.

1. Endpoints

1.1. GET /api/v1/assets/tags

List tags. It needs a session.

It forwards to assets.v1.tags.list.

The request is:

GET /api/v1/assets/tags
GET {{base_url}}/api/v1/assets/tags
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.2. GET /api/v1/assets/tags/__none__

Get one tag. It needs a session.

It forwards to assets.v1.tags.get.

The request is:

GET /api/v1/assets/tags/__none__
GET {{base_url}}/api/v1/assets/tags/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.3. POST /api/v1/assets/tags/get-many

Get many tags. It needs a session.

It forwards to assets.v1.tags.get_many.

The request is:

POST /api/v1/assets/tags/get-many
POST {{base_url}}/api/v1/assets/tags/get-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.4. POST /api/v1/assets/tags

Create one tag. It needs a session.

It forwards to assets.v1.tags.put.

The request is:

POST /api/v1/assets/tags
POST {{base_url}}/api/v1/assets/tags
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.5. PUT /api/v1/assets/tags

Replace one tag. It needs a session.

It forwards to assets.v1.tags.put.

The request is:

PUT /api/v1/assets/tags
PUT {{base_url}}/api/v1/assets/tags
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.6. POST /api/v1/assets/tags/put-many

Write many tags. It needs a session.

It forwards to assets.v1.tags.put_many.

The request is:

POST /api/v1/assets/tags/put-many
POST {{base_url}}/api/v1/assets/tags/put-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.7. DELETE /api/v1/assets/tags/__none__

Delete one tag. It needs a session.

It forwards to assets.v1.tags.delete.

The request is:

DELETE /api/v1/assets/tags/__none__
DELETE {{base_url}}/api/v1/assets/tags/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.8. POST /api/v1/assets/tags/delete-many

Delete many tags. It needs a session.

It forwards to assets.v1.tags.delete_many.

The request is:

POST /api/v1/assets/tags/delete-many
POST {{base_url}}/api/v1/assets/tags/delete-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.9. GET /api/v1/assets/tags/__none__/versions

List the recorded versions of one tag. It needs a session.

It forwards to assets.v1.tags_versions.list.

The request is:

GET /api/v1/assets/tags/__none__/versions
GET {{base_url}}/api/v1/assets/tags/__none__/versions
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.10. GET /api/v1/assets/tags/__none__/versions/0

Get one recorded version of one tag. It needs a session.

It forwards to assets.v1.tags_versions.get.

The request is:

GET /api/v1/assets/tags/__none__/versions/0
GET {{base_url}}/api/v1/assets/tags/__none__/versions/0
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

Emacs 29.3 (Org mode 9.6.15)