Update a representative
/v1/representatives/{representative_id}
Updates an existing representative's information. This can be used to update personal details, contact information, or the relationship to the account or organization.
Path Parameters
representative_id: string
Header Parameters
"correlation-id": optional string
"idempotency-key": optional string
"request-id": optional string
Body Parameters
Returns
Update a representative
curl https://sandbox.straddle.com/v1/representatives/$REPRESENTATIVE_ID \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $STRADDLE_API_KEY" \
-d '{
"dob": "1980-01-01",
"email": "ron.swanson@pawnee.com",
"first_name": "Ron",
"last_name": "Swanson",
"mobile_number": "+12128675309",
"relationship": {
"control": true,
"owner": true,
"primary": true
},
"ssn_last4": "1234"
}'
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"dob": "1980-01-01",
"email": "ron.swanson@pawnee.com",
"first_name": "Ron",
"last_name": "Swanson",
"mobile_number": "+12128675309",
"name": "name",
"relationship": {
"control": true,
"owner": true,
"primary": true,
"percent_ownership": 0,
"title": "title"
},
"ssn_last4": "1234",
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"metadata": {
"foo": "string"
},
"phone": "phone",
"user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"dob": "1980-01-01",
"email": "ron.swanson@pawnee.com",
"first_name": "Ron",
"last_name": "Swanson",
"mobile_number": "+12128675309",
"name": "name",
"relationship": {
"control": true,
"owner": true,
"primary": true,
"percent_ownership": 0,
"title": "title"
},
"ssn_last4": "1234",
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"metadata": {
"foo": "string"
},
"phone": "phone",
"user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}