Back to PipelinerSalesRoles.list
Returns all defined SalesRoles
Input
type: object
properties:
parameters:
type: object
properties:
include-deleted:
type: boolean
description: if enabled, deleted SalesRoles are returned as well
first:
type: integer
format: int32
description: >-
Number of entities to return from beginning of the result set. Max:
100. Default: 30
last:
type: integer
format: int32
description: >-
Return only the "last" number of entities from result set. When used
with first parameter, then it returns last M records from the first N
records.
before:
type: string
description: Cursor until which to take entities to result set.
after:
type: string
description: Cursor after which to start taking entities to result set.
expand:
type: string
description: >-
Expand related entity. Use api_names of relation fields. You can use
multiple values separated via ',' colon. If not used, URI link will be
returned instead. You can use dots '.' to expand nested entities as
well.
order-by:
type: string
description: >-
Order by values. Use api_name of field to sort by ascending. Prefix
api_name with '-' to descending sort. You can use multiple values
separated via ',' colon.
filter:
type: object
description: >-
Use name of field in braces to filter by this field. To advanced
filter, use with combination with filter-op parameter.
filter-op:
type: object
description: >-
Filter operator. Specify a way how to filter fields. Supported
operators: [eq, ieq, not-eq, not-ieq, contains, starts, ends,
icontains, istarts, iends, null, not-null, empty, not-empty, gt, gte,
lt, lte, between].
load-only:
type: string
description: >-
Loads only fields defined within this parameter. You can use multiple
values separated via ',' colon. If not used, then all fields are
returned. You can use dots '.' to specify load only fields in nested
as well.
title: Parameters
Output
type: object
properties:
success:
type: boolean
example: true
description: True when response succeeded, false on error.
data:
type: array
items:
required:
- is_delete_protected
- id
- color_code
- name
properties:
is_delete_protected:
type: boolean
example: false
description: >-
Tells if the entity instance is protected against delete (Entities
that need to be present in the system at any time). Delete action
still may fail if entity is deletable, due some other additional
validations.
readOnly: true
id:
type: string
format: uuid
example: 01234567-abcd-dcba-ffff-000000000000
description: Unique identifier of entity.
readOnly: true
is_deleted:
type: boolean
example: false
description: Specifies if the entity is considered deleted.
readOnly: true
modified:
type: string
format: date-time
example: '2019-01-01T00:00:00.000Z'
description: Last modification time.
readOnly: true
created:
type: string
format: date-time
example: '2019-01-01T00:00:00.000Z'
description: Creation time.
readOnly: true
color_code:
type: integer
format: int32
example: 1
description: >-
Generic field wrapping sqlalchemy column, configurable by
constructor.
Good for one-of fields / generated fields.
name:
type: string
example: string
description: Name of the entity and its default text representation.
revision:
type: integer
format: int32
example: 1
description: Revision when entity was lastly changed.
type: object
page_info:
type: object
description: >-
Page info result set. Please note it is returned only when legacy limit &
offset parameters are not used.
properties:
start_cursor:
type: string
example: WyIwMSIsICJiMmYwODI0Ni1iYWE5LTQyY2QtYmM3Yi04YmM4MjY3M2E2NTgiXQ==
description: Start cursor of result set.
end_cursor:
type: string
example: WyIwNSIsICJmMjZhZjZiMC00ZWE4LTQ3MDgtODU2NC0wN2JmYzI4ZGQ5ZTgiXQ==
description: End cursor of result set.
has_previous_page:
type: boolean
example: true
description: >-
If result set has previous page (if yes, use start_cursor value in
before parameter to load it).
has_next_page:
type: boolean
example: true
description: >-
If result set has next page (if yes, use end_cursor value in after
parameter to load it).