Skip to main content
POST
/
v1
/
voice-agents
/
collections
/
move
Move Web Tool to Collection.
curl --request POST \
  --url https://api.tryhamsa.com/v1/voice-agents/collections/move \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "webToolId": "d949f13f-40d2-4e48-ac86-b66633070603",
  "collectionId": "d949f13f-40d2-4e48-ac86-b66633070603"
}
'
{
  "success": true,
  "message": "Web tool moved successfully"
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
webToolId
string<uuid>
required

UUID of the web tool to move.

Example:

"d949f13f-40d2-4e48-ac86-b66633070603"

collectionId
string<uuid> | null

UUID of the collection to move the tool to. Set to null to remove from collection.

Example:

"d949f13f-40d2-4e48-ac86-b66633070603"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Web tool moved successfully"