> 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 subcontractor

PATCH https://api.tradeguardins.com/v1/subcontractors/{subcontractorId}
Content-Type: application/json

Updates the shared subcontractor record. Omit a field to leave it
unchanged; send `null` for an intake field (`ein`, `website`,
`businessAddress`, `ownerName`, `ownerEmail`, `ownerPhone`) to clear it.
`licenses`, when present, replaces the whole license set. Unknown fields,
including `origin` (which cannot be changed here), are rejected with
`400 validation_failed`.

The create rules for names apply to the record as it will be after the
update: changing `entityType` to `sole_proprietor` needs `firstName` and
`lastName` (in the body or already on the record), and a business entity
needs a `companyName`. Otherwise `400 validation_failed`.

Adding information a Secretary of State or license check was waiting on
(name, trade, business address, licenses) starts that check right away
for every organization whose profile requires it.
`data.informationNeeded` lists anything still missing for yours.

Adding a license, or changing a license's `licenseNumber` or `state`,
runs the license check again right away (a new paid lookup in
production), even if it ran before. Removing a license or changing only
its `licenseType` doesn't.

`422` is returned for a malformed `ein`, more than one primary license,
or a duplicate (state, licenseNumber) pair. Requires scope
`subcontractors:write`.


Reference: https://docs.tradeguardins.com/api-reference/subcontractors/update-subcontractor

## Authentication

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

## Request

### Path parameters

- `subcontractorId` (string, required)

### Body (application/json)

This endpoint expects an UpdateSubcontractorRequest.

- `businessAddress` (BusinessAddress, optional, nullable)
- `communicationPreference` (enum, optional)
  - Allowed values: `email`, `sms`, `both`
- `companyName` (string, optional)
- `contactEmail` (string, optional)
- `contactName` (string, optional, nullable)
- `contactPhone` (string, optional)
- `dba` (string, optional, nullable) — The subcontractor's "doing business as" name (shared). `null` or `""` clears it.
- `ein` (string, optional, nullable) — Accepts `NN-NNNNNNN` or nine digits; stored normalized. A malformed EIN is rejected with **422**.
- `entityType` (enum, optional)
  - Allowed values: `sole_proprietor`, `llc`, `s_corp`, `c_corp`, `partnership`, `other`
- `externalId` (string, optional)
- `firstName` (string, optional)
- `languagePreference` (enum, optional)
  - Allowed values: `en`, `es`
- `lastName` (string, optional)
- `licenses` (list of SubcontractorLicenseInput, optional)
- `metadata` (UpdateSubcontractorRequestMetadata, optional)
- `ownerEmail` (string, optional, nullable)
- `ownerName` (string, optional, nullable)
- `ownerPhone` (string, optional, nullable) — Any US-parsable format; stored E.164
- `tradeCategory` (enum, optional) — Optional trade/discipline of the subcontractor. Optional for API clients; the general-contractor web UI requires it when creating a subcontractor.
  - Allowed values: `electrical`, `plumbing`, `hvac`, `concrete`, `masonry`, `framing`, `roofing`, `drywall`, `painting`, `flooring`, `excavation`, `steel`, `landscaping`, `general`, `other`
- `website` (string, optional, nullable) — A bare host (`acme.example`) is accepted and stored as `https://acme.example`

## Response

### 200

Subcontractor updated (includes the current `licenses` set)

- `data` (V1SubcontractorsSubcontractorIdPatchResponsesContentApplicationJsonSchemaData, optional) — Shared company details plus your organization's own contact, `externalId` and `metadata` (never another organization's).

## 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`.

### 422 Unprocessable Entity Error

Well-formed but rejected by a business rule (`unprocessable`)

- `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`.

## Types

### BusinessAddress

- `line1` (string, required)
- `city` (string, required)
- `state` (string, required) — Two-letter USPS state / territory code
- `postalCode` (string, required) — 5-digit ZIP or ZIP+4
- `line2` (string, optional, nullable)
- `country` (enum, optional, default: US)
  - Allowed values: `US`

### SubcontractorLicenseInput

- `licenseNumber` (string, required)
- `licenseType` (string, required) — Free text (e.g. "Electrical Contractor") until the TradesAPI class taxonomy lands
- `state` (string, required) — Two-letter issuing state / territory code
- `isPrimary` (boolean, optional) — The license verified first. Exactly one per sub; defaults to the first row when none is flagged.

### UpdateSubcontractorRequestMetadata

### V1SubcontractorsSubcontractorIdPatchResponsesContentApplicationJsonSchemaData

Shared company details plus your organization's own contact, `externalId` and `metadata` (never another organization's).

- `id` (string, optional)
- `externalId` (string, optional, nullable) — Your organization's own ID for the subcontractor.
- `contactName` (string, optional, nullable) — Your organization's contact person for the subcontractor.
- `entityType` (enum, optional)
  - Allowed values: `sole_proprietor`, `llc`, `s_corp`, `c_corp`, `partnership`, `other`
