Peertube 7.0.1 video upload api e400 "invalid id"

Hello,

I am trying to upload video through the api, unfortunately I get the below error message:

This is the whole request / answer:

> POST http://feditubo.yt/api/v1/videos/upload
> Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> content-type: multipart/form-data; boundary=--------------------------961124744420947747170943
> data
{
  "_overheadLength": 552,
  "_valueLength": 127,
  "_valuesToMeasure": [
    {
      "fd": null,
      "path": "/mnt/nas/yutuf_backup/Destiny 2 Beyond Light PC - cazadorino limpiando oleadas en la luna [sh7lymaIrgA].mp4",
      "flags": "r",
      "mode": 438,
      "end": null,
      "bytesRead": 0,
      "_events": {},
      "_readableState": {
        "highWaterMark": 65536,
        "buffer": [],
        "bufferIndex": 0,
        "length": 0,
        "pipes": [],
        "awaitDrainWriters": null
      },
      "_eventsCount": 3
    }
  ],
  "writable": false,
  "readable": true,
  "dataSize": 0,
  "maxDataSize": 2097152,
  "pauseStreams": true,
  "_released": false,
  "_streams": [
    "----------------------------961124744420947747170943\r\nContent-Disposition: form-data; name=\"channelId\"\r\n\r\n",
    "3",
    null,
    "----------------------------961124744420947747170943\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\n",
    "Destiny 2 Beyond Light PC - cazadorino limpiando oleadas en la luna",
    null,
    "----------------------------961124744420947747170943\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\n",
    "video original: https://www.youtube.com/watch?v=sh7lymaIrgA",
    null,
    "----------------------------961124744420947747170943\r\nContent-Disposition: form-data; name=\"videofile\"; filename=\"Destiny 2 Beyond Light PC - cazadorino limpiando oleadas en la luna [sh7lymaIrgA].mp4\"\r\nContent-Type: video/mp4\r\n\r\n",
    {
      "source": {
        "fd": null,
        "path": "/mnt/nas/yutuf_backup/Destiny 2 Beyond Light PC - cazadorino limpiando oleadas en la luna [sh7lymaIrgA].mp4",
        "flags": "r",
        "mode": 438,
        "end": null,
        "bytesRead": 0,
        "_events": {},
        "_readableState": {
          "highWaterMark": 65536,
          "buffer": [],
          "bufferIndex": 0,
          "length": 0,
          "pipes": [],
          "awaitDrainWriters": null
        },
        "_eventsCount": 3
      },
      "dataSize": 0,
      "maxDataSize": null,
      "pauseStream": true,
      "_maxDataSizeExceeded": false,
      "_released": false,
      "_bufferedEvents": [
        {
          "0": "pause"
        }
      ],
      "_events": {},
      "_eventsCount": 1
    },
    null
  ],
  "_currentStream": null,
  "_insideLoop": false,
  "_pendingNext": false,
  "_boundary": "--------------------------961124744420947747170943"
}
< 400 - Bad Request
< server: openresty
< date: Tue, 25 Mar 2025 19:04:03 GMT
< content-type: application/problem+json; charset=utf-8
< content-length: 370
< connection: keep-alive
< x-powered-by: PeerTube
< x-frame-options: DENY
< tk: N
< access-control-allow-origin: *
< access-control-allow-credentials: true
< access-control-expose-headers: Retry-After
< x-ratelimit-limit: 50
< x-ratelimit-remaining: 49
< x-ratelimit-reset: 1742929454
< etag: W/"172-mNpiohjDm6aih9pl5vmmwDx6xj4"

Hi,

Enable debug logs on your peertube instance and paste them when you do the client request

warn[3/27/2025, 2:56:27 PM] Incorrect request parameters

{
  "path": "/api/v1/videos/upload",
  "err": {
    "id": {
      "type": "field",
      "value": "upload",
      "msg": "Should have a valid video id (id, short UUID or UUID)",
      "path": "id",
      "location": "params"
    }
  }
}

info[3/27/2025, 2:56:27 PM] 79.116.197.133 - - [27/Mar/2025:14:56:27 +0000] "GET /api/v1/videos/upload HTTP/1.1" 400 370 "-" "bruno-runtime/1.38.1"

{
  "tags": [
    "http"
  ]
}

thats all I can see relevant to this request

apparently it was because I had not specified https and http was being used