Appearance
Organisaties & omgevingen
GraphQL mutations: Organisaties & omgevingen.
Endpoint: POST https://graphql.persmonitor.nl/graphql
Intern · VPN
Mutations voor de monitor-app; op productie via /internal/.
createEnvironment
Create a new environment under an organization (e.g. production, staging). The current user is linked to the new environment so they have access. Requires login and organization membership.
Return type: Environment
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateEnvironmentInput! | Ja |
Voorbeeld:
graphql
query CreateEnvironment {
createEnvironment(input: $input) {
# selecteer velden uit het return type
}
}createOrganization
Create a new organization with a default environment and link the current user to both. Required: Authorization Bearer token.
Return type: Organization
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateOrganizationInput! | Ja |
Voorbeeld:
graphql
query CreateOrganization {
createOrganization(input: $input) {
# selecteer velden uit het return type
}
}deleteOrganization
Delete an organization and all its environments, monitors, screens, channels. User must be a member. Cannot delete last organization or system organization.
Return type: Boolean
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
uuid | String! | Ja | Organization UUID to delete |
Voorbeeld:
graphql
query DeleteOrganization {
deleteOrganization(uuid: $uuid) {
# selecteer velden uit het return type
}
}updateOrganization
Update an organization (e.g. name). User must be a member. Required: Authorization Bearer token.
Return type: Organization
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | UpdateOrganizationInput! | Ja |
Voorbeeld:
graphql
query UpdateOrganization {
updateOrganization(input: $input) {
# selecteer velden uit het return type
}
}