cURL
curl --request PUT \ --url https://api.comm.com/api/v1/voice/agents/{agent}/prompts/{prompt} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "welcome_message": "<string>", "prompt": "<string>", "voice_id": "<string>", "voice_name": "<string>" } '
{ "data": { "id": "<string>", "agent_id": "<string>", "welcome_message": "<string>", "prompt": "<string>", "voice_id": "<string>", "voice_name": "<string>", "created_at": "2023-11-07T05:31:56Z" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The agent ID
The prompt ID
AgentPromptResource
Show child attributes