Create Custom Voice Phrase Content

POST {{apiPath}}/environments/{{envID}}/voicePhrases/{{voicePhraseID}}/contents

Use the POST {{apiPath}}/environments/{{envID}}/voicePhrases/{{voicePhraseID}}/contents request to create contents for a custom verify voice phrase in the environment.

PropertyTypeRequired?
localeStringRequired
contentStringRequired

For the locale property value, PingOne supports language tags with quality values as described in Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content. The content property value is the phrase users must speak as part of voice enrollment or verification. Users are shown the value of this content property during enrollment or verification. Therefore, the phrase must be written in the language (and in the character set required by that language, if needed) specified in the locale property.

This request creates localized content for the named container for voice phrases created with Create Custom Voice Phrase.

Prerequisites

Create a custom voice phrase to get a voicePhraseID for the endpoint. See also PingOne Verify, especially Verify Voice Phrases.

Request Body

{"locale"=>"en", "content"=>"Design brilliant journeys to any digital destination"}

RESPONSES

status: Created

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/voicePhrases/cf872c92-0112-44d3-b440-5453a76f9138/contents/9e7e1ff6-dfb2-4633-9d82-36c0e741e078"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"voicePhrase":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/voicePhrases/cf872c92-0112-44d3-b440-5453a76f9138"}},"id":"9e7e1ff6-dfb2-4633-9d82-36c0e741e078","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"voicePhrase":{"id":"cf872c92-0112-44d3-b440-5453a76f9138"},"locale":"en","content":"Design brilliant journeys to any digital destination","createdAt":"2022-08-24T17:43:15.894Z","updatedAt":"2022-08-24T17:43:15.894Z"}