controllers / metadata.php
Metadata
Controller
Manages metadata.
public
category_delete
(
)
public
category_delete
(
)
Delete a media category. Requires 'manage_media_settings' permission.
id |
DELETE
/api/v2/metadata/categories/(:id:)
public
category_get
(
)
public
category_get
(
)
Retrieve a media category by ID.
id |
[id, name, is_default]
GET
/api/v2/metadata/categories/(:id:)
public
category_list
(
)
public
category_list
(
)
Return filtered and ordered media categories.
filters |
|
orderby |
|
orderdesc |
|
limit |
|
offset |
categories
GET
/api/v2/metadata/categories
public
category_save
(
)
public
category_save
(
)
Save a media category. Requires 'manage_media_settings' permission.
id |
Optional when editing already existing category. |
name |
|
default |
Set as default category for new media. |
POST
/api/v2/metadata/categories
public
country_list
(
)
public
country_list
(
)
List all media countries.
countries
GET
/api/v2/metadata/countries
public
genre_delete
(
)
public
genre_delete
(
)
Delete a media genre. Requires 'manage_media_settings' permission.
id |
DELETE
/api/v2/metadata/genres/(:id:)
public
genre_get
(
)
public
genre_get
(
)
Return a genre by ID.
id |
[id, name, description, media_category_id]
GET
/api/v2/metadata/genres/(:id:)
public
genre_list
(
)
public
genre_list
(
)
Return filtered and ordered media genres.
filters |
|
orderby |
|
orderdesc |
|
limit |
|
offset |
genres
GET
/api/v2/metadata/genres
public
genre_save
(
)
public
genre_save
(
)
Save a media genre. Requires 'manage_media_settings' permission.
id |
Optional when updating a pre-existing genre. |
name |
|
description |
|
media_category_id |
|
default |
Set as default genre for new media. |
POST
/api/v2/metadata/genres
public
language_list
(
)
public
language_list
(
)
List all media languages.
languages.
GET
/api/v2/metadata/languages
public
media_get_fields
(
)
public
media_get_fields
(
)
List all media core metadata fields defined in the settings table.
metadata_fields
GET
/api/v2/metadata/core
public
media_metadata_fields
(
)
public
media_metadata_fields
(
)
List all media metadata fields.
metadata_fields
GET
/api/v2/metadata
public
media_required_fields
(
)
public
media_required_fields
(
)
Update required metadata fields for media. Requires 'manage_media_settings' permission.
artist |
|
album |
|
year |
|
category_id |
|
country_id |
|
language_id |
|
comments |
|
dynamic_content_default |
|
dynamic_content_hidden |
PUT
/api/v2/metadata/required
public
metadata_delete
(
)
public
metadata_delete
(
)
Delete a metadata field. Requires 'manage_media_settings' permission.
id |
DELETE
/api/v2/metadata/(:id:)
public
metadata_order
(
)
public
metadata_order
(
)
Change metadata field order. Requires 'manage_media_settings' permission.
order |
PUT
/api/v2/metadata/order
public
metadata_save
(
)
public
metadata_save
(
)
Add or edit a metadata field. Requires 'manage_media_settings' permission.
id |
Optional when editing already existing metadata field. |
name |
|
description |
|
type |
Text (single or multiple lines), boolean, dropdown, tags. |
select_options |
Options in dropdown when selected as type. |
default |
|
tag_suggestions |
POST
/api/v2/metadata
public
metadata_tag_search
(
)
public
metadata_tag_search
(
)
Search metadata field for tags from the suggested tags saved.
id |
|
search |
[tag]
GET
/api/v2/metadata/tags