Magidoc

Organization
Object

The top level of Pie's hierarchy: an Organization owns workspaces, its members (organizationUsers), and the organization-wide custom field definitions (dataFields). type is the subscription tier — "free", "pro", or "enterprise"; when a downgrade is scheduled, lastType holds the tier that will be applied at cancelAt while type keeps the current one. isTrial with trialStartedAt/trialExpiresAt describe trial state, and tokensUsedCount/tokensUsedLimit track usage against the organization's token allowance. Returned by the organization and organizations queries; managed with createOrganization, createTrialOrganization, updateOrganization, updateOrganizationType, and deleteOrganization. Billing details live on the admin-only OrganizationWithSubscription; OrganizationInfo is the reduced reference view.

Fields

#

additionalWorkspacesTags

cancelAt

dataFields

description

hiddenWorkspacesTags

id

insertedAt

isPersonal

isTrial

lastType

Allowed values for lastType: "free", "pro", "enterprise".

name

organizationUsers

specialSubscription

timeEntriesTags

tokensUsedCount

tokensUsedLimit

trialExpiresAt

trialStartedAt

type

Allowed values for type: "free", "pro", "enterprise".

workspaces

Usages

#

References

#