Contact
Hire Us
Package
Download
Person

The Person schema represents an individual user or contact in the SiteMesh system. It defines the structure of person records and the API endpoints for interacting with them.

Columns

Column ID Type Key Filter Options Description
PersonIDTEXTYesEQUALS-Unique identifier
PersonNameTEXTNoLIKE-Full name
PersonGivenNameTEXTNoLIKE-First/given name
PersonFamilyNameTEXTNoLIKE-Last/family name
PersonEmailTEXTNoLIKE-Email address
PersonPhoneTEXTNoEQUALS-Phone number
PersonStreet1TEXTNoLIKE-Address line 1
PersonStreet2TEXTNoLIKE-Address line 2
PersonCityTEXTNoEQUALS-City
PersonStateTEXTNoEQUALS-State
PersonCountryTEXTNoEQUALS-Country
PersonPostCodeTEXTNoEQUALS-Postal code
PersonRolesTEXTNo--Roles (e.g., [admin])
PersonMarketingTEXTNoEQUALSSUBSCRIBED, UNSUBSCRIBEDMarketing status
PersonActivityTIMESTAMPNo--Last activity timestamp
PersonCreatedTIMESTAMPNo--Creation timestamp
PersonUpdatedTIMESTAMPNo--Last update timestamp
PersonDeletedTIMESTAMPNoEQUALS-Deletion timestamp
  • Columns with Key = Yes are unique identifiers.
  • Columns with Filter can be used in API queries for filtering results.
  • PersonMarketing accepts only: REQUESTED, SUBSCRIBED, UNSUBSCRIBED.

API Endpoints

All endpoints require a valid authentication token. Only users with [admin] role or the owner of the PersonID can access or modify their own record.

  1. POST /person/count
    Returns the count of person records matching the provided filters.
    Body: JSON object with filter parameters (optional).
    Permissions: [admin] or self.
    Response: Number (as string).
  2. POST /person/list
    Returns a list of person records matching the provided filters.
    Body: JSON object with filter parameters (optional).
    Permissions: [admin] or self.
    Response: JSON array of person objects.
  3. POST /person/get
    Retrieves a single person record by PersonID.
    Body: { "PersonID": "<id>" }
    Permissions: [admin] or self.
    Response: JSON object of the person, or null if not found.
  4. POST /person/save
    Creates or updates a person record.
    Body: JSON object with person fields.
    Permissions: [admin] or self. Only admins can edit PersonRoles.
    Response: JSON object of the saved person.

Security & Permissions

  • All endpoints require a valid token (TokenID and not expired).
  • Only [admin] users can access all records and edit roles.
  • Non-admins can only access or modify their own record and cannot change roles.

Sorting

  • Default sort: PersonName ascending.