Create an admin for the company
POST {{baseUrl}}/v1/companies/:company_id/admins
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.
scope: company_admin:write
Request Body
{"first_name"=>"<string>", "last_name"=>"<string>", "email"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"first_name":"John","last_name":"Smith","email":"jsmith99@gmail.com","uuid":"5de11791-98fd-4587-9ed0-d5d804b8e647"}