Skip to content

Organisaties

Interne GraphQL-queries: Organisaties. Vereist authenticatie.

Endpoint: POST https://graphql.persmonitor.nl/graphql

Intern · VPN

Deze pagina's zijn op productie alleen via VPN bereikbaar onder /internal/.


myOrganizations

Organisaties van de huidige gebruiker. Admin ziet alle tenants (standaard max 50). Optioneel: search, uuid, first, page.

Return type: [Organization]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
firstIntNee (default: 50)Het aantal resultaten per pagina (default 50; globale read-cap 100, tenzij de query een hogere cap documenteert).
pageIntNee (default: 1)De pagina die je wilt opvragen.
searchStringNeeZoek op organisatienaam (case-insensitive contains).
uuidStringNeeExacte organisatie-uuid (bijv. voor switch).

Voorbeeld:

graphql
query MyOrganizations(
  $first: Int
  $page: Int
  $search: String
) {
  myOrganizations(first: $first, page: $page, search: $search) {
    # selecteer velden uit het return type
  }
}

myOrganizationsCount

Totaal aantal organisaties voor search/uuid (voor paginatie).

Return type: Int!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
searchStringNeeZelfde zoekterm als myOrganizations.
uuidStringNeeExacte organisatie-uuid.

Voorbeeld:

graphql
query MyOrganizationsCount(
  $search: String
  $uuid: String
) {
  myOrganizationsCount(search: $search, uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

organizationActivities

Audit log of all activities in an organization (custom services, etc.).

Return type: [Activity]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!JaOrganisatie-selectie, bijv. { uuid }.
limitIntNee (default: 100)Maximum number of activities to return (default 100).

Voorbeeld:

graphql
query OrganizationActivities(
  $limit: Int
) {
  organizationActivities(organization: $organization, limit: $limit) {
    # selecteer velden uit het return type
  }
}

organizationAlerts

System alerts for an organization (newest first).

Return type: [OrganizationAlert]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!Ja
limitIntNeeMax alerts to return (default 50, max 200).

Voorbeeld:

graphql
query OrganizationAlerts(
  $limit: Int
) {
  organizationAlerts(organization: $organization, limit: $limit) {
    # selecteer velden uit het return type
  }
}

organizationAlertsUnreadCount

Number of unread organization alerts.

Return type: Int!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!Ja

Voorbeeld:

graphql
query OrganizationAlertsUnreadCount {
  organizationAlertsUnreadCount(organization: $organization) {
    # selecteer velden uit het return type
  }
}

organizationMembers

Leden van een organisatie. Altijd beschikbaar (minimaal de eigenaar). Vereist lidmaatschap.

Return type: [OrganizationMember!]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!JaUUID van de organisatie.

Voorbeeld:

graphql
query OrganizationMembers {
  organizationMembers(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

organizationRssFeeds

RSS feeds of an organization. User must be member of the organization.

Return type: [RssFeed]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!JaOrganisatie-selectie, bijv. { uuid }.

Voorbeeld:

graphql
query OrganizationRssFeeds {
  organizationRssFeeds(organization: $organization) {
    # selecteer velden uit het return type
  }
}

organizationTemplates

Custom templates van een organisatie (alleen als canUseCustomTemplates). Anders lege lijst; system defaults worden gebruikt.

Return type: [NotificationTemplate]!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!JaOrganisatie-selectie, bijv. { uuid }.

Voorbeeld:

graphql
query OrganizationTemplates {
  organizationTemplates(organization: $organization) {
    # selecteer velden uit het return type
  }
}

organizationUsage

Current resource usage for an organization. Requires authorization.

Return type: Usage!

Authenticatie: Organisatielid

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationOrganizationRef!JaOrganisatie-selectie, bijv. { uuid }.

Voorbeeld:

graphql
query OrganizationUsage {
  organizationUsage(organization: $organization) {
    # selecteer velden uit het return type
  }
}