Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/update-an-annotation-layer-annotation-layer-pk.StatusCodes.json
2026-07-28 21:39:01 +07:00

90 lines
2.3 KiB
JSON

{
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"id": { "type": "number" },
"result": {
"properties": {
"descr": {
"description": "Give a description for this annotation layer",
"type": "string"
},
"name": {
"description": "The annotation layer name",
"maxLength": 250,
"minLength": 1,
"type": "string"
}
},
"type": "object",
"title": "AnnotationLayerRestApi.put"
}
},
"type": "object"
},
"example": {
"id": 1,
"result": { "descr": "string", "name": "string" }
}
}
},
"description": "Annotation changed"
},
"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"
}
}
}