Using Access Token for [TEST] workspace should add companies to [TEST] workspace using intercom.companies.create(newCompanyData)
Actual behavior
Using Access Token for [TEST] workspace is adding company to it's parent which is production version.
Steps to reproduce
Create workspace
Get authentication token for this workspace
Create [TEST] workspace for previously created workspace
Get authentication token for [TEST] workspace
Initialize new Client({ tokenAuth: { testWorkspaceToken } })
Use intercom.companies.create(newCompanyData) to create new company.
Company is being created in parent workspace instead of [TEST] workspace.
Observations
When using intercom.companies.update with companyId of company that is created in [TEST] workspace, then right company is being edited. However using create method creates company in wrong - parent workspace
I was thinking about using apiKeyAuth, in constructor instead of tokenAuth, cuz that would give me possibility of specifing which appId I want to use, however this solution gives me Authentication Errors, so I suppose that I have to stick with tokenAuth constructor. Unfortunetaly that way I can't manage in which workspace should be created companies.
Version info
Expected behavior
Using Access Token for [TEST] workspace should add companies to [TEST] workspace using
intercom.companies.create(newCompanyData)
Actual behavior
Using Access Token for [TEST] workspace is adding company to it's parent which is production version.
Steps to reproduce
new Client({ tokenAuth: { testWorkspaceToken } })
intercom.companies.create(newCompanyData) to create new company.
Observations
When using
intercom.companies.update
with companyId of company that is created in [TEST] workspace, then right company is being edited. However usingcreate
method creates company in wrong - parent workspaceI was thinking about using
apiKeyAuth
, in constructor instead oftokenAuth
, cuz that would give me possibility of specifing which appId I want to use, however this solution gives me Authentication Errors, so I suppose that I have to stick with tokenAuth constructor. Unfortunetaly that way I can't manage in which workspace should be created companies.