Skip to main content
Effective Date — May 7, 2026
As part of the IAM hierarchy simplification, a new format of the TIR APIs is now available. All endpoints that previously included /teams/:team_id segment will now follow a service-centric structure, with project_id now passed as a query parameter instead of a path segment. You can read more about this change

Enable or disable a chunk

Perform an action (enable or disable) on a specific chunk of a document

PUT/rag/knowledgebase/{KB_Id}/documents/{Doc_Id}/chunks/{Chunk_Id}/action/{action}/

Path parameters

  • KB_IdPathintegerrequired

    knowledgebase_id

  • Doc_IdPathstringrequired

    document_id

  • Chunk_IdPathstringrequired

    Chunk_Id

  • actionPathstringrequired

    Action to perform on the chunk (enable or disable)

Query parameters

  • project_idQueryintegerrequired

    Project ID

  • active_iamQueryintegeroptional

    Active IAM ID (To access contact person account) Find your Active IAM ID here

Responses

200Successfully updated the chunk status
object
codeinteger
datastring
errorsobject
messagestring