メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Field Value

The FieldValue resource provides sample values associated with a Field Type.

For example, if the Field Type is city some sample values could be San Francisco, London, Tallinn or Bogota. You do not need to enter every possible value. Twilio's Autopilot is smart enough to detect cities even you haven't explicitly entered every option as a value. That said, the more Field Values you provide the training model, the better.

All Autopilot REST API resources use the following base URL.

https://autopilot.twilio.com/v1

FieldValue properties

Names in PHP format
accountSid
sid<AC> Not PII

The unique ID of the Account that created this Field Value.

dateCreated
date_time<iso8601> Not PII

The date that this resource was created

dateUpdated
date_time<iso8601> Not PII

The date that this resource was last updated

fieldTypeSid
sid<UB> Not PII

The unique ID of the Field Type associated with this Field Value.

language
文字列 Not PII

An ISO language-country string of the value (currently supported: en-US, nl-NL)

assistantSid
sid<UA> Not PII

The unique ID of the Assistant.

sid
sid<UC> Not PII

このリソースを一意に識別する 34 文字の文字列です。

value
文字列 Not PII

The Field Value itself.

url
url Not PII

synonymOf
sid<UC> Not PII

A string value that indicates which word this field value is a synonym of.

Create a FieldValue resource

post
https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues

Creates a new Field Value for the Field Type specified by the {FieldTypeSid}.

パラメーター
Names in None format
assistant_sid
必須
post sid_like<UA> Not PII

The unique ID of the Assistant

field_type_sid
必須
post sid_like<UB> Not PII

The unique ID of the Field Type associated with this Field Value

language
必須
post 文字列 Not PII

An ISO language-country string that specifies the language used for this field value. For example: en-US

value
必須
post 文字列 Not PII

A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.

synonym_of
オプション
post sid_like<UC> Not PII

A string value that indicates which word this field value is a synonym of.

例 1
        
        
        
        

        Fetch a FieldValue resource

        GET
        https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}

        Returns the Field Value instance identified by {FieldValueSid} or {Value}.

        パラメーター
        Names in None format
        assistant_sid
        必須
        GET sid_like<UA> Not PII

        The unique ID of the Assistant

        field_type_sid
        必須
        GET sid_like<UB> Not PII

        The unique ID of the Field Type associated with this Field Value

        sid
        必須
        GET sid_like<UC> Not PII

        A 34 character string that uniquely identifies this resource

        例 1
              
              
              
              

              Read multiple FieldValue resources

              GET
              https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues

              Returns the list of Field Values for this Field Type. The list includes paging information.

              パラメーター
              Names in None format
              assistant_sid
              必須
              GET sid_like<UA> Not PII

              The unique ID of the Assistant

              field_type_sid
              必須
              GET sid_like<UB> Not PII

              The unique ID of the Field Type associated with this Field Value

              language
              オプション
              GET 文字列 Not PII

              An ISO language-country string that specifies the language used for this field value. For example: en-US

              例 1
                    
                    
                    
                    

                    Delete a FieldValue resource

                    削除する
                    https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}

                    Deletes a Field Value.

                    パラメーター
                    Names in None format
                    assistant_sid
                    必須
                    削除する sid_like<UA> Not PII

                    The unique ID of the Assistant

                    field_type_sid
                    必須
                    削除する sid_like<UB> Not PII

                    The unique ID of the Field Type associated with this Field Value

                    sid
                    必須
                    削除する sid_like<UC> Not PII

                    A 34 character string that uniquely identifies this resource

                    例 1
                          
                          
                          
                          
                          Rate this page:

                          ヘルプが必要ですか?

                          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.