add

fun CollectionEntries.add(    id: String,     tweetId: Long,     relativeTo: Long? = null,     above: Boolean? = null,     vararg options: Option): JsonObjectApiAction<Collection.Entry.Result>

Add a specified Tweet to a Collection. A collection will store up to a few thousand Tweets. Adding a Tweet to a collection beyond its allowed capacity will remove the oldest Tweet in the collection based on the time it was added to the collection. Use POST collections/entries/curate to add Tweets to a Collection in bulk.

Twitter API reference

Receiver

CollectionEntries endpoint instance.

Return

JsonObjectApiAction for Collection.Entry.Result model.

Parameters

id

The identifier of the Collection receiving the Tweet.

tweetId

The identifier of the Tweet to add to the Collection.

relativeTo

The identifier of the Tweet used for relative positioning in a curation_reverse_chron ordered collection.

above

Set to false to insert the specified tweet_id below the relative_to Tweet in the collection. Default: true

options

Optional. Custom parameters of this request.