UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 113 kB
{"openapi":"3.0.0","info":{"contact":{"x-twitter":"semantria"},"description":"Semantria applies Text and Sentiment Analysis to tweets, facebook posts, surveys, reviews or enterprise content.","title":"Semantria","version":"4.0","x-apisguru-categories":["social","text"],"x-logo":{"url":"https://twitter.com/semantria/profile_image?size=original"},"x-origin":[{"converter":{"url":"https://github.com/lucybot/api-spec-converter","version":"2.7.11"},"format":"swagger","url":"https://semantria.com/developer/api-docs-prod","version":"1.2"}],"x-providerName":"semantria.com"},"externalDocs":{"url":"https://semantria.com/support/developer/"},"tags":[{"description":"Blacklisted output","name":"Blacklist"},{"description":"User categories","name":"Categories"},{"description":"Configurations","name":"Configuration"},{"description":"User entities","name":"Entities"},{"description":"Supported features","name":"Features"},{"description":"Sentiment-Bearing Phrases","name":"Phrases"},{"description":"Discovery analysis","name":"ProcessingCollections"},{"description":"Basic analysis","name":"ProcessingDocuments"},{"description":"Queries","name":"Queries"},{"description":"Usage statistics","name":"Statistics"},{"description":"API status","name":"Status"},{"description":"Subscription details","name":"Subscription"},{"description":"Taxonomy","name":"Taxonomy"}],"paths":{"/blacklist.{content_type}":{"delete":{"description":"This method removes certain blacklisted items by their values on Semantria side.","operationId":"deleteBlacklistItems","parameters":[{"description":"Identifier of configuration blacklist items linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of unique blacklisted item identifiers (string).","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove items from blacklist","tags":["Blacklist"]},"get":{"description":"This method retrieves all backlisted items available on Semantria side.","operationId":"getBlacklist","parameters":[{"description":"Identifier of configuration blacklist linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the blacklist.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted, no blacklist found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve blacklisted items","tags":["Blacklist"]},"post":{"description":"This method adds new unique items to the backlist on Semantria side.","operationId":"addBlacklist","parameters":[{"description":"Identifier of configuration blacklist linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed blacklisted items per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add items to blacklist","tags":["Blacklist"]},"put":{"description":"This method updates existing items by unique IDs in the backlist on Semantria side.","operationId":"updateBlacklist","parameters":[{"description":"Identifier of configuration blacklist linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/BlacklistItem_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed blacklisted items per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Update items in blacklist","tags":["Blacklist"]}},"/categories.{content_type}":{"delete":{"description":"This method removes certain user categories by their IDs on Semantria side.","operationId":"deleteCategories","parameters":[{"description":"Identifier of configuration user categories linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of user category identifiers.","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove user categories","tags":["Categories"]},"get":{"description":"This method retrieves list of user categories available on Semantria side.","operationId":"getCategories","parameters":[{"description":"Identifier of configuration user categories linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the categories list.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted, no categories found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve user categories","tags":["Categories"]},"post":{"description":"This method adds user categories on Semantria side.","operationId":"addCategories","parameters":[{"description":"Identifier of configuration user categories linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed categories per configuration or samples per category achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add user categories","tags":["Categories"]},"put":{"description":"This method updates user categories by unique IDs on Semantria side.","operationId":"updateCategories","parameters":[{"description":"Identifier of configuration user categories linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Category_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed categories per configuration or samples per category achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Updates user categories","tags":["Categories"]}},"/collection.{content_type}":{"post":{"description":"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","operationId":"queueCollection","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class22"},"responses":{"200":{"description":"Client request accepted and queued. Server responds with the sentiment-bearing phrases list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"202":{"description":"Client request accepted and queued for processing."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Documents limit per collection is achieved."},"413":{"description":"Characters limit for single document exceeded."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Queue collection for analysis","tags":["ProcessingCollections"]}},"/collection/processed.{content_type}":{"get":{"description":"This method retrieves analysis results for processed collections from Semantria. FAILED collections will have FAILED status in response. Semantria responds with limited amount of results per API call. If configuration ID provided, Semantria responds with the collections, which were queued using the same configuration ID, in opposite Primary configuration uses.","operationId":"retrieveProcessedCollections","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with processed collections.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionAnalyticData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CollectionAnalyticData"}}}},"202":{"description":"Client request accepted, no processed collections found on the server."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve collections analysis","tags":["ProcessingCollections"]}},"/collection/{collection_id}.{content_type}":{"delete":{"description":"This method cancels collection analysis by unique ID on Semantria side if it is waiting for analysis in queue.","operationId":"cancelCollection","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"description":"Collection ID","in":"path","name":"collection_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Document canceled from processing on the server."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"404":{"description":"No collections with provided ID found on server."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Cancel collection analysis","tags":["ProcessingCollections"]},"get":{"description":"This method retrieves analysis results for documents collection by its unique ID or the collection’s status in queue if it did not analyzed yet. Semantria guarantees delivering of all collections back to the client even if they FAILED on Semantria side due to some reason.","operationId":"receiveCollectionAnalyticData","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"description":"Collection ID","in":"path","name":"collection_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Server responds with processed document or its status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionAnalyticData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CollectionAnalyticData"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"404":{"description":"No collections with provided ID found on server."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve collection analysis or its status in queue","tags":["ProcessingCollections"]}},"/configurations.{content_type}":{"delete":{"description":"This method removes certain configuration by unique ID on Semantria side.","operationId":"deleteConfigurations","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of configuration identifiers.","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove user configurations","tags":["Configuration"]},"get":{"description":"This method retrieves all user configurations available on Semantria side.","operationId":"getConfigurations","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Server responds with status object.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve user configurations","tags":["Configuration"]},"post":{"description":"This method creates configurations on Semantria side.","operationId":"addConfigurations","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed configurations for user subscription is reached."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Create user configurations","tags":["Configuration"]},"put":{"description":"This method updates specific configurations by unique IDs on Semantria side.","operationId":"updateConfigurations","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Configuration_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed configurations for user subscription is reached."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Update user configurations","tags":["Configuration"]}},"/document.{content_type}":{"post":{"description":"This method queues document onto the server for analysis. Queued document analyzes individually and will have its own set of results. If unique configuration ID provided, Semantria uses settings of that configuration during analysis, in opposite the primary configuration uses. Document IDs are unique in scope of configuration. If the same ID appears twice, Semantria overrides existing document with the new Data.","operationId":"queueDocument","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class22"},"responses":{"200":{"description":"Client request accepted and queued. Server responds with the sentiment-bearing phrases list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Document"}}}},"202":{"description":"Client request accepted and queued for processing."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"413":{"description":"Characters limit for the document exceeded."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Queue document for analysis","tags":["ProcessingDocuments"]}},"/document/batch.{content_type}":{"post":{"description":"This method queues batch of documents for analysis. The rules are the same as for single document mode but here the documents ordered into the batch.","operationId":"queueBatchOfDocuments","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"Client request accepted and queued. Server responds with the sentiment-bearing phrases list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Document"}}}},"202":{"description":"Client request accepted and queued for processing."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Request is forbidden for selected processing mode."},"406":{"description":"Documents limit per batch is achieved."},"413":{"description":"Characters limit for the document exceeded."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Queue batch of documents for analysis","tags":["ProcessingDocuments"]}},"/document/processed.{content_type}":{"get":{"description":"This method retrieves analysis results for processed documents from Semantria. FAILED documents will have FAILED status in response. Semantria responds with limited amount of results per API call. If configuration ID provided, Semantria responds with the document, which were queued using the same configuration ID, in opposite Primary.","operationId":"retrieveProcessedDocuments","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with processed documents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentAnalyticData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentAnalyticData"}}}},"202":{"description":"Client request accepted, no processed documents found on the server."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve documents analysis","tags":["ProcessingDocuments"]}},"/document/{document_id}.{content_type}":{"delete":{"description":"This method cancels document analysis by unique ID on Semantria side if it is waiting for analysis in queue.","operationId":"cancelDocument","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"description":"Document ID","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Document canceled from processing on the server."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"404":{"description":"No documents with provided ID found on server."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Cancel document analysis","tags":["ProcessingDocuments"]},"get":{"description":"This method retrieves analysis results for the single document by its unique ID or the document’s status in queue if it did not analyzed yet. Semantria guarantees delivering of all documents back to the client even if they FAILED on Semantria side due to some reason.","operationId":"receiveDocumentAnalyticData","parameters":[{"description":"Identifier of configuration used for analysis.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"description":"Document ID","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Server responds with processed document or its status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentAnalyticData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DocumentAnalyticData"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"404":{"description":"No documents with provided ID found on server."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve document analysis or its status in queue","tags":["ProcessingDocuments"]}},"/entities.{content_type}":{"delete":{"description":"This method removes certain user entities by their names on Semantria side.","operationId":"deleteEntities","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove user entities","tags":["Entities"]},"get":{"description":"This method retrieves list of user entities available on Semantria side.","operationId":"getEntities","parameters":[{"description":"Identifier of configuration user entities linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the entities list.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and no entities found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve user entities","tags":["Entities"]},"post":{"description":"This method adds user entities on Semantria side.","operationId":"addEntities","parameters":[{"description":"Identifier of configuration user entities linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed entities per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add user entities","tags":["Entities"]},"put":{"description":"This method updates user entities by unique IDs on Semantria side.","operationId":"updateEntities","parameters":[{"description":"Identifier of configuration user entities linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Entity_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed entities per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Update user entities","tags":["Entities"]}},"/features.{content_type}":{"get":{"description":"This method returns list of supported features per languages supported by Semantria API. Let the users know about API capabilities.","operationId":"getFeatures","parameters":[{"description":"Filter features by specified language","in":"query","name":"language","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with subscription details.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve supported features","tags":["Features"]}},"/phrases.{content_type}":{"delete":{"description":"This method removes certain sentiment-bearing phrases by their names on Semantria side.","operationId":"deletePhrases","parameters":[{"description":"Identifier of configuration phrases linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of sentiment-bearing phrase identifiers.","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove sentiment-bearing phrases","tags":["Phrases"]},"get":{"description":"This method retrieves list of sentiment-bearing phrases available on Semantria side.","operationId":"getPhrases","parameters":[{"description":"Identifier of configuration phrases linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the sentiment-bearing phrases list.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and no sentiment-bearing phrases found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve sentiment-bearing phrases","tags":["Phrases"]},"post":{"description":"This method adds sentiment-bearing phrases on Semantria side.","operationId":"addPhrases","parameters":[{"description":"Identifier of configuration phrases linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed sentiment-bearing phrases per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add sentiment-bearing phrases","tags":["Phrases"]},"put":{"description":"This method updates sentiment-bearing phrases by unique IDs on Semantria side.","operationId":"updatePhrases","parameters":[{"description":"Identifier of configuration phrases linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Phrase_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed sentiment-bearing phrases per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Updates sentiment-bearing phrases","tags":["Phrases"]}},"/queries.{content_type}":{"delete":{"description":"This method removes certain queries by their IDs on Semantria side.","operationId":"deleteQueries","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of query identifiers.","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove queries","tags":["Queries"]},"get":{"description":"This method retrieves list of queries available on Semantria side.","operationId":"getQueries","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the queries list.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and no queries found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve queries","tags":["Queries"]},"post":{"description":"This method adds queries on Semantria side.","operationId":"addQueries","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed queries per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add or update queries","tags":["Queries"]},"put":{"description":"This method updates queries by unique IDs on Semantria side.","operationId":"updateQueries","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/Query_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed queries per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Update queries","tags":["Queries"]}},"/statistics.{content_type}":{"get":{"description":"This method retrieves overall and per configuration usage statistics for specific timeframe. Statistics ordered per available configurations. Available interval values are current <b>hour</b>, <b>day</b>, <b>week</b>, <b>month</b> and <b>year</b>.","operationId":"getStatistic","parameters":[{"description":"Configuration identifier for usage statistics retrieving.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"description":"Hour, Day, Week, Month, Year values are supported.","in":"query","name":"interval","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Server responds with statistics details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statistic"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Statistic"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve usage statistics","tags":["Statistics"]}},"/status.{content_type}":{"get":{"description":"This method retrieves API status information such as the app version, current API version, supported languages and encodings, the overall service status, etc.","operationId":"getStatus","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted. Server responds with status object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Status"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve API status","tags":["Status"]}},"/subscription.{content_type}":{"get":{"description":"This method retrieves user's subscription details that consist of the list of allowed features, configured limits and options on Semantria side.","operationId":"getSubscription","parameters":[{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with subscription details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Subscription"}}}},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve subscription details","tags":["Subscription"]}},"/taxonomy.{content_type}":{"delete":{"description":"This method removes certain taxonomy nodes by their IDs on Semantria side.","operationId":"deleteTaxonomy","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array"}}},"description":"List of taxonomy node identifiers.","required":true},"responses":{"200":{"description":"No response was specified"},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"403":{"description":"Forbidden. Server responds if client tries to remove primary configuration."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Remove taxonomy nodes","tags":["Taxonomy"]},"get":{"description":"This method retrieves list of taxonomy available on Semantria side.","operationId":"getTaxonomy","parameters":[{"description":"Identifier of configuration taxonomy linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client request accepted and queued. Server responds with the taxonomy list.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TaxonomyNode_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/TaxonomyNode_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and no taxonomy found. Server responds with empty body."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Retrieve taxonomy","tags":["Taxonomy"]},"post":{"description":"This method adds taxonomy nodes on Semantria side.","operationId":"addTaxonomy","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TaxonomyNode_ResponseVersion"},"type":"array"}},"application/xml":{"schema":{"items":{"$ref":"#/components/schemas/TaxonomyNode_ResponseVersion"},"type":"array"}}}},"202":{"description":"Client request accepted and queued."},"400":{"description":"Incoming request body is incorrect. Server responds with details."},"401":{"description":"Authentication failed."},"402":{"description":"Unauthorized. Limit of system calls is reached or subscription is expired."},"406":{"description":"Number of allowed queries per configuration achieved."},"500":{"description":"Server side issue. Server may respond with the details in response body."}},"summary":"Add taxonomy nodes","tags":["Taxonomy"]},"put":{"description":"This method updates taxonomy nodes on Semantria side.","operationId":"updateTaxonomy","parameters":[{"description":"Identifier of configuration queries linked to.","in":"query","name":"config_id","required":false,"schema":{"type":"string"}},{"in":"path","name":"content_type","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Request_class2"},"responses":{"200":{"description":"No response was specified","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TaxonomyNode_ResponseVersion"},"type":"array"}},"app