Upload Files
POST/entities/{entity-id}/files
Uploads files for later use.
Request
Path Parameters
Entity Id
- application/json
Body
required
file
object
required
BaseFile
Responses
- 201
- 400
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
file
object
FileUploaded
Id
result
object
required
Status of the request: success | error
Possible values: [success
, error
]
errors
object
Object describing the error in case such occurred during processing of the request.
Code of the error in case such occurred during processing of the request.
Possible values: <= 11 characters
Description of the error in case such occurred during processing of the request.
Possible values: <= 400 characters
{
"file": {
"correlationId": "string",
"name": "string"
},
"result": {
"status": "success",
"errors": {
"code": "string",
"reason": "string"
}
}
}