channel export.md
Channel Export
Channels API · import-export
POST /ui/connectors/channels-api/latest/export/
Export channels as a JSON payload.
Omit channels to export all. Set includeServices=false for a
spec-only export (lighter; services regenerated from templates on import).
Request body
Content type: application/json · Required
channels· object · Optional- One of the following variants:
- array (list of strings)
- Array items (string):
- null (null)
- array (list of strings)
- One of the following variants:
includeServices· boolean · Optional · Defaults to truedescription· object · Optional- One of the following variants:
- string (string)
- null (null)
- One of the following variants:
Example request
curl -X POST "/ui/connectors/channels-api/latest/export/" \
-H "Content-Type: application/json" \
-d '{
"channels": [
"string"
],
"includeServices": true,
"description": "string"
}'
Responses
200 — Successful Response
Example:
null
422 — Validation Error
detail· list of objects · Optional- Array items (object):
loc· list of objects · Required- Array items (object):
- One of the following variants:
- string (string)
- integer (integer)
- One of the following variants:
- Array items (object):
msg· string · Requiredtype· string · Requiredinput· any · Optionalctx· object · Optional
- Array items (object):
Example:
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}
Source spec: channels-api · operationId: channel_export_export__post