Skip to content

Instantly share code, notes, and snippets.

@AbhiAgarwal
Created June 25, 2015 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbhiAgarwal/6faef138b45e61badf0b to your computer and use it in GitHub Desktop.
Save AbhiAgarwal/6faef138b45e61badf0b to your computer and use it in GitHub Desktop.

Add FilterFields to a report

report_builder/api/report/<id> PUT

Sample request:

If your previous response from when you did a GET on report_builder/api/report/<id> was:

{
    "id": 2,
    "name": "sssf",
    "description": "",
    "modified": "2015-06-24",
    "root_model": 9,
    "root_model_name": "bar",
    "displayfield_set": [],
    "distinct": false,
    "user_created": 1,
    "user_modified": null,
    "filterfield_set": [],
    "report_file": "http://localhost:8080/media/report_files/sssf_9c8XUkg.xlsx",
    "report_file_creation": "2015-06-23T17:14:23.727217Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment