|
||
---|---|---|
page | Page number of causes to return. Returns empty array if the page has no causes. If page parameter isn't present, returns the first page | Optional |
size | Number of causes to return in a page. If size parameter isn't present, returns the page with 25 causes | Optional |
[
{
"_id": "52244147cce8b40b97000001",
"name": "Too Expensive",
"type": "lost",
"leads": [
{
"_id": "527375b9cce8b41b0900000a",
"name": "Alex Iskold",
"size": null
}
]
},
{
"_id": "52724e25cce8b44bef00003b",
"name": "Product Quality",
"type": "won",
"leads": [
{
"_id": "527375b9cce8b41b09000001",
"name": "Aaron Skloff",
"size": null
}
]
}
]
|
||
---|---|---|
cause_id | Unique identifier of the cause | Required |
{
"_id": "52244147cce8b40b97000001",
"name": "Too Expensive",
"type": "lost",
"leads": [
{
"_id": "527375b9cce8b41b0900000a",
"name": "Alex Iskold",
"size": null
}
]
}
|
||
---|---|---|
name | Name of the cause | Required |
type | Type of the cause. Must be either "won" or "lost". | Required |
{
"_id": "527c8dcfcce8b4c547000001",
"name": "Pricing",
"type": "won"
}
|
||
---|---|---|
cause_id | Unique identifier of the cause | Required |
name | Name of the cause | Required |
{
"_id": "527c8dcfcce8b4c547000001",
"name": "Pricing",
"type": "won"
}
|
||
---|---|---|
cause_id | Unique identifier of the cause | Required |
{}