Pinter
ENID
Documents
Lihat sebagai Markdown

Get Knowledge Hub Document Share Settings

GET/api/knowledge/documents/hub-documents/{document_id}/share

Overview

Retrieves collaborative sharing settings, general visibility (private/internal), permissions (view/use), expiration, and grantees for a document.

Authentication & Headers

  • Auth: Bearer Token (Owner or Admin L1)
  • Required Header: API-Version: 1

Parameter

Path

document_idstringwajib
Unique UUID of the knowledge document stored in the vector database.

Respons

200 Document share configuration

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Only document owner or Admin L1 can access share settings

404 Document not found

422 Validation Error

detailobject[]
detail[].locstring | integer[]wajib
detail[].msgstringwajib
detail[].typestringwajib
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Contoh

curl -X GET "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/share" \
  -H "Authorization: Bearer $ACCESS_TOKEN"