- `companyName` (string, optional, nullable)
- `dba` (string, optional, nullable) — The subcontractor's "doing business as" name. A certificate whose insured is the DBA matches the subcontractor. Shared across organizations.
- `firstName` (string, optional, nullable)
- `lastName` (string, optional, nullable)
- `contactEmail` (string, optional) — Your organization's contact email for the subcontractor (invites and notices go here).
- `contactPhone` (string, optional) — Your organization's contact phone, E.164 format
- `communicationPreference` (enum, optional)
  - Allowed values: `email`, `sms`, `both`
- `languagePreference` (enum, optional)
  - Allowed values: `en`, `es`
- `tradeCategory` (enum, optional, nullable) — Optional trade/discipline of the subcontractor. Optional for API clients; the general-contractor web UI requires it when creating a subcontractor.
  - Allowed values: `electrical`, `plumbing`, `hvac`, `concrete`, `masonry`, `framing`, `roofing`, `drywall`, `painting`, `flooring`, `excavation`, `steel`, `landscaping`, `general`, `other`
- `ein` (string, optional, nullable) — Employer Identification Number, normalized to `NN-NNNNNNN`
- `website` (string, optional, nullable)
- `businessAddress` (BusinessAddress, optional, nullable) — Establishes the licensing jurisdiction for license verification
- `ownerName` (string, optional, nullable)
- `ownerEmail` (string, optional, nullable)
- `ownerPhone` (string, optional, nullable) — E.164 format
- `metadata` (V1SubcontractorsSubcontractorIdPatchResponsesContentApplicationJsonSchemaDataMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `environment` (enum, optional) — Sandbox subcontractors are a separate set from production ones; a sandbox organization can never see or enroll a production subcontractor.
  - Allowed values: `production`, `sandbox`
- `licenses` (list of SubcontractorLicense, optional) — The current license set, primary first.
- `informationNeeded` (list of ReportInformationNeededListItems, optional) — Secretary of State and license checks your compliance profiles require that can't run yet, with what to add to the subcontractor. Empty when nothing is missing. Add the fields with [Update a subcontractor](https://docs.tradeguardins.com/api-reference/subcontractors/update-subcontractor); the check then runs automatically.

### ErrorDetailsItems

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

### V1SubcontractorsSubcontractorIdPatchResponsesContentApplicationJsonSchemaDataMetadata

### SubcontractorLicense

- `licenseNumber` (string, required)
- `licenseType` (string, required) — Free text (e.g. "Electrical Contractor") until the TradesAPI class taxonomy lands
- `state` (string, required) — Two-letter issuing state / territory code
- `isPrimary` (boolean, optional) — The license verified first. Exactly one per sub; defaults to the first row when none is flagged.
- `id` (string, optional)
- `subcontractorId` (string, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)

### ReportInformationNeededListItems

- `source` (enum, required) — A business-report source that evidences a requirement instead of a document
  - Allowed values: `cobalt_sos`, `tradesapi_license`, `jdp_background`, `web_research`
- `check` (string, required) — Plain-English name, e.g. `Secretary of State check`.
- `requirements` (list of string, required) — Titles of the requirements that use this check.
- `missing` (list of ReportInformationNeeded, required)

### ReportInformationNeeded

- `field` (enum, required) — The subcontractor field to fill in. New values may be added.
  - Allowed values: `companyName`, `businessAddress.state`, `tradeCategory`, `licenses[].state`
- `label` (string, required) — What to add, in plain English.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "externalId": "string",
    "contactName": "string",
    "entityType": "sole_proprietor",
    "companyName": "string",
    "dba": "string",
    "firstName": "string",
    "lastName": "string",
    "contactEmail": "string",
    "contactPhone": "string",
    "communicationPreference": "email",
    "languagePreference": "en",
    "tradeCategory": "electrical",
    "ein": "12-3456789",
    "website": "string",
    "businessAddress": {
      "line1": "string",
      "city": "string",
      "state": "TX",
      "postalCode": "78701",
      "line2": "string",
      "country": "US"
    },
    "ownerName": "string",
    "ownerEmail": "string",
    "ownerPhone": "string",
    "metadata": {},
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z",
    "environment": "production",
    "licenses": [
      {
        "licenseNumber": "string",
        "licenseType": "string",
        "state": "TX",
        "isPrimary": true,
        "id": "string",
        "subcontractorId": "string",
        "createdAt": "2024-01-15T09:30:00Z",
        "updatedAt": "2024-01-15T09:30:00Z"
      }
    ],
    "informationNeeded": [
      {
        "source": "cobalt_sos",
        "check": "string",
        "requirements": [
          "string"
        ],
        "missing": [
          {
            "field": "companyName",
            "label": "string"
          }
        ]
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.tradeguardins.com/v1/subcontractors/subcontractorId"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.tradeguardins.com/v1/subcontractors/subcontractorId';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go
package main

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

func main() {

	url := "https://api.tradeguardins.com/v1/subcontractors/subcontractorId"

	payload := strings.NewReader("{}")

	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
require 'uri'
require 'net/http'

url = URI("https://api.tradeguardins.com/v1/subcontractors/subcontractorId")

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 = "{}"

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

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

HttpResponse<String> response = Unirest.patch("https://api.tradeguardins.com/v1/subcontractors/subcontractorId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.tradeguardins.com/v1/subcontractors/subcontractorId', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/subcontractors/subcontractorId");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.tradeguardins.com/v1/subcontractors/subcontractorId")! 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()
```