Skip to main content
POST
/
exo-api
/
resources
/
{name}
Create a record
curl --request POST \
  --url https://api.example.com/exo-api/resources/{name}
Creates a new record. The request body is validated against the resource’s createRules. If the resource has an ownerColumn, it’s automatically set to the authenticated user’s ID.

Path parameters

name
string
required
The resource name (e.g. contact, order).

Request body

The fields to create the record with. The exact fields depend on the resource’s createRules method.

Request

curl -X POST \
     -H "Authorization: Bearer YOUR_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
       "name": "Jane Smith",
       "email": "[email protected]",
       "phone": "+1-555-0123"
     }' \
     https://your-app.com/exo-api/resources/contact

Response

Returns the created record’s transformed data with a 201 Created status. Example response:
{
  "id": 5,
  "name": "Jane Smith",
  "email": "[email protected]",
  "phone": "+1-555-0123",
  "created_at": "2026-03-28T14:30:00+00:00"
}

Errors

StatusDescription
404Resource name not found
405Resource does not support creation (supportsCreate returns false)
422Validation failed — see errors object for details