Knowledge Base: collections.update
collections.update
HTTP Method: POST
Parameters: api_key, user_token, slug
Optional Paramters: name, description, privacy_level_id
Uploads a new image file to the site.
Required Parameters
api_key: API token for your client.
user_token: The users token, received after the user logs in.
slug: The current slug for the collection. [string]
Optional Parameters
name: A name for the collection [string]
description: Description of the collection [string]
privacy_level_id: An id to set the privacy level of the collection to. [int]
Usage
Simply send a HTTP POST containing the above
parameters in the body.
https://api.emberapp.com/collections/update
Response
On success: HTTP 200 response.
On failure: HTTP 400 response plus an array of errors.
Example Successful XML Response
<?xml version="1.0"?>
<response>
<status code="0">OK</status>
<api>api.collections.update</api>
</response>
Example Unsuccessful XML Response
<?xml version="1.0"?>
<response>
<status code="1">FAIL</status>
<api>api.collections.update</api>
<errors>
<name>Collection name already exists.</name>
</errors>
</response>