Admin

Set an organization's plan

Changed on

Sets the organization's plan and how many users it allows, counting pending invitations; every way people join (invitations, SSO, SCIM) enforces it unless a paid Stripe plan bills every user. Body: { tier: "free" | "team" | "enterprise", seatLimit: integer (users allowed, at least 5), endsAt?: "YYYY-MM-DD" | null }. endsAt is a display-only end date for Team and Enterprise and is refused for Free. Never changes Stripe. Returns the resolved plan.

patch/v1/admin/organizations/{organizationId}/plan

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

organizationId, string required

Response

The plan was updated.

object required
ok, true required
organization, object required

Changes

    • info

      removed the stripe_enterprise enum value from the organization/plan/paidBy response property for the response status

    • info

      added the required property organization/id to the response with the status

    • info

      added the required property organization/plan to the response with the status

    1 more change in this revision