API Stability |
Long-Term
|
The upgradeAccount() GraphQL mutation may be used to upgrade the LogScale account.
For more information on user authorization, see the Manage users & permissions documentation page.
Syntax
Below is the syntax for the upgradeAccount() mutation field:
graphql
upgradeAccount(
input: UpgradeAccountData!
): boolean!
Below is an example of how this mutation field might be used:
graphql
mutation {
upgradeAccount( input:
{ company: "The Company",
firstName: "Bob",
lastName: "Newhart",
email: "bob@company.com",
} )
}
json
{
"data": {
"upgradeAccount": true
}
}
Given Datatypes
UpgradeAccountData, has several parameters that may be given. Below is a list of them along with a description of each:
Table: UpgradeAccountData
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 23, 2024 | |||||
comment | string | Long-Term | Any comments related to the account, information not already stored in the other fields. | ||
company | string | yes | Long-Term | The company with which the account holder is associated. | |
countryCode | string | Long-Term | The two-letter ISO 3166-1 Alpha-2 code for the country of residence (e.g., us). | ||
email | string | yes | Long-Term | The email address for the account or account holder. | |
firstName | string | Long-Term | The first name of the account holder. | ||
lastName | string | yes | Long-Term | The last name or family name of the account holder. | |
phoneNumber | string | Long-Term | The telephone number of the account holder or the one to call regarding the account. | ||
purpose | Purposes | Long-Term | The purpose of the upgrade. See Purposes . | ||
stateCode | string | Long-Term | The two-letter, ISO 3166-2 country sub-division code for the state of residence (e.g., ny). |