Skip to content

Commit

Permalink
fix(account nerdgraph): changing some field names
Browse files Browse the repository at this point in the history
  • Loading branch information
zuluecho9 committed Apr 12, 2022
1 parent 5c54957 commit 2e7006b
Showing 1 changed file with 11 additions and 10 deletions.
Expand Up @@ -35,7 +35,7 @@ This tutorial will show you how to:
## Tips on terms and fields [#field-definitions]

Some tips about some of the fields used in these requests:
* The `administrableAccounts` field is simply a term for the accounts in an organization. It is synonymous with "accounts."
* The `managedAccount` and `managedAccounts` fields are simply terms for the accounts in an organization. They're synonymous with "accounts."
* The `regionCode` field refers to [the data center used by an account](/docs/accounts/accounts-billing/account-setup/choose-your-data-center): `US` or `EU`. Note that an organization can only use a single data center: there can't be accounts that use diffrent data centers in a single organization.

Note that the [NerdGraph explorer](/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/#explorer) has built-in docs that defines fields.
Expand All @@ -48,10 +48,12 @@ Here’s an example of returning the accounts in your organization:
{
actor {
organization {
administrableAccounts {
id
name
regionCode
accountManagement {
managedAccounts {
name
id
regionCode
}
}
}
}
Expand All @@ -64,14 +66,13 @@ Here’s an example of how to create an account. Before creating an account, mak

```
mutation {
administrableAccountsCreateAccount(administrableAccount: {name: "acme_dev"}) {
administrableAccount {
accountManagementCreateAccount(managedAccount: {name: "<var>NEW_ACCOUNT_NAME</var>"}) {
managedAccount {
id
name
regionCode
}
}
}
```

## Rename an account [#rename-accounts]
Expand All @@ -80,8 +81,8 @@ Here’s an example of how to rename an account.

```
mutation {
administrableAccountsUpdateAccount(administrableAccount: {id: 111, name: ""}) {
administrableAccount {
accountManagementUpdateAccount(managedAccount: {name: "<var>UPDATED_ACCOUNT_NAME</var>", id: <var>101010101</var>}) {
managedAccount {
id
name
regionCode
Expand Down

0 comments on commit 2e7006b

Please sign in to comment.