# List training modules

Returns a paginated list of the training modules the current account can
use. That is the account's own modules, plus modules owned by an account
above it in the hierarchy that are marked is_inheritable. On each item,
nice.is_foreign_account says whether the module belongs to another account
and nice.acts_as_native whether an inherited one behaves as if it were the
current account's own.

Endpoint: GET /api/v2/training
Version: 2.0.0
Security: default

## Query parameters:

  - `per_page` (integer)
    The number of results to return per page. The higher the number the longer the request may take.
It is highly recommended to use this to avoid timeouts as your data grows.
Used in conjunction with the `page` parameter to paginate results.

  - `page` (integer)
    The page of results to return. Used in conjunction with the `per_page` parameter to paginate
results. If not specified, defaults to 1.
The response's next_page_url will be null if there are no
more pages.

  - `filter` (array)
    A filter to apply to the results. Declared as an array of objects, where each object
contains an attr (attribute code), operator and value key. Examples:

?filter[0]['attr']=name&filter[0][operator]=like&filter[0][value]=luke 

?filter[0]['attr']=id&filter[0][operator]=>&filter[0][value]=265 

See the filters documentation for more details on how to use this.

  - `sort_by` (string)
    The field to sort the results by. No ordering is applied unless you specify one, so
row order is not guaranteed. Always send it when paging through a list, otherwise
records can repeat or be missed between pages.
Example: id

  - `sort_order` (string)
    The direction to sort the results by. Can be 'asc' or 'desc', default is 'asc'.

  - `_locale` (string)
    The locale to use for the response. This primarily affects the results of the `nice` field, which
contain human-readable labels and terms, as well as locale-specific date formats.,

  - `extras` (array)
    A list of extras to include in the response. These are objects or arrays that are not part of
the model's primary attributes, such as stats and counts.
For fast responses, avoid requesting them if you don't need them.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Response 200 fields (application/json):

  - `current_page` (integer)

  - `data` (array)

  - `data.object` (object)

  - `data.object.id` (integer)

  - `data.object.name` (string)

  - `data.object.short_description` (string | null)

  - `data.object.thumbnail_url` (string | null)

  - `data.object.account_id` (integer)

  - `data.object.deleted_at` (string | null)

  - `data.object.created_at` (string)

  - `data.object.updated_at` (string)

  - `data.object.success_message` (string)

  - `data.object.is_archived` (integer)

  - `data.object.is_elective` (integer)

  - `data.object.estimated_complete_time` (integer)

  - `data.object.ttl` (integer)

  - `data.object.pass_score` (integer)

  - `data.object.is_library` (integer)

  - `data.object.publish` (integer)

  - `data.object.service` (string)

  - `data.object.external_id` (string | null)

  - `data.object.meta` (array)

  - `data.object.token` (string)

  - `data.object.sort_order` (integer)

  - `data.object.certificate_id` (string | null)

  - `data.object.form_id` (string | null)

  - `data.object.type_id` (string | null)

  - `data.object.is_inheritable` (integer)

  - `data.nice` (object)

  - `data.nice.publish` (string)

  - `data.nice.account_id` (integer)

  - `data.nice.account_url` (string)

  - `data.nice.external` (boolean)

  - `data.nice.has_certificate` (boolean)

  - `data.nice.account_name_path` (string)

  - `data.nice.is_foreign_account` (boolean)

  - `data.nice.acts_as_native` (boolean)

  - `data.nice.number_of_steps` (integer)

  - `data.nice.number_of_questions` (integer)

  - `data.relations` (object)

  - `data.relations.account` (object)

  - `data.relations.account.object` (object)

  - `data.relations.account.object.id` (integer)

  - `data.relations.account.object.parent_id` (integer)

  - `data.relations.account.object.account_type_id` (integer)

  - `data.relations.account.object.path` (string)

  - `data.relations.account.object.name` (string)

  - `data.relations.account.object.config` (object)

  - `data.relations.account.object.config.active_settings` (array)

  - `data.relations.account.object.meta` (array)

  - `data.relations.account.object.visibility_rules` (array)

  - `data.relations.account.object.status` (string)

  - `data.relations.account.object.status_reason` (string | null)

  - `data.relations.account.object.sort_order` (integer)

  - `data.relations.account.object.start_timestamp` (string | null)

  - `data.relations.account.object.end_timestamp` (string | null)

  - `data.relations.account.object.notes` (string | null)

  - `data.relations.account.object.contact_firstname` (string | null)

  - `data.relations.account.object.contact_lastname` (string | null)

  - `data.relations.account.object.contact_email` (string | null)

  - `data.relations.account.object.contact_phone` (string | null)

  - `data.relations.account.object.support_manager_email` (string)

  - `data.relations.account.object.allow_deletion_request` (integer)

  - `data.relations.account.object.organization_type` (string | null)

  - `data.relations.account.object.contract_start_date` (string)

  - `data.relations.account.object.contract_end_date` (string)

  - `data.relations.account.object.billing_contact_email` (string)

  - `data.relations.account.object.billing_support_email` (string)

  - `data.relations.account.object.is_enabled` (integer)

  - `data.relations.account.object.additional_billing_support_email` (string)

  - `data.relations.account.object.delete_requested_at` (string | null)

  - `data.relations.account.object.is_archived` (integer)

  - `data.relations.account.object.trial_ends_at` (string | null)

  - `data.relations.account.object.can_erase` (integer)

  - `data.relations.account.object.deleted_at` (string | null)

  - `data.relations.account.object.is_erased` (integer)

  - `data.relations.account.object.created_at` (string)

  - `data.relations.account.object.updated_at` (string)

  - `data.relations.account.nice` (object)

  - `data.relations.account.nice.rrn` (string)

  - `data.relations.account.nice.address` (string)

  - `data.relations.account.nice.address_oneline` (string)

  - `data.relations.account.nice.account_type_id` (string)

  - `data.relations.account.nice.account_type_id:value` (integer)

  - `data.relations.account.nice.account_type_id:array` (string)

  - `data.relations.account.nice.allow_deletion_request` (string)

  - `data.relations.account.nice.contact_firstname` (string)

  - `data.relations.account.nice.contact_lastname` (string)

  - `data.relations.account.nice.contact_phone:qr_code_value` (string)

  - `data.relations.account.nice.contact_phone` (string)

  - `data.relations.account.nice.contact_phone:raw` (string)

  - `data.relations.account.nice.contract_end_date` (string)

  - `data.relations.account.nice.contract_end_date__dayofweek` (string)

  - `data.relations.account.nice.contract_start_date` (string)

  - `data.relations.account.nice.contract_start_date__dayofweek` (string)

  - `data.relations.account.nice.name` (string)

  - `data.relations.account.nice.notes` (string)

  - `data.relations.account.nice.organization_type` (string | null)

  - `data.relations.account.nice.organization_type:value` (string | null)

  - `data.relations.account.nice.organization_type:array` (string | null)

  - `data.relations.account.nice.status` (string)

  - `data.relations.account.nice.status:value` (string)

  - `data.relations.account.nice.status:array` (string)

  - `data.relations.account.nice.status_reason` (string)

  - `data.relations.account.nice.created_at` (string)

  - `data.relations.account.nice.url` (string)

  - `data.relations.account.nice.branding_name` (string)

  - `data.relations.account.nice.branding_subtitle` (string | null)

  - `data.relations.account.nice.branding_logo` (string | null)

  - `data.relations.account.nice.branding_logo_mono` (string | null)

  - `data.relations.account.nice.branding_logo_stacked` (string | null)

  - `data.relations.account.nice.branding_banner` (string | null)

  - `data.relations.account.nice.branding_description` (string | null)

  - `data.relations.account.nice.branding_primary_color` (string)

  - `data.relations.account.nice.branding_complimentary_color` (string | null)

  - `data.relations.account.nice.branding_secondary_color` (string)

  - `data.relations.account.nice.register` (boolean)

  - `data.relations.account.nice.organisation_contact` (string)

  - `data.relations.account.nice.has_subaccount_approved_email_template` (boolean)

  - `data.relations.account.nice.has_subaccount_rejected_email_template` (boolean)

  - `data.relations.account.nice.parent_account_name` (string)

  - `data.relations.account.permissions` (object)

  - `data.relations.account.permissions.read` (boolean)

  - `data.relations.account.permissions.update` (boolean)

  - `data.relations.account.permissions.delete` (boolean)

  - `data.relations.certificate` (string | null)

  - `data.permissions` (object)

  - `data.permissions.read` (boolean)

  - `data.permissions.update` (boolean)

  - `data.permissions.delete` (boolean)

  - `first_page_url` (string)

  - `from` (integer)

  - `next_page_url` (string)

  - `path` (string)

  - `per_page` (integer)

  - `prev_page_url` (string | null)

  - `to` (integer)

