Re-embed Failed Docs
最新の更新:

Re-embed Failed Docs

Batch embed all documents in the Bot with a status of "Failed".

Request Method

POST

Request URL

https://api.gptbots.ai/v1/bot/data/retry/batch

Request Authentication

See Overview for authentication details.

Request

Request Example

curl -X POST https://api.gptbots.ai/v1/bot/data/retry/batch \ -H 'Authorization: Bearer your_apikey' \ -H 'Content-Type: application/json' \ -d '' }'
          curl -X POST https://api.gptbots.ai/v1/bot/data/retry/batch \ 
  -H 'Authorization: Bearer your_apikey' \ 
  -H 'Content-Type: application/json' \ 
  -d ''
}'

        
このコードブロックは、フローティングウィンドウに表示されます

Request Headers

Field Type Description
Authorization Bearer ${token} Use Authorization: Bearer ${token} for authentication. Get the key from the API Keys page as token.
Content-Type application/json Data type, set to application/json.

Request Body

None.

Response

Response Example

{ "affectCount": 0 }
          {
    "affectCount": 0
}

        
このコードブロックは、フローティングウィンドウに表示されます

Success Response

Field Type Description
affectCount long The number of documents re-embedded this time.

Failure Response

Field Type Description
code int Error code.
message string Error details.

Error Codes

Code Message
40000 Invalid parameter
40127 Developer authentication failed
20059 Bot deleted