Skip to main content

Update a Dock

Updates one or more fields on an existing dock. Only include the fields you want to change.
PATCH /v1/docks/:id

Path Parameters

ParameterTypeDescription
idstringThe dock ID

Request Body

All fields are optional. Only provided fields are updated.
ParameterTypeDescription
namestringDisplay name
domainstringPrimary domain
customDomainstringCustom domain for branded portal
legalNamestringLegal business name
businessTypestringBusiness entity type
taxIdstringTax identification number
registrationNumberstringBusiness registration number
businessAddressobjectCompany address
businessPhonestringBusiness phone
businessEmailstringBusiness email
primaryColorstringHex color for branding
secondaryColorstringHex color for secondary branding
customCssstringCustom CSS for recipient portal

Example Request

curl -X PATCH https://api.docyard.io/v1/docks/dock_01HQ3K... \
  -H "Authorization: Bearer dk_live_a1b2c3d4..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Insurance Group",
    "primaryColor": "#004488"
  }'

Response

Returns the full updated dock object.
{
  "id": "dock_01HQ3K...",
  "name": "Acme Insurance Group",
  "primaryColor": "#004488",
  "updatedAt": "2025-01-21T08:00:00.000Z"
}

Error Handling

StatusCondition
400domain or customDomain already claimed by another dock
401Missing or invalid API key
404Dock not found
Changing the domain field resets domainVerificationStatus to UNVERIFIED. You must re-verify the new domain.