Web Service Method: Delete Documents from a Corpus
Web Service Method: Delete Documents from a Corpus
Description |
---|
Deletes documents from the corpus. |
URL: /PoolParty/api/corpusmanagement/{project}/documents/delete
Request
Supported Methods |
---|
POST |
application/x-www-form-urlencoded
Variable | Comment |
---|---|
| The UUID or the URI supplement (textual identifier) of the project to be used. |
Parameter | Comment | Type | Required |
---|---|---|---|
corpusId | ID of the target corpus. NotePlease note that the provided value should start with "corpus:". The ID alone is not sufficient. An example for corpusId value could be | String | true |
documentIds | ID of documents that should be deleted. | List of strings | true |
Response
http status code 200if OK + JSON formatted success message.
Example
POST Request
http://<server-URL>/PoolParty/api/corpusmanagement/1DCE489D-9695-0001-E272-285217B0181E/documents/delete?corpusId=corpus:e62d3b7e-ce07-48c0-b2c3-696a159227e2&documentIds=corpusDocument:9a494f23-aafd-4c47-839d-81ba0694370c, corpusDocument:4dd0c210-fcd4-443b-ae66-bbc7f9446798
JSON Formatted Response
{ "success": true, "message": "Deleting documents from corpus was successful." }