The saved global filters endpoints provide a way to view saved global filter details by user and stack or delete them. All endpoints require a user to be logged in, and the POST endpoints require CSRF tokens.
GET
/api/v1/hashr/saved_global_filters/
¶Get a list of Saved Global Filter Hashes for Current User
Example Request:
GET /api/v1/hashr/saved_global_filters/
Accept: application/json
Example Response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript
[
{
"user": "chris@juice.com",
"stack": "Census for Data Services Demo App",
"hash": "aThing",
"name": "My Filters",
"created": "2016-06-07T15:52:13.600823Z",
"modified": "2016-06-07T15:52:13.600864Z"
}
]
Response JSON Array of Objects: | |
---|---|
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|
GET
/api/v1/hashr/saved_global_filters/stack/
(string: stack_id)/
¶Get a list of Saved Global Filter Hashes for Current User
Example Request:
GET /api/v1/hashr/saved_global_filters/stack/a0a91e46/
Accept: application/json
Example Response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript
[
{
"user": "chris@juice.com",
"stack": "Census for Data Services Demo App",
"hash": "aThing",
"name": "My Filters",
"created": "2016-06-07T15:52:13.600823Z",
"modified": "2016-06-07T15:52:13.600864Z"
}
]
Parameters: |
|
---|---|
Response JSON Array of Objects: | |
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|
GET
/api/v1/hashr/saved_global_filters/
(string: hash)/
¶Get a list of Saved Global Filter Hashes for Current User for a Stack
Example Request:
GET /api/v1/hashr/saved_global_filters/aThing/
Accept: application/json
Example Response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript
{
"user": "chris@juice.com",
"stack": "Census for Data Services Demo App",
"hash": "aThing",
"name": "My Filters",
"created": "2016-06-07T15:52:13.600823Z",
"modified": "2016-06-07T15:52:13.600864Z"
}
Parameters: |
|
---|---|
Response JSON Object: | |
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|
POST
/api/v1/hashr/saved_global_filters/
¶Creating a Saved Global Filter Hashes for Current User
Example Request:
POST /api/v1/hashr/saved_global_filters/
Accept: application/json
{
"stack_id": "a0a91e46",
"hash": "aThing",
"name": "My Filters",
}
Example Response:
HTTP/1.1 201 CREATED
Vary: Accept
Content-Type: text/javascript
{
"user": "chris@juice.com",
"stack": "Census for Data Services Demo App",
"hash": "aThing",
"name": "My Filters",
"created": "2016-06-07T15:52:13.600823Z",
"modified": "2016-06-07T15:52:13.600864Z"
}
Request JSON Object: | |
---|---|
|
|
Response JSON Object: | |
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|
DELETE
/api/v1/hashr/saved_global_filters/
(string: hash)/
¶Deleting a specific Saved Global Filter Hash for Current User
Example Request:
DELETE /api/v1/hashr/saved_global_filters/aThing/
Accept: application/json
Example Response:
HTTP/1.1 204 NO CONTENT
Vary: Accept
Content-Type: text/javascript
Status Codes: |
|
---|
PUT
/api/v1/hashr/saved_global_filters/
(string: hash)/
¶Updating a specific Saved Global Filter Hash for Current User
Example Request:
PUT /api/v1/hashr/saved_global_filters/aThing/
Accept: application/json
{
"stack_id": "a0a91e46",
"hash": "aThing",
"name": "My Renamed Filters",
}
Example Response:
HTTP/1.1 204 NO CONTENT
Vary: Accept
Content-Type: text/javascript
{
"user": "chris@juice.com",
"stack": "Census for Data Services Demo App",
"hash": "aThing",
"name": "My Renamed Filters",
"created": "2016-06-07T15:52:13.600823Z",
"modified": "2016-06-07T16:52:13.600864Z"
}
Status Codes: |
|
---|