createMetadata

fun Media.createMetadata(    mediaId: Long,     payload: JsonObject,     vararg options: Option): EmptyApiAction

This endpoint can be used to provide additional information about the uploaded media_id. This feature is currently only supported for images and GIFs. The request flow should be:

  1. Upload media using either the simple upload endpoint or the (preferred) chunked upload endpoint.

  2. Call this endpoint to attach additional metadata such as image alt text.

  3. Create Tweet with media_id(s) attached.

Twitter API reference

Receiver

Media endpoint instance.

Return

EmptyApiAction.

Parameters

options

Optional. Custom parameters of this request.