Preview

createCompany is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

createCompany

Create a new company in AppDirect from ConnectWise company data. This mutation:

  1. Creates the company in AppDirect using the createAccount GraphQL API
  2. Creates the company mapping in PSA-SYNC linking AppDirect and ConnectWise companies

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_CHANNEL_ADMIN

    ROLE_CHANNEL_SUPPORT

    ROLE_PARTNER

    ROLE_SALES_SUPPORT

    ROLE_RESELLER

    ROLE_RESELLER_MANAGER

    Arguments

    input CreateCompanyInput! PREVIEW

    CreateCompanyInput fields

    connectorType PsaConnectorType PREVIEW

    Connector type with which company mapping is associated. Default value is CONNECT_WISE

    mor PsaMorInput! PREVIEW

    Merchant of record for which company mapping is done

    companyName String!

    Company name (from ConnectWise)

    countryCode String!

    Country code for the company

    firstUser CompanyAdminUserInput! PREVIEW

    First user details for the company admin

    psaCompany PsaCompanyInput! PREVIEW

    PSA company details from ConnectWise

    Return Fields

    account CreatedAccount PREVIEW

    Created AppDirect account details

    companyMapping PsaCompanyMapping PREVIEW

    Company mapping linking AppDirect and ConnectWise

    userErrors [CreateCompanyError!] PREVIEW

    Error details while creating company

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.