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

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5d5bc1f4c9e77c035fedfbc8 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=5d5bc1f4c9e77c035fedfbc8"
    }
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5d5bc1f4c9e77c035fedfbca",
      "count" : 104
    }, {
      "_id" : "5d5bc1f4c9e77c035fedfbcc",
      "count" : 52
    }, {
      "_id" : "5d5bc1f4c9e77c035fedfbcb",
      "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/5d5bc1f3c9e77c035fedfbbe 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: Tue, 20 Aug 2019 09:48:35 GMT
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 4850

{
  "id" : "5d5bc1f3c9e77c035fedfbbe",
  "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-08-20T09:48:35.886Z",
  "lastModifiedBy" : "user",
  "lastModifiedDate" : "2019-08-20T09:48:35.886Z",
  "_links" : {
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe"
    },
    "hub" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe"
    },
    "snapshots" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/snapshots{?page,size,sort,types}",
      "templated" : true
    },
    "create-snapshot" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/snapshots"
    },
    "events" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/events{?page,size,sort}",
      "templated" : true
    },
    "create-event" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/events"
    },
    "archive" : {
      "href" : "https://api.amplience.net/v2/content/events/{id}/archive",
      "templated" : true
    },
    "update" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe"
    },
    "delete" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe"
    },
    "update-settings" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/settings"
    },
    "share" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/share"
    },
    "content-repositories" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-repositories{?page,size,sort}",
      "templated" : true
    },
    "create-content-repository" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-repositories"
    },
    "register-content-type" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-types"
    },
    "create-content-type-schema" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-type-schemas"
    },
    "content-types" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-types{?page,size,sort}",
      "templated" : true
    },
    "list-content-type-schemas" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-type-schemas{?page,size,sort}",
      "templated" : true
    },
    "resolve-content-type-schema" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-type-schemas/resolve"
    },
    "search-content-items" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/content-items/find{?page,projection,query,size,sort}",
      "templated" : true
    },
    "facet-content-items" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/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/5d5bc1f3c9e77c035fedfbbe/webhooks{?page,size,sort}",
      "templated" : true
    },
    "create-webhook" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/webhooks"
    },
    "integrations" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/integrations{?page,size,sort}",
      "templated" : true
    },
    "create-workflow-state" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/workflow-states"
    },
    "workflow-states" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/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/5d5bc1f3c9e77c035fedfbbe/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/5d5bc1f3c9e77c035fedfbbe/snapshots?page=0&size=20"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/snapshots?page=0&size=20"
    },
    "search" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/snapshots/search"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/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/5d5bc1f3c9e77c035fedfbbe/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=5d5bc1f3c9e77c035fedfbbe{&query,page,size,sort}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfbbe/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=5d5bc1f4c9e77c035fedfbc8 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=5d5bc1f4c9e77c035fedfbc8"
    }
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5d5bc1f4c9e77c035fedfbca",
      "count" : 104
    }, {
      "_id" : "5d5bc1f4c9e77c035fedfbcc",
      "count" : 52
    }, {
      "_id" : "5d5bc1f4c9e77c035fedfbcb",
      "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=5d5bc1f2c9e77c035fedfa0a 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=5d5bc1f2c9e77c035fedfa0a"
    }
  },
  "_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=5d5bc1f1c9e77c035fedf777 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=5d5bc1f1c9e77c035fedf777"
    }
  },
  "_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=5d5bc1f0c9e77c035fedf69d 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=5d5bc1f0c9e77c035fedf69d"
    }
  },
  "_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=5d5bc1f2c9e77c035fedfa05 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=5d5bc1f2c9e77c035fedfa05"
    }
  },
  "_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=5d5bc1f3c9e77c035fedfae4&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: 10115

{
  "_embedded" : {
    "snapshots" : [ {
      "id" : "5d5bc1f3c9e77c035fedfafa",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-28T09:48:35.46Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f3c9e77c035fedfae6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f3c9e77c035fedfae8",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "c999b83e-d14c-47ab-8435-444c343f5858"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafa"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafa"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafa/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafa/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafa/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfae4"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/c999b83e-d14c-47ab-8435-444c343f5858"
        }
      }
    }, {
      "id" : "5d5bc1f3c9e77c035fedfafb",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-28T09:48:35.46Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "5c8371a4-9ae0-4e46-96a7-7725dd932edf"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-08-27T09:48:35Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafb"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafb"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafb/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafb/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafb/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfae4"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/5c8371a4-9ae0-4e46-96a7-7725dd932edf"
        }
      }
    }, {
      "id" : "5d5bc1f3c9e77c035fedfafd",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-22T09:48:35.46Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f3c9e77c035fedfae6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f3c9e77c035fedfae7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "12bbce11-a294-4d0f-9c7d-a9c1da37f871"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafd"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafd"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafd/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafd/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafd/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfae4"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/12bbce11-a294-4d0f-9c7d-a9c1da37f871"
        }
      }
    }, {
      "id" : "5d5bc1f3c9e77c035fedfafe",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-21T09:48:35.46Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f3c9e77c035fedfae6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f3c9e77c035fedfae8",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "a29a16ef-453c-4946-91fb-43039ffca291"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafe"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafe"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafe/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafe/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfafe/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfae4"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/a29a16ef-453c-4946-91fb-43039ffca291"
        }
      }
    }, {
      "id" : "5d5bc1f3c9e77c035fedfaff",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-21T09:48:35.46Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "5c137457-97b1-4d40-b014-6162d0882964"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-08-27T09:48:35Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfaff"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfaff"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfaff/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfaff/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f3c9e77c035fedfaff/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f3c9e77c035fedfae4"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/5c137457-97b1-4d40-b014-6162d0882964"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f3c9e77c035fedfae4&page=0&size=5"
    },
    "prev" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f3c9e77c035fedfae4&page=1&size=5"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f3c9e77c035fedfae4&page=2&size=5"
    },
    "next" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f3c9e77c035fedfae4&page=3&size=5"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f3c9e77c035fedfae4&page=31&size=5"
    }
  },
  "page" : {
    "size" : 5,
    "totalElements" : 156,
    "totalPages" : 32,
    "number" : 2
  },
  "_facets" : {
    "editionId" : [ {
      "_id" : "5d5bc1f3c9e77c035fedfae6",
      "count" : 104
    }, {
      "_id" : "5d5bc1f3c9e77c035fedfae8",
      "count" : 52
    }, {
      "_id" : "5d5bc1f3c9e77c035fedfae7",
      "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=5d5bc1f0c9e77c035fedf5bd 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" : [ "5d5bc1f0c9e77c035fedf5bf", "5d5bc1f0c9e77c035fedf5c0" ]
    },
    "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" : "5d5bc1f0c9e77c035fedf5e7",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-06-23T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "cf2eb100-7f1d-4c93-a68d-3a3dffad4ca8"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e7"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e7"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e7/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e7/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e7/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/cf2eb100-7f1d-4c93-a68d-3a3dffad4ca8"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5e6",
      "comment" : "This is a test comments",
      "createdDate" : "2019-06-24T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "1bccac57-41d3-4235-ae5d-23c015013ec4"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e6"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e6"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e6/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e6/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e6/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/1bccac57-41d3-4235-ae5d-23c015013ec4"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5e3",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-06-30T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "f797379d-c31b-4c6f-946d-5985eb44787e"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e3"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e3"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e3/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e3/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e3/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/f797379d-c31b-4c6f-946d-5985eb44787e"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5e2",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-01T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "6ec568de-ff56-41cf-b73f-3e3b446c90dc"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e2"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e2"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e2/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e2/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5e2/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/6ec568de-ff56-41cf-b73f-3e3b446c90dc"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5df",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-07T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "bd8a588e-332c-434a-b6ca-5812615489b5"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5df"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5df"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5df/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5df/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5df/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/bd8a588e-332c-434a-b6ca-5812615489b5"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5de",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-08T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "23370a72-e1a5-4d22-8a53-8d1a558ec3c9"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5de"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5de"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5de/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5de/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5de/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/23370a72-e1a5-4d22-8a53-8d1a558ec3c9"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5db",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-14T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "01c932a9-1beb-42ed-8b1f-9cebd3a872a5"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5db"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5db"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5db/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5db/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5db/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/01c932a9-1beb-42ed-8b1f-9cebd3a872a5"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5da",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-15T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "76f33202-c75a-4a86-bd24-04f6846850e1"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5da"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5da"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5da/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5da/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5da/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/76f33202-c75a-4a86-bd24-04f6846850e1"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5d7",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-21T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "0fac0429-b49c-4d4d-8720-af9f04a962aa"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d7"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d7"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d7/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d7/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d7/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/0fac0429-b49c-4d4d-8720-af9f04a962aa"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5d6",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-22T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "92c45bd7-6d0a-4a88-8c03-e19771a1fe3a"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d6"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d6"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d6/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d6/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d6/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/92c45bd7-6d0a-4a88-8c03-e19771a1fe3a"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5d3",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-28T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "421cd7f6-72f1-4c4d-be90-10bf43c06382"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d3"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d3"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d3/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d3/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d3/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/421cd7f6-72f1-4c4d-be90-10bf43c06382"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5d2",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-29T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "dc624e55-fe8f-45b7-b4b1-a70a2d151d92"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d2"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d2"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d2/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d2/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5d2/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/dc624e55-fe8f-45b7-b4b1-a70a2d151d92"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5cf",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-08-04T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "d61ee417-ea5e-4071-b61e-059b7c914840"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cf"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cf"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cf/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cf/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cf/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/d61ee417-ea5e-4071-b61e-059b7c914840"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5ce",
      "comment" : "This is a test comments",
      "createdDate" : "2019-08-05T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "1ad5c397-bcba-454b-b0d1-04e02083bc7c"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ce"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ce"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ce/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ce/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ce/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/1ad5c397-bcba-454b-b0d1-04e02083bc7c"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5cb",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-08-11T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "14ea3c84-b50d-48ed-87d5-855415f05b9f"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cb"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cb"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cb/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cb/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5cb/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/14ea3c84-b50d-48ed-87d5-855415f05b9f"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5ca",
      "comment" : "This is a test comments",
      "createdDate" : "2019-08-12T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "58808e4c-be9f-4a06-9fc0-f67e99c3cd8f"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ca"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ca"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ca/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ca/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5ca/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/58808e4c-be9f-4a06-9fc0-f67e99c3cd8f"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5c7",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-08-18T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c1",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "6e659bb6-3c4b-40e9-b7a4-f58ac04fb36b"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c7"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c7"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c7/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c7/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c7/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/6e659bb6-3c4b-40e9-b7a4-f58ac04fb36b"
        }
      }
    }, {
      "id" : "5d5bc1f0c9e77c035fedf5c6",
      "comment" : "This is a test comments",
      "createdDate" : "2019-08-19T09:48:32.126Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1f0c9e77c035fedf5bf",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1f0c9e77c035fedf5c0",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "387e1c5e-5f8b-46f6-af28-4d270ec1b178"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c6"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c6"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c6/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c6/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1f0c9e77c035fedf5c6/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1f0c9e77c035fedf5bd"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/387e1c5e-5f8b-46f6-af28-4d270ec1b178"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f0c9e77c035fedf5bd&page=0&size=20"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f0c9e77c035fedf5bd&page=0&size=20"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1f0c9e77c035fedf5bd&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" : "5d5bc1f0c9e77c035fedf5bf",
      "count" : 18
    }, {
      "_id" : "5d5bc1f0c9e77c035fedf5c1",
      "count" : 9
    }, {
      "_id" : "5d5bc1f0c9e77c035fedf5c0",
      "count" : 9
    } ],
    "60 days +" : [ {
      "_id" : "-9999:YEARS,-60:DAYS",
      "count" : 86
    } ]
  }
}

Multiple facets with Responses

HTTP request

POST /v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&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" : "5d5bc1efc9e77c035fedf4f9",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-28T09:48:31.329Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1efc9e77c035fedf4e5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1efc9e77c035fedf4e7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "836ff14a-751f-4bb2-8b95-b0bdf540a2e2"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4f9"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4f9"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4f9/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4f9/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4f9/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1efc9e77c035fedf4e3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/836ff14a-751f-4bb2-8b95-b0bdf540a2e2"
        }
      }
    }, {
      "id" : "5d5bc1efc9e77c035fedf4fa",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-28T09:48:31.329Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "69e3ad15-4906-40b9-95e7-027c5e661628"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-08-27T09:48:31Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fa"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fa"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fa/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fa/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fa/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1efc9e77c035fedf4e3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/69e3ad15-4906-40b9-95e7-027c5e661628"
        }
      }
    }, {
      "id" : "5d5bc1efc9e77c035fedf4fc",
      "comment" : "This is a test comments",
      "createdDate" : "2019-07-22T09:48:31.329Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1efc9e77c035fedf4e5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1efc9e77c035fedf4e6",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title1",
        "contentTypeUri" : "http://content-type/content-type1",
        "id" : "57c32e5f-3a78-4796-b4db-423fd2f8bb30"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fc"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fc"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fc/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fc/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fc/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1efc9e77c035fedf4e3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/57c32e5f-3a78-4796-b4db-423fd2f8bb30"
        }
      }
    }, {
      "id" : "5d5bc1efc9e77c035fedf4fd",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-21T09:48:31.329Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "USER",
      "meta" : [ ],
      "taggedEditions" : [ {
        "editionId" : "5d5bc1efc9e77c035fedf4e5",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      }, {
        "editionId" : "5d5bc1efc9e77c035fedf4e7",
        "createdDate" : null,
        "createdBy" : null,
        "name" : "Test",
        "eventName" : "Test"
      } ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "5a50afc5-75eb-4221-9e88-c08bcee647c7"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fd"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fd"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fd/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fd/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fd/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1efc9e77c035fedf4e3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/5a50afc5-75eb-4221-9e88-c08bcee647c7"
        }
      }
    }, {
      "id" : "5d5bc1efc9e77c035fedf4fe",
      "comment" : "This is another example snapshot.",
      "createdDate" : "2019-07-21T09:48:31.329Z",
      "createdBy" : "user",
      "createdFrom" : "edition",
      "type" : "SYSTEM",
      "meta" : [ ],
      "taggedEditions" : [ ],
      "locale" : null,
      "rootContentItem" : {
        "label" : "title2",
        "contentTypeUri" : "http://content-type/content-type2",
        "id" : "a900d760-e4ee-44b1-9873-315b3bbff47f"
      },
      "publishedEdition" : {
        "editionName" : "Test",
        "eventName" : "Test",
        "asOf" : "2019-08-27T09:48:31Z"
      },
      "_links" : {
        "self" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fe"
        },
        "snapshot" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fe"
        },
        "publishing-jobs" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fe/publishing-jobs{?page,size,sort}",
          "templated" : true
        },
        "create-publishing-job" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fe/publishing-jobs"
        },
        "edition-links" : {
          "href" : "https://api.amplience.net/v2/content/snapshots/5d5bc1efc9e77c035fedf4fe/edition-links"
        },
        "hub" : {
          "href" : "https://api.amplience.net/v2/content/hubs/5d5bc1efc9e77c035fedf4e3"
        },
        "content-root" : {
          "href" : "https://api.amplience.net/v2/content/content-items/a900d760-e4ee-44b1-9873-315b3bbff47f"
        }
      }
    } ]
  },
  "_links" : {
    "first" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&page=0&size=5"
    },
    "prev" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&page=1&size=5"
    },
    "self" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&page=2&size=5"
    },
    "next" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&page=3&size=5"
    },
    "last" : {
      "href" : "https://api.amplience.net/v2/content/snapshots/search/facet?hubId=5d5bc1efc9e77c035fedf4e3&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" : "5d5bc1efc9e77c035fedf4e5",
      "count" : 104
    }, {
      "_id" : "5d5bc1efc9e77c035fedf4e7",
      "count" : 52
    }, {
      "_id" : "5d5bc1efc9e77c035fedf4e6",
      "count" : 52
    } ],
    "contentTypeUri" : [ {
      "_id" : "http://content-type/content-type2",
      "count" : 104
    }, {
      "_id" : "http://content-type/content-type1",
      "count" : 52
    } ]
  }
}