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.updateTenantTier({
tenantIdentifier: {
externalId: 'XXX',
// Or the tenant id if you prefer
// tenantId: 'te_123',
},
tierIdentifier: {
externalId: 'XXX',
// Or the tier id:
// tierId: "tier_123"
},
});
if (res.error) {
console.error(res.error);
} else {
console.log(res.data);
}
mutation updateTenantTier($input: UpdateTenantTierInput!) {
updateTenantTier(input: $input) {
tenantTierMembership {
id
tierId
}
error {
message
type
code
fields {
field
message
type
}
}
}
}
{
"input": {
"tenantIdentifier": {
"externalId": "XXX"
},
"tierIdentifier": {
"externalId": "XXX"
}
}
}
Was this page helpful?
