This document provides a general description of Media Pocket API. Please setup API keys in UI under your profile settings. In case of problems email support@mediapocket.fi

Resources

Admin field groups

Resource Description
POST /api/v2/admin/field_groups Create field group
POST /api/v2/admin/field_groups/:field_group_id Update field group
POST /api/v2/admin/field_groups/:field_group_id/fields Add field to field group
DELETE /api/v2/admin/field_groups/:field_group_id Delete field group
DELETE /api/v2/admin/field_groups/:field_group_id/fields/:field_id Delete field from field group
POST /api/v2/admin/field_groups/:id/fields/:field_id Update field

Assets

Resource Description
GET /api/v2/assets/:asset_id Get asset
GET /api/v2/assets/:asset_id/media Get asset media and download URLs
POST /api/v2/assets/:asset_id/media Add media to asset
POST /api/v2/assets Create asset
PUT /api/v2/assets/:asset_id Update asset
POST /api/v2/assets/:asset_id/trashbin Move asset to trash bin from where it will be deleted after 14 days
POST /api/v2/assets/:asset_id/restore Restores asset from trash bin
DELETE /api/v2/assets/:asset_id Permanently delete asset
POST /api/v2/assets/:asset_id/assign Assign asset to project
DELETE /api/v2/assets/:asset_id/unassign Unassign asset from project

Comments

Resource Description
GET /api/v2/assets/:asset_id/comments Get comments for asset
POST /api/v2/assets/:asset_id/comments Create comment for asset
GET /api/v2/projects/:project_id/comments Get comments for project
POST /api/v2/projects/:project_id/comments Create comment for project

Custom fields

Resource Description
GET /api/v2/assets/:asset_id/custom_fields Returns custom fields for asset
POST /api/v2/assets/:asset_id/custom_fields/:field_group_id Update field group for asset, Including fields
DELETE /api/v2/assets/:asset_id/custom_fields/:field_group_id Remove field group from asset
GET /api/v2/projects/:project_id/custom_fields Returns custom fields for project
POST /api/v2/projects/:project_id/custom_fields/:field_group_id Update field group for project, Including fields
DELETE /api/v2/projects/:project_id/custom_fields/:field_group_id Remove field group from project

External ids

Resource Description
GET /api/v2/external_ids/:external_id Get asset or project by external ID

Field groups

Resource Description
GET /api/v2/field_groups Get all field groups
GET /api/v2/fields_groups/:field_group_id Get field group by id

History

Resource Description
GET /api/v2/assets/:asset_id/history Get asset history
GET /api/v2/projects/:project_id/history Get project history

Projects

Resource Description
GET /api/v2/projects List project IDs for current user
GET /api/v2/projects/:project_id Get project
GET /api/v2/projects/:project_id/members Get project members
POST /api/v2/projects/:project_id/members Add user to project
GET /api/v2/projects/:project_id/assets Get assets and subproject for a project
POST /api/v2/projects Create project
PUT /api/v2/projects/:project_id Update project
POST /api/v2/projects/:project_id/trashbin Move project and all related projects and assets to trash bin from where it will be deleted after 14 days
POST /api/v2/projects/:project_id/restore Restores project and all related projects and assets from trash bin
DELETE /api/v2/projects/:project_id Permanently delete project and all related projects and assets
POST /api/v2/projects/:project_id/assign Assign subproject to project
DELETE /api/v2/projects/:project_id/unassign Unassign subproject from project