anyMeta API Documentation

anymeta.additions.add

Create an edge from a subject to an object

Arguments

subject_idThe subject of the relation
thing_idThe object of the relation
roleThe role of the new relation.

Example Response

<rsp stat="ok" method="anymeta.additions.add">
	<addition object_id="6789" subject_id="12345" />
</rsp>

Error Codes

1The subject does not exist.
4Could not create the edge (check permissions and/or the role).
6The object does not exist.
99User not logged on. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.additions.add&thing_id=12345&subject_id=6789&role=resource

back to top

anymeta.additions.remove

Remove an object from an subject

Arguments

thing_idThe thing to be removed from

Example Response

<rsp stat="ok" method="anymeta.additions.remove" />

Error Codes

1The subject is not a thing in the system.
4Could not remove this person from the subject.
6You are not a person in the system, so you can not disconnect this person
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.additions.remove&thing_id=1040.196810&subject_id=1040.9989

back to top

anymeta.annotates.add

Add a post to a picture. You have to be logged on to use this method.

Arguments

subject_idThe newly created post
object_idThe picture which points to the post

Example Response

<rsp stat="ok" method="anymeta.annotates.add">
	<annotate subject_id="1040.805"  object_id="1040.123" />
</rsp>

Error Codes

1The subject you want add to is not in the system.
4Could not add this thing.
5Unknown role, the role must be one of: relevant or essential.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.annotates.add&subject_id=1040.169806&post_left=10&post_top=30&post_width=40&post_height=50&post_text=leukhoor&role=annotate

back to top

anymeta.annotates.edit

Edit a post of a picture. You have to be logged on to use this method.

Arguments

subject_idThe post which should be edited
object_idThe annotated object

Example Response

<rsp stat="ok" method="anymeta.annotates.edit">
	<annotate subject_id="1040.805"  object_id="1040.123" />
</rsp>

Error Codes

1The object you refering to is not in the system.
2The subject is not in the system.
4Could not edit this thing.
5Unknown role, the role must be one of: relevant or essential.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.annotates.edit&subject_id=1040.169806&post_left=10&post_top=30&post_width=40&post_height=50&post_text=leukhoor&role=annotate

back to top

anymeta.annotates.getInfo

Fetch a list of annotates belonging to an attachment

Arguments

object_idThe id of the attachment.

Example Response

<rsp stat="ok" method="anymeta.annotates.getInfo">
	<message id="36" read="0" type="message">
		<from id="37">
			<realname>Marc Worrell</realname>
		</from>
		<to id="467">
			<realname>Bas van Rijen</realname>
		</to>
		<date>2005-03-10 19:04:50</date>
		<subject>Hello there</subject>
		<text>An example of a body text, as sent by Marc to Bas</text>
	</message>
</rsp>

Error Codes

1The object you refering to is not in the system.
99Could not log on. Either the username was unknown or the password was wrong.

Known Problems

REST Demo

/services/rest/?method=anymeta.annotates.getInfo&object_id=1015.3343

back to top

anymeta.annotates.remove

remove a post of a picture. You have to be logged on to use this method.

Arguments

subject_idThe post which should be removeed
object_idThe annotated object

Example Response

<rsp stat="ok" method="anymeta.annotates.remove">
	<annotate subject_id="1040.805" object_id="1040.123" />
</rsp>

Error Codes

1The object you refering to is not in the system.
2The subject is not in the system.
4Could not remove this thing.
5Unknown role, the role must be one of: relevant or essential.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.annotates.remove&subject_id=1040.546&object_id=1040.169806

back to top

anymeta.edge.add

Adds an object to a subject.

Arguments

idthing id
objectthe id of the object
predicatepredicate, used to reorder missing edge ids
orderoptional order nr for the new edge
valueoptional value nr for the new edge
captionoptional caption for the new edge
date_startoptional start date for the new edge
date_endoptional end date for the new edge
object_kindkind for object creation
object_typetype for object creation
object_titletitle for object creation
object_uriuri for attachment of new object

Example Response

<rsp method="anymeta.edge.add" stat="ok">
	<edg_id>1176</edg_id>
	<subject>481</subject>
	<object>735</object>
	<predicate>RELATED</predicate>
	<predicate_id/>
	<date_start/>
	<date_end/>
	<value/>
	<order>9999</order>
	<title>My Other New Article</title>
	<title_short/>
	<kind>ARTICLE</kind>
	<type>
		<bitmap>0</bitmap>
		<symbolic/>
		<id/>
	</type>
