# contractorOps.profiles.update

Create or update a contractor's operations profile with contractorId, profile fields, expectedRevision (omit only when no profile exists yet), and idempotencyKey. Changing the pay cadence regenerates future empty pay periods. Changing the declared GST/HST answers stops finance's confirmation from applying and removes the GST/HST it added from payouts that haven't been paid and have no Wise transfer (approved ones go back for approval).

`POST /api/v1/accounting/contractorOps.profiles.update`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required · Send `expectedRevision`

MCP tool: `accounting_contractor_ops_profiles_update`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `contractorId` | string (ID) | Yes | The ID of a contractor, from contractors.list. |
| `expectedRevision` | integer |  | The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again. at most 9007199254740991; greater than 0. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |
| `profile` | object | Yes | No other fields. |
| `profile.legalName` | string or null |  |  |
| `profile.roles` | array of strings |  | at most 12 items; each 1–80 characters. |
| `profile.phone` | string or null |  |  |
| `profile.discordUsername` | string or null |  |  |
| `profile.githubUsername` | string or null |  |  |
| `profile.linkedinUrl` | string or null |  |  |
| `profile.portfolioUrl` | string or null |  |  |
| `profile.customContacts` | array of objects |  | at most 10 items. |
| `profile.customContacts[].label` | string | Yes | 1–60 characters. |
| `profile.customContacts[].value` | string | Yes | 1–500 characters. |
| `profile.address` | object |  | No other fields. |
| `profile.address.line1` | string |  | at most 200 characters. |
| `profile.address.line2` | string |  | at most 200 characters. |
| `profile.address.city` | string |  | at most 120 characters. |
| `profile.address.region` | string |  | at most 120 characters. |
| `profile.address.postalCode` | string |  | at most 20 characters. |
| `profile.address.country` | string |  | Matches ^([A-Za-z]{2})?$. |
| `profile.notes` | string or null |  | Notes kept with the record. |
| `profile.tax` | object |  | No other fields. |
| `profile.tax.chargesSalesTax` | boolean |  | Default `false`. |
| `profile.tax.salesTaxRateBps` | integer or null |  |  |
| `profile.tax.salesTaxNumber` | string or null |  |  |
| `profile.tax.province` | enum or null |  | One of: `AB`, `BC`, `MB`, `NB`, `NL`, `NS`, `NT`, `NU`, `ON`, `PE`, `QC`, `SK`, `YT`. |
| `profile.tax.operatesAsCorporation` | boolean |  | Default `false`. |
| `profile.tax.corporationName` | string or null |  |  |
| `profile.tax.businessNumber` | string or null |  |  |
| `profile.tax.corporationAddress` | object or null |  |  |
| `profile.tax.corporationAddress.line1` | string |  | at most 200 characters. |
| `profile.tax.corporationAddress.line2` | string |  | at most 200 characters. |
| `profile.tax.corporationAddress.city` | string |  | at most 120 characters. |
| `profile.tax.corporationAddress.region` | string |  | at most 120 characters. |
| `profile.tax.corporationAddress.postalCode` | string |  | at most 20 characters. |
| `profile.tax.corporationAddress.country` | string |  | Matches ^([A-Za-z]{2})?$. |
| `profile.tax.signerName` | string or null |  |  |
| `profile.tax.signerTitle` | string or null |  |  |
| `profile.tax.usTaxForm` | enum or null |  | One of: `w9`, `w8ben`, `w8bene`, `unsure`. |
| `profile.tax.usTaxClassification` | enum or null |  | One of: `individual`, `c_corporation`, `s_corporation`, `partnership`, `trust_estate`, `llc_c`, `llc_s`, `llc_p`, `other`. |
| `profile.department` | string or null |  |  |
| `profile.title` | string or null |  | A short title. |
| `profile.startDate` | string (date) or null |  |  |
| `profile.endDate` | string (date) or null |  |  |
| `profile.status` | enum |  | Only include records with this status. One of: `onboarding`, `active`, `inactive`. |
| `profile.rate` | object or null |  |  |
| `profile.rate.amountMinor` | string | Yes | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Matches ^\d{1,15}$. |
| `profile.rate.currency` | string | Yes | Three-letter currency code, such as CAD or USD. |
| `profile.rate.unit` | enum | Yes | One of: `hour`, `day`, `month`, `fixed`. |
| `profile.cadence` | object |  |  |
| `profile.cadence.kind` | "weekly" | Yes | Which kind of record or job this is. |
| `profile.cadence.weekStartsOn` | integer |  | 0 to 6. Default `1`. |
| `profile.cadence.dueDaysAfterPeriod` | integer |  | 0 to 30. Default `1`. |
| `profile.cadence.payWithinBusinessDays` | integer |  | 0 to 30. Default `5`. |
| `profile.cadence.kind` | "biweekly" | Yes | Which kind of record or job this is. |
| `profile.cadence.anchorDate` | string (date) | Yes | A date, as YYYY-MM-DD. |
| `profile.cadence.dueDaysAfterPeriod` | integer |  | 0 to 30. Default `1`. |
| `profile.cadence.payWithinBusinessDays` | integer |  | 0 to 30. Default `5`. |
| `profile.cadence.kind` | "semi_monthly" | Yes | Which kind of record or job this is. |
| `profile.cadence.days` | array of values | Yes |  |
| `profile.cadence.dueDaysAfterPeriod` | integer |  | 0 to 30. Default `1`. |
| `profile.cadence.payWithinBusinessDays` | integer |  | 0 to 30. Default `5`. |
| `profile.cadence.kind` | "monthly" | Yes | Which kind of record or job this is. |
| `profile.cadence.day` | integer |  | 1 to 28. Default `1`. |
| `profile.cadence.dueDaysAfterPeriod` | integer |  | 0 to 30. Default `1`. |
| `profile.cadence.payWithinBusinessDays` | integer |  | 0 to 30. Default `5`. |
| `profile.cadence.kind` | "manual" | Yes | Which kind of record or job this is. |
| `profile.hoursFormId` | string (ID) or null |  |  |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/contractorOps.profiles.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contractorId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
  "profile": {}
}'
```

Reference page: https://app.getoatmilk.com/docs/api/contractorOps.profiles.update
