تفعيل المستأجر بعد الإعداد
curl --request POST \
--url https://api.truthlocks.com/v1/tenants/me/activate \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/tenants/me/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/tenants/me/activate"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/tenants/me/activate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "<string>"
}إدارة مساحة العمل
طلب تفعيل الإنتاج
تفعيل المستأجر بعد الإعداد
POST
/
v1
/
tenants
/
me
/
activate
تفعيل المستأجر بعد الإعداد
curl --request POST \
--url https://api.truthlocks.com/v1/tenants/me/activate \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/tenants/me/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/tenants/me/activate"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/tenants/me/activate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "<string>"
}لا يلزم وجود نص للطلب. يتحقق الخادم من المتطلبات الأساسية للإنتاج ويعيد 412 عندما تكون غير مكتملة أو 409 عندما لا تكون مساحة العمل في انتظار التنشيط. هذا ليس اختصارًا للموافقة على الهوية.

