This mutation allows the creation of a new organization by an admin.
Sample Mutation
Create an organization that has a name experi and a handle called meta
mutation{
addOrganization(name: "experi" handle: "meta"){
id
handle
name
jwtIssuerDomain
}
}
Sample Response
{
"data": {
"addOrganization": {
"id": "432320d3-c12c-433a-bc4e-bcdfade32b08",
"handle": "meta",
"name": "experi",
"jwtIssuerDomain": ""
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
name | String | The name of the organization. | Yes |
handle | String | The nickname of the organization. | Yes |
Returns
Name | Type | Description |
---|---|---|
Organization | Object | Contains all the information from Organization that includes the organization ID, name, members, marketplaces, assets, wallets, and the NFT contracts. |
Example
Create an organization with a defined name and handle: