protected R setCollectionId ( String id ) { JsonArray jsonArray = new JsonArray ( ) ; if ( ! TextUtils . isEmpty ( id ) ) { BoxCollection col = BoxCollection . createFromId ( id ) ; jsonArray . add ( col . toJsonObject ( ) ) ; } mBodyMap . put ( FIELD_COLLECTIONS , jsonArray ) ; return ( R ) this ; }
Sets the id of the collection to update .