メニュー

Expand
ページを評価:

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

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the FieldValue resource.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

field_type_sid
sid<UB> Not PII

The SID of the Field Type associated with the Field Value.

language
文字列 Not PII

The ISO language-country tag that specifies the language of the value. Currently supported tags: en-US

assistant_sid
sid<UA> Not PII

The SID of the Assistant that is the parent of the FieldType associated with the resource.

sid
sid<UC> Not PII

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

value
文字列 Not PII

The Field Value data.

url
url Not PII

The absolute URL of the FieldValue resource.

synonym_of
sid<UC> Not PII

The word for which the 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}.

パラメーター
Parameters in REST API format
assistant_sid
Path
post sid_like<UA> Not PII

The SID of the Assistant that is the parent of the FieldType associated with the new resource.

field_type_sid
Path
post sid_like<UB> Not PII

The SID of the Field Type associated with the Field Value.

language
必須
post 文字列 Not PII

The ISO language-country tag that specifies the language of the value. Currently supported tags: en-US

value
必須
post 文字列 Not PII

The Field Value data.

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

The string value that indicates which word the 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}.

        パラメーター
        Parameters in REST API format
        assistant_sid
        Path
        GET sid_like<UA> Not PII

        The SID of the Assistant that is the parent of the FieldType associated with the resource to fetch.

        field_type_sid
        Path
        GET sid_like<UB> Not PII

        The SID of the Field Type associated with the Field Value to fetch.

        sid
        Path
        GET sid_like<UC> Not PII

        The Twilio-provided string that uniquely identifies the FieldValue resource to fetch.

        例 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.

              パラメーター
              Parameters in REST API format
              assistant_sid
              Path
              GET sid_like<UA> Not PII

              The SID of the Assistant that is the parent of the FieldType associated with the resources to read.

              field_type_sid
              Path
              GET sid_like<UB> Not PII

              The SID of the Field Type associated with the Field Value to read.

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

              The ISO language-country tag that specifies the language of the value. Currently supported tags: en-US

              例 1
                    
                    
                    
                    

                    Delete a FieldValue resource

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

                    Deletes a Field Value.

                    パラメーター
                    Parameters in REST API format
                    assistant_sid
                    Path
                    削除する sid_like<UA> Not PII

                    The SID of the Assistant that is the parent of the FieldType associated with the resources to delete.

                    field_type_sid
                    Path
                    削除する sid_like<UB> Not PII

                    The SID of the Field Type associated with the Field Value to delete.

                    sid
                    Path
                    削除する sid_like<UC> Not PII

                    The Twilio-provided string that uniquely identifies the FieldValue resource to delete.

                    例 1
                          
                          
                          
                          
                          ページを評価:

                          ヘルプが必要ですか?

                          誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。

                                
                                
                                

                                フィードバックくださりありがとうございます!

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

                                Sending your feedback...
                                🎉 Thank you for your feedback!
                                Something went wrong. Please try again.

                                Thanks for your feedback!

                                Refer us and get $10 in 3 simple steps!

                                ステップ1

                                Get link

                                Get a free personal referral link here

                                ステップ2:

                                Give $10

                                Your user signs up and upgrade using link

                                ステップ3

                                Get $10

                                1,250 free SMSes
                                OR 1,000 free voice mins
                                OR 12,000 chats
                                OR more