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

# Update a proof of address check-in.

Update a proof of address check-in. A proof of address check-in requires a document (or photos) clearly proving residence. Photos need to be uploaded to the Ownli cloud via the Photo upload api.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.ownli.app",
      "description": "Generated server url"
    }
  ],
  "paths": {
    "/api/users/checkin/proof-of-address/{id}": {
      "put": {
        "tags": [
          "Check-in"
        ],
        "summary": "Update a proof of address check-in.",
        "description": "Update a proof of address check-in. A proof of address check-in requires a document (or photos) clearly proving residence. Photos need to be uploaded to the Ownli cloud via the Photo upload api.",
        "operationId": "updateProofOfAddressCheckin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "partnerId",
            "in": "header",
            "description": "Partner Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "header",
            "description": "Client Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientSecret",
            "in": "header",
            "description": "Client Secret",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProofOfAddressCheckInCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The created proof of address check-in object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProofOfAddressCheckInCreateDto"
                }
              }
            }
          },
          "401": {
            "description": "Authorization error e.g. due to an invalid or missing API keys."
          },
          "403": {
            "description": "The caller does not have access to the checkin. \nPossible error codes\n 1. **ERROR_NO_PERMISSIONS_TO_RESOURCE**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "User not found. \nPossible error codes\n 1. **ERROR_USER_NOT_FOUND**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseDto": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code"
          },
          "error_message": {
            "type": "string",
            "description": "A verbose error message"
          }
        },
        "description": "Error response."
      },
      "ProofOfAddressAddressCreateDto": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "description": "Street Address"
          },
          "city": {
            "type": "string",
            "description": "City"
          },
          "state": {
            "type": "string",
            "description": "2 Letter State Code (eg. AL, CA, CO etc."
          },
          "country": {
            "type": "string",
            "description": "2 Letter Country Code. Must be US."
          },
          "zip": {
            "type": "string",
            "description": "Zipcode"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude of the address.",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude of the address.",
            "format": "double"
          }
        },
        "description": "Address"
      },
      "ProofOfAddressCheckInCreateDto": {
        "required": [
          "documentType",
          "latitude",
          "longitude",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "Id of the user."
          },
          "documentType": {
            "type": "string",
            "description": "Document type for attached document.",
            "enum": [
              "UtilityBill",
              "Paycheck",
              "FinancialStatement",
              "SaleDeed",
              "LeaseAgreement",
              "Invalid",
              "UtilityBill",
              "Paycheck",
              "FinancialStatement",
              "SaleDeed",
              "LeaseAgreement"
            ]
          },
          "latitude": {
            "type": "number",
            "description": "Latitude of the check-in.",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude of the check-in.",
            "format": "double"
          },
          "addressType": {
            "type": "string",
            "description": "Type of home.",
            "enum": [
              "StandaloneHome",
              "Apartment",
              "Condominium",
              "Duplex",
              "Other",
              "Invalid",
              "StandaloneHome",
              "Apartment",
              "Condominium",
              "Duplex",
              "Other"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/ProofOfAddressAddressCreateDto"
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProofOfAddressCheckinCreatePhotoDto"
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProofOfAddressCheckinCreateDocumentDto"
            }
          }
        }
      },
      "ProofOfAddressCheckinCreateDocumentDto": {
        "required": [
          "type",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Url of the document. The document needs to be uploaded via the Photo Upload API."
          },
          "type": {
            "type": "string",
            "description": "File type of the document.",
            "enum": [
              "DOCUMENT",
              "GALLERY",
              "CAMERA",
              "INVALID",
              "DOCUMENT",
              "GALLERY",
              "CAMERA"
            ]
          },
          "ordinal": {
            "type": "integer",
            "description": "Ordinal",
            "format": "int32"
          }
        },
        "description": "Payload for photo."
      },
      "ProofOfAddressCheckinCreatePhotoDto": {
        "required": [
          "type",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Url of the photo. The photo needs to be uploaded via the Photo Upload API."
          },
          "type": {
            "type": "string",
            "description": "Type of the photo. A value from one of the photo types.",
            "enum": [
              "FrontView",
              "AlternateView",
              "Invalid",
              "FrontView",
              "AlternateView"
            ]
          }
        },
        "description": "Payload for photo."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 149,
      "2": 36,
      "3": 236,
      "4": 14,
      "5": 67,
      "6": 148,
      "7": 138,
      "8": 212,
      "9": 48,
      "10": 246,
      "11": 30
    }
  }
}
```