VTC Management

Add media to the VTC gallery

Changed on

Adds an image or video by link. Images must be hosted on a supported image host (Imgur, ImgBB, …) with an image file extension; YouTube and Vimeo links become video embeds. Discord attachment links are rejected because they expire. Limited to 60 items per hour per VTC and 1,000 items in total. Needs the write scope gallery.upload.

post/vtcs/{id}/management/gallery

Request

  • Base URL
    https://api.trucklinemp.com
  • Auth
    HTTP bearer

Path parameters

idstring required

VTC id or handle.

Request body

titlestring required
urlstring required

Image link from a supported host (Imgur, ImgBB, …), or a YouTube or Vimeo video.

captionstring nullable
altTextstring nullable
albumIdinteger nullable

Response

OK

idnumber required
albumIdnumber nullable required
mediaTypestring required
providerstring required
urlstring required
thumbnailUrlstring nullable required

Changes