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}/coverA 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 pathThe upload's id, as its start answered.
Answers
Request
curl -X POST "https://api.example.org/videos/uploads/<id>/cover" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/videos/uploads/<id>/cover', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/videos/uploads/<id>/cover",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Written by Claude, reviewed by Rastin Mehr · About this