System API (1.0.0)
Download OpenAPI specification:Download
Upload a file
Upload a file
Authorizations:
jwt
Request Body schema: multipart/form-data
| bucket required | string Enum: "images" "files" |
| type required | string Enum: "sample" "avatar" "weighbridge" "contract" "image" "logo" "misc" "vehicle" "terms-conditions" "logistics-delivery" "logistics-load" Name of the different file types in use (contract, sample etc) |
| file required | Array of strings <binary> |
| name | string |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "id": "string",
- "tags": [
- "string"
], - "info": {
- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "userId": "string"
}, - "organisationId": "string",
- "userId": "string",
- "type": "string",
- "status": "active"
}Download a file
Download a file
Authorizations:
jwt
path Parameters
| id required | string Id of the file to download |
Responses
Response samples
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "status": "string",
- "message": "string",
- "stack": "string",
- "code": "string",
- "body": { },
- "validation": [
- {
- "path": "string",
- "message": "string",
- "code": "string"
}
]
}Delete file
Archives a file.
Authorizations:
jwt
path Parameters
| id required | string Id of the file to download |
Responses
Response samples
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "status": "string",
- "message": "string",
- "stack": "string",
- "code": "string",
- "body": { },
- "validation": [
- {
- "path": "string",
- "message": "string",
- "code": "string"
}
]
}Request file information
Request file information without downloading it
Authorizations:
jwt
path Parameters
| id required | string Id of the file to download |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "userId": "string"
}Create cache
API to update the cache
Authorizations:
jwt
Request Body schema: application/json
| keys | Array of strings |
| prefixes | Array of strings |
| flush | boolean or null Default: false |
| secrets | boolean or null Default: false |
Responses
Request samples
- Payload
Content type
application/json
{- "keys": [
- "string"
], - "prefixes": [
- "string"
], - "flush": false,
- "secrets": false
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "message": "string",
- "status": "string"
}Update system settings
Change the system settings document in the system module
Authorizations:
jwt
Request Body schema: application/json
required | object | ||||
| |||||
Responses
Request samples
- Payload
Content type
application/json
{- "logging": {
- "level": "string",
- "filter": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
Content type
application/json
{- "message": "string",
- "status": "string"
}