Easy Labs
APIAccount & operationsCompanies

Upsert per-email-type customizations

Body: `{customizations: [{email_type, subject_override?, custom_intro?, custom_footer?, enabled?}]}`. Upserts each entry by (company_id, email_type). Existing fields not present in the patch are preserved. Returns the refreshed customizations for the patched types.

PATCH
/v1/auth/companies/email-customizations

Authorization

bearerAuth
AuthorizationBearer <token>

Supabase JWT bearer token for dashboard / user-scoped endpoints. Role-derived scopes: ROOT/ADMIN → full admin; USER → read-only treasury.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://loading/v1/auth/companies/email-customizations"
{
  "success": true,
  "timestamp": "2019-08-24T14:15:22Z",
  "data": null,
  "message": "string",
  "pagination": {
    "total": 0,
    "limit": 1,
    "offset": 0,
    "has_more": true,
    "cursors": {
      "first": "string",
      "last": "string"
    }
  }
}
{
  "success": false,
  "timestamp": "2019-08-24T14:15:22Z",
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}
{
  "success": false,
  "timestamp": "2019-08-24T14:15:22Z",
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}
{
  "success": false,
  "timestamp": "2019-08-24T14:15:22Z",
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}