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": "6ba721c7-bbcf-427d-bdbf-faac09f8b3a9",
"name": "string",
"color": null,
"description": null,
"owner_id": "6b86ced8-238c-4638-b3c9-1fed11919cd7",
"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": "06d76a44-2deb-41ba-bcfa-ee8c38fd1018",
"name": "string",
"color": null,
"description": null,
"owner_id": "4ca89ca5-129f-4cfe-9b20-51adde0bd936",
"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": "dbb10d6e-1dc5-4228-9457-7a4b093b1dc8",
"name": "string",
"color": null,
"description": null,
"owner_id": "3742af54-f1fe-4130-85c8-73f6f41ef462",
"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": "0633f2cf-1eaf-4eb0-8ade-a17bb2604d77",
"name": "string",
"color": null,
"description": null,
"owner_id": "9f2868b2-4127-4bb2-8abe-a1b374a00914",
"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 |