ProspectsCreate or change a view

Create or change a view

Needs: Prospects, Read-write

Creates a saved prospect view shared across the organisation. Send an id in the body to change an existing view instead; only the parts you send change. A name that is already in use is refused.

Note: When you change a view with its id, the response has updated in place of created.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/prospect-views" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Hot leads",
  "mode": "kanban",
  "group_by": "stage",
  "filters": [
    {
      "field": "prospect_funding_type",
      "operator": "is",
      "value": "NDIS"
    }
  ]
}'
{
  "created": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "name": "Hot leads"
}
POST
/prospect-views
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
idstring

An existing view id. Leave out to create a view.

namestring

The view name (up to 80 characters).

iconstring

One emoji. Empty for the default icon.

modestring

all (table) or kanban.

group_bystring

Kanban columns: stage, consultant, fundingType or source.

filtersarray

Replaces the filters. Each needs field and operator, plus value and an optional combinator (and or or). Fields: prospect_name, prospect_email, prospect_phone, prospect_suburb, prospect_stage, prospect_source, prospect_consultant, prospect_funding_type, prospect_date_of_lead, or custom:prospect: plus an attribute key. Operators: contains, does_not_contain, starts_with, ends_with, is, is_not, empty or not_empty.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Body

application/json
idstring

An existing view id. Leave out to create a view.

namestring

The view name (up to 80 characters).

iconstring

One emoji. Empty for the default icon.

modestring

all (table) or kanban.

group_bystring

Kanban columns: stage, consultant, fundingType or source.

filtersarray

Replaces the filters. Each needs field and operator, plus value and an optional combinator (and or or). Fields: prospect_name, prospect_email, prospect_phone, prospect_suburb, prospect_stage, prospect_source, prospect_consultant, prospect_funding_type, prospect_date_of_lead, or custom:prospect: plus an attribute key. Operators: contains, does_not_contain, starts_with, ends_with, is, is_not, empty or not_empty.

Responses