LogoRecal

Update Organization

Update organization by slug

PUT
/v1/organizations/{orgSlug}

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Request Body

application/jsonRequired
namestring
Minimum length: 3Maximum length: 128
slugRequiredstring
Minimum length: 3Maximum length: 128Pattern: "^[a-z0-9]+(?:[_-][a-z0-9]+)*$"

Path Parameters

orgSlugRequiredstring
Minimum length: 3Maximum length: 128Pattern: "^[a-z0-9]+(?:[_-][a-z0-9]+)*$"

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

nameRequiredstring | null | null
slugRequiredstring
createdAtRequiredDate | string | number
membersarray<unknown>

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
Value in: "Organization not found"
curl -X PUT "https://api.recal.dev/v1/organizations/string" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Recal",
    "slug": "recal"
  }'
const body = JSON.stringify({
  "name": "Recal",
  "slug": "recal"
})

fetch("https://api.recal.dev/v1/organizations/string", {
  headers: {
    "Authorization": "Bearer <token>"
  },
  body
})
package main

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

func main() {
  url := "https://api.recal.dev/v1/organizations/string"
  body := strings.NewReader(`{
    "name": "Recal",
    "slug": "recal"
  }`)
  req, _ := http.NewRequest("PUT", url, body)
  req.Header.Add("Authorization", "Bearer <token>")
  req.Header.Add("Content-Type", "application/json")
  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"
body = {
  "name": "Recal",
  "slug": "recal"
}
response = requests.request("PUT", url, json = body, headers = {
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
})

print(response.text)
{
  "name": "Recal",
  "slug": "recal",
  "createdAt": "2025-04-24T00:00:00.000Z",
  "members": []
}
"Organization not found"