Skip to main content
POST
/
v1.0
/
org
/
office
Update Office
curl --request POST \
  --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.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Office payload. id is required to identify the office to update.

id
integer<int64>

Office ID. Required on update (POST /v1.0/org/office); ignored on create.

Example:

563172647619608

parentId
integer<int64>

Parent office ID. Use 0 or null when creating a top-level office under the team.

Example:

563172647619608

name
string

Office name.

Example:

"Downtown Branch"

phone
string

Office phone number, digits only.

Example:

"4155551234"

phoneCode
string

Phone country calling code without the leading +.

Example:

"1"

phoneCountry
string

ISO 3166-1 alpha-2 country code for the phone.

Example:

"US"

email
string

Office contact email.

Example:

"downtown@lofty.com"

city
string

City.

Example:

"San Francisco"

state
string

State or province.

Example:

"CA"

zipcode
string

Postal / ZIP code.

Example:

"94103"

streetAddress
string

Street address line.

Example:

"456 Mission St"

allowManageSub
boolean

Whether members of this office can manage its sub-offices.

Example:

true

Response

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.

code
integer<int32>

Business result code. 0 indicates success.

Example:

0

message
string

Human-readable message. 'success' on success; error description otherwise.

Example:

"success"

data
object

Operation result payload, if any.