POST/api/v1/content-creation/drafts/{draft_id}/versions
Save a version of a content draft
Keep a copy of the draft as it is now. Versions are never changed or<br/>deleted afterwards.<br/><br/>`kind: "saved" (the default) takes the next number; kind: "original"`<br/>is version 0 and a draft has at most one.
PARAMETERS
- draft_idpath · stringREQUIRED
- Content draft id.e.g. string
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"kind": "saved"
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/content-creation/drafts/string/versions" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "saved"
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/content-creation/drafts/string/versions", headers={"X-API-Key": "YOUR_KEY"}, json={
"kind": "saved"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/content-creation/drafts/string/versions", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"kind": "saved"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
