Associate an existing file with a resource.
cURL
curl --request POST \ --url https://api.cuadra.ai/v1/files/{file_id}/associations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'resource_type=<string>' \ --data 'resource_id=<string>'
{}
JWT token from Stytch B2B authentication (magic link, SSO, or M2M)
File ID
"file_abc123"
Resource type: chat, dataset, fine_tuning_job, etc.
ID of the resource to associate with
File associated successfully
The response is of type Response Associatefile · object.
Response Associatefile · object
Was this page helpful?