Updates a Trust Product in an account.
Updates a Trust Product in an account.
Path parameters
-
The unique string that we created to identify the Trust Product 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 Trust Product 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 Trust Product resource changes status.
POST
/v1/TrustProducts/{Sid}
curl \
--request POST 'https://trusthub.twilio.com/v1/TrustProducts/{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/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"links": {
"trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
"trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
"trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/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/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"links": {
"trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
"trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
"trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/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"
}