Outcome
Change an active contact's email, names, locale, timezone or attributes. Only the fields sent change; attributes, when sent, replace the whole map; null clears a name, locale or timezone.
Before you start
- Verify identity and pin the intended organization and environment before discovering the action.
- Discover a granted Nurture workspace. The application permission is workspace:write; required workspace access is read_write. A permission alone does not supply a workspace grant.
- Organization and workspace come from verified context. Select resourceType/resourceId separately from action input; body fields cannot grant a different organization or workspace. The first authorized product action can initialize an identity-only workspace mirror.
- Obtain authorization for the documented effect or personal-data export before supplying CLI --confirm or MCP confirm:true.
Discover the target
topolo whoami --json
topolo actions get app_topolo_nurture.contacts.update --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.contacts.list --detail --json
id: contacts record id in the selected workspace.
Request
PATCH /api/contacts/{id}
Save action input as payload.json. The reviewed plan separates path identifiers, query fields and HTTP body. Set NURTURE_WORKSPACE_ID from granted resource discovery; it is separate from action input.
Inspect and test this action in the signed action console. A test response still requires the verification below.
Input fields
| Field | Required | Type | Constraints |
|---|---|---|---|
id | Required | string | contacts record id in the selected workspace. {"minLength":1,"maxLength":64} |
email | Optional | string | {"minLength":3,"maxLength":254,"pattern":"^[^\s@]+@[^\s@]+\.[^\s@]+$"} |
firstName | Optional | See schema | {} |
lastName | Optional | See schema | {} |
locale | Optional | See schema | {} |
timezone | Optional | See schema | {} |
attributes | Optional | object | {} |
Exact input schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"email": {
"type": "string",
"minLength": 3,
"maxLength": 254,
"pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
},
"firstName": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"lastName": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"locale": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"
},
{
"type": "null"
}
]
},
"timezone": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
]
},
"attributes": {
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,62}$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
},
"required": [
"id"
],
"additionalProperties": false
}
Effects
- Updates the named fields of one contact.
Interpret the response
The returned identifier path is $.contact.id for contact. Empty lists do not discover a target.
Call app_topolo_nurture.contacts.get and confirm the changed fields.
Exact success schema:
{
"type": "object",
"required": [
"contact"
],
"properties": {
"contact": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
},
"emailHash": {
"type": "string",
"description": "Org-scoped salted SHA-256 address key shared with @topolo-io/audience."
},
"firstName": {
"type": [
"string",
"null"
]
},
"lastName": {
"type": [
"string",
"null"
]
},
"locale": {
"type": [
"string",
"null"
]
},
"timezone": {
"type": [
"string",
"null"
]
},
"attributes": {
"type": "object"
},
"source": {
"type": "string",
"enum": [
"manual",
"csv",
"signup",
"connector"
]
},
"sourceRef": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"active",
"archived"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
}
}
}
Worked examples
Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Replace synthetic identifiers using credential-scoped discovery. A local success is not evidence of a deployed effect, configured provider or delivered message.
Successful request
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"firstName": null,
"lastName": "Lovelace",
"locale": "en-GB"
}
CLI:
topolo actions validate app_topolo_nurture.contacts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json
MCP tool and arguments:
{
"tool": "topolo_call_action",
"arguments": {
"actionId": "app_topolo_nurture.contacts.update",
"input": {
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"firstName": null,
"lastName": "Lovelace",
"locale": "en-GB"
},
"resourceType": "workspace",
"resourceId": "<identifier returned by resource discovery>",
"confirm": true
}
}
Captured local response · HTTP 200:
{
"contact": {
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"email": "Ada@Example.com",
"emailHash": "f2f9af61eaa6f01b12704c26c1bd3bec774f36a43566ad48697869708117154d",
"firstName": null,
"lastName": "Lovelace",
"locale": "en-GB",
"timezone": "Europe/London",
"attributes": {
"plan": "trial",
"seats": 3,
"vip": true
},
"source": "manual",
"sourceRef": null,
"status": "active",
"createdAt": "2026-10-04T00:32:34.516Z",
"updatedAt": "2026-10-04T00:32:34.529Z"
}
}
HTTP 200. Call app_topolo_nurture.contacts.get and confirm the changed fields.
Another supported request
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"email": "ADA@new.io"
}
CLI:
topolo actions validate app_topolo_nurture.contacts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json
MCP tool and arguments:
{
"tool": "topolo_call_action",
"arguments": {
"actionId": "app_topolo_nurture.contacts.update",
"input": {
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"email": "ADA@new.io"
},
"resourceType": "workspace",
"resourceId": "<identifier returned by resource discovery>",
"confirm": true
}
}
Captured local response · HTTP 200:
{
"contact": {
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"email": "ADA@new.io",
"emailHash": "be2d6d3f255a9753c67da3decf24899d51769a75a0c176b454785c81ca9b08bc",
"firstName": null,
"lastName": "Lovelace",
"locale": "en-GB",
"timezone": "Europe/London",
"attributes": {},
"source": "manual",
"sourceRef": null,
"status": "active",
"createdAt": "2026-10-04T00:32:34.516Z",
"updatedAt": "2026-10-04T00:32:34.536Z"
}
}
HTTP 200. Call app_topolo_nurture.contacts.get and confirm the changed fields.
Refused request · contact_archived
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"lastName": "x"
}
CLI:
topolo actions validate app_topolo_nurture.contacts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 409:
{
"error": {
"code": "contact_archived",
"message": "An archived contact cannot be edited."
}
}
HTTP 409. Preserve the refusal details and do not claim success.
Refused request · contact_exists
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "nct_6c3c8c92117e4b0aac45f06f7f7ce5a0",
"email": "grace@x.io"
}
CLI:
topolo actions validate app_topolo_nurture.contacts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 409:
{
"error": {
"code": "contact_exists",
"message": "A contact with this email already exists in this workspace."
}
}
HTTP 409. Preserve the refusal details and do not claim success.
Refused request · not_found
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "nct_missing",
"lastName": "x"
}
CLI:
topolo actions validate app_topolo_nurture.contacts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.contacts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 404:
{
"error": {
"code": "not_found",
"message": "Contact was not found in this workspace."
}
}
HTTP 404. Preserve the refusal details and do not claim success.
Verify the result
- Call app_topolo_nurture.contacts.get and confirm the changed fields.
Errors and recovery
organization_required(HTTP 403): Select an organization available to the verified caller before choosing a Nurture workspace.permission_denied(HTTP 403): Grant the credential the required Nurture workspace permission.workspace_required(HTTP 409): Create a Nurture workspace, or pass the workspace resource context.invalid_input(HTTP 422): Correct the fields named in error.details using inputSchema, then retry.not_found(HTTP 404): List contacts to find a valid id in this workspace.contact_exists(HTTP 409): Emails are unique per workspace; find the existing contact with app_topolo_nurture.contacts.list (q = the email) and update it instead.contact_archived(HTTP 409): Archived contacts cannot be edited; create a new contact only if it is genuinely a new person.invalid_email(HTTP 422): Send a valid address; it is normalized (lower-cased, punycode domain) before the uniqueness check.
Auth or gateway failures may precede this handler. Preserve the exact response shape, error string/code, request id and credential context; no synthetic fixture establishes live credential access.
Recovery boundary
Read the contact first, then send the previous values back through update.
Related actions
- Get contact: Read one Nurture contact by id, including its attributes and source.
- Update contact: Change an active contact's email, names, locale, timezone or attributes. Only the fields sent change; attributes, when sent, replace the whole map; null clears a name, locale or timezone.
Evidence
Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Test scenario and capture digests are retained with each fixture.