editCollection

fun editCollection(collection: LinksCollection, color: String, title: String, description: String, links: List<String>): JSONObject

Function to execute the request to edit a collection

Return

the result of the request as JSONObject

Parameters

collection

: the collection to edit

color

: color of the collection

title

: title of the collection

description

: description of the collection

links

: list of links shared in a collection


fun editCollection(collectionId: String, color: String, title: String, description: String, links: List<String>): JSONObject

Function to execute the request to edit a collection

Return

the result of the request as JSONObject

Parameters

collectionId

: the identifier of the collection to edit

color

: color of the collection

title

: title of the collection

description

: description of the collection

links

: list of links shared in a collection