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 URLhttp://processmaker.test/oauth/authorize
Token URLhttp://processmaker.test/oauth/token
Refresh URLhttp://processmaker.test/token/refresh
HTTP
Type bearer
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