Skip to main content
POST
Change which interviews can use a document

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
knowledge_base_id
string<uuid>
required

The document to change: knowledge_base_id from the upload response or from knowledge-base-document-list.

Minimum string length: 1
Example:

"44444444-4444-4444-8444-444444444444"

interview_ids
string<uuid>[] | null
required

The whole new list, which replaces the old one. An interview uses this knowledge base once its knowledge_base_store_id is set (job-interview-create / job-interview-update): link it first. A list limits the document to those interviews, an empty list to no interview, and null opens it to every interview on the knowledge base. Required, so that leaving it out can never open a document. Each interview must belong to the same company as the document and use the same knowledge base.

Example:

Response

The limit was replaced. The response reports the new one.

knowledge_base_id
string
required

The document that was changed.

limit_to_interviews
boolean
required

True when the document is limited to the interviews in interview_ids. False when every interview on the knowledge base can use it.

interview_ids
string[]

The interviews this document is limited to. Present only when limit_to_interviews is true; an empty list means no interview can use it.