unsupported_media_type
The content type is not supported
Status: 415 Unsupported Media Type
type: https://api.allisai.ai/errors/unsupported_media_type
When it is sent
The Content-Type is not one the operation takes, or names a charset other than utf-8 on a JSON media type. Send the media type the operation's request body lists, in UTF-8.
Example
{
"type": "https://api.allisai.ai/errors/unsupported_media_type",
"title": "The content type is not supported",
"status": 415,
"detail": "A human-readable explanation of this occurrence. Its wording varies; branch on code, never on detail.",
"code": "unsupported_media_type",
"request_id": "3a9f6c1e2b7d4e5f8a0b1c2d3e4f5a6b"
}
Operations that return it
- Ingest a batch of events (
ingestEvents) - Preview a CSV import (
previewImport) - Import a CSV file (
commitImport) - Create a client (
createClient) - Update a client (
updateClient) - Replace a client's assigned agents (
setClientAgents) - Create a client's value model (
createValueModel) - Update a client's active value model (
updateValueModel) - Replace a value model's line items (
setValueModelLineItems) - Freeze a client's ROI for a period (
createCalculation) - Create an agent (
createAgent) - Update an agent (
updateAgent) - Create a cost line item (
createCostLineItem) - Update a cost line item (
updateCostLineItem) - Replace the price table (
setPriceTable) - Validate a calculation (
validateCalculation) - Edit a report (
updateReport) - Create an API key (
createApiKey)