Creates a new office (organizational sub-unit) under the caller’s team. Caller must have permission to manage team organization.
curl --request PUT \
--url https://api.lofty.com/v1.0/org/office \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": 563172647619608,
"parentId": 563172647619608,
"name": "Downtown Branch",
"phone": "4155551234",
"phoneCode": "1",
"phoneCountry": "US",
"email": "downtown@lofty.com",
"city": "San Francisco",
"state": "CA",
"zipcode": "94103",
"streetAddress": "456 Mission St",
"allowManageSub": true
}
'{
"code": 0,
"message": "success",
"data": {}
}Documentation Index
Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
Use this file to discover all available pages before exploring further.
Office payload. id is required to identify the office to update.
Office ID. Required on update (POST /v1.0/org/office); ignored on create.
563172647619608
Parent office ID. Use 0 or null when creating a top-level office under the team.
563172647619608
Office name.
"Downtown Branch"
Office phone number, digits only.
"4155551234"
Phone country calling code without the leading +.
"1"
ISO 3166-1 alpha-2 country code for the phone.
"US"
Office contact email.
"downtown@lofty.com"
City.
"San Francisco"
State or province.
"CA"
Postal / ZIP code.
"94103"
Street address line.
"456 Mission St"
Whether members of this office can manage its sub-offices.
true
Envelope with business code and message.
Response envelope for POST /v1.0/org/company, PUT /v1.0/org/office and POST /v1.0/org/office. Carries a business code and message; data may be absent on pure acknowledgement responses.
curl --request PUT \
--url https://api.lofty.com/v1.0/org/office \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": 563172647619608,
"parentId": 563172647619608,
"name": "Downtown Branch",
"phone": "4155551234",
"phoneCode": "1",
"phoneCountry": "US",
"email": "downtown@lofty.com",
"city": "San Francisco",
"state": "CA",
"zipcode": "94103",
"streetAddress": "456 Mission St",
"allowManageSub": true
}
'{
"code": 0,
"message": "success",
"data": {}
}