Upload chat file
POST
CoderSessionTokenheader
Coder-Session-Token<token>organization*stringOrganization ID
Format
uuidContent-Disposition*stringAttachment disposition carrying the file name
Raw file binary data
body*stringCreated
application/json- response
id?stringFormat
uuidThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/api/v2/chats/files?organization={organization}" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Disposition: {Content-Disposition}" \ -H "Content-Type: application/json" \ -d '"string"'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}