Media Resource Tags Endpoints¶
Media Resource Tags API endpoints.
Overview¶
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/media-resources/{media_resource_id}/tags/ |
Get Media Resource Tags |
| POST | /api/v1/media-resources/{media_resource_id}/tags/ |
Assign Media Resource Tags |
| PUT | /api/v1/media-resources/{media_resource_id}/tags/ |
Set Media Resource Tags |
| DELETE | /api/v1/media-resources/{media_resource_id}/tags/ |
Remove Media Resource Tags |
API Reference¶
Sartiq Backend Server - Media Resource Tags 0.1.0¶
media-resource-tags¶
GET /api/v1/media-resources/{media_resource_id}/tags/¶
Get Media Resource Tags
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
OAuth2PasswordBearer |
header | string | N/A | No | |
media_resource_id |
path | string | No |
Responses
{
"tags": [
{
"id": "b777502a-d986-469b-a4eb-d269b98683be",
"name": "string",
"color": null,
"description": null,
"owner_id": "14d9771c-3d80-42f3-ae88-a33f1d0ba6ad",
"organization_id": null,
"created_at": "2022-04-13T15:42:05.901Z",
"updated_at": "2022-04-13T15:42:05.901Z"
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
POST /api/v1/media-resources/{media_resource_id}/tags/¶
Assign Media Resource Tags
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
OAuth2PasswordBearer |
header | string | N/A | No | |
media_resource_id |
path | string | No | ||
organization_id |
query | No |
Request body
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schema of the request body
Responses
{
"tags": [
{
"id": "31a69092-515f-49f8-9ad7-9571898f4eef",
"name": "string",
"color": null,
"description": null,
"owner_id": "fabc2d15-e7f2-462b-a94c-3586987b5db5",
"organization_id": null,
"created_at": "2022-04-13T15:42:05.901Z",
"updated_at": "2022-04-13T15:42:05.901Z"
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
PUT /api/v1/media-resources/{media_resource_id}/tags/¶
Set Media Resource Tags
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
OAuth2PasswordBearer |
header | string | N/A | No | |
media_resource_id |
path | string | No | ||
organization_id |
query | No |
Request body
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schema of the request body
Responses
{
"tags": [
{
"id": "0ea6c555-936b-419a-a643-ced381a0a6cd",
"name": "string",
"color": null,
"description": null,
"owner_id": "962daea9-5cef-4b98-92fe-6759e4452440",
"organization_id": null,
"created_at": "2022-04-13T15:42:05.901Z",
"updated_at": "2022-04-13T15:42:05.901Z"
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
DELETE /api/v1/media-resources/{media_resource_id}/tags/¶
Remove Media Resource Tags
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
OAuth2PasswordBearer |
header | string | N/A | No | |
media_resource_id |
path | string | No | ||
organization_id |
query | No |
Request body
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schema of the request body
Responses
{
"tags": [
{
"id": "16dec3bf-c449-40e6-87ea-12053e6d14d3",
"name": "string",
"color": null,
"description": null,
"owner_id": "ee49b38a-92e0-4ceb-8146-f8eb196f69d4",
"organization_id": null,
"created_at": "2022-04-13T15:42:05.901Z",
"updated_at": "2022-04-13T15:42:05.901Z"
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schemas¶
HTTPValidationError¶
| Name | Type | Description |
|---|---|---|
detail |
Array<ValidationError> |
MediaResourceTagAssign¶
| Name | Type | Description |
|---|---|---|
tag_ids |
Array<string(uuid)> |
MediaResourceTagsPublic¶
| Name | Type | Description |
|---|---|---|
tags |
Array<TagPublic> |
TagPublic¶
| Name | Type | Description |
|---|---|---|
color |
||
created_at |
string(date-time) | |
description |
||
id |
string(uuid) | |
name |
string | |
organization_id |
||
owner_id |
string(uuid) | |
updated_at |
string(date-time) |
ValidationError¶
| Name | Type | Description |
|---|---|---|
ctx |
||
input |
||
loc |
Array<> | |
msg |
string | |
type |
string |
Security schemes¶
| Name | Type | Scheme | Description |
|---|---|---|---|
| OAuth2PasswordBearer | oauth2 |