Skip to main content

Update or insert organization

Updates the name of an organization if it exists, otherwise creates a new organization using the provided UUID and name.

Function

upsertOrganisation(request: UpsertOrganisationRequest): Promise<void>;

Parameters

export interface UpsertOrganisationRequest {
id: string;
name: string;
}

Fields

  • id - Pass a new UUID if creating a new organization.

  • name - Pass a new name if the organization already exists.

Return value

No value is returned on a successful call.