Registers a new company in the pyck system along with an initial admin user. This is typically the first operation performed when setting up a new tenant.
Arguments
Name
Type
Description
input
RegisterCompanyInput!
Input data for registering the company and admin user
Return Type
RegisterCompanyResponse! - Contains the success status of the registration operation.
Input Fields
RegisterCompanyInput:
Field
Type
Description
name
String!
Required company name
adminUsername
String!
Required username for the initial admin user
adminEmail
String!
Required email address for the initial admin user
adminFirstName
String!
Required first name of the initial admin user
adminLastName
String!
Required last name of the initial admin user
adminPassword
String!
Required password for the initial admin user
Usage Example
JavaScript Example
Notes
This mutation creates both the company entity and the initial admin user
The admin user will have full administrative privileges within the new company tenant
Password requirements may apply based on system security policies
Company names should be unique within the system
This operation typically requires system-level permissions or may be publicly accessible for initial setup