Download Public Import File
It requires the run-import
permission.
URL | Requires Auth | HTTP Method |
---|---|---|
|
|
|
Headers
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The authenticated user ID. |
|
| Required | Auth token. |
Payload
Argument | Example | Required | Description |
---|---|---|---|
fileUrl |
| Required | The url of the file. It must start with |
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.
No Permission: This occurs when the authenticated user doesn't have the
run-import
permission.Import File Missing: It occurs when the
fileUrl
for the image does not start withhttp
.
Change Log
Version | Description |
---|---|
| Added |
Last updated