---
agentTools:
  projectIndex: https://keytocheck.readme.io/llms.txt
---

# /locations/{location}/rooms/{room}/equipments/{equipment}/photo

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "KeyToCheck",
    "description": "KeyToCheck API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.keytocheck.com/api",
      "description": "Main (production) server"
    },
    {
      "url": "https://apisandbox.keytocheck.com/api",
      "description": "Sandbox server for testing"
    }
  ],
  "paths": {
    "/locations/{location}/rooms/{room}/equipments/{equipment}/photo": {
      "post": {
        "tags": [
          "LocationRoomEquipmentPhoto"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/LocationPathParameter"
          },
          {
            "$ref": "#/components/parameters/RoomPathParameter"
          },
          {
            "$ref": "#/components/parameters/EquipmentPathParameter"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/UploadEquipmentPhotoBody"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessResponse"
          },
          "400": {
            "$ref": "#/components/responses/UpdateEquipmentPhotoErrorResponse"
          },
          "401": {
            "$ref": "#/components/responses/BadTokenErrorResponse"
          },
          "404": {
            "$ref": "#/components/responses/LocationRoomEquipmentNotFoundErrorResponse"
          },
          "500": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "LocationPathParameter": {
        "in": "path",
        "name": "location",
        "required": true,
        "schema": {
          "type": "string",
          "nullable": false
        }
      },
      "RoomPathParameter": {
        "in": "path",
        "name": "room",
        "required": true,
        "schema": {
          "type": "string",
          "nullable": false
        }
      },
      "EquipmentPathParameter": {
        "in": "path",
        "name": "equipment",
        "required": true,
        "schema": {
          "type": "string",
          "nullable": false
        }
      }
    },
    "requestBodies": {
      "UploadEquipmentPhotoBody": {
        "description": "",
        "content": {
          "image/png": {
            "schema": {
              "type": "object",
              "properties": {
                "file": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "responses": {
      "SuccessResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": true,
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 500,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "BadTokenErrorResponse": {
        "description": "Access token is missing or invalid",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 401,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "default": "error.bad-token",
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "UpdateEquipmentPhotoErrorResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 400,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "nullable": false,
                  "enum": [
                    "error.upload-file-format-invalid",
                    "error.upload-none-file-received",
                    "error.upload-more-than-one-file-received"
                  ]
                }
              }
            }
          }
        }
      },
      "LocationRoomEquipmentNotFoundErrorResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 404,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "nullable": false,
                  "enum": [
                    "error.location-not-found",
                    "error.location-room-not-found",
                    "error.location-equipment-not-found"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 114,
      "2": 232,
      "3": 241,
      "4": 248,
      "5": 91,
      "6": 51,
      "7": 0,
      "8": 22,
      "9": 97,
      "10": 214,
      "11": 14
    }
  }
}
```