Start Import
Triggers the process of importing users, rooms and messages to the server.
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
| Required | The input object contains two arrays: |
Each user described in the users
array should contain the following properties:
|
| Required | The unique user identifier (which is the username, since the user may not have a proper |
|
| Required | The username for the user. |
|
| Required | The email address for the user. |
|
| Required | Was the described user deleted? |
|
| Required | Is the described user a bot? |
|
| Required | Should the described user be imported? |
|
| Required | Is there an existing user with the same email? |
Similarly, each channel described in the channels
array should contain the following properties:
|
| Required | The unique room identifier. |
|
| Required | The name of the room. |
|
| Optional; Default: | The identifier of the room owner. |
|
| Required | Is the described room private? |
|
| Required | Is the described room of type "Direct Messages"? |
|
| Required | Is the described room archived? |
|
| Required | Should the described room be imported? |
Example Call
Example Result
Success
Error
No Permission: This occurs when the authenticated user doesn't have the
run-import
permission.
Change Log
Version | Description |
---|---|
| Added |
Last updated