Podio API Documentation
Organizations: Add organization admin
Adds a new administrator to the organization. The user must be an administrator to perform this operation.
If an email is provided API checks if the email is an existing user in the system.
If no user exists for the email the user will be created and added as admin of the org and return the activation link in the response.
If the user exists will add it as admin of the org and if the user is inactive we will send activation mail and link.
Usage
- PHP Client
-
PodioOrganization.php
PodioOrganization::create_admin( $org_id, $attributes = array() );
- Ruby Gem
-
organization_member.rb
Podio::OrganizationMember.make_admin( org_id, user_id )
Parameters
- org_id*
- Required.
Request
{
"user_id": The id of the user to be made administrator,
"email": Email of the user
}
Anyone of the two is required