API Stability Preview

The linkChildOrganization() GraphQL mutation may be used to link a sub-organization to the main one.

Syntax

Below is the syntax for the linkChildOrganization() mutation field:

graphql
linkChildOrganization(
      childId: string!
   ): OrganizationLink!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  linkChildOrganization(
    childId: "123abc"
    )
  { parentOrganization {name, id} }
}
Example Responses
Show:
json
{
  "data": {
    "linkChildOrganization": {
      "parentOrganization": {
        "name": "mom"
        "id": "abc123"
      }
    }
  }
}

Returned Datatypes

OrganizationLink has a couple of parameters. They're listed and described below: