Update Single Document

Single document update, you can specify the new title and/or the new content. Your document will be added to your library and visible in search without the need to call the train API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Your update request body should have the following structure:

{
  "document": {
      "id": str | int,
      "title": str,
      "body": str
    } 
}
Body Params
document
object
required

Single document instance. It must have a unique identifier, a title and a body

Headers
string

Your 32 characters API Key token. If you don't have one yet, register at api.pigro.ai to receive it

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json