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

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;first_name&quot;:&quot;John&quot;,&quot;last_name&quot;:&quot;Smith&quot;,&quot;email&quot;:&quot;jsmith99@gmail.com&quot;,&quot;uuid&quot;:&quot;5de11791-98fd-4587-9ed0-d5d804b8e647&quot;}