Podio API Documentation
Grants: Create grant
Create a grant on the given object to the given users.
Usage
- PHP Client
-
PodioGrant.php
PodioGrant::create( $ref_type, $ref_id, $attributes = array() );
Parameters
- ref_type*
- Required.
- ref_id*
- Required.
Request
{
"people": The list of people to grant access to. This is a list of contact identifiers,
"action": The action required of the people, either "view", "comment" or "rate", or left out,
"message": Any special message to the users,
"access_level": The level of access the users should have, either "edit" or "view" (Only applicable for item sharing. Access level is decided via a different mechanism for app sharing),
"shared_as_client": Whether shared as employee or client to some user. Optional arg for app sharing only.
}
Response
{
"invitable": The profiles of the users that can be invited to the space of the object
[
{
"profile_id": The id of the profile,
... (more properties)
},
... (more profiles)
]
}