Identities

Edit identity

Update an identity with the Go SDK.

PUT/identities/{identity_id}

Use client.Identity.Update to change the profile details on an identity.

Call the method

identity, _, _ := client.Identity.Update(
	"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
	&blnkgo.Identity{
		IdentityType: blnkgo.Individual,
		FirstName: "Jane",
		LastName: "Smith",
	},
)
FieldTypeDescription
identityIdstringIdentity ID to update.
IdentityTypeblnkgo.IdentityTypeIndividual or Organization.
Profile fieldsvariousAny field from create you want to change.

Response

{
  "identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  "identity_type": "individual",
  "first_name": "Jane",
  "last_name": "Smith",
  "email_address": "[email protected]",
  "created_at": "2024-11-26T08:36:36.238244338Z"
}

Go response (*blnkgo.IdentityResponse)

FieldTypeDescription
IdentityIdstringUnique ID for the identity.
IdentityTypeblnkgo.IdentityTypeType of the identity.
FirstNamestringUpdated first name.
LastNamestringUpdated last name.
EmailAddressstringEmail address on the identity.
CreatedAtstringDate and time the identity was created.