Save a new media file. Note: To upload files to a request, use createRequestFile in the RequestFile API

Prev Next
Post
/files

Store a newly created resource in storage.

Security
OAuth

Laravel passport oauth2 security.

FlowAuthorization Code
Authorization URLhttps://develop-qa.processmaker.net/oauth/authorize
Token URLhttps://develop-qa.processmaker.net/oauth/token
Refresh URLhttps://develop-qa.processmaker.net/token/refresh
Query parameters
model_id
integerRequired

ID of the model to which the file will be associated

model
stringRequired

Full namespaced class of the model to associate

data_name
string

Name of the variable used in a request

collection
string

Media collection name. For requests, use 'default'

Body parameters
object
file
string (binary)

save a new media file

Responses
200

success

object
id
string
model_id
string
file_name
string
mime_type
string