Files Demo
GET
Path parameters
fileNamestringRequired
Responses
200
File retrieved successfully
application/json
Responsestring · binary
404
File not found
application/json
500
Internal server error
application/json
get
GET /action-demo-files/{fileName} HTTP/1.1
Host:
Accept: */*
binary
POST
Body
filestring · binaryOptional
Responses
200
File uploaded successfully
application/json
ResponsestringExample:
formatted_file_name.jpg
400
Invalid file
application/json
post
POST /action-demo-files HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"file": "binary"
}
formatted_file_name.jpg
DELETE
Path parameters
fileNamestringRequired
Responses
200
File deleted successfully
application/json
ResponseanyExample:
{"message":"File deleted successfully","description":"The file has been deleted successfully."}
404
File not found
application/json
500
Internal server error
application/json
delete
DELETE /action-demo-files/{fileName} HTTP/1.1
Host:
Accept: */*
{
"message": "File deleted successfully",
"description": "The file has been deleted successfully."
}
Last updated