Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.01 KB

File metadata and controls

41 lines (28 loc) · 1.01 KB

UpdateChunkMetadataRequest

Request to update chunk metadata and/or move the chunk.

Properties

Name Type
chunkMetadata ChunkMetadata
parentPathPartId string
prevSiblingPathId string
moveToHead boolean

Example

import type { UpdateChunkMetadataRequest } from '@knowledge-stack/ksapi'

// TODO: Update the object below with actual values
const example = {
  "chunkMetadata": null,
  "parentPathPartId": null,
  "prevSiblingPathId": null,
  "moveToHead": null,
} satisfies UpdateChunkMetadataRequest

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as UpdateChunkMetadataRequest
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]