Upload Import File
This endpoint takes in the binary content of the imported file, along with additional information about its content, and stores it in a buffer.
URL | Requires Auth | HTTP Method |
---|---|---|
|
|
|
Headers
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The authenticated user ID. |
|
| Required | Auth token. |
Payload
Argument | Example | Required | Description |
---|---|---|---|
binaryContent |
| Required | The uploaded file. |
contentType |
| Required | |
fileName |
| Required | The name of the file to be imported. |
importerKey |
| Required | It indicates how Rocket.Chat should handle the uploaded file. The accepted importer keys are: |
Example payload
Example Call
Example Result
Success
Error
Invalid Importer Key: This happens when the importer key does not match any of the accepted options.
Change Log
Version | Description |
---|---|
| Added |
Last updated