Skip to main content
PUT
https://dataapi.dncscrub.com
/
v1.5
/
legalentity
/
Update
Update Legal Entity
curl --request PUT \
  --url https://dataapi.dncscrub.com/v1.5/legalentity/Update \
  --header 'Content-Type: <content-type>' \
  --header 'loginId: <loginid>' \
  --data '
{
  "LegalEntityId": 123,
  "LegalName": "<string>",
  "IsDefault": true,
  "EIN": "<string>",
  "StreetAddress": "<string>",
  "City": "<string>",
  "State": "<string>",
  "Zip": "<string>",
  "CountryCode": "<string>",
  "IndustryId": "<string>",
  "PrimaryPhoneNumber": "<string>",
  "PrimaryContactName": "<string>",
  "PrimaryContactEmail": "<string>",
  "PrimaryContactPhoneNumber": "<string>",
  "EmployeeCount": 123,
  "CallsPerMonth": 123,
  "DunsNumber": "<string>",
  "Url": "<string>",
  "Dba": "<string>",
  "LicenceNumber": "<string>",
  "CallPurposeDescription": "<string>",
  "PotentialNegativeReaction": "<string>"
}
'
{
  "LegalEntityId": 68257,
  "AcctId": "YOUR_ACCOUNT_ID",
  "IsCreated": false,
  "IsUpdated": true
}
Update an existing legal entity for your account. Use this endpoint to modify legal entity information such as address, contact details, or business information.

Request

Headers

loginId
string
required
Your API Key (LoginId from your DNCScrub account)
Content-Type
string
required
Must be application/json

Request Body

The unique identifier of the legal entity to update
The registered legal name of the business entity
IsDefault
boolean
Set to true to make this the default legal entity for the account
EIN
string
Employer Identification Number (EIN), digits without a dash (e.g., “987654321”)
StreetAddress
string
Street address of the legal entity
City
string
City of the legal entity’s address
State
string
State or province code (e.g., “NY”, “CA”)
Zip
string
ZIP or postal code
CountryCode
string
Two-letter country code (e.g., “US”)
IndustryId
string
Industry identifier code. See the table below for valid values.
IDIndustry
1Education
2Transportation
3Retail
4Delivery/Shipping
5Government
6Health Care
7Financial
8Public Service
9Real Estate
10Legal
11Restaurant/Food Services
12Automotive
13Religious
14Veterinary Services
15Trade Contractors
16Personal Services
17Business Services
18Hospitality/Entertainment
19Insurance
20Manufacturing
21Other Business
22Telecommunications
PrimaryPhoneNumber
string
Primary contact phone number for the legal entity
PrimaryContactName
string
Name of the primary contact person
PrimaryContactEmail
string
Email address of the primary contact
PrimaryContactPhoneNumber
string
Phone number of the primary contact person
EmployeeCount
integer
Number of employees at the company
CallsPerMonth
integer
Estimated number of outbound calls per month
DunsNumber
string
Dun & Bradstreet DUNS number
Url
string
Company website URL
Dba
string
“Doing Business As” name, if different from legal name
LicenceNumber
string
Business license number
CallPurposeDescription
string
Description of the purpose of outbound calls
PotentialNegativeReaction
string
Description of potential negative reaction

Example Request

curl --location --request PUT \
  'https://dataapi.dncscrub.com/v1.5/legalentity/Update' \
  --header 'loginId: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "LegalEntityId": 68257,
    "LegalName": "Updated Company LLC",
    "IsDefault": true,
    "EIN": "987654321",
    "StreetAddress": "456 Updated Avenue",
    "City": "Dallas",
    "State": "TX",
    "Zip": "75201",
    "CountryCode": "US",
    "IndustryId": "22",
    "PrimaryContactName": "Jane Smith",
    "PrimaryContactEmail": "jane.smith@updatedcompany.com",
    "PrimaryContactPhoneNumber": "2145551234",
    "PrimaryPhoneNumber": "2145550000",
    "CallsPerMonth": 25000,
    "EmployeeCount": 1000,
    "DunsNumber": "987654321",
    "Url": "https://www.updatedcompany.com",
    "Dba": "Updated Co",
    "LicenceNumber": "LIC-98765",
    "CallPurposeDescription": "Sales and marketing outreach",
    "PotentialNegativeReaction": "Medium"
  }'
{
  "LegalEntityId": 68257,
  "AcctId": "YOUR_ACCOUNT_ID",
  "IsCreated": false,
  "IsUpdated": true
}

Response Fields

The unique identifier of the updated legal entity
AcctId
string
The account ID the legal entity belongs to
IsCreated
boolean
Always false for update operations. Use the Create Legal Entity endpoint to create new entities.
IsUpdated
boolean
true if the existing legal entity was successfully updated

Error Responses

StatusDescription
400 Bad RequestMissing required field (LegalEntityId) or request body is empty
401 UnauthorizedInvalid or missing API key
404 Not FoundLegal entity with the specified LegalEntityId does not exist for your account
500 Internal Server ErrorServer error during processing
Use the Get All Legal Entities endpoint to retrieve the LegalEntityId values for your account’s legal entities.