API 参考Employees
Update an employee record (partial update)
Only include fields to change. Returns the full updated employee.
Requires employees:write scope. Requires Idempotency-Key header.
Updatable fields: name, salary_usd_cents, employment_type, payment_schedule, stablecoin, network, contract_start_date, contract_end_date, status (ACTIVE/INACTIVE only).
Not updatable via API: email, role, wallet_address (employee sets their own).
Authorization
apiKey AuthorizationBearer <token>
API key: Authorization: Bearer mpk_live_<key>
In: header
Path Parameters
employee_id*string
Employee/user identifier
Header Parameters
Idempotency-Key*string
UUID v4. Required on all write operations. Prevents duplicate execution on retry.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://motivation-money.vercel.app/api/v1/employees/usr_emp456" \ -H "Idempotency-Key: 7f3c4d2a-8b1e-4f6a-9c2d-1a5b8e3f7d4c" \ -H "Content-Type: application/json" \ -d '{}'Empty