Web-API:Organizations
From Cerberus Helpdesk Wiki
Contents |
Organizations
Create
- name (string)
- street (string)
- city (string)
- province (string)
- postal (string)
- country (string)
- phone (string)
- website (string)
- created (timestamp)
- custom_*
$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
- name (string)
- street (string)
- city (string)
- province (string)
- postal (string)
- country (string)
- phone (string)
- website (string)
- custom_*
$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
- id (integer)
- name (string)
$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);