# List role offers

Returns the account's role offers. Pass a page parameter to receive a paginated
envelope; without one, every matching role offer is returned as a flat array.
Set demand_available=1 to return only role offers that still have unfilled
demand, which is the usual way to build a list of roles someone can apply for.
This endpoint does not require authentication, but an anonymous caller only
receives results on an account that has public browsing switched on.

Endpoint: GET /api/v2/headcount/roleoffer
Version: 2.0.0
Security: default

## Query parameters:

  - `demand_available` (boolean)
    Return only role offers with unfilled demand.

  - `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.

  - `with` (array)
    A list of relations to include in the response. May be single records or collections.
It is often more efficient to retrieve this way, to avoid follow-up API calls.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Response 200 fields (application/json):

  - `current_page` (integer)

  - `data` (array)

  - `data.object` (object)

  - `data.object.id` (integer)

  - `data.object.headcount_functional_area_job_title_id` (integer)

  - `data.object.headcount_location_venue_id` (integer)

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

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

  - `data.object.user_type_id` (integer)

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

  - `data.object.static_demand` (integer)

  - `data.object.reserve_demand` (integer)

  - `data.object.waitlist_demand` (integer)

  - `data.object.confidence_level` (integer)

  - `data.object.calculate_demand` (integer)

  - `data.object.refund_on_application_withdraw` (integer)

  - `data.object.refund_on_role_offer_complete` (integer)

  - `data.object.user_per_shift` (integer)

  - `data.object.peak_shift` (integer)

  - `data.object.min_demand` (integer)

  - `data.object.number_of_shifts_per_day` (integer)

  - `data.object.min_number_shift_users` (integer)

  - `data.object.max_number_shift_users` (integer)

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

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

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

  - `data.object.secondary_assignment_demand` (integer)

  - `data.object.rules` (array)

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

  - `data.object.expires_in` (integer)

  - `data.object.preassign_enabled` (integer)

  - `data.object.sort_order` (integer)

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

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

  - `data.object.training_ids` (array)

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

  - `data.object.publish` (integer)

  - `data.object.promoted` (integer)

  - `data.object.is_archived` (integer)

  - `data.object.is_refund_allowed` (integer)

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

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

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

  - `data.object.public` (integer)

  - `data.object.approval_status` (string)

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

  - `data.object.visibility_show_groups` (array)

  - `data.object.visibility_hide_groups` (array)

  - `data.object.can_self_apply` (integer)

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

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

  - `data.object.allows_application_withdrawals` (integer)

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

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

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

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

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

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

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

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

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

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

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

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

  - `data.object.is_erased` (integer)

  - `data.object.strict_applications_enabled` (integer)

  - `data.object.waitlist_auto_invitation_enabled` (integer)

  - `data.object.created_at` (string)

  - `data.object.updated_at` (string)

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

  - `data.object.description` (string)

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

  - `data.nice` (object)

  - `data.nice.rrn` (string)

  - `data.nice.accept_form_id` (string | null)

  - `data.nice.accept_form_id:value` (string | null)

  - `data.nice.accept_form_id:array` (string | null)

  - `data.nice.allows_application_withdrawals` (string)

  - `data.nice.application_form_id` (string | null)

  - `data.nice.application_form_id:value` (string | null)

  - `data.nice.application_form_id:array` (string | null)

  - `data.nice.applied_status_default` (string | null)

  - `data.nice.applied_status_default:value` (string | null)

  - `data.nice.applied_status_default:array` (string | null)

  - `data.nice.approval_status` (string)

  - `data.nice.approval_status:value` (string)

  - `data.nice.approval_status:array` (string)

  - `data.nice.banner_image` (string)

  - `data.nice.calculate_demand` (string)

  - `data.nice.can_self_apply` (string)

  - `data.nice.created_at` (string)

  - `data.nice.created_at__date` (string)

  - `data.nice.created_at__time` (string)

  - `data.nice.created_at__offset` (string)

  - `data.nice.created_at__offset_minutes` (integer)

  - `data.nice.created_at__dayofweek` (string)

  - `data.nice.feedback_form_id` (string | null)

  - `data.nice.feedback_form_id:value` (string | null)

  - `data.nice.feedback_form_id:array` (string | null)

  - `data.nice.grid_image` (string)

  - `data.nice.headcount_functional_area_job_title_id` (string)

  - `data.nice.headcount_functional_area_job_title_id:value` (integer)

  - `data.nice.headcount_functional_area_job_title_id:array` (string)

  - `data.nice.headcount_location_venue_id` (string)

  - `data.nice.headcount_location_venue_id:value` (integer)

  - `data.nice.headcount_location_venue_id:array` (string)

  - `data.nice.is_refund_allowed` (string)

  - `data.nice.journey_complete_status_default` (string | null)

  - `data.nice.journey_complete_status_default:value` (string | null)

  - `data.nice.journey_complete_status_default:array` (string | null)

  - `data.nice.journey_id` (string | null)

  - `data.nice.journey_id:value` (string | null)

  - `data.nice.journey_id:array` (string | null)

  - `data.nice.minimum_age` (string)

  - `data.nice.preassign_enabled` (string)

  - `data.nice.promoted` (string)

  - `data.nice.public` (string)

  - `data.nice.publish` (string)

  - `data.nice.reject_form_id` (string | null)

  - `data.nice.reject_form_id:value` (string | null)

  - `data.nice.reject_form_id:array` (string | null)

  - `data.nice.tags` (string | null)

  - `data.nice.tags:value` (string | null)

  - `data.nice.tags:array` (string | null)

  - `data.nice.training_ids` (string)

  - `data.nice.training_ids:value` (string)

  - `data.nice.training_ids:array` (array)

  - `data.nice.updated_at` (string)

  - `data.nice.updated_at__date` (string)

  - `data.nice.updated_at__time` (string)

  - `data.nice.updated_at__offset` (string)

  - `data.nice.updated_at__offset_minutes` (integer)

  - `data.nice.updated_at__dayofweek` (string)

  - `data.nice.user_type_id` (string)

  - `data.nice.user_type_id:value` (integer)

  - `data.nice.user_type_id:array` (string)

  - `data.nice.visibility_hide_groups` (string)

  - `data.nice.visibility_show_groups` (string)

  - `data.nice.withdraw_form_id` (string | null)

  - `data.nice.withdraw_form_id:value` (string | null)

  - `data.nice.withdraw_form_id:array` (string | null)

  - `data.nice.withdrawn_status_default` (string | null)

  - `data.nice.withdrawn_status_default:value` (string | null)

  - `data.nice.withdrawn_status_default:array` (string | null)

  - `data.nice.account_id` (integer)

  - `data.nice.account_url` (string)

  - `data.nice.confidence_level` (string)

  - `data.relations` (array)

  - `data.permissions` (object)

  - `data.permissions.read` (boolean)

  - `data.permissions.update` (boolean)

  - `data.permissions.delete` (boolean)

  - `data.permissions.accept` (boolean)

  - `data.permissions.reject` (boolean)

  - `data.permissions.withdraw` (boolean)

  - `data.permissions.apply` (boolean)

  - `data.permissions.apply_error` (string)

  - `data.permissions.apply_error_code` (integer)

  - `data.permissions.update_application_form` (boolean)

  - `first_page_url` (string)

  - `from` (integer)

  - `next_page_url` (string)

  - `path` (string)

  - `per_page` (integer)

  - `prev_page_url` (string | null)

  - `to` (integer)

