تغيير الاحتفاظ بالوثائق أو دورة حياتها
curl --request POST \
--url https://api.truthlocks.com/v1/vault/documents/{id}/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"confirmed": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>', confirmed: true})
};
fetch('https://api.truthlocks.com/v1/vault/documents/{id}/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/vault/documents/{id}/actions"
payload = {
"reason": "<string>",
"confirmed": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/vault/documents/{id}/actions"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"confirmed\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "confirmed"
}خزينة مستندات مساحة العمل
تغيير الاحتفاظ بالوثائق أو دورة حياتها
يتطلب جلسة حامل عضو مساحة عمل مسجل الدخول. مفاتيح API غير مقبولة. تأتي مساحة العمل والبيئة من الجلسة المعتمدة. تتطلب التغييرات مالك مساحة العمل أو المسؤول.
POST
/
v1
/
vault
/
documents
/
{id}
/
actions
تغيير الاحتفاظ بالوثائق أو دورة حياتها
curl --request POST \
--url https://api.truthlocks.com/v1/vault/documents/{id}/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"confirmed": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>', confirmed: true})
};
fetch('https://api.truthlocks.com/v1/vault/documents/{id}/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/vault/documents/{id}/actions"
payload = {
"reason": "<string>",
"confirmed": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/vault/documents/{id}/actions"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"confirmed\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "confirmed"
}استخدم جلسة حامل مساحة عمل صالحة. لا يمكن لمفتاح واجهة برمجة التطبيقات تخويل نقطة النهاية هذه. يتم اشتقاق مساحة العمل والبيئة الحالية من تلك الجلسة.
راجع معالجة المعلومات لقيود الملفات، وإدارة الإصدارات، والاحتجاز، والاحتفاظ، وسلوك التخلص.
الجسم
application/json

