Update constituent details
PUT
/api/constituents/{id}
const url = 'https://example.com/api/constituents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"firstName":"Sarah","lastName":"Jenkins","phone":"+17045550199","email":"[email protected]","addressStreet":"456 Oak Avenue","addressCity":"Concord","addressState":"NC","addressZip":"28025","dateOfBirth":"1988-04-15"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/constituents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "firstName": "Sarah", "lastName": "Jenkins", "phone": "+17045550199", "email": "[email protected]", "addressStreet": "456 Oak Avenue", "addressCity": "Concord", "addressState": "NC", "addressZip": "28025", "dateOfBirth": "1988-04-15" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
firstName
First or given name.
string
Example
SarahlastName
Last or family name.
string
Example
Jenkinsphone
E.164 formatted contact phone number.
string
Example
+17045550199email
addressStreet
Physical street address line.
string
Example
456 Oak AvenueaddressCity
City or municipality name.
string
Example
ConcordaddressState
Two-letter US state abbreviation.
string
Example
NCaddressZip
5-digit US ZIP postal code.
string
Example
28025dateOfBirth
Date of birth formatted as YYYY-MM-DD.
string format: date
Example
1988-04-15Responses
Section titled “Responses”Constituent updated successfully
Media typeapplication/json
object
id
required
Unique identifier (UUID v4) for the resource.
string format: uuid
householdId
required
UUID (v4) of the constituent household group.
string format: uuid
firstName
First or given name.
string
lastName
Last or family name.
string
phone
E.164 formatted contact phone number.
string
email
Primary email address.
string
addressStreet
Physical street address line.
string
addressCity
City or municipality name.
string
addressState
Two-letter US state abbreviation.
string
addressZip
5-digit US ZIP postal code.
string
dateOfBirth
Date of birth formatted as YYYY-MM-DD.
string format: date
Example
{ "id": "a1b2c3d4-e5f6-7890-abcd-1234567890ab", "householdId": "50000000-0000-0000-0000-000000000005", "firstName": "Sarah", "lastName": "Jenkins", "phone": "+17045550199", "addressStreet": "456 Oak Avenue", "addressCity": "Concord", "addressState": "NC", "addressZip": "28025", "dateOfBirth": "1988-04-15"}Unauthorized
Forbidden
Constituent not found