Create Entity Directory File
PUT/file/v1/:file_type/:entity_type/:entity_id/:file_name
Upload a file to entity storage for the provided entity_id. This endpoint will accept a multipart/form-data by default when the request's content-type is not provided. When a content-type is provided, the request body will be as raw bytes.
Request
Path Parameters
Possible values: [file, developer-file]
Possible values: [match, unknown]
Header Parameters
- multipart/form-data
- application/octet-stream
Body
required
Body
required
string
Responses
- 204
- 403
- 422
Successful Response
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}