Web-API:Organizations

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Contents

Organizations

Create

$postfields = array(
	array('name','deCODE Genetics'),
);
$out = $cerb5->post($base_url . 'orgs/create.xml', $postfields);

Retrieve

$out = $cerb5->get($base_url . 'orgs/1.xml');

Update

$postfields = array(
	array('name','deCODE Genetics'),
	array('country','Iceland'),
	array('website','http://www.decode.com/'),
);
$out = $cerb5->put($base_url . 'orgs/9.xml', $postfields);

Search

$postfields = array(
	array('criteria[]','name'),
	array('oper[]','like'),
	array('value[]','t*'),
	// array('criteria[]','id'),
	// array('oper[]','='),
	// array('value[]','1'),
	array('sortBy','name'),
	array('sortAsc','1'),
	array('page','1'),
);
$out = $cerb5->post($base_url . 'orgs/search.xml', $postfields);

Notes

$postfields = array(
	array('note',"This is a note through the Web-API."),
);
$out = $cerb5->post($base_url . 'orgs/1/note.xml', $postfields);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox