HubSpot · JSON Structure

Hubspot Commerce Payments Sort Option Structure

A sort option for ordering results

Type: object Properties: 2 Required: 2
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

SortOption is a JSON Structure definition published by HubSpot, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

propertyName direction

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "A sort option for ordering results",
  "name": "SortOption",
  "properties": {
    "propertyName": {
      "type": "string",
      "description": "The property to sort by"
    },
    "direction": {
      "type": "string",
      "description": "The sort direction",
      "enum": [
        "ASCENDING",
        "DESCENDING"
      ]
    }
  },
  "required": [
    "propertyName",
    "direction"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}