Skip to main content
PUT
/
exo-api
/
resources
/
{name}
/
{id}
Update a record
curl --request PUT \
  --url https://api.example.com/exo-api/resources/{name}/{id}
Updates a record. The request body is validated against the resource’s updateRules. The user must be authorized (admin or owner).

Path parameters

name
string
required
The resource name (e.g. contact, order).
id
integer
required
The record’s ID.

Request body

The fields to update. Only send the fields you want to change — use sometimes in your updateRules to make fields optional.

Request

curl -X PUT \
     -H "Authorization: Bearer YOUR_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"phone": "+1-555-9999"}' \
     https://your-app.com/exo-api/resources/contact/1

Response

Returns the updated record’s transformed data. Example response:
{
  "id": 1,
  "name": "Jane Smith",
  "email": "[email protected]",
  "phone": "+1-555-9999",
  "created_at": "2026-03-28T14:30:00+00:00"
}

Errors

StatusDescription
403User is not authorized to update this record
404Resource or record not found
405Resource does not support updates (supportsUpdate returns false)
422Validation failed — see errors object for details