Remove Member
Remove a user from an organization
Authorization
Authorization
RequiredBearer <token>The Recal API token
In: header
Request Body
application/json
RequireduserIds
Requiredarray<string>Path Parameters
orgSlug
RequiredstringResponse Body
TypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringTypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringValue in:
"Organization not found"
curl -X DELETE "https://api.recal.dev/v1/organizations/string/members" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"userIds": [
"string"
]
}'
const body = JSON.stringify({
"userIds": [
"string"
]
})
fetch("https://api.recal.dev/v1/organizations/string/members", {
headers: {
"Authorization": "Bearer <token>"
},
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://api.recal.dev/v1/organizations/string/members"
body := strings.NewReader(`{
"userIds": [
"string"
]
}`)
req, _ := http.NewRequest("DELETE", 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/members"
body = {
"userIds": [
"string"
]
}
response = requests.request("DELETE", url, json = body, headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
})
print(response.text)
"Users removed successfully from [orgSlug]"
"Organization not found"