Ifd:addOrganizations
From dev.ifd-library.org
API version 2
public IfdOrganization [] addOrganizations ( IfdOrganization [] organizations, String session_id ) throws IfdServerException
Function to add a new organizations to IFD Library.
Input:
- orgs [] - Array of one or many IfdOrganizations.
- session_id - The session id for the active user
Returns:
- IfdOrganization [] - An array of IfdOrganizations.
API version 3
public IfdOrganization [] addOrganizations ( String session_id, IfdOrganization [] organizations) throws IfdServerException
EXPRESS heading
QUERY_FUNCTION addOrganizations(
orgs : LIST OF IfdOrganization): LIST OF IfdOrganization;
Function to add a new organizations to IFD Library.
Input:
- session_id - The session id for the active user
orgs [] - list of fully specified new organizations, with the following attributes for every element:
- guid – (optional) desired global unique id of the new organization, by default the value is generated;
- name – the organization unique name in English;
- url – (optional) the organization unique url
Returns:
- IfdOrganization [] - List of fully specified organizations added with the call.
Difference against v.2.00
- (44) The function can create very first organization (when no one valid IFD user exists). In v.2.00 the function checks logged user access rights in normal way, that is not valid for the very first user and/or organization
Comments: Talk:Ifd:addOrganizations