I need help im trying to use the assistant but when im doing the post to https://api.openai.com/v1/assistants/assistand.id/files im getting this error

I put headers correctly:
content-type application/json
authorization my key
openia-beta assitants=v1

and in the body
file myfile.jsonl

the error is
“error”: {
“message”: “1 validation error for Request\nbody\n value is not a valid dict (type=type_error.dict)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null

Here’s a bookmark to read about the correct use of the files endpoint.

It has two distinct purposes: upload formatted training files for model fine-tune operations (only valid jsonl) or for use in assistants (only valid file types related to documents or readable text).

A jsonl implies a training set for fine-tune. However you say you are uploading for the purpose assistants, as if to discuss the file. If so, you would need to change the extension and send as plain text.