LogoRecal

Create Organization Scheduling

Create a new sub-organization

POST
/v1/organizations/{orgSlug}/scheduling

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Request Body

application/jsonRequired
bodyRequiredunknown

Path Parameters

orgSlugRequiredstring

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
curl -X POST "https://api.recal.dev/v1/organizations/string/scheduling" \
  -H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/organizations/string/scheduling", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.recal.dev/v1/organizations/string/scheduling"

  req, _ := http.NewRequest("POST", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.recal.dev/v1/organizations/string/scheduling"

response = requests.request("POST", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
"Sub-organization created successfully"
"Sub-organization not found"