Skip to main content
PUT
/
identities
/
{identity_id}
Edit identity
curl --request PUT \
  --url http://localhost:5001/identities/{identity_id} \
  --header 'X-blnk-key: <api-key>'
Use client.Identity.Update to change the profile details on an identity.
1

Call the method

client.Identity.Update
identity, resp, err := client.Identity.Update(
	"idt_3b63c8da-af29-4cc3",
	&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.
2

Verify the changes

Read fields on the returned *blnkgo.IdentityResponse to confirm the updated profile fields. The identity ID stays the same.
3

Response

200 OK
{
  "identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  "identity_type": "individual",
  "first_name": "Jane",
  "last_name": "Smith",
  "email_address": "alice.smith@example.com",
  "created_at": "2024-11-26T08:36:36.238244338Z"
}
FieldTypeDescription
identity_idstringUnique ID for the identity.
created_atstringDate and time the identity was created.
The response returns the full identity with your changes applied.

How identities work

Linking balances and handling profile data.

Edit identity

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.