---
updatedAt: 2025-02-19T22:46:43.000Z
agentTools:
  projectIndex: https://apidocs.rently.com/llms.txt
---

# Change Company

# Parameter
|    Field |      Type     |  Description |
|----------|-------------|------|
| id |  Integer | property unique ID. |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Smart Home Open APIs",
    "description": "Smart Home APIs for integrating smart home solutions.  \nBase Url = [https://app2.keyless.rocks/api](https://app2.keyless.rocks/api)",
    "contact": {},
    "version": "1.0"
  },
  "servers": [
    {
      "url": "{base_url}/api",
      "variables": {
        "base_url": {
          "default": "app2.keyless.rocks"
        }
      }
    },
    {
      "url": "{base_url}/api/hubs/{id}/master-code",
      "variables": {
        "base_url": {
          "default": "app2.keyless.rocks"
        },
        "id": {
          "default": "Hub Unique ID"
        }
      }
    },
    {
      "url": "http://AppLevelWebhooks",
      "variables": {}
    }
  ],
  "paths": {
    "/properties/{id}": {
      "patch": {
        "tags": [
          "Properties"
        ],
        "summary": "Change Company",
        "description": "# Parameter\n|    Field |      Type     |  Description |\n|----------|-------------|------|\n| id |  Integer | property unique ID. |",
        "operationId": "ChangeCompany",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "example": "Property Unique ID"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChangeCompanyRequest"
                  },
                  {
                    "example": {
                      "account_id": 12345
                    }
                  }
                ]
              },
              "example": {
                "account_id": 12345
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "Success": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              },
              "Same Account Id": {
                "schema": {
                  "$ref": "#/components/schemas/SameAccountId"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {},
            "content": {
              "Non-existing Account": {
                "schema": {
                  "$ref": "#/components/schemas/Non-existingAccount1"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity (WebDAV) (RFC 4918)",
            "headers": {},
            "content": {
              "Without Account Id": {
                "schema": {
                  "$ref": "#/components/schemas/WithoutAccountId1"
                }
              },
              "Invalid Account Id": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidAccountId1"
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "bearer": []
          }
        ],
        "servers": [
          {
            "url": "https://app2.keyless.rocks/api",
            "variables": {}
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ChangeCompanyRequest": {
        "title": "ChangeCompanyRequest",
        "required": [
          "account_id"
        ],
        "type": "object",
        "properties": {
          "account_id": {
            "type": "integer",
            "format": "int32"
          }
        },
        "example": {
          "account_id": 12345
        }
      },
      "Success": {
        "title": "Success",
        "required": [
          "success",
          "message"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "example": {
          "success": true,
          "message": "Asset successfully moved to new company"
        }
      },
      "WithoutAccountId1": {
        "title": "WithoutAccountId1",
        "required": [
          "success",
          "message"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "example": {
          "success": false,
          "message": "Account Id is required."
        }
      },
      "Non-existingAccount1": {
        "title": "Non-existingAccount1",
        "required": [
          "success",
          "message"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "example": {
          "success": false,
          "message": "Account not found"
        }
      },
      "InvalidAccountId1": {
        "title": "InvalidAccountId1",
        "required": [
          "success",
          "message"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "example": {
          "success": false,
          "message": "Invalid Account Value"
        }
      },
      "SameAccountId": {
        "title": "SameAccountId",
        "required": [
          "success",
          "message"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "example": {
          "success": false,
          "message": "New company and existing company are same. Please, enter correct company"
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "Properties",
      "description": "Property APIs\n\n1.  List of Properties\n2.  Create Property\n3.  Property Details\n4.  Update property\n5.  Property Devices\n6.  Change Company\n7.  Destroy Property\n8.  Move-out all invitations"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```