PulseAI-OpenAPI
  1. Dataset
PulseAI-OpenAPI
  • App
    • README
    • Send Chat Message
      POST
    • File Upload
      POST
    • Stop Generate
      POST
    • Message Feedback
      POST
    • Next Suggested Questions
      GET
    • Get Conversation History Messages
      GET
    • Get Conversations
      GET
    • Delete Conversation
      DELETE
    • Conversation Rename
      POST
    • Speech to Text
      POST
    • Text to Audio
      POST
    • Text to Audio V2
      POST
    • Get Application Information
      GET
    • Get Application Parameters
      GET
    • Get Application Meta Information
      GET
    • Create Chat
      POST
  • Dataset
    • README
    • Create a Document from Text
      POST
    • Create a Document from a File
      POST
    • Create an Empty Knowledge Base
      POST
    • Get Knowledge Base List
      GET
    • Delete a Knowledge Base
      DELETE
    • Update a Document with Text
      POST
    • Update a Document with a File
      POST
    • Get Document Embedding Status (Progress)
      GET
    • Delete a Document
      DELETE
    • Get the Document List of a Knowledge Base
      GET
    • Add Chunks to a Document
      POST
    • Get Chunks from a Document
      GET
    • Update a Chunk in a Document
      POST
    • Delete a Chunk in a Document
      DELETE
    • Retrieve Chunks from a Knowledge Base
      POST
  • Tenant
    • README
    • Get a List of Tenant Space Charactar
    • Figure txt2img
    • Get a List of Tenant Space Plot
    • Get a List of Tenant Space Audio
  • OpenAPI
    GET
  1. Dataset

Update a Chunk in a Document

POST
https://api-platform.digitpulse.ai/v1/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}
Last modified:2025-01-13 09:28:33

Request

Path Params

Header Params

Body Params application/json

Example
{
    "segment": {
        "content": "1",
        "answer": "1",
        "keywords": [
            "a"
        ],
        "enabled": false
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-platform.digitpulse.ai/v1/datasets//documents//segments/' \
--header 'Authorization: ' \
--header 'X-Timestamp: 1739933362' \
--header 'X-Signature: 1739933362' \
--header 'Content-Type: application/json' \
--data-raw '{
    "segment": {
        "content": "1",
        "answer": "1",
        "keywords": [
            "a"
        ],
        "enabled": false
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "data": [
        {
            "id": "string",
            "position": 0,
            "document_id": "string",
            "content": "string",
            "answer": "string",
            "word_count": 0,
            "tokens": 0,
            "keywords": [
                "string"
            ],
            "index_node_id": "string",
            "index_node_hash": "string",
            "hit_count": 0,
            "enabled": true,
            "disabled_at": null,
            "disabled_by": null,
            "status": "string",
            "created_by": "string",
            "created_at": 0,
            "indexing_at": 0,
            "completed_at": 0,
            "error": null,
            "stopped_at": null
        }
    ],
    "doc_form": "string"
}
Modified at 2025-01-13 09:28:33
Previous
Get Chunks from a Document
Next
Delete a Chunk in a Document
Built with