Appearance
Mutations
Overzicht van alle beschikbare mutations met voorbeelden.
Registratie: bij registratie roept de frontend de register-mutatie aan. Die maakt in één keer organisatie, environment en user aan (met e-mail en optioneel wachtwoord) en koppelt ze.
register
Maakt in één keer een organisatie, environment en user aan en koppelt ze. De user krijgt een Email-object en optioneel een PasswordCredential. Wachtwoord is optioneel (bijv. voor OAuth-only users).
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | RegisterInput! | Ja | Bevat email (verplicht), password (optioneel), organizationName, environmentName, displayName. |
Minimale variabelen (alleen email + eventueel password):
json
{
"input": {
"email": "[email protected]",
"password": "geheim123"
}
}Voorbeeld-mutation:
graphql
mutation Register($input: RegisterInput!) {
register(input: $input) {
user {
uuid
displayName
created
email {
address
verified
}
hasPassword
}
organization {
uuid
name
}
environment {
uuid
name
}
}
}Variabelen (uitgebreid):
json
{
"input": {
"email": "[email protected]",
"password": "geheim123",
"organizationName": "Mijn Bedrijf",
"environmentName": "default",
"displayName": "Jan Jansen"
}
}createOrganization
Maakt een nieuwe organisatie aan.
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateOrganizationInput! | Ja | Bevat name. |
Voorbeeld:
graphql
mutation CreateOrganization($input: CreateOrganizationInput!) {
createOrganization(input: $input) {
uuid
name
created
changed
}
}Variabelen:
json
{
"input": {
"name": "Mijn Bedrijf"
}
}createEnvironment
Maakt een nieuw environment aan onder een bestaande organisatie.
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateEnvironmentInput! | Ja | Bevat organizationUuid en name. |
Voorbeeld:
graphql
mutation CreateEnvironment($input: CreateEnvironmentInput!) {
createEnvironment(input: $input) {
uuid
name
created
changed
organization {
uuid
name
}
}
}Variabelen:
json
{
"input": {
"organizationUuid": "uuid-van-de-organisatie",
"name": "production"
}
}createP2000Message
Maakt een nieuw P2000-bericht aan en kan optioneel capcodes koppelen.
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateP2000MessageInput! | Ja | Bevat message, sended (ISO-8601), optioneel capcodes. |
Voorbeeld:
graphql
mutation CreateP2000Message($input: CreateP2000MessageInput!) {
createP2000Message(input: $input) {
uuid
message
sended
created
capcodes {
uuid
name
}
}
}Variabelen:
json
{
"input": {
"message": "A1 DIA 16167 Rit 75494 Amsterdam",
"sended": "2025-10-09T14:30:00Z",
"capcodes": [
{ "name": "0100001" },
{ "name": "1300031" }
]
}
}