Skip to main content
POST
/
v1
/
organizations
Create Organization
curl --request POST \
  --url https://almanac-backend-83vc.onrender.com/v1/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>"
}
'
{
  "name": "<string>",
  "organization_id": "<string>",
  "role": "<string>",
  "slug": "<string>",
  "permissions": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
name
string
required
Minimum string length: 1
slug
string | null

Response

Successful Response

name
string
required
organization_id
string
required
role
string
required
slug
string
required
permissions
string[]