API reference

updateOrganization

Required permission: OrganizationWrite

graphql
updateOrganization(
  organizationId: ID!
  patch: OrganizationPatch!
): Organization

Arguments

Name Type Description
organizationId ID!
patch OrganizationPatch!

Returns

Organization

Example

graphql
mutation UpdateOrganization($organizationId: ID!, $patch: OrganizationPatch!) {
  updateOrganization(organizationId: $organizationId, patch: $patch) {
    id
    fortnoxAccountingImportEnabled
    hasFortnoxAccountingImportAccess
    hasFortnoxAccountingImportCredentials
    accountantEmail
    createdAt
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateOrganization(...) { __typename } }"}'