Skip to content

feat: PRO-1149: set a document's governance label and expiry in place [kyle-agent] - #263

Merged
kyleking-cohere merged 1 commit into
data-governancefrom
kyle/pro-1149-document-governance
Nov 28, 2026
Merged

kyleking-cohere merged 1 commit into
data-governancefrom
kyle/pro-1149-document-governance

Conversation

@kyleking-cohere

Copy link
Copy Markdown

Adds set_document_governance to both clients: POST /v1/indexes/{index}/documents/{doc_id}/_governance with a GovernanceWrite, which relabels an indexed document's chunks without re-indexing it. GovernanceWrite gains an optional expires (when the content expires, under data governance's retention); it is dropped from the body when unset.

One test checks the request path and body.

Part of PRO-1149.

@kyleking-cohere
kyleking-cohere requested a review from a team as a code owner November 28, 2026 07:50
@kyleking-cohere
kyleking-cohere requested review from CelineWei-cohere and removed request for a team November 28, 2026 07:50
@cla-assistant

cla-assistant Bot commented Nov 28, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@cla-assistant

cla-assistant Bot commented Nov 28, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kyleking-cohere
kyleking-cohere merged commit 60f75ed into data-governance Nov 28, 2026
5 of 6 checks passed
@kyleking-cohere
kyleking-cohere deleted the kyle/pro-1149-document-governance branch November 28, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant