v1

latestOpenAPI 3.0.0AGPLv3.02026-07-14186117194.3 KB
Channels Sync

Create a synchronization for a video channel

post/api/v1/video-channel-syncs

Request body

externalChannelUrlstring
videoChannelIdinteger

Example request

{
  "externalChannelUrl": "https://youtube.com/c/UC_myfancychannel",
  "videoChannelId": 42
}

Response

successful operation

Example response

{
  "videoChannelSync": {
    "channel": {
      "id": 42,
      "name": "chocobozzz",
      "description": "Videos made with <3 by Framasoft",
      "displayName": "Videos of Framasoft",
      "ownerAccount": {
        "uuid": "9c9de5e8-0a1e-484a-b099-e80766180a6d"
      },
      "support": "Please support our work on https://soutenir.framasoft.org/en/ <3"
    },
    "externalChannelUrl": "https://youtube.com/c/UC_myfancychannel",
    "id": 42,
    "state": {
      "id": 2,
      "label": "PROCESSING"
    }
  }
}