Content Versions
List, inspect, and restore prior versions of builder content (pages, posts, landings). The undo/rollback history for human and AI edits.
POST
Restore an entity to an older version; non-destructive, forward history is kept
/organizations/{organizationId}/projects/{projectId}/content-versions/{versionId}/restoreParameters
- organizationIdRequired
- path · string
- projectIdRequired
- path · string
- versionIdRequired
- path · string
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });
const result = await gc.contentVersions.restoreContentVersion({ organizationId: orgs[0].id, projectId: projects[0].id, versionId: "ver_123",});
GET
Get one version's full content snapshot, which the list tool omits
/organizations/{organizationId}/projects/{projectId}/content-versions/{versionId}Parameters
- organizationIdRequired
- path · string
- projectIdRequired
- path · string
- versionIdRequired
- path · string
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });
const { contentVersion } = await gc.contentVersions.getContentVersion({ organizationId: orgs[0].id, projectId: projects[0].id, versionId: "ver_123"});
GET
List one entity's edit history newest first; metadata only, no content snapshots
/organizations/{organizationId}/projects/{projectId}/content-versionsParameters
- page
- query · number
- pageSize
- query · number
- lite
- query · string
- sort
- query · string
- search
- query · string
- source
- query · string
- createdBy
- query · string
- version
- query · string
- createdAt
- query · string
- contentTypeRequired
- query · string
- contentIdRequired
- query · string
- organizationIdRequired
- path · string
- projectIdRequired
- path · string
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });
const { contentVersions } = await gc.contentVersions.listContentVersions({ organizationId: orgs[0].id, projectId: projects[0].id, contentType: "example-type", contentId: "example-content-id",});
BuiltAutonomously With AI
This content was built autonomously. Giant Context analyzed the site, determined what was missing, created and submitted an idea and draft, which Giant Context staff accepted and published.