Upload file
POST
/waInstance{{idInstance}}/uploadFile/{{apiTokenInstance}}Documentation UploadFile
Request
Header Params
Content-Type
string
required
In the request header, you must specify the file type Content-Type in accordance with the List of MIME types.
GA-Filename
string
required
If the file is not in the list of MIME types, you can pass the GA-Filename header, specifying the file name with the extension. This will allow you to upload files such as .go or .py.
Body Params application/octet-stream
Not configured
Request samples
Responses
uploadFile(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
urlFile
string
required
ExampleuploadFile
{
"urlFile": "https://sw-media-out.storage.yandexcloud.net/1101123456/95917013-579d-429f-9145-469865c4a6e8.jpg"
}
Last modified: 18 days ago