Skip to content
Go to Micro

Patch object

client.Prism.Objects.Contacts.Update(ctx, contactID, params) (*PrismObjectContactUpdateResponse, error)
PATCH/v2/prism/{teamId}/contact/{contactId}

Patch object

ParametersExpand Collapse
contactID string
formatuuid
params PrismObjectContactUpdateParams
TeamID param.Field[string]Optional

Path param

formatuuid
PrismObjectProperties param.Field[PrismObjectProperties]

Body param

IdempotencyKey param.Field[string]Optional

Header param: A unique key (UUID or any opaque string up to 255 chars) for an authenticated POST, PUT, or PATCH request. The server retains the initial claim for 24 hours and replays a completed non-5xx response only when the method, path, and request body all match. Reusing a non-expired key with a different method, path, or body returns 409 idempotency_key_mismatch; reusing it after expiry returns 409 idempotency_key_stale, so use a new key. Replays include the idempotent-replay: true response header.

minLength1
maxLength255
IfMatch param.Field[string]Optional

Header param: Optimistic concurrency. Pass back the etag header from a previous GET of this record; the write only proceeds if the record hasn’t changed since. Mismatch → 412 precondition_failed. Use * to require the record exists (any ETag accepted).

ReturnsExpand Collapse
type PrismObjectContactUpdateResponse struct{…}

Object returned by reads (get/create/patch/restore). id is always present.

ID string
formatuuid
Default map[string, unknown]Optional

Properties keyed by property slug.

List unknownOptional

Patch object

package main

import (
  "context"
  "fmt"

  "github.com/micro-so/micro-sdk-go"
  "github.com/micro-so/micro-sdk-go/option"
)

func main() {
  client := micro.NewClient(
    option.WithAPIKey("My API Key"),
    option.WithTeamID("My Team ID"),
  )
  contact, err := client.Prism.Objects.Contacts.Update(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    micro.PrismObjectContactUpdateParams{
      PrismObjectProperties: micro.PrismObjectPropertiesParam{

      },
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", contact.ID)
}
{
  "id": "11111111-1111-4111-8111-111111111111",
  "default": {
    "full_name": "Sarah Chen",
    "email": "sarah@example.com",
    "title": "General Partner",
    "organization": "Acme Ventures"
  }
}
{
  "id": "22222222-2222-4222-8222-222222222222",
  "default": {
    "name": "Acme Ventures",
    "domain": "acme.example.com",
    "industry": "Venture Capital"
  }
}
{
  "id": "33333333-3333-4333-8333-333333333333",
  "default": {
    "name": "Acme Ventures — Series A",
    "amount": 2500000,
    "stage": "closed_won",
    "organization": "Acme Ventures"
  }
}
{
  "id": "44444444-4444-4444-8444-444444444444",
  "default": {
    "name": "Follow up with Sarah Chen",
    "status": "completed",
    "due_date": "2026-08-06",
    "contact": "Sarah Chen"
  }
}
{
  "id": "55555555-5555-4555-8555-555555555555",
  "default": {
    "name": "Acme Ventures — Series A notes",
    "content": "Sarah Chen confirmed the next diligence call.",
    "organization": "Acme Ventures"
  }
}
Returns Examples
{
  "id": "11111111-1111-4111-8111-111111111111",
  "default": {
    "full_name": "Sarah Chen",
    "email": "sarah@example.com",
    "title": "General Partner",
    "organization": "Acme Ventures"
  }
}
{
  "id": "22222222-2222-4222-8222-222222222222",
  "default": {
    "name": "Acme Ventures",
    "domain": "acme.example.com",
    "industry": "Venture Capital"
  }
}
{
  "id": "33333333-3333-4333-8333-333333333333",
  "default": {
    "name": "Acme Ventures — Series A",
    "amount": 2500000,
    "stage": "closed_won",
    "organization": "Acme Ventures"
  }
}
{
  "id": "44444444-4444-4444-8444-444444444444",
  "default": {
    "name": "Follow up with Sarah Chen",
    "status": "completed",
    "due_date": "2026-08-06",
    "contact": "Sarah Chen"
  }
}
{
  "id": "55555555-5555-4555-8555-555555555555",
  "default": {
    "name": "Acme Ventures — Series A notes",
    "content": "Sarah Chen confirmed the next diligence call.",
    "organization": "Acme Ventures"
  }
}