Media Storage Service API documentation
https://api.syniverse.com/mediastorage/v1
The purpose of this specification is to describe the Media Storage Service (MSS) capabilities, core concepts, and API set. Media Storage Service is a collaborative file sharing service that enables batch services to exchange data in media files between customers and others services for processing.
The File resource refers to a data file within Media Storage Service that is associated to a unique file identifier named fileId..
Resource attributes:
file_id (string): Unique file identifier for the File
company-id (number): Company identifier
file_name (string): Name of the file (Filter Not implemented)
file_tags (string): File tags allow the files to be searched. A maximum of 5 tags allowed, each separated by comma(,) delimiter with optional spaces at start and end of tag (Filter Not implemented)
file_version (number): Version of the file metadata. Update operations must specify the extant version of the file
creation_time (date): Date/time when the file was defined.
file_retention_time (number): Time period for retention of file in days. Typically configured to 7 days
expire_time (date): Date/time when the file becomes expired. Determined by adding the file_retention_time to the creation_time.
app_name (string): Name of the application submitting the file
file_status (string): The file's creation status; e.g.,
created (File is created but no upload has been performed),
active (File upload is in progress),
complete (File upload is complete),
failed (File upload failed),
deleted (File has been deleted).
The file_status is managed by the service
(Filter Not implemented)
file_uri (string): URI for streaming the file content
file_size (number): The current size of the file on the store
file_fullsize (number): Size of file expected when upload is complete. Maximum allowed size is 200MB
file_compression_type (string): If compressed, specify the compression type.
Returns the list of files associated with a customer. Additional filters can be used to narrow down the search result.
Create a new file returning the URI to subsequently stream the file.
Returns the list of files associated with a customer. Additional filters can be used to narrow down the search result.
Filter
Filter
Filter
Successful operation
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "File List",
"type": "array",
"items": {
"title": "File",
"type": "object",
"properties": {
"file_id": {
"type": "string"
},
"company-id": {
"type": "number"
},
"file_name": {
"type": "string"
},
"file_tags": {
"type": "string"
},
"file_version": {
"type": "number"
},
"file_retention_time": {
"type": "number"
},
"app_name": {
"type": "string"
},
"file_status": {
"type": "string"
},
"file_uri": {
"type": "string"
},
"creation_time": {
"type": "date"
},
"modified_time": {
"type": "date"
},
"expire_time": {
"type": "date"
},
"file_size": {
"type": "number"
},
"file_fullsize": {
"type": "number"
},
"file_compression_type": {
"type": "string"
}
}
}
}
Bad Request. The request could not be understood by the server.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Unauthorized. The request requires user authentication.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Payment Required.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Forbidden. The user does not have permission to access the specified resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
"Not Found. The server has not found anything matching the Request-URI."
Conflict. The request could not be completed due to a conflict with the current state of the target resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Precondition Failed. The server does not meet one of the preconditions that the requester put on the request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Too Many Requests. The user has sent too many requests in a given amount of time.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Error. An error has been encountered while processing this request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Unavailable.
Create a new file returning the URI to subsequently stream the file.
Type: application/json
Form Parameterssuccessful operation
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Create Resource Response",
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
}
Bad Request. The request could not be understood by the server.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Unauthorized. The request requires user authentication.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Payment Required.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Forbidden. The user does not have permission to access the specified resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
"Not Found. The server has not found anything matching the Request-URI."
Conflict. The request could not be completed due to a conflict with the current state of the target resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Precondition Failed. The server does not meet one of the preconditions that the requester put on the request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Too Many Requests. The user has sent too many requests in a given amount of time.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Error. An error has been encountered while processing this request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Unavailable.
An individual file's details.
Returns the file information based on the fileid. File contents are not returned.
Update the file attributes.
Removes the file and its contents
Returns the file information based on the fileid. File contents are not returned.
This is the unique identifier of the file resource.
Successful operation
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "File",
"type": "object",
"properties": {
"file_id": {
"type": "string"
},
"company-id": {
"type": "number"
},
"file_name": {
"type": "string"
},
"file_tags": {
"type": "string"
},
"file_version": {
"type": "number"
},
"file_retention_time": {
"type": "number"
},
"app_name": {
"type": "string"
},
"file_status": {
"type": "string"
},
"file_uri": {
"type": "string"
},
"creation_time": {
"type": "date"
},
"modified_time": {
"type": "date"
},
"expire_time": {
"type": "date"
},
"file_size": {
"type": "number"
},
"file_fullsize": {
"type": "number"
},
"file_compression_type": {
"type": "string"
}
}
}
Bad Request. The request could not be understood by the server.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Unauthorized. The request requires user authentication.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Payment Required.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Forbidden. The user does not have permission to access the specified resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
"Not Found. The server has not found anything matching the Request-URI."
Conflict. The request could not be completed due to a conflict with the current state of the target resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Precondition Failed. The server does not meet one of the preconditions that the requester put on the request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Too Many Requests. The user has sent too many requests in a given amount of time.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Error. An error has been encountered while processing this request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Unavailable.
Update the file attributes.
This is the unique identifier of the file resource.
Type: application/json
Form Parameterssuccessful operation
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Create Resource Response",
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
}
Bad Request. The request could not be understood by the server.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Unauthorized. The request requires user authentication.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Payment Required.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Forbidden. The user does not have permission to access the specified resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
"Not Found. The server has not found anything matching the Request-URI."
Conflict. The request could not be completed due to a conflict with the current state of the target resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Precondition Failed. The server does not meet one of the preconditions that the requester put on the request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Too Many Requests. The user has sent too many requests in a given amount of time.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Error. An error has been encountered while processing this request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Unavailable.
Removes the file and its contents
This is the unique identifier of the file resource.
successful operation
Type: application/json
Bad Request. The request could not be understood by the server.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Unauthorized. The request requires user authentication.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Payment Required.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Forbidden. The user does not have permission to access the specified resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
"Not Found. The server has not found anything matching the Request-URI."
Conflict. The request could not be completed due to a conflict with the current state of the target resource.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Precondition Failed. The server does not meet one of the preconditions that the requester put on the request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Too Many Requests. The user has sent too many requests in a given amount of time.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Error. An error has been encountered while processing this request.
Possible Error Codes:
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response",
"type": "object",
"properties": {
"error_code": {
"type": "string"
},
"error_description": {
"type": "string"
}
}
}
Server Unavailable.