Skip to main content
PATCH
/
v0
/
business
/
{business_id}
Update a Business
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New Roofing Pros",
  "status": "active",
  "onboarding_date": "2023-12-25"
}
'
{
  "data": {
    "tenant_id": "<string>",
    "name": "<string>",
    "industry": "Roofing Contractors",
    "entries_start": "2023-11-07T05:31:56Z",
    "entity_type": "c-corp",
    "fiscal_year": "<string>",
    "external_id": "<string>",
    "id": "<string>",
    "status": "active",
    "onboarding_date": "2023-12-25",
    "plan": "managed"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

Body

application/json
name
string | null

The updated name of the Business

Maximum string length: 255
Example:

"New Roofing Pros"

status
enum<string> | null

The updated status of the Business

Available options:
active,
inactive
Example:

"active"

onboarding_date
string<date> | null

The date the business was onboarded

Response

Successful Response

data
BusinessPublic · object
required