tierMembership:readtierMembership:create
- Typescript SDK
- GraphQL
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
tierMembership:readtierMembership:createimport { PlainClient } from '@team-plain/typescript-sdk';
const client = new PlainClient({ apiKey: 'plainApiKey_xxx' });
const res = await client.updateCompanyTier({
companyIdentifier: {
companyDomainName: 'acme.com',
// Or the company id if you prefer
// companyId: 'co_123'
},
tierIdentifier: {
externalId: 'XXX',
// Or the tier id:
// tierId: "tier_123"
},
});
if (res.error) {
console.error(res.error);
} else {
console.log(res.data);
}
mutation updateCompanyTier($input: UpdateCompanyTierInput!) {
updateCompanyTier(input: $input) {
companyTierMembership {
id
tierId
}
error {
message
type
code
fields {
field
message
type
}
}
}
}
{
"input": {
"companyIdentifier": {
"companyDomainName": "acme.com"
},
"tierIdentifier": {
"externalId": "XXX"
}
}
}
Was this page helpful?
