accounts

POST /accounts/organizations/new/

Create a new organization for an already-authenticated user. Unlike OrganizationCreateAPIView (which is for org-less users), this allows any user to create additional organizations. The user becomes Owner of the new org via OrganizationMembership. Does NOT change user.organization FK (primary org stays the same).

post/accounts/organizations/new/

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/accounts/organizations/new/
  • Auth: one of:
    • API key in header X-Api-Key
    • API key in header X-Secret-Key

Request body

namestring required
display_namestring

Response

Created

statusboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.