Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/create-an-annotation-layer-annotation-layer.StatusCodes.json

92 lines
2.4 KiB
JSON

{
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"properties": {
"id": { "type": "number" },
"result": {
"properties": {
"descr": {
"description": "Give a description for this annotation layer",
"nullable": true,
"type": "string"
},
"name": {
"description": "The annotation layer name",
"maxLength": 250,
"minLength": 1,
"type": "string"
}
},
"required": ["name"],
"type": "object",
"title": "AnnotationLayerRestApi.post"
}
},
"type": "object"
},
"example": {
"id": 1,
"result": { "descr": "string", "name": "string" }
}
}
},
"description": "Annotation added"
},
"400": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": { "message": "Bad request: Invalid parameters provided" }
}
},
"description": "Bad request"
},
"401": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": { "message": "Unauthorized: Authentication required" }
}
},
"description": "Unauthorized"
},
"404": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": {
"message": "Not found: The requested resource does not exist"
}
}
},
"description": "Not found"
},
"500": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": {
"message": "Internal server error: An unexpected error occurred"
}
}
},
"description": "Fatal error"
}
}
}