Add a co-tenant or an occupant to a lease
POST
/api/leases/{leaseId}/occupants
const url = 'https://api.getvespy.com/api/leases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occupants';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"moveInDate":"2026-04-15","notes":"example","role":"co_tenant","tenantId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.getvespy.com/api/leases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occupants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "moveInDate": "2026-04-15", "notes": "example", "role": "co_tenant", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'A co-tenant is an existing tenant (tenantId) or a new one (tenant). An occupant is a name and, if the lease states it, a relationship; occupants are never tenant records.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”leaseId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Any of:
An existing tenant becomes a co-tenant.
object
moveInDate
string format: date
notes
string
role
required
string
tenantId
required
string format: uuid
A new tenant, created as a co-tenant on this lease.
object
moveInDate
string format: date
notes
string
role
required
string
tenant
required
object
billingAddress
object
city
required
string
country
required
string
line1
required
string
line2
string
postalCode
required
string
state
required
string
dbaName
string
email
string format: email
emergencyContactName
string
emergencyContactPhone
string
emergencyContactRelationship
string
fullName
required
string
isActive
boolean
kind
string
legalName
string
phone
string
preferredLanguage
string
userId
string format: uuid
Someone who lives there without signing. Never a tenant record, a portal user or a notice recipient.
object
fullName
required
string
moveInDate
string format: date
notes
string
relationship
string
role
required
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
occupant
required
object
fullName
required
string
id
required
string format: uuid
isPrimary
required
boolean
moveInDate
required
string format: date
moveOutDate
required
string format: date
notes
required
string
providerRole
required
string
relationship
required
string
releasedOn
required
string format: date
removedAt
required
string format: date-time
role
required
string
tenantId
required
string format: uuid
tenantName
required
string
Example
{ "occupant": { "role": "co_tenant" }}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}