This method queues collection of documents onto the server for analysis. Queued collection of documents analyzes in common context as entire thing. If unique configuration ID provided, Semantria uses settings of that configuration during analysis, in opposite the primary configuration uses. Collection IDs are unique in scope of configuration. If the same ID appears twice, Semantria overrides existing collection with the new Data
Request
Path Params
Query Params
Body Params application/json
Examples
Responses
🟢200Client request accepted and queued. Server responds with the sentiment-bearing phrases list.
application/json
Body
🟢202Client request accepted and queued for processing.
🟠401Authentication failed.
🟠402Unauthorized. Limit of system calls is reached or subscription is expired.
🟠406Documents limit per collection is achieved.
🟠413Characters limit for single document exceeded.
🔴500Server side issue. Server may respond with the details in response body.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.semantria.com//collection.' \
--header'Content-Type: application/json' \
--data-raw'null'