Skip to main content
PATCH
Update a site

Authorizations

x-api-key
string
header
required

Send the API key in the x-api-key header.

Path Parameters

id
string
required
Pattern: ^ovaid-.*$
Example:

"ovaid-22222222-2222-4222-8222-222222222222"

Query Parameters

include
string

Comma-separated relations to expand on the response

Example:

"clients,projects"

Body

application/json
businessName
string
Minimum string length: 1
address1
string
Minimum string length: 1
address2
string
city
string
Minimum string length: 1
state
string
Minimum string length: 1
zip
string
isMonitored
boolean
siteNotes
string
clientSegmentId
string
Minimum string length: 1
primaryClientId
string
Pattern: ^ovcid-.*$
tosAccepted
boolean
platformSlaId
enum<string>
Available options:
essentials_plus,
priority,
security_only,
proactive,
signature
ownerId
string

Platform user id. Newer ids are ovuid-<uuid>; legacy users may have bare (e.g. numeric) ids.

Minimum string length: 1
Example:

"ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344"

customProperties
object

Custom property values, keyed by property id. Ids and value types come from the properties defined for your partner, so this object cannot be described field by field here: an unknown id or a value that does not match the property type is rejected with 400. Only the ids you send are modified — omit a property to leave it untouched. To clear one, send null; a blank string and an empty array count as empty too, for every property type alike.

Example:

Response

Updated site

id
string
required
address1
string | null
required
address2
string | null
required
city
string | null
required
state
string | null
required
zip
string | null
required
tosAccepted
string
serviceLevel
enum<string>
Available options:
Inactive,
Non-Member,
Warranty Essentials,
CPP Essentials Plus,
Essentials Plus,
CPP Priority,
Priority,
CPP Proactive,
Proactive,
CPP Signature,
Signature,
Secure,
OV - Internal,
Legacy
clientSegment
string
cppExpDate
string<date-time>
businessName
string
brandId
string
primaryClientId
string
primaryProjectId
string
createdAt
string<date-time>
updatedAt
string<date-time>
sla
number
isMonitored
boolean
accountManager
object
membershipRegistered
boolean
clients
object[]
projects
object[]
customProperties
object

Custom property values, keyed by property id. Ids and value types come from the properties defined for your partner, so this object cannot be described field by field here — call the custom-property list endpoint to resolve an id to its name and type. A property never given a value takes the default configured for it, and is left out rather than returned as null when there is no default either. A value stored before its property was changed — an option renamed or removed, the type switched — is returned as stored, so it may not match the type the property has today; an absent key is the only reliable sign that nothing is set.

Example: