Struct gusto_api::admins_beta::AdminsBeta [−][src]
pub struct AdminsBeta { /* fields omitted */ }Implementations
Get all the admins at a company.
This function performs a GET to the /v1/companies/{company_id}/admins endpoint.
*This endpoint is in beta. Please contact developer-gws@gusto.com if you’d like to have more information and use it for production. Note, this may require you to enter a different agreement with Gusto.
Returns a list of all the admins at a company
Get all the admins at a company.
This function performs a GET to the /v1/companies/{company_id}/admins endpoint.
As opposed to get_company_admins, this function returns all the pages of the request at once.
*This endpoint is in beta. Please contact developer-gws@gusto.com if you’d like to have more information and use it for production. Note, this may require you to enter a different agreement with Gusto.
Returns a list of all the admins at a company
pub async fn post_company_admin(
&self,
company_id: &str,
body: &PostCompanyAdminRequest
) -> Result<Admin>
pub async fn post_company_admin(
&self,
company_id: &str,
body: &PostCompanyAdminRequest
) -> Result<Admin>
Create an admin for the company.
This function performs a POST to the /v1/companies/{company_id}/admins endpoint.
*This endpoint is in beta. Please contact developer-gws@gusto.com if you’d like to have more information and use it for production. Note, this may require you to enter a different agreement with Gusto.
Creates a new admin for a company. If the email matches an existing user, this will create an admin account for the current user. Otherwise, this will create a new user.