Updates a Customer-Profile in an account.
Updates a Customer-Profile in an account.
Path parameters
-
The unique string that we created to identify the Customer-Profile resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BU[0-9a-fA-F]{32}$
.
Body
-
The verification status of the Customer-Profile resource.
Values are
draft
,pending-review
,in-review
,twilio-rejected
, ortwilio-approved
. -
The URL we call to inform your application of status changes.
-
The string that you assigned to describe the resource.
-
The email address that will receive updates when the Customer-Profile resource changes status.
POST
/v1/CustomerProfiles/{Sid}
curl \
--request POST 'https://trusthub.twilio.com/v1/CustomerProfiles/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Email=email&Status=draft&FriendlyName=friendly_name&StatusCallback=http%3A%2F%2Fwww.example.com'
Request examples
Update
{"Email"=>"email", "Status"=>"draft", "FriendlyName"=>"friendly_name", "StatusCallback"=>"http://www.example.com"}
{"Status"=>"pending-review"}
Response examples (200)
Update
{
"sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"links": {
"customer_profiles_evaluations": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
"customer_profiles_entity_assignments": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
"customer_profiles_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
},
"errors": null,
"status": "draft",
"policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"valid_until": null,
"date_created": "2019-07-30T22:29:24Z",
"date_updated": "2019-07-31T01:09:00Z",
"friendly_name": "friendly_name",
"status_callback": "http://www.example.com"
}
{
"sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"links": {
"customer_profiles_evaluations": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
"customer_profiles_entity_assignments": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
"customer_profiles_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
},
"errors": null,
"status": "in-review",
"policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"valid_until": null,
"date_created": "2019-07-30T22:29:24Z",
"date_updated": "2019-07-31T01:09:00Z",
"friendly_name": "friendly_name",
"status_callback": "http://www.example.com"
}