Create Organization Scheduling
Create a new sub-organization
Authorization
Authorization
RequiredBearer <token>The Recal API token
In: header
Request Body
application/json
Requiredbody
RequiredunknownPath Parameters
orgSlug
RequiredstringResponse Body
TypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringTypeScript Definitions
Use the response body type in TypeScript.
response
Requiredstringcurl -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"