|
||
|---|---|---|
| page | Page number of organizations to return. Returns empty array if the page has no organizations. If page parameter isn't present, returns the first page | Optional |
| size | Number of organizations to return in a page. If size parameter isn't present, returns the page with 25 organizations | Optional |
[
{
"_id": "521f26eccce8b4310e000075",
"name": "Foo Organization",
"email": "[email protected]",
"phone": "5553336666",
"website": "http://www.foocorp.com",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom organization field",
"value": "Monthly"
}
],
"contacts": [
{
"_id": "521f26eccce8b4310e000076",
"name": "Foo Guy",
"designation": null,
"email": "[email protected]",
"phone": "5553331234",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom contact field",
"value": "Annual"
}
]
}
]
}
]
|
||
|---|---|---|
| organization_id | Unique identifier of the organization | Required |
{
"_id": "521f26eccce8b4310e000075",
"name": "Foo Organization",
"email": "[email protected]",
"phone": "5553336666",
"website": "http://www.foocorp.com",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom organization field",
"value": "Monthly"
}
],
"contacts": [
{
"_id": "521f26eccce8b4310e000076",
"name": "Foo Guy",
"designation": null,
"email": "[email protected]",
"phone": "5553331234",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom contact field",
"value": "Annual"
}
]
}
]
}
|
||
|---|---|---|
| name | Name of the organization | Required |
| Email of the organization. | Optional | |
| phone | Phone of the organization. | Optional |
| website | Website of the organization. | Optional |
| address | Address of the organization. | Optional |
{
"_id": "521f26eccce8b4310e000075",
"name": "Created Foo Organization",
"email": "[email protected]",
"phone": "5553336666",
"website": "http://www.foocorp.com",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom organization field",
"value": null
}
]
}
|
||
|---|---|---|
| organization_id | Unique identifier of the organization | Required |
| name | Name of the organization | Optional |
| Email of the organization. | Optional | |
| phone | Phone of the organization. | Optional |
| website | Website of the organization. | Optional |
| address | Address of the organization. | Optional |
{
"_id": "521f26eccce8b4310e000075",
"name": "Updated Foo Organization",
"email": "[email protected]",
"phone": "5553336666",
"website": "http://www.foocorp.com",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom organization field",
"value": null
}
]
}
|
||
|---|---|---|
| organization_id | Unique identifier of the organization | Required |
| field_id | Unique identifier of the field | Required |
| value | Value of the field | Optional |
{
"_id": "521f26eccce8b4310e000075",
"name": "Updated Foo Organization",
"email": "[email protected]",
"phone": "5553336666",
"website": "http://www.foocorp.com",
"address": null,
"fields": [
{
"_id": "531ed3a49a21f6e90b00000e",
"name": "custom organization field",
"value": "Monthly"
}
]
}
|
||
|---|---|---|
| organization_id | Unique identifier of the organization | Required |
{}