API Home       Error Codes       API Keys       Showcase       Forum/Discussions

imageloop API function

imagelooop.setImageMetaData

Change image meta information.
Category: Image functions
Subcategory: Image meta data
Description: Change image meta information.

Parameters

Only mandatory parameters must be present for an API call on this function. Parameters marked as a list can occur multiple times in both SOAP and HTTP-RPC style requests.
Name Type Mandatory is List Description
imageID uuid required ID of the image to load the meta data for
name string image name
title string image title
contentLink string external link
description string image description
tags string image tags
contentDatetime string Timestamp when the image has been taken - in ms since Jan, 1st 1970 midnight GMT
looopID uuid unused

Errors / Exceptions

Error Code Name
2001 imagelooop.InvalidApiKeyException
2005 imagelooop.InternalErrorException
2002 imagelooop.InvalidParameterNameException
3004 imagelooop.PermissionDeniedException
3000 imagelooop.PrimaryObjectNotFoundException

API Call examples

HTTP-RPC

Request:
The line breaks and white spaces are for better reading only. All request parameters can be passed in the HTTP POST request body instead of a HTTP GET parameter in a URL. Valid HTTP POST content types are multipart/form-data for file uploads and application/x-www-form-urlencoded for usual HTML forms.

http://www.imageloop.com/httprpc/?apiKey=YOUR-API-KEY
    &f=imagelooop.setImageMetaData
    &h=yourwebsite.com  - or -  &accessToken=application-access-token
    &imageID=uuiduuid-uuid-uuid-uuid-uuiduuiduuid
    &name=string-value (optional)
    &title=string-value (optional)
    &contentLink=string-value (optional)
    &description=string-value (optional)
    &tags=string-value (optional)
    &contentDatetime=string-value (optional)
    &looopID=uuiduuid-uuid-uuid-uuid-uuiduuiduuid (optional)




Sample response

Sample Response to illustrate what's returned (XML schema) :
The line breaks and white spaces are for better reading only.

<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
</imag:Response>

If the function call resulted in an error, no response element but an error element is returned in the above XML. See list of possible errors/exception for the function described on this page.
<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
   <error>
      <errorCode>error-code</errorCode>
      <errorType>error-name</errorType>
      <message>optional error message</message>
   </error>
</imag:Response>

SOAP

General overview including SOAP and XML schema types is available here. See http://www.imageloop.com/soap/api/api.wsdl for WSDL definition. http://www.imageloop.com/soap/api/api.xsd for XSD definition.