Trying to update audio prompt with .wav file

The tutorial for updating a prompt specifies a POST action to get the language resource, but in two of the forums the facilitator specifies:

"first do a GET to prompt/id/resource/language endpoint".
"you need to do a get to the prompt resource to get the uploadUri"

When running the tutorial POST command (architect_api.post_architect_prompt_resources) I get the error "Prompt already has a resource with language 'en-us'." Should I be doing a GET instead (architect_api.get_architect_prompt_resource)?

Yes if the prompt already has a resource in that language, just do a get to fetch the existing resource and use the uploadUri to upload your new audio to it. The tutorial must be written from the perspective of creating a new resource.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.