Valetudo/backend/lib/webserver/capabilityRouters/doc/MapSegmentRenameCapabilityR...

62 lines
1.4 KiB
JSON

{
"/api/v2/robot/capabilities/MapSegmentRenameCapability": {
"put": {
"tags": [
"MapSegmentRenameCapability"
],
"summary": "Rename map segment",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"rename_segment"
]
},
"segment_id": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"$ref": "#/components/responses/200"
},
"400": {
"$ref": "#/components/responses/400"
}
}
}
},
"/api/v2/robot/capabilities/MapSegmentRenameCapability/properties": {
"get": {
"tags": [
"MapSegmentRenameCapability"
],
"summary": "Get various capability-related properties",
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}