curl --request POST \
--url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/functions/attach \
--header 'Content-Type: application/json' \
--header 'x-chroma-token: <api-key>' \
--data '
{
"function_id": "1e30d217-3d78-4f8c-b244-79381dc6a254",
"name": "my_function",
"output_collection": "output_collection_name",
"params": {}
}
'