PATCH
/
files
/
{id}
cURL
curl --request PATCH \
  --url https://app.loadforge.com/api/v2/files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "content": "<string>"
}'
{
  "file_id": 123
}
Update a file. name must remain unique per team and keep a valid extension. If the extension changes, a new stored filename is generated.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json
name
string
required

Filename ending with .csv, .json, or .txt. Must be unique per team.

content
string
required

Plain text or base64-encoded file content. Base64 is auto-detected.

Response

OK

file_id
integer