save_collection

Save collection data.

Please note that due to the nature of how the web works, it is best to POST the request for this API binding to avoid URL limits being reached.

$ref * The ID of the collection
$coldata *

JSON encoded collection data. The data should be an array containing any of the allowed collection properties:

  • keywords - CSV of keywords to be associated with this collection
  • allow_changes - to set whether other users are allowed to add/remove resources when collection is shared or is public. The allowed value is zero (ie. 0) or one (ie. 1).
  • users - to attach other users to the collection. Allowed value is a CSV of user names.

Example: {"keywords":"apitest1,apitest2","allow_changes":1,"users":"john.doe"}

Return values

Returns false if access control fails or invalid arguments have been received (e.g ref not a number), true otherwise.