</rsp>

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id and edge/object info
3No permission to add an edge from the subject to the object.
4No permission to create the object
5Unknown predicate
6Duplicate edge and no duplicates allowed (use duplicate=0 when you want a duplicate edge)
7No permission to view the object
8Invalid kind for new object
9No permission to add an edge to the subject.
10No permission to add an edge to the newly craeted object (axo: xxx).
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.edge.add&id=481&object=

back to top

anymeta.edge.addList

Adds (or removes) multiple objects to a subject.

Arguments

idthing id
object[]the ids of the objects, must be an array so use object[]
predicatepredicate for the new edges, use 'related' for keywords and tags
remove_kindwhen set, then first remove all objects with this kind and the given predicate
remove[]when set, then remove these object ids before attaching the new objects

Example Response

<rsp method="anymeta.edge.addList" stat="ok">
</rsp>

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id, the predicate and edge/object info
3No permission to change edges of the subject given.
4Unknown predicate
7No permission to view the object
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.edge.addList&id=481&predicate=related&object[]=

back to top

anymeta.edge.attribute.get

Fetches an attribute of a specific edge. In case of the caption the wiki formatted text will be returned.

Arguments

idthing id
edgethe id of the edge queried
fieldthe field requested, one of date_start, date_end, value and caption
langoptional language for the caption

Example Response

<rsp method="anymeta.edge.attribute.get" stat="ok">
	<result>The caption of the edge</result>
</rsp>

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id and edge/field info
3No permission to view the subject given.
99User not authenticated.

Known Problems

REST Demo

/services/rest/?method=anymeta.edge.attribute.get&id=481&edge=1234&field=caption&lang=en

back to top

anymeta.edge.attribute.set

Set an attribute of a specific edge. In case of setting the caption the value must be in wiki format, the html format will be returned.

Arguments

idthing id
edgethe id of the edge queried
fieldthe field to be set, one of date_start, date_end, value and caption
valuenew value for the field
langoptional language for the caption
accoptional accuracy for date_start and date_end

Example Response

<rsp method="anymeta.edge.attribute.set" stat="ok">
	<result>The new &lt;em&gt>caption&lt;/em&gt; on the edge</result>
</rsp>

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id and edge/field info
3No permission to edit the edge.
4Unknown edge, or not an edge of the subject.
5Unknown field, use one of date_start, date_end, value and caption
6Could not update the subject, an error occured.
99User not authenticated.

Known Problems

REST Demo

/services/rest/?method=anymeta.edge.attribute.get&id=481&edge=1234&field=caption&lang=en

back to top

anymeta.edge.order

Sets the order of edges of a subject.

Arguments

idthing id
edgeedge id(s)
orderoptional order nrs for the corresponding edges
predicatepredicate, used to reorder missing edge ids

Example Response

<rsp stat="ok" method="anymeta.edge.order" />

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id and edge/object info
3No permission to change the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.edge.order&id=551&edge[]=12345&edge[]=8956

back to top

anymeta.edge.remove

Removes an edge between a subject and an object.

Arguments

idthing id
edgeedge id(s)
objectobject id of edge (when no edge given)
predicatepredicate of object (when no edge given)

Example Response

<rsp stat="ok" method="anymeta.edge.remove" />

Error Codes

1The object you refering to is not in the system.
2Missing the required parameters of id and edge/object info
3No permission to change the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.edge.remove&id=551&edge=12345

back to top

anymeta.error.log

Log errors from outside the system

Arguments

Example Response

<rsp stat="ok"  method="anymeta.error.log" />

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.error.log&msg=hello+world

back to top

anymeta.geo.address

Arguments

addressTextual address to search for

Example Response



Error Codes

1Could not connect to address service.
2Address service: Empty address.
3Address service: Unknown address.
4Address service: Unavailable address.
5Address service: Bad api key.
6Address service: Miscellaneous error.

Known Problems

REST Demo

/services/rest/?method=anymeta.geo.address&

back to top

anymeta.html.scomp

Render a scomp and return the HTML produced.

Arguments

nameName of the scomp to be rendered

Example Response

<rsp stat="ok"  method="anymeta.html.scomp">
	<html>
		&lt;p&gt;Hello World!&lt/p&gt;
	</html>
</rsp>

Error Codes

1Missing the name argument, please supply a scomp to render.

Known Problems

REST Demo

/services/rest/?method=anymeta.html.scomp&name=Captcha

back to top

anymeta.html.template

Fetch a template file, return without processing.

Arguments

fileThe filename of the template to be fetched (.tpl, .css or .js)

Example Response

<rsp stat="ok"  method="anymeta.html.template">
	<template>
		The contents of the requested template, css or javascript file.
	</template>
</rsp>

Error Codes

1Missing the name argument, please supply a scomp to render.
2Could not find template file, or no read permission for the template.
99You need to be logged on and have superview/edit right on axo template.

Known Problems

REST Demo

/services/rest/?method=anymeta.html.template&file=scp_dv.tpl

back to top

anymeta.images.getUriList

Get a list of images with their ids and uris.

Arguments

widthMax width of the images
heightMax height of the images
filterFilter to apply (eg. crop,grey)
countNumber of images to return
idOptional listpublish to use

Example Response

<rsp stat="ok"  method="anymeta.images.getUriList">
	<item><id>300</id><uri>http://www.mediamatic.net/image/300-40-40-crop,grey.jpg</uri></item>
	<item><id>864</id><uri>http://www.mediamatic.net/image/864-40-40-crop,grey.jpg</uri></item>
</srp>

Error Codes

1Unknown list id, please supply the id of a listpublish, listedit or set

Known Problems

REST Demo

/services/rest/?method=anymeta.images.getUriList&width=200&height=200&filter=crop,grey&count=10

back to top

anymeta.interests.add

Add something to your interests list. You have to be logged on to use this method.

Arguments

thing_idThe thing id to add to your interests list
roleThe role of the new interest, one of: interest, holiday, lived, worked.
date_startThe start date or year of the interest.
date_endThe end date or year of the interest.

Example Response

<rsp stat="ok" method="anymeta.interests.add">
	<interest id="1208.6782" />
</rsp>

Error Codes

1Thing does not exist or is unpublished.
2This is you. You are trying to add yourself as your contact.
3The thing was already in your interests list.
4Could not add this thing to your interests.
5Unknown role, the role must be one of: interest, holiday, lived, worked.
6You are not a person in the system, so you do not have an interest list.
7The interest is not a thing in the system.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

back to top

anymeta.interests.remove

Remove someone from your interests list. You have to be logged on to use this method.

Arguments

thing_idThe thing id to be removed from your interests list
ref_idOnly remove this reference from your interests list

Example Response

<rsp stat="ok" method="anymeta.interests.remove" />

Error Codes

1Thing not found, the thing does not exist or is disabled.
4Could not remove this thing from your interests.
6You are not a person in the system, so you do not have an interests list.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.interests.remove&thing_id=196810

back to top

anymeta.memberships.add

Add someone as an member. You have to be logged on to use this method.

Arguments

person_idThe person id to add as a member
roleThe role of the new contact, one of: knows, friend.

Example Response

<rsp stat="ok" method="anymeta.memberships.add">
	<member subject_id="1040.805" user_id="123" realname="George de Keijzer" />
</rsp>

Error Codes

1The member is not a person in the system.
3The user was already a member.
4Could not add this person as a member.
5Unknown role, the role must be one of: relevant or essential.
6You are not a person in the system, so you can not add yorself as a member.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.memberships.add&thing_id=1040.169806&role=member

back to top

anymeta.memberships.remove

Remove someone from the subject. You have to be logged on to use this method.

Arguments

thing_idThe thing to be removed from

Example Response

<rsp stat="ok" method="anymeta.memberships.remove" />

Error Codes

1The subject is not a thing in the system.
4Could not remove this person from the subject.
6You are not a person in the system, so you can not disconnect this person
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.memberships.remove&thing_id=1040.196810

back to top

anymeta.messages.getInfo

Get a single message.

Arguments

messsage_idThe id of the message you want to read.

Example Response

<rsp stat="ok" method="anymeta.messages.getInfo">		
	<message id="36" read="0" type="message">
		<from id="37">
			<realname>Marc Worrell</realname>
		</from>
		<to id="467">
			<realname>Bas van Rijen</realname>
		</to>
		<date>2005-03-10 19:04:50</date>
		<subject>Hello there</subject>
		<text>An example of a body text, as sent by Marc to Bas</text>
	</message>
</rsp>

Error Codes

1Message not found. Either the message_id was not valid, or the message was not yours.
99Could not log on. Either the username was unknown or the password was wrong.

Known Problems

REST Demo

/services/rest/?method=anymeta.messages.getInfo&message_id=36

back to top

anymeta.messages.getReceivedList

Fetch the list of received messages.

Arguments

Example Response

<rsp stat="ok" method="anymeta.messages.getReceivedList">
	<messages>
		<message date="2005-03-10 18:34:54" id="33" 
			read="0" subject="Long time no see" user_id="23" />
		<message date="2005-03-10 19:04:09" id="34" 
			read="0" subject="How are you" user_id="1513" />
		<message date="2005-03-10 19:04:48" id="35" 
			read="0" subject="Are you sure?" user_id="584" />
		<message date="2005-03-10 19:04:50" id="36" 
			read="0" subject="Do you remember?" user_id="46" />
	</messages>
</rsp>

Error Codes

99User not logged in.

Known Problems

REST Demo

/services/rest/?method=anymeta.messages.getReceivedList

back to top

anymeta.messages.getSentList

Fetch the list of sent messages.

Arguments

Example Response

<rsp stat="ok" method="anymeta.messages.getSentList">
	<messages>
		<message date="2005-03-10 18:34:54" id="33" 
			read="0" subject="Long time no see" user_id="23" />
		<message date="2005-03-10 19:04:09" id="34" 
			read="0" subject="How are you" user_id="1513" />
		<message date="2005-03-10 19:04:48" id="35" 
			read="0" subject="Are you sure?" user_id="584" />
		<message date="2005-03-10 19:04:50" id="36" 
			read="0" subject="Do you remember?" user_id="46" />
	</messages>
</rsp>

Error Codes

99User not logged in.

Known Problems

REST Demo

/services/rest/?method=anymeta.messages.getSentList

back to top

anymeta.messages.remove

Remove a single message. There must be a valid user logged on.

Arguments

message_idId of the message to be deleted.

Example Response

<rsp stat="ok" method="anymeta.messages.remove">
	<message id="42" status="removed" />
</rsp>

Error Codes

1Message not found. Either the message_id was not valid, or the message was not yours.
99Could not log on. Either the username was unknown or the password was wrong.

Known Problems

REST Demo

/services/rest/?method=anymeta.messages.remove&message_id=36

back to top

anymeta.messages.send

Send a message to an user. You have to be logged on to use this method.

Arguments

user_idThe user id of the recipient (or email address)
subjectThe subject of the message
textThe text of the message
kind(optional) The kind of the message, either the default "message" or "notify"

Example Response

<rsp stat="ok" method="anymeta.messages.send">
	<message status="sent" />
</rsp>

Error Codes

2Message could not be sent.
99Could not log on. Either the username was unknown or the password was wrong.

Known Problems

REST Demo

/services/rest/?method=anymeta.messages.send&subject=About%20this&text=A%message

back to top

anymeta.metadata.addKeyword

add keyword

Arguments

thing_idthing_id
keywordArray

Example Response

<rsp stat="ok" method="anymeta.metadata.addKeyword">
</rsp>

Error Codes

1The thing you want to add to is not in the system.
99User not logged in or has no link rights.

Known Problems

REST Demo

/services/rest/?method=anymeta.metadata.addKeyword&thg_id=4315&keyword[]=37

back to top

anymeta.metadata.listKeyword

Search metadata

Arguments

thg_idthing_id
filtertrue/false

Example Response

<rsp stat="ok" method="anymeta.metadata.listKeyword">
</rsp>

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.metadata.listKeyword&thg_id=134&filter=true

back to top

anymeta.predicates.delete

Delete an edge

Arguments

edge_idThe edge to be deleted
thing_idThe thing of the thing/object to be deleted (when not supplying an edge)
object_idThe subject of the thing/object to be deleted (when not supplying an edge)

Example Response

<rsp stat="ok" method="anymeta.predicates.delete">
	<edge id="100" status="deleted" />
</rsp>

Error Codes

1You should supply the edge or thing/object of the edge.
4Could not delete the edge.
5Could not disconnect the object from the thing.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.predicates.delete&edge_id=x

back to top

anymeta.predicates.get

Retrieves predicate of a thing.

Arguments

idthing id
fieldthing field
langlanguage, defaults to default language of editable thing

Example Response

<rsp stat="ok" method="anymeta.predicates.get">
    <result>Looks good!</result>
</rsp>

Error Codes

1You are not allowed to fetch the data.
99User not authenticated.

Known Problems

REST Demo

/services/rest/?method=anymeta.predicates.get&id=551&field=text.title&lang=pt

back to top

anymeta.predicates.set

Changes/retrieves predicate of a thing.

Arguments

idthing id
fieldthing field
valuenew value
langlanguage (optional)
namescomp name (optional)

Example Response

<rsp stat="ok" method="anymeta.predicates.set"">
    <result>Looks good!</result>
</rsp>

Error Codes

1The object you are refering to is not in the system.
2Field and Values arguments have different lengths
3Missing one of the parameters id, field of value
99User not authenticated.

Known Problems

REST Demo

/services/rest/?method=anymeta.predicates.set&id=551&field=text.title&value=newTitle&lang=pt

back to top

anymeta.search.live

Live text search, used for simple full text searches like the autocompletion.

Arguments

searchstring to search for
kindfilter for kind
typefilter for type
filesizeshow only things that match the given filesize
md5show only things that match the given md5
mimeshow only things that match the given mimetype
is_pictureset to 1 to only show things that are pictures
is_userset to 1 to only show things that have an authentication record
fieldscomma separated list of fields to include in result set
subjectsubject for filtering on link access rules (found ids are valid objects)
predicatepredicate for filtering on link/linkto access rules
objectsubject for filtering on linkto access rules (found ids are valud subjects)

Example Response

<rsp stat="ok" method="anymeta.search.live"> <result realname="Bas van Rijen" person_id="805"/> </rsp>

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.search.live&search=bas&kind=person

back to top

anymeta.search.textmatch

Search users by textmatch.

Arguments

q_mmsearchterm

Example Response

<rsp stat="ok" method="anymeta.additions.add">
	<result user_id="123" realname="Bas van Rijen" email"bas@mediamatic.nl" person_id="805" />
</rsp>

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.search.textmatch&q_mm=bas

back to top

anymeta.tags.add

Adds tags to a subject. The tags are given as text. Double quoted strings are taken as a single tag. All keywords and tags are returned. When an added tag is the same as a keyword, then the keyword is added instead.

Arguments

idthing id
tagthe text of the tag(s).

Example Response

<rsp method="anymeta.tags.add" stat="ok">
	<item>
		<edg_id>70</edg_id>
		<subject>101</subject>
		<object>84</object>
		<order>9999</order>
		<title>anymeta</title>
		<title_short/>
		<kind>TAG</kind>
		<type>
			<bitmap>0</bitmap>
			<symbolic/>
			<id/>
		</type>
	</item>
	<item>
		<edg_id>71</edg_id>
		<subject>101</subject>
		<object>102</object>
		<order>9999</order>
		<title>security</title>
		<title_short/>
		<kind>TAG</kind>
		<type>
			<bitmap>0</bitmap>
			<symbolic/>
			<id/>
		</type>
	</item>
</rsp>

Error Codes

1The subject you refering to is not in the system.
2Missing the required id parameter.
3No permission to add an edge to the subject given.
4Could not update the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.tags.add&id=481&tag=

back to top

anymeta.test.echo

A simple testing method which echos its parameters as a success response.

Arguments

Example Response

<rsp stat="ok"  method="anymeta.test.echo" />

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.test.echo&msg=hello+world

back to top

anymeta.test.error

A simple testing method which returns a failure. Useful when you want to test negative responses in your application.

Arguments

Example Response

<rsp stat="fail">
	<err code="0" msg="This is just a test of the error message." />
	<method>anymeta.test.error</method>
</rsp>

Error Codes

Known Problems

REST Demo

/services/rest/?method=anymeta.test.error

back to top

anymeta.test.login

Try to log on as the given user.

Arguments

emailThe username (e-mail address) of the user
passwordThe password of the user

Example Response

<rsp method="anymeta.test.login" stat="ok">
	<user id="123">
		<username>Biwo Parijvel</username>
	</user>
</rsp>

Error Codes

1Missing username and/or password parameter
99Could not log on. Either the username was unknown or the password was wrong.

Known Problems

REST Demo

/services/rest/?method=anymeta.test.login&email=test@anymeta.net&password=secret

back to top

anymeta.things.delete

Delete a thing

Arguments

thing_idThe thing to be deleted
followupThe (optional) id of the thing that is used to followup the deleted thing
secureSet to 1 to securely delete the thing (ie. without undo)

Example Response

<rsp stat="ok" method="anymeta.things.delete">
	<thing id="100" status="deleted" />
</rsp>

Error Codes

1The subject is not a thing in the system.
4Could not delete the thing.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.things.delete&thing_id=x

back to top

anymeta.type.add

Adds a type to a subject.

Arguments

idthing id of subject
typethe id or name of the type to add

Example Response

<rsp method="anymeta.type.add" stat="ok">
	<symbolic>
		<item>GALLERY</item>
		<item>NEWS</item>
	</symbolic>
	<id>
		<item>2038</item>
		<item>33</item>
	</id>
</rsp>

Error Codes

1Missing the required parameters of id and/or type.
2Unknown type, please specify the id or name of a known type.
3No permission to add the type to the subject.
4No permission to edit the subject.
5Error adding the type to the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.type.add&id=481&type=gallery

back to top

anymeta.type.addrem

Adds and removes types from a subject.

Arguments

idthing id of subject
addthe ids or names of the types to add
remthe ids or names of the types to remove

Example Response

<rsp method="anymeta.type.addrem" stat="ok">
	<symbolic>
		<item>GALLERY</item>
		<item>NEWS</item>
	</symbolic>
	<id>
		<item>2038</item>
		<item>33</item>
	</id>
</rsp>

Error Codes

1Missing the required parameters of id and/or type.
2Unknown type, please specify the id or name of a known type.
3No permission to add the type to the subject.
4No permission to edit the subject.
5Error adding the type to the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.type.addrem&id=481&add=gallery&rem=

back to top

anymeta.type.remove

Adds a type to a subject.

Arguments

idthing id of subject
typethe id or name of the type to remove

Example Response

<rsp method="anymeta.type.remove" stat="ok">
	<symbolic>
		<item>NEWS</item>
	</symbolic>
	<id>
		<item>33</item>
	</id>
</rsp>

Error Codes

1Missing the required parameters of id and/or type.
2Unknown type, please specify the id or name of a known type.
3No permission to remove the type to the subject.
4No permission to edit the subject.
5Error removing the type from the subject.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.type.remove&id=481&type=gallery

back to top

anymeta.user.check

Check existence of user

Arguments

emailemail

Example Response

<rsp method="anymeta.user.check" stat="ok">
	<item>
		<id>70</id>
		<uri>http://www.example.com/person-70-nl.html</subject>
		<name>User Despred</name>
	</item>
</rsp>

Error Codes

1Missing the required email parameter.
99User not authenticated.

Known Problems

This method should only work with a POST

REST Demo

/services/rest/?method=anymeta.user.check&email=user@example.com

back to top

anymeta.user.info

Retrieve extended user info

Arguments

person_idThe id of the user

Example Response

<rsp stat="ok" method="anymeta.user.info">
</rsp>

Error Codes

1Missing the 'person_id' parameter or id is not a member
99User not logged on. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=anymeta.user.info&person_id=1

back to top

authentication.user.verify.sha1

Verify user account comparing the hashed password.
generate the checksum by sha1 hashing the md5sum of the password eg:
echo -n "password" | md5sum | /usr/bin/cut -d ' ' -f 1 | tr -d '\n' | sha1sum

Arguments

handleusername, email or ID
sha1passsha1sum of the password to check
nonceoptional string appended to the md5sum before calculating sha1

Example Response

<rsp stat="ok" method="authentication.user.verify.sha1">
 <item><id>77</id></item>
</rsp>

Error Codes

1No match for this username and password combination.
2Missing or invalid 'handle' parameter
3Missing of invalid 'sha1pass'.
4Invalid nonce - possible replay attack
99User not logged on. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=authentication.user.verify.sha1&handle=sysadmin&sha1pass=804d7c63d224cbab0f382b5b1a62e7675f7a0934

back to top

backupthing.add

Make a backup of a thing.

Arguments

idThe id of the thing to be backed up
noteNote for this backup

Example Response

<rsp stat="ok" method="backupthing.add">
	<backup>
		<bck_id>200</bck_id>
		<note>This version was quite complete</note>
		<modify_date>2006-10-11 10:23:34</modify_date>
	</backup>
</rsp>

Error Codes

1Missing the 'id' parameter or id is not a number
2You need edit permission to make a backup.
4The previous backup will be identical to this one, no backup has been made.
5Could not make a backup. Do you have edit privilege?
6Internal error, could not load backup module.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=backupthing.add&id=1&note=A%20test%20backup

back to top

backupthing.list

Make a backup of a thing.

Arguments

idThe id of the thing to be backed up
noteNote for this backup

Example Response

<rsp stat="ok" method="backupthing.list">
	<item>
		<bck_id>200</bck_id>
		<thg_id>1234</thg_id>
		<note>This version was quite complete</note>
		<modify_date>2006-10-11 10:23:34</modify_date>
		<date>2006-11-22 22:01:08</date>
	</item>
</rsp>

Error Codes

1Missing the 'id' parameter or id is not a number.
2There are no backups for this thing.
3Internal error, could not load backup module.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=backupthing.list&id=1

back to top

backupthing.remove

Remove a thing to a previous backup.

Arguments

idThe id of the thing to be backed up
bck_idThe id of the backup

Example Response

<rsp stat="ok" method="backupthing.remove">
</rsp>

Error Codes

1Missing the 'id' or the 'bck_id' parameter or id is not a number.
2You need edit permission to remove a backup.
3Could not find the backup.
4Internal error, could not load backup module.
5Could not remove the backup.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=backupthing.remove&id=1&bck_id=1234

back to top

backupthing.restore

Revert a thing to a previous backup.

Arguments

idThe id of the thing to be backed up
bck_idThe id of the backup

Example Response

<rsp stat="ok" method="backupthing.restore">
</rsp>

Error Codes

1Missing the 'id' or the 'bck_id' parameter or id is not a number.
2You need edit permission to restore a backup.
3Could not find the backup.
4Internal error, could not load backup module.
5Could not restore the backup.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=backupthing.restore&id=1&bck_id=1234

back to top

blog.postable.list

List all blogs in which the current user can post.

Arguments

Example Response

<rsp stat="ok" method="blog.postable.list">
	<item>
		<id>123</id>
		<title>My blog</title>
		<html>My blog</html>
	</item>
</rsp>

Error Codes

1Could not load the Blog module.
99You must be logged in to use this method.

Known Problems

REST Demo

/services/rest/?method=blog.postable.list

back to top

contact.add

Add someone to your contacts list. You have to be logged on to use this method.

Arguments

object_idThe person id to add to your contact list
predicateThe predicate of the new contact, one of: knows, friend.

Example Response

<rsp stat="ok" method="contact.add">
	<contact object_id="169806" />
</rsp>

Error Codes

1The contact is not a person in the system.
2This is you. You are trying to add yourself as your contact.
3The user was already in your contacts.
4Could not add this person to your contacts.
5Unknown predicate, the predicate must be one of: interest, knows, friend.
6You are not a person in the system, so you do not have a contact list.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=contact.add&object_id=169806&predicate=knows

back to top

contact.change

Change the predicate of a relationship.

Arguments

object_idThe person id on your contact list
edg_idEdge id of the relation to the contact
predicateThe new predicate of the contact, one of: knows, friend.

Example Response

<rsp stat="ok" method="contact.change">
	<contact user_id="123" object_id="169806" />
</rsp>

Error Codes

1The contact is not a person in the system.
2This is you. You are trying to add yourself as your contact.
4Could not change the predicate of this contact.
5Unknown predicate, the predicate must be one of: interest, knows, friend.
6You are not a person in the system, so you do not have a contact list.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=contact.change&object_id=169806&predicate=knows&edg_id=50034

back to top

contact.list

List the contacts of you or another user.

Arguments

user_idThe user to get the contacts of (defaults to the current user)
showSet to "private" to see all contacts and predicates, "public" for normal access

Example Response

<rsp stat="ok" method="contact.list">
	<contacts show="private">
		<item object_id="303" edg_id="562" predicate="FRIEND">Jan Janssen</item>
		<item object_id="800" edg_id="171" predicate="KNOWS">Piet Pietersen</item>
	</contacts>
</rsp>

Error Codes

99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=contact.list&show=private

back to top

contact.remove

Remove someone from your contacts list. You have to be logged on to use this method.

Arguments

object_idThe person id to be removed from your contact list
edg_idThe edge id of the relation to the contact

Example Response

<rsp stat="ok" method="contact.remove" />

Error Codes

1The contact is not a person in the system.
2This is you. You are trying to remove yourself from your contacts.
4Could not remove this person from your contacts.
6You are not a person in the system, so you do not have a contact list.
99User not logged in. You have to be logged on to use this method.

Known Problems

REST Demo

/services/rest/?method=contact.remove&object_id=1235&edg_id=8721

back to top

query.execute

Executes an anyMeta search query

Arguments

q_kindThe kind of the thing (e.g. PERSON, ARTICLE, ...)
q_typeSymbolic name of the type of the thing
q_typeanyAny type
q_typeexcludeDo not include these types in output
q_kindtypeq_kindtype
q_themeq_theme
q_keywordq_keyword
q_tagq_tag
q_subjectq_subject
q_subjectanyq_subjectany
q_objectq_object
q_objectanyq_objectany
q_spredq_spred
q_opredq_opred
q_personq_person
q_institutionq_institution
q_locationq_location
q_insetq_inset
q_xx
q_yy
q_distq_dist
q_ratingq_rating
q_matchq_match
q_sortq_sort
q_return_edgeq_return_edge
q_mmSearch term for searching in all text fields
q_textSearch terms for searching in thing text
q_titleSearch terms for searching in title
q_ilkilk
q_axoaxo
q_sourcesource
q_editstateeditstate
q_publishedpublished
q_sharedshared
q_ownerowned_by_text
q_modifiermodified_by_text
q_creatorcreated_by_text
q_owner_idowned_by
q_modifier_idmodified_by
q_creator_idcreated_by
q_owner_aroowned_by_aro
q_modifier_aromodified_by_aro
q_creator_arocreated_by_aro
q_symbolicsymbolic_name
q_birth_citybirth_city
q_birth_countrybirth_country
q_decease_citydecease_city
q_decease_countrydecease_country
q_person_nameperson_name_text
q_person_lastnameperson_lastname_text
q_person_firstnameperson_firstname_text
q_addressaddress_text
q_cityaddress_city
q_countryaddress_country
q_postcodeaddress_postcode
q_excludeexclude
q_mimemime
q_pictureis_picture
q_edg_owned_byedg_owned_by
q_modify_datemodify_date
q_create_datecreate_date
q_datedate
q_date_startdate_start
q_date_enddate_end
q_pub_datepub_date
q_pub_date_startpub_date_start
q_pub_date_endpub_date_end
q_incrementalincremental
q_idID of listpublish thing to use as query base

Example Response

<rsp stat="ok" method="query.execute">
	<item>53207</item>
</rsp>

Error Codes

1Could not load the Query module
99No access. You re not authorized to access module:query.

Known Problems

REST Demo

/services/rest/?method=query.execute&q_mm=hello

back to top

rating.rate

Rate a thing, returns the new average rating of the thing

Arguments

thing_idthing id to rate
rating_nrwhich rating is rated (0..7) (defaults to 0)
ratingthe rating (0..256)

Example Response

<rsp stat="ok" method="rating.rate">
	<rating id="5995">
		<id>5995</id>
		<rating_nr>0</rating_nr>
		<avg>1.5</avg>
		<count>200</count>
	</rating>
</rsp>

Error Codes

1Rating system has been disabled
2No such thing id
3Rating outside the 0..256 range or missing
4You are not allowed to rate this item (for this rating nr)
99User not logged in. You have to be logged on or passed the captcha to use this method

Known Problems

REST Demo

/services/rest/?method=rating.rate&thing_id=5995&rating=255

back to top