Create field value

POST /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues

TODO: Resource-level docs

Path parameters

  • AssistantSid string Required

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

  • FieldTypeSid string Required

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

Body

  • Language string Required

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

  • The string value that indicates which word the field value is a synonym of.

  • Value string Required

    The Field Value data.

Responses

  • Created

    Hide response attributes Show response attributes object
    • value string | null

      The Field Value data

    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • assistant_sid string | null

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

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UA[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

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

    • date_updated string(date-time) | null

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

    • field_type_sid string | null

      The SID of the Field Type associated with the Field Value

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UB[0-9a-fA-F]{32}$.

    • language string | null

      The ISO language-country tag that identifies the language of the value

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UC[0-9a-fA-F]{32}$.

    • synonym_of string | null

      The word for which the field value is a synonym of

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UC[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the FieldValue resource

POST /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues
curl \
 -X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Language=string&SynonymOf=string&Value=string'
Request example
{
  "Language": "string",
  "SynonymOf": "string",
  "Value": "string"
}
Request examples
{
  "Language": "string",
  "SynonymOf": "string",
  "Value": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "assistant_sid": "string",
  "date_created": "2023-05-04T09:42:00+00:00",
  "date_updated": "2023-05-04T09:42:00+00:00",
  "field_type_sid": "string",
  "language": "string",
  "sid": "string",
  "synonym_of": "string",
  "url": "https://example.com",
  "value": "string"
}
Response examples (201)
{
  "value": "string",
  "account_sid": "string",
  "assistant_sid": "string",
  "date_created": "2024-05-04T09:42:00+00:00",
  "date_updated": "2024-05-04T09:42:00+00:00",
  "field_type_sid": "string",
  "language": "string",
  "sid": "string",
  "synonym_of": "string",
  "url": "https://example.com"
}