TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Update a record's file name and/or description

PUThttps://api.testingapis.com/api/formdata/update/{id}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Record ID.

Request body

Optional. multipart/form-data

Example body
description: Updated notes
(multipart/form-data; @notes.txt means a file part)

Responses

200
Record updated.
404
No record with that ID.

Example

Request
curl -X PUT "https://api.testingapis.com/api/formdata/update/3" \
  -F "description=Updated notes" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "message": "Record updated",
  "record": {"id": 3, "fileName": "notes.txt", "description": "Updated notes"}
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.