Skip to content

Posts

Audio posts

video-service

A sound posted or recorded: one M4A at an even loudness, with its cover, its waveform and its listening card (audio.md). It is begun, read, changed and deleted at the routes a video is, /videos/...; GET /videos/{owner_id}/?type=audio is a profile's audio posts, and GET /videos/{id}/files/{name} its audio.m4a, cover.jpg, picture.jpg and card.jpg. What is a sound's alone is here.

A sound's cover, while it is sent

POST/videos/uploads/{id}/cover

A picture, JPEG, PNG, WebP or GIF, at most 15 MB, as the multipart field cover, before the upload is complete. The worker makes it the post's cover, in place of a picture the file carries, so it is there when the post first goes out.

Who: Somebody signed in

Parameters

  • idstring (uuid)requiredin path
    The upload's id, as its start answered.

Answers

  • 204
    No Content
  • 401
    no token, or one that has expired
  • 404
    there is no such upload of the viewer's
  • 409
    not_a_sound: it is a video; not_uploading: it is not being sent any more
    Refusal application/json
  • 413
    too_large
    Refusal application/json
  • 415
    not_a_picture
    Refusal application/json

Request

curl -X POST "https://api.example.org/videos/uploads/<id>/cover" \
  -H "Authorization: Bearer $TOKEN"

Written by Claude, reviewed by Rastin Mehr · About this