Resource functions
- get_resource_field_data
- create_resource
- delete_resource
- copy_resource
- get_resource_log
- update_resource_type
- get_resource_path
- get_resource_data
- get_alternative_files
- get_resource_types
- add_alternative_file
- delete_alternative_file
- upload_file
- upload_file_by_url
- upload_multipart
- get_related_resources
- resource_log_last_rows
- replace_resource_file
- get_resource_all_image_sizes
- put_resource_data
- update_related_resource
- relate_all_resources
- get_edit_access
- get_resource_access
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
get_resource_types
Returns all configured resource types available to this user.
No parameters.
Return values
The configured resource types.. From V10.2 the associated resource_type_fields will also be returned as an array of field IDs
[
{
"ref": "1", "name": "Photo", "allowed_extensions": null, "order_by": null, "config_options": null, "tab_name": null, "push_metadata": null, "colour": null, "icon": "fas fa-image", "tab": null, "resource_type_fields": [
8, 10, 12, 18, 25, 29, 51, 52, 54, 72, 73, 74, 75, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93
]
},
{
"ref": "2", "name": "Document", "allowed_extensions": null, "order_by": null, "config_options": null, "tab_name": null, "push_metadata": null, "colour": null, "icon": "fas fa-file-alt", "tab": null, "resource_type_fields": [
8, 9, 10, 12, 18, 25, 29, 51, 72, 73, 74, 75, 84, 85, 86, 87, 90, 91, 93
]
}, {
"ref": "3", "name": "Video", "allowed_extensions": null, "order_by": null, "config_options": null, "tab_name": null, "push_metadata": null, "colour": null, "icon": "fas fa-video", "tab": null, "resource_type_fields": [
8, 10, 12, 18, 25, 29, 51, 72, 73, 74, 75, 76, 77, 78, 79, 84, 85, 86, 87, 90, 91, 93
]
}, {
"ref": "4", "name": "Audio", "allowed_extensions": null, "order_by": null, "config_options": null, "tab_name": null, "push_metadata": null, "colour": null, "icon": "fas fa-music", "tab": null, "resource_type_fields": [
29, 80, 81, 82, 83
]
}
]