Create an Organization

Creating an organization can be done by any type of user, most importantly, the user_basic role which is intermediary role given to a new user that doesn't belong to any organization. All other Tactic object types are required to belong to an organization.

Endpoints

1. Create a new organization

  • POST /organizations
    • Permissions: organization:add
    • Role: user_basic

Parameters

  • name - string - required
  • slug - string - requrired: Must be unique

Response

  • id - string: Organization Id

Example

$ echo '{"name": "Test Org"}' | http POST 'http://localhost:5000/organizations' 'Authorization: Bearer ACCESS_TOKEN'

HTTP/1.1 201 Created
{
    "id": "orgz_366cb476-819d-488c-8e36-754e0a755cc1"
}
Was this page helpful?