bitly-shorten/docs/net.thauvin.erik.bitly/-bitlinks/update.md

2.8 KiB

docs / net.thauvin.erik.bitly / Bitlinks / update

update

@Synchronized @JvmOverloads fun update(bitlink: String, references: Map<String, String> = emptyMap(), archived: Boolean= false, tags:Array<String> = emptyArray(), created_at: String= Constants.EMPTY, title:String= Constants.EMPTY, deeplinks:Array<Map<String, String>> = emptyArray(), created_by: String= Constants.EMPTY, long_url:String= Constants.EMPTY, client_id:String= Constants.EMPTY, custom_bitlinks:Array<String> = emptyArray(), link: String= Constants.EMPTY, id:String= Constants.EMPTY, toJson:Boolean= false):String (source)

Updates fields in the Bitlink.

See the Bit.ly API for more information.

Parameters

toJson - Returns the full JSON response if true

Oaran bitlink A Bitlink made of the domain and hash.

Return true is the update was successful, false otherwise, or JSON response.