> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tradeguardins.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tradeguardins.com/_mcp/server.

# Update a compliance profile

PATCH https://api.tradeguardins.com/v1/compliance-profiles/{profileId}
Content-Type: application/json

Changes the profile's own settings. Send only the fields to change;
unknown fields are a `400`. Requirements are changed with their own
endpoints ([Create a requirement](https://docs.tradeguardins.com/api-reference/requirements/create-requirement),
[Update a requirement](https://docs.tradeguardins.com/api-reference/requirements/update-requirement)).

Setting `isDefault: true` unsets the previous default and enrolls every
active subcontractor. In `reportCadences`, `null` for a source removes its
override. Profile settings don't change how requirements are judged, so
this call doesn't re-run any checks. A `compliance_profile.updated`
webhook is sent when something actually changed.

Requires scope `compliance_profiles:write`.

Reference: https://docs.tradeguardins.com/api-reference/compliance-profiles/update-compliance-profile

## Authentication

- `Authorization` header (bearer token, required) — Session JWT or API key (`ak_...`)

## Request

### Path parameters

- `profileId` (string, required)

### Body (application/json)

This endpoint expects an UpdateComplianceProfileRequest.

- `name` (string, optional)
- `description` (string, optional)
- `isDefault` (boolean, optional)
- `insuranceVerificationCadence` (enum, optional, nullable) — How often TradeGuard re-verifies a subcontractor's insurance with the broker. `monthly` and `quarterly` schedule recurring checks; the others verify once, when a certificate arrives. `none` switches broker verification off for the profile: an uploaded certificate starts no broker call or carrier email, and a certificate that meets the rules is `compliant` without one (it never waits on the broker). If a subcontractor is on several of your profiles, any profile that verifies wins. Standalone calls (`POST /v1/verification-calls`) are unaffected.
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`, `none`
- `reportCadenceDefault` (enum, optional, nullable) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `reportCadences` (ReportCadenceOverrides, optional) — Per-source overrides of `reportCadenceDefault`. Send `null` for a source to remove its override.
- `requiredAdditionalInsuredName` (string, optional, nullable) — Changing this does not change the Certificate checks requirement's holder name; update that requirement too.
- `verificationChannelPolicy` (enum, optional, nullable) — Which channel opens the producer verification. `call_first` (default): the AI call opens, the carrier email follows only if the call cannot work. `email_first`: the carrier email opens; calls begin once the escalation threshold is met (emails sent AND business days elapsed). `email_only`: never call; exhausted email raises `compliance.producer_outreach_needed` and opens an issue. Set per profile (`verificationChannelPolicy` on the profile, or in the dashboard); null on a profile inherits the organization default.
  - Allowed values: `call_first`, `email_first`, `email_only`
- `emailEscalationAttempts` (integer, optional, nullable)
- `emailEscalationBusinessDays` (integer, optional, nullable)
- `metadata` (UpdateComplianceProfileRequestMetadata, optional)

## Response

### 200

The updated profile

- `data` (ComplianceProfile, optional)

## Errors

### 400 Bad Request Error

Request failed schema validation (`validation_failed`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 401 Unauthorized Error

Missing, malformed, expired or revoked credential (`unauthenticated`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 403 Forbidden Error

The credential lacks the scope or role for this action (`forbidden`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 404 Not Found Error

Resource not found, or not visible to the caller's organization (`not_found`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 429 Too Many Requests Error

Rate limit exceeded (`rate_limited`); retry after `Retry-After` seconds

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 500 Internal Server Error

Unexpected server error (`internal_error`); safe to retry idempotent requests

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

## Types

### ReportCadenceOverrides

Per-source overrides of `reportCadenceDefault`. Send `null` for a source to remove its override.

- `cobalt_sos` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `tradesapi_license` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `jdp_background` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `web_research` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`

### UpdateComplianceProfileRequestMetadata

### ComplianceProfile

- `id` (string, optional)
- `organizationId` (string, optional)
- `name` (string, optional)
- `description` (string, optional, nullable)
- `isDefault` (boolean, optional)
- `insuranceVerificationCadence` (enum, optional, nullable) — Profile-level insurance re-verification heartbeat for enrolled subcontractors; null = verify once when a certificate arrives, no scheduled monitoring; `none` = never verify with the broker.
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`, `none`
- `requiredAdditionalInsuredName` (string, optional, nullable) — The additional-insured / certificate-holder name a COI must list (checked when a requirement sets `requireGcNameMatch`); null = not checked. A new profile's "Certificate checks" requirement starts with this as its certificate holder name.
- `reportCadenceDefault` (enum, optional, nullable) — The report cadence every source inherits unless overridden; null = no report monitoring.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `reportCadences` (ReportCadenceOverrides, optional) — Only returned by Get a compliance profile.
- `verificationChannelPolicy` (enum, optional, nullable) — Null inherits the organization default.
  - Allowed values: `call_first`, `email_first`, `email_only`
- `emailEscalationAttempts` (integer, optional, nullable)
- `emailEscalationBusinessDays` (integer, optional, nullable)
- `metadata` (ComplianceProfileMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `deletedAt` (datetime, optional, nullable)

### ErrorDetailsItems

- `path` (string, optional)
- `message` (string, optional)

### ComplianceProfileMetadata

## Examples

**Request**

```json
{
  "reportCadences": {
    "cobalt_sos": "annual"
  },
  "requiredAdditionalInsuredName": "Arise Homes LLC"
}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "organizationId": "string",
    "name": "string",
    "description": "string",
    "isDefault": true,
    "insuranceVerificationCadence": "monthly",
    "requiredAdditionalInsuredName": "string",
    "reportCadenceDefault": "monthly",
    "reportCadences": {
      "cobalt_sos": "monthly",
      "tradesapi_license": "monthly",
      "jdp_background": "monthly",
      "web_research": "monthly"
    },
    "verificationChannelPolicy": "call_first",
    "emailEscalationAttempts": 1,
    "emailEscalationBusinessDays": 1,
    "metadata": {},
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z",
    "deletedAt": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python Compliance Profiles_updateComplianceProfile_example
import requests

url = "https://api.tradeguardins.com/v1/compliance-profiles/profileId"

payload = {
    "reportCadences": { "cobalt_sos": "annual" },
    "requiredAdditionalInsuredName": "Arise Homes LLC"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Compliance Profiles_updateComplianceProfile_example
const url = 'https://api.tradeguardins.com/v1/compliance-profiles/profileId';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"reportCadences":{"cobalt_sos":"annual"},"requiredAdditionalInsuredName":"Arise Homes LLC"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Compliance Profiles_updateComplianceProfile_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.tradeguardins.com/v1/compliance-profiles/profileId"

	payload := strings.NewReader("{\n  \"reportCadences\": {\n    \"cobalt_sos\": \"annual\"\n  },\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Compliance Profiles_updateComplianceProfile_example
require 'uri'
require 'net/http'

url = URI("https://api.tradeguardins.com/v1/compliance-profiles/profileId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"reportCadences\": {\n    \"cobalt_sos\": \"annual\"\n  },\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\"\n}"

response = http.request(request)
puts response.read_body
```

```java Compliance Profiles_updateComplianceProfile_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.tradeguardins.com/v1/compliance-profiles/profileId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"reportCadences\": {\n    \"cobalt_sos\": \"annual\"\n  },\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\"\n}")
  .asString();
```

```php Compliance Profiles_updateComplianceProfile_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.tradeguardins.com/v1/compliance-profiles/profileId', [
  'body' => '{
  "reportCadences": {
    "cobalt_sos": "annual"
  },
  "requiredAdditionalInsuredName": "Arise Homes LLC"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Compliance Profiles_updateComplianceProfile_example
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/compliance-profiles/profileId");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"reportCadences\": {\n    \"cobalt_sos\": \"annual\"\n  },\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Compliance Profiles_updateComplianceProfile_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "reportCadences": ["cobalt_sos": "annual"],
  "requiredAdditionalInsuredName": "Arise Homes LLC"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.tradeguardins.com/v1/compliance-profiles/profileId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```