-
Notifications
You must be signed in to change notification settings - Fork 0
Device Media Edit API
Media Edit endpoints for API usage.
All calls are made on the standard api endpoint:
https://api-prod.maxloapi.com
Create a new file in the volume. See File Hashing for details on creating the file_hash correctly.
POST /device/1/media_grant/<media_grant_id>/media
device_session_key - string - provided in query string or body
media_grant_id - number - ID of the media grant.
media_path - string - The path for the file.
file_hash - string - The hash of the file.
file_size - number - The size of the file.
ctime - string - The ISO8601 string of the ctime of the file.
mtime - string - The ISO8601 string of the ctime of the file.
200 OK
media_id - number - Media ID
403 Forbidden
Not logged in
409 Conflict
Already a media object with that media_path. This will rarely happen as
we attempt to resolve multiple parallel creates with success on both. Which
content wins will depend on exact ordering of requests in the case where
2 clients attempt to create a file at the same path at the same time. The losing
client will recieve the data for the current state of the media_path.
media_id - number - ID of the media file.
media_path - string - The path for the file.
file_hash - string - The hash of the file.
file_size - number - The size of the file.
ctime - string - The ISO8601 string of the ctime of the file.
mtime - string - The ISO8601 string of the ctime of the file.
last_updated_user_id - number - ID of the last user to modify the file. May be null.
last_updated_device_id - number - ID of the last user to modify the file. May be null.
last_updated - string - The ISO8601 string of the last modification of the file.
is_deleted - boolean - File deleted flag.
Update an existing media file. Implicitly undeletes the file.
POST /device/1/media_grant/<media_grant_id>/media/<media_id>
device_session_key - string - provided in query string or body
media_grant_id - number - ID of the media grant.
media_id - number - ID of the media file to update.
file_hash - string - The hash of the file. file_size - number - The size of the file. ctime - string - The ISO8601 string of the ctime of the file. mtime - string - The ISO8601 string of the ctime of the file.
200 OK
Media updated successfully
403 Forbidden
Not logged in
Delete an existing media file.
DELETE /device/1/media_grant/<media_grant_id>/media/<media_id>
user_session_key - string - provided in query string or body
media_grant_id - number - ID of the media grant.
media_id - number - ID of the media file.
200 OK
Media updated successfully.
403 Forbidden
Not logged in