Skip to main content
POST
/
v2
/
tts
/
voices
/
{id}
/
favourite
Favorite a TTS voice
curl --request POST \
  --url https://api.tryhamsa.com/v2/tts/voices/{id}/favourite \
  --header 'Content-Type: application/json' \
  --data '
{
  "isFavourite": true
}
'
{
  "success": true,
  "message": "favourite updated successfully",
  "messageKey": "OPERATION_SUCCESSFUL"
}

Path Parameters

id
string<uuid>
required

Voice identifier.

Example:

"48f7656f-098b-4c43-b165-7cfd2cc8ac30"

Query Parameters

projectId
string
required

Project identifier.

Example:

"ae6d58c6-c6bd-4ae0-ad74-b8b39c29928b"

Body

application/json
isFavourite
boolean
required
Example:

true

Response

Favourite updated successfully.

success
boolean
Example:

true

message
string
Example:

"favourite updated successfully"

messageKey
string
Example:

"OPERATION_SUCCESSFUL"