Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

TrustProductEntityAssignment Resource



TrustProductEntityAssignment Properties

trustproductentityassignment-properties page anchor
Resource properties
sidtype: SID<BV>
Not PII

The unique string that we created to identify the Item Assignment resource.

Pattern:
^BV[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

trust_product_sidtype: SID<BU>

The unique string that we created to identify the TrustProduct resource.

Pattern:
^BU[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

account_sidtype: SID<AC>

object_sidtype: SID

The SID of an object bag that holds information of the different items.

Pattern:
^[a-zA-Z]{2}[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

date_createdtype: string<date-time>

The date and time in GMT when the resource was created specified in ISO 8601(link takes you to an external page) format.


urltype: string<uri>

The absolute URL of the Identity resource.


Create a new Assigned Item.

create-a-new-assigned-item page anchor
POST https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/EntityAssignments

Parameters

create-parameters page anchor
URI parameters
TrustProductSidtype: SID<BU>
Path ParameterNot PII

The unique string that we created to identify the TrustProduct resource.

Pattern:
^BU[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Request body parameters
ObjectSidtype: SIDRequired

The SID of an object bag that holds information of the different items.

Pattern:
^[a-zA-Z]{2}[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Create a TrustProductEntityAssignment

create-a-trustproductentityassignment page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.trusthub.v1.trustProducts('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.trustProductsEntityAssignments
_11
.create({objectSid: 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
_11
.then(trust_products_entity_assignments => console.log(trust_products_entity_assignments.sid));

Output

_10
{
_10
"sid": "BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"trust_product_sid": "BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"object_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"date_created": "2019-07-31T02:34:41Z",
_10
"url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments/BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_10
}


Fetch specific Assigned Item Instance.

fetch-specific-assigned-item-instance page anchor
GET https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}

URI parameters
TrustProductSidtype: SID<BU>
Path ParameterNot PII

The unique string that we created to identify the TrustProduct resource.

Pattern:
^BU[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Sidtype: SID<BV>
Path ParameterNot PII

The unique string that we created to identify the Identity resource.

Pattern:
^BV[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Fetch a TrustProductEntityAssignment

fetch-a-trustproductentityassignment page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.trusthub.v1.trustProducts('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.trustProductsEntityAssignments('BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.fetch()
_11
.then(trust_products_entity_assignments => console.log(trust_products_entity_assignments.sid));

Output

_10
{
_10
"sid": "BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"trust_product_sid": "BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"object_sid": "RDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"date_created": "2019-07-31T02:34:41Z",
_10
"url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments/BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_10
}


Retrieve a list of all Assigned Items for an account.

retrieve-a-list-of-all-assigned-items-for-an-account page anchor
GET https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/EntityAssignments

URI parameters
TrustProductSidtype: SID<BU>
Path ParameterNot PII

The unique string that we created to identify the TrustProduct resource.

Pattern:
^BU[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

ObjectTypetype: string
Query ParameterNot PII

A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.


PageSizetype: integer
Query ParameterNot PII

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum:
1

Pagetype: integer
Query ParameterNot PII

The page index. This value is simply for client state.

Minimum:
0

PageTokentype: string
Query ParameterNot PII

The page token. This is provided by the API.

List multiple TrustProductEntityAssignments

list-multiple-trustproductentityassignments page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.trusthub.v1.trustProducts('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.trustProductsEntityAssignments
_11
.list({limit: 20})
_11
.then(trustProductsEntityAssignments => trustProductsEntityAssignments.forEach(t => console.log(t.sid)));

Output

_21
{
_21
"results": [
_21
{
_21
"sid": "BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"trust_product_sid": "BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"object_sid": "RDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"date_created": "2019-07-31T02:34:41Z",
_21
"url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments/BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_21
}
_21
],
_21
"meta": {
_21
"page": 0,
_21
"page_size": 50,
_21
"first_page_url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments?PageSize=50&Page=0",
_21
"previous_page_url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments?PageSize=50&Page=0",
_21
"url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments?PageSize=50&Page=0",
_21
"next_page_url": "https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/EntityAssignments?PageSize=50&Page=1",
_21
"key": "results"
_21
}
_21
}


Remove an Assignment Item Instance.

remove-an-assignment-item-instance page anchor
DELETE https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}

URI parameters
TrustProductSidtype: SID<BU>
Path ParameterNot PII

The unique string that we created to identify the TrustProduct resource.

Pattern:
^BU[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Sidtype: SID<BV>
Path ParameterNot PII

The unique string that we created to identify the Identity resource.

Pattern:
^BV[0-9a-fA-F]{32}$
Min length:
34
Max length:
34

Delete a TrustProductEntityAssignment

delete-a-trustproductentityassignment page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.trusthub.v1.trustProducts('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.trustProductsEntityAssignments('BVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.remove();


Rate this page: