Import channels

post/api/channel-import/

Creates and updates channels from an export, and with mode=replace deletes the others. It returns at once, saying whether each channel was accepted, skipped or rejected. Accepted channels are then configured in the background: each channel's status.syncState shows when that has finished.

Requires the add and change permissions. With mode=replace the delete permission is also required.

Query parameters

dryRunbooleanOptionalDefaults to false
When true, nothing is changed. The response describes what the same request would do without dryRun.

Request

This endpoint expects an object.

Loading schema details…

Response

200Successful Response

Loading schema details…

Errors

400Unsupported export version (REQUEST-0011).

Loading schema details…

401- Sign-in needed (AUTH-0002). - Sign-in expired (AUTH-0003). - Sign-in not valid (AUTH-0004).

Loading schema details…

403Permission needed (AUTH-0001).

Loading schema details…

422Invalid value (REQUEST-0021).

Loading schema details…

500Internal error. The request could not be completed. `errors[].code` identifies the failure; quote it if you contact support.

Loading schema details…

503Temporarily unavailable (CONN-0004).

Loading schema details…