cURL
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" }
Moves a web tool into a collection or removes it from a collection (when collectionId is null).
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
UUID of the web tool to move.
"d949f13f-40d2-4e48-ac86-b66633070603"
UUID of the collection to move the tool to. Set to null to remove from collection.
Successful response
true
"Web tool moved successfully"
Was this page helpful?