The following auth rules apply to all of the following Snapshot Facet requests

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3afe HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 155

{
  "fields" : [ {
    "facetAs" : "ENUM",
    "field" : "taggedEditions.editionId",
    "userFacingName" : "editionId"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 404

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3afe"
    }
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5ddfc8bc46e0fb03956c3b00",
      "count" : 104
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3b02",
      "count" : 52
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3b01",
      "count" : 52
    } ]
  }
}

HAL

Hub → Snapshots

A hub resource will include a link to all related snapshots for that hub:

HTTP request

GET /v2/content/hubs/5ddfc8bc46e0fb03956c3af4 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Last-Modified: Thu, 28 Nov 2019 13:16:44 GMT
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 5495

{
  "id" : "5ddfc8bc46e0fb03956c3af4",
  "name" : "hub1",
  "label" : "Anya Finn",
  "description" : "Content for anyafinn.com",
  "status" : "ACTIVE",
  "settings" : {
    "virtualStagingEnvironment" : {
      "hostname" : ""
    },
    "previewVirtualStagingEnvironment" : {
      "hostname" : ""
    },
    "applications" : [ ],
    "devices" : [ {
      "name" : "Desktop",
      "width" : 1024,
      "height" : 768,
      "orientate" : false
    }, {
      "name" : "Tablet",
      "width" : 640,
      "height" : 768,
      "orientate" : false
    }, {
      "name" : "Mobile",
      "width" : 320,
      "height" : 512,
      "orientate" : false
    } ],
    "publishing" : {
      "platforms" : {
        "amplience_dam" : {
          "API_KEY" : "KEY",
          "endpoint" : "Endpoint"
        }
      }
    },
    "localization" : {
      "locales" : [ ]
    }
  },
  "createdBy" : "user",
  "createdDate" : "2019-11-28T13:16:44.515Z",
  "lastModifiedBy" : "user",
  "lastModifiedDate" : "2019-11-28T13:16:44.515Z",
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4"
    },
    "hub" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4"
    },
    "snapshots" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots{?page,size,sort,types}",
      "templated" : true
    },
    "create-snapshot" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots"
    },
    "events" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/events{?page,size,sort}",
      "templated" : true
    },
    "create-event" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/events"
    },
    "archive" : {
      "href" : "https://api.amplience.net/v2/content/events/{id}/archive",
      "templated" : true
    },
    "extensions" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/extensions{?page,size,sort}",
      "templated" : true
    },
    "extensions-lite" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/extensions?show-full=false{&page,size,sort}",
      "templated" : true
    },
    "extension-by-name" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/extensions/{name}",
      "templated" : true
    },
    "create-extension" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/extensions"
    },
    "update" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4"
    },
    "delete" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4"
    },
    "update-settings" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/settings"
    },
    "share" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/share"
    },
    "content-repositories" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-repositories{?page,size,sort}",
      "templated" : true
    },
    "create-content-repository" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-repositories"
    },
    "register-content-type" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-types"
    },
    "create-content-type-schema" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-type-schemas"
    },
    "content-types" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-types{?page,size,sort}",
      "templated" : true
    },
    "list-content-type-schemas" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-type-schemas{?page,size,sort}",
      "templated" : true
    },
    "resolve-content-type-schema" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-type-schemas/resolve"
    },
    "search-content-items" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-items/find{?page,projection,query,size,sort}",
      "templated" : true
    },
    "facet-content-items" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/content-items/facet{?page,projection,query,size,sort}",
      "templated" : true
    },
    "search-localization-jobs" : {
      "href" : "https://api.amplience.net/v2/content/localization-jobs/search"
    },
    "webhooks" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/webhooks{?page,size,sort}",
      "templated" : true
    },
    "create-webhook" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/webhooks"
    },
    "integrations" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/integrations{?page,size,sort}",
      "templated" : true
    },
    "create-workflow-state" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/workflow-states"
    },
    "workflow-states" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/workflow-states{?page,size,sort}",
      "templated" : true
    }
  }
}

The returned snapshots resource includes a link to the Snapshot search resource:

HTTP request

GET /v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 684

{
  "_embedded" : {
    "snapshots" : [ ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots?page=0&size=20"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots?page=0&size=20"
    },
    "search" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots/search"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 0,
    "totalPages" : 0,
    "number" : 0
  }
}

The Snapshot search resource includes the link to snapshot facet endpoint for that hub.

HTTP request

GET /v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots/search HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 324

{
  "_links" : {
    "facet" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3af4{&query,page,size,sort}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3af4/snapshots/search"
    }
  }
}

Single Facet

The facet endpoint accepts a POST which contains a structure, which the facet fields, filters and whether to include the matching items:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3afe HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 155

{
  "fields" : [ {
    "facetAs" : "ENUM",
    "field" : "taggedEditions.editionId",
    "userFacingName" : "editionId"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 404

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3afe"
    }
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5ddfc8bc46e0fb03956c3b00",
      "count" : 104
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3b02",
      "count" : 52
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3b01",
      "count" : 52
    } ]
  }
}

Facet Date Ranges

Basic Facet Date Ranges

The facet endpoint accepts a POST which contains a structure, which the facet fields, filters and whether to include the matching items:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8bb46e0fb03956c3940 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 1036

{
  "fields" : [ {
    "facetAs" : "DATE",
    "name" : "60 days +",
    "range" : {
      "start" : "-60:DAYS",
      "end" : "-9999:YEARS"
    },
    "field" : "createdDate",
    "userFacingName" : "60 days +"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 60 days",
    "range" : {
      "start" : "-60:DAYS",
      "end" : "NOW"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 60 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 30 days",
    "range" : {
      "start" : "-30:DAYS",
      "end" : "NOW"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 30 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 14 days",
    "range" : {
      "start" : "-14:DAYS",
      "end" : "NOW"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 14 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 7 days",
    "range" : {
      "start" : "-7:DAYS",
      "end" : "NOW"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 7 days"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 588

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bb46e0fb03956c3940"
    }
  },
  "_facets" : {
    "Last 30 days" : [ {
      "_id" : "-30:DAYS,NOW",
      "count" : 15
    } ],
    "Last 14 days" : [ {
      "_id" : "-14:DAYS,NOW",
      "count" : 6
    } ],
    "Last 60 days" : [ {
      "_id" : "-60:DAYS,NOW",
      "count" : 27
    } ],
    "Last 7 days" : [ {
      "_id" : "-7:DAYS,NOW",
      "count" : 3
    } ],
    "60 days +" : [ {
      "_id" : "-9999:YEARS,-60:DAYS",
      "count" : 129
    } ]
  }
}

Today Only

Can Facet a single day only:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8ba46e0fb03956c36ad HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 232

{
  "fields" : [ {
    "facetAs" : "DATE",
    "name" : "today",
    "range" : {
      "start" : "0:DAYS",
      "end" : "1:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "today"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 248

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8ba46e0fb03956c36ad"
    }
  },
  "_facets" : {
    "today" : [ {
      "_id" : "0:DAYS,1:DAYS",
      "count" : 52
    } ]
  }
}

Today and Tomorrow

Facet to include today and tomorrow:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c35d3 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 232

{
  "fields" : [ {
    "facetAs" : "DATE",
    "name" : "today",
    "range" : {
      "start" : "0:DAYS",
      "end" : "2:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "today"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 248

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c35d3"
    }
  },
  "_facets" : {
    "today" : [ {
      "_id" : "0:DAYS,2:DAYS",
      "count" : 52
    } ]
  }
}

From Current Time Today to Tomorrow

Can Facet from current point in time today to tomorrow:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8bb46e0fb03956c393b HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 229

{
  "fields" : [ {
    "facetAs" : "DATE",
    "name" : "today",
    "range" : {
      "start" : "NOW",
      "end" : "2:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "today"
  } ],
  "returnEntities" : false
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 190

{
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bb46e0fb03956c393b"
    }
  },
  "_facets" : {
    "today" : [ ]
  }
}

Single Facet with Responses

To include the responses this can be flagged by passing true in the returnEntities field:-

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=2&size=5 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 154

{
  "fields" : [ {
    "facetAs" : "ENUM",
    "field" : "taggedEditions.editionId",
    "userFacingName" : "editionId"
  } ],
  "returnEntities" : true
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 10120

{
  "_embedded" : {
    "snapshots" : [ {
      "id" : "5ddfc8bc46e0fb03956c3a30",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-05T13:16:44.095Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8bc46e0fb03956c3a1c",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8bc46e0fb03956c3a1e",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "5bac5aa1-e5a2-4861-96ed-de1877af8f0a"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a30"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a30"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a30/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a30/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a30/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3a1a"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/5bac5aa1-e5a2-4861-96ed-de1877af8f0a"
        }
      }
    }, {
      "id" : "5ddfc8bc46e0fb03956c3a31",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-05T13:16:44.095Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "0ca15a2f-9e0a-4e24-a175-4968a47037ed"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-12-05T13:16:44Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a31"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a31"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a31/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a31/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a31/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3a1a"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/0ca15a2f-9e0a-4e24-a175-4968a47037ed"
        }
      }
    }, {
      "id" : "5ddfc8bc46e0fb03956c3a33",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-30T13:16:44.095Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8bc46e0fb03956c3a1c",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8bc46e0fb03956c3a1d",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "b277c019-2699-4313-a9cf-1b17913a7b96"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a33"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a33"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a33/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a33/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a33/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3a1a"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/b277c019-2699-4313-a9cf-1b17913a7b96"
        }
      }
    }, {
      "id" : "5ddfc8bc46e0fb03956c3a34",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-29T13:16:44.095Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8bc46e0fb03956c3a1c",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8bc46e0fb03956c3a1e",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "2abed2d4-c9a3-4641-b06f-14cc98a4f2eb"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a34"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a34"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a34/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a34/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a34/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3a1a"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/2abed2d4-c9a3-4641-b06f-14cc98a4f2eb"
        }
      }
    }, {
      "id" : "5ddfc8bc46e0fb03956c3a35",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-29T13:16:44.095Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "d77f229d-3e5e-433d-b4c6-e72c06f8a1da"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-12-05T13:16:44Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a35"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a35"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a35/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a35/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8bc46e0fb03956c3a35/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8bc46e0fb03956c3a1a"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/d77f229d-3e5e-433d-b4c6-e72c06f8a1da"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=0&size=5"
    },
    "prev" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=1&size=5"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=2&size=5"
    },
    "next" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=3&size=5"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8bc46e0fb03956c3a1a&page=31&size=5"
    }
  },
  "page" : {
    "size" : 5,
    "totalElements" : 156,
    "totalPages" : 32,
    "number" : 2
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5ddfc8bc46e0fb03956c3a1c",
      "count" : 104
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3a1e",
      "count" : 52
    }, {
      "_id" : "5ddfc8bc46e0fb03956c3a1d",
      "count" : 52
    } ]
  }
}

Facet with Responses and Filtering

Filtering is support for certain fields:

Multiple date range filters in the same the facet is not supported.

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c34f3 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 1347

{
  "fields" : [ {
    "facetAs" : "ENUM",
    "filter" : {
      "type" : "IN",
      "values" : [ "5ddfc8b946e0fb03956c34f5", "5ddfc8b946e0fb03956c34f6" ]
    },
    "field" : "taggedEditions.editionId",
    "userFacingName" : "editionId"
  }, {
    "facetAs" : "DATE",
    "name" : "60 days +",
    "range" : {
      "start" : "-60:DAYS",
      "end" : "-9999:YEARS"
    },
    "field" : "createdDate",
    "userFacingName" : "60 days +"
  }, {
    "facetAs" : "DATE",
    "filter" : {
      "type" : "DATE",
      "values" : [ "-60:DAYS,NOW" ]
    },
    "name" : "Last 60 days",
    "range" : {
      "start" : "NOW",
      "end" : "-60:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 60 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 30 days",
    "range" : {
      "start" : "NOW",
      "end" : "-30:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 30 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 14 days",
    "range" : {
      "start" : "NOW",
      "end" : "-14:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 14 days"
  }, {
    "facetAs" : "DATE",
    "name" : "Last 7 days",
    "range" : {
      "start" : "NOW",
      "end" : "-7:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "Last 7 days"
  } ],
  "returnEntities" : true
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 34999

{
  "_embedded" : {
    "snapshots" : [ {
      "id" : "5ddfc8b946e0fb03956c351d",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-01T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "8fd298b0-0353-4c70-afc6-2d9129654d87"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351d"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351d"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351d/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351d/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351d/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/8fd298b0-0353-4c70-afc6-2d9129654d87"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c351c",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-02T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "c24c512e-a185-4b6e-bcc6-9baf396e81cc"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351c"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351c"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351c/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351c/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c351c/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/c24c512e-a185-4b6e-bcc6-9baf396e81cc"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3519",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-08T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "a3d6481e-c3b3-4981-9e40-627317f9c364"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3519"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3519"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3519/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3519/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3519/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/a3d6481e-c3b3-4981-9e40-627317f9c364"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3518",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-09T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "35e71d1b-78cd-4e71-aa7d-8fee31eea778"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3518"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3518"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3518/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3518/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3518/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/35e71d1b-78cd-4e71-aa7d-8fee31eea778"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3515",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-15T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "65c8564b-f686-49b4-b16a-30f59a0ecb16"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3515"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3515"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3515/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3515/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3515/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/65c8564b-f686-49b4-b16a-30f59a0ecb16"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3514",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-16T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "e330c3dd-7190-4e32-a5aa-d430ed8099f4"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3514"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3514"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3514/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3514/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3514/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/e330c3dd-7190-4e32-a5aa-d430ed8099f4"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3511",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-22T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "145aa61c-c8af-487b-92af-f69cf44dd707"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3511"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3511"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3511/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3511/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3511/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/145aa61c-c8af-487b-92af-f69cf44dd707"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3510",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-23T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "0493c08e-1f19-4427-aa19-53e2bbd85969"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3510"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3510"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3510/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3510/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3510/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/0493c08e-1f19-4427-aa19-53e2bbd85969"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c350d",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-29T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "73db9e3e-00c0-4c29-92a1-cc1a06dadc29"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350d"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350d"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350d/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350d/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350d/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/73db9e3e-00c0-4c29-92a1-cc1a06dadc29"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c350c",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-30T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "50ddb01b-9a99-43e6-a85e-04377cf262c8"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350c"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350c"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350c/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350c/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c350c/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/50ddb01b-9a99-43e6-a85e-04377cf262c8"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3509",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-05T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "098bfa91-51ef-49ac-99d0-a6b29d8ebdf9"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3509"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3509"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3509/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3509/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3509/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/098bfa91-51ef-49ac-99d0-a6b29d8ebdf9"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3508",
      "comment" : "This is a test comments",
      "createdDate" : "2019-11-06T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "1e59cb15-0771-43e8-96ae-06ae5deeb63f"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3508"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3508"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3508/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3508/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3508/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/1e59cb15-0771-43e8-96ae-06ae5deeb63f"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3505",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-12T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "17c6e47b-ec8c-497b-8c48-53e3a900b84e"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3505"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3505"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3505/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3505/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3505/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/17c6e47b-ec8c-497b-8c48-53e3a900b84e"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3504",
      "comment" : "This is a test comments",
      "createdDate" : "2019-11-13T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "1b6c2618-b100-441c-a94f-61264a25de0c"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3504"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3504"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3504/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3504/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3504/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/1b6c2618-b100-441c-a94f-61264a25de0c"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3501",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-19T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "2b86651a-dbc9-4426-ae3c-accfb9b16d1f"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3501"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3501"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3501/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3501/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3501/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/2b86651a-dbc9-4426-ae3c-accfb9b16d1f"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c3500",
      "comment" : "This is a test comments",
      "createdDate" : "2019-11-20T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "88691359-e29e-45d4-9e08-468c6f5b9cc9"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3500"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3500"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3500/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3500/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c3500/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/88691359-e29e-45d4-9e08-468c6f5b9cc9"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c34fd",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-26T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "5b5508ae-1c07-4db8-bf17-b3bf64f8022f"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fd"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fd"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fd/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fd/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fd/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/5b5508ae-1c07-4db8-bf17-b3bf64f8022f"
        }
      }
    }, {
      "id" : "5ddfc8b946e0fb03956c34fc",
      "comment" : "This is a test comments",
      "createdDate" : "2019-11-27T13:16:41.017Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b946e0fb03956c34f5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b946e0fb03956c34f6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "725a09fb-a7c0-4bf6-b8cb-7063bf428c10"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fc"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fc"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fc/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fc/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b946e0fb03956c34fc/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b946e0fb03956c34f3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/725a09fb-a7c0-4bf6-b8cb-7063bf428c10"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c34f3&page=0&size=20"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c34f3&page=0&size=20"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b946e0fb03956c34f3&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 18,
    "totalPages" : 1,
    "number" : 0
  },
  "_facets" : {
    "Last 30 days" : [ {
      "_id" : "-30:DAYS,NOW",
      "count" : 10
    } ],
    "Last 14 days" : [ {
      "_id" : "-14:DAYS,NOW",
      "count" : 4
    } ],
    "Last 60 days" : [ {
      "_id" : "-60:DAYS,NOW",
      "count" : 18
    } ],
    "Last 7 days" : [ {
      "_id" : "-7:DAYS,NOW",
      "count" : 2
    } ],
    "editionId" : [ {
      "_id" : "5ddfc8b946e0fb03956c34f5",
      "count" : 18
    }, {
      "_id" : "5ddfc8b946e0fb03956c34f7",
      "count" : 9
    }, {
      "_id" : "5ddfc8b946e0fb03956c34f6",
      "count" : 9
    } ],
    "60 days +" : [ {
      "_id" : "-9999:YEARS,-60:DAYS",
      "count" : 86
    } ]
  }
}

Multiple facets with Responses

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=2&size=5 HTTP/1.1
Content-Type: application/json
Accept: application/hal+json
Host: api.amplience.net
Content-Length: 467

{
  "fields" : [ {
    "facetAs" : "ENUM",
    "field" : "taggedEditions.editionId",
    "userFacingName" : "editionId"
  }, {
    "facetAs" : "ENUM",
    "field" : "graph.rootNode.contentTypeUri",
    "userFacingName" : "contentTypeUri"
  }, {
    "facetAs" : "DATE",
    "range" : {
      "start" : "0:DAYS",
      "end" : "-60:DAYS",
      "gap" : "1:DAYS"
    },
    "field" : "createdDate",
    "userFacingName" : "createdDate"
  } ],
  "returnEntities" : true
}

HTTP response

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 11437

{
  "_embedded" : {
    "snapshots" : [ {
      "id" : "5ddfc8b846e0fb03956c342f",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-05T13:16:40.402Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b846e0fb03956c341b",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b846e0fb03956c341d",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "b1c2a5ff-916e-44dd-aaf9-68fee41c3816"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c342f"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c342f"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c342f/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c342f/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c342f/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b846e0fb03956c3419"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/b1c2a5ff-916e-44dd-aaf9-68fee41c3816"
        }
      }
    }, {
      "id" : "5ddfc8b846e0fb03956c3430",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-11-05T13:16:40.402Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "99381aed-81d8-4f9b-b742-355b955968da"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-12-05T13:16:40Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3430"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3430"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3430/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3430/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3430/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b846e0fb03956c3419"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/99381aed-81d8-4f9b-b742-355b955968da"
        }
      }
    }, {
      "id" : "5ddfc8b846e0fb03956c3432",
      "comment" : "This is a test comments",
      "createdDate" : "2019-10-30T13:16:40.402Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b846e0fb03956c341b",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b846e0fb03956c341c",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "ad683f19-c3da-4f3f-8d6e-7791a13ec50d"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3432"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3432"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3432/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3432/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3432/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b846e0fb03956c3419"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/ad683f19-c3da-4f3f-8d6e-7791a13ec50d"
        }
      }
    }, {
      "id" : "5ddfc8b846e0fb03956c3433",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-29T13:16:40.402Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5ddfc8b846e0fb03956c341b",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5ddfc8b846e0fb03956c341d",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "86bafe7a-2b98-4a22-b927-252323a639cf"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3433"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3433"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3433/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3433/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3433/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b846e0fb03956c3419"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/86bafe7a-2b98-4a22-b927-252323a639cf"
        }
      }
    }, {
      "id" : "5ddfc8b846e0fb03956c3434",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-10-29T13:16:40.402Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "0c55958a-828e-4c4b-a996-c8550a607096"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-12-05T13:16:40Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3434"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3434"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3434/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3434/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5ddfc8b846e0fb03956c3434/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5ddfc8b846e0fb03956c3419"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/0c55958a-828e-4c4b-a996-c8550a607096"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=0&size=5"
    },
    "prev" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=1&size=5"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=2&size=5"
    },
    "next" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=3&size=5"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5ddfc8b846e0fb03956c3419&page=31&size=5"
    }
  },
  "page" : {
    "size" : 5,
    "totalElements" : 156,
    "totalPages" : 32,
    "number" : 2
  },
  "_facets" : {
    "createdDate" : [ {
      "_id" : "-58:DAYS,-57:DAYS",
      "count" : 2
    }, {
      "_id" : "-57:DAYS,-56:DAYS",
      "count" : 1
    }, {
      "_id" : "-51:DAYS,-50:DAYS",
      "count" : 2
    }, {
      "_id" : "-50:DAYS,-49:DAYS",
      "count" : 1
    }, {
      "_id" : "-44:DAYS,-43:DAYS",
      "count" : 2
    }, {
      "_id" : "-43:DAYS,-42:DAYS",
      "count" : 1
    }, {
      "_id" : "-37:DAYS,-36:DAYS",
      "count" : 2
    }, {
      "_id" : "-36:DAYS,-35:DAYS",
      "count" : 1
    }, {
      "_id" : "-30:DAYS,-29:DAYS",
      "count" : 2
    }, {
      "_id" : "-29:DAYS,-28:DAYS",
      "count" : 1
    }, {
      "_id" : "-23:DAYS,-22:DAYS",
      "count" : 2
    }, {
      "_id" : "-22:DAYS,-21:DAYS",
      "count" : 1
    }, {
      "_id" : "-16:DAYS,-15:DAYS",
      "count" : 2
    }, {
      "_id" : "-15:DAYS,-14:DAYS",
      "count" : 1
    }, {
      "_id" : "-9:DAYS,-8:DAYS",
      "count" : 2
    }, {
      "_id" : "-8:DAYS,-7:DAYS",
      "count" : 1
    }, {
      "_id" : "-2:DAYS,-1:DAYS",
      "count" : 2
    }, {
      "_id" : "-1:DAYS,0:DAYS",
      "count" : 1
    } ],
    "editionId" : [ {
      "_id" : "5ddfc8b846e0fb03956c341b",
      "count" : 104
    }, {
      "_id" : "5ddfc8b846e0fb03956c341d",
      "count" : 52
    }, {
      "_id" : "5ddfc8b846e0fb03956c341c",
      "count" : 52
    } ],
    "contentTypeUri" : [ {
      "_id" : "http://content-type/content-type2",
      "count" : 104
    }, {
      "_id" : "http://content-type/content-type1",
      "count" : 52
    } ]
  }
}