# Create break rule set

Create a new break rule set

Endpoint: POST /settings/break-rule-sets
Version: 1.28.1
Security: clientCredentials

## Security:

  - `clientCredentials` (unknown)
    oauth2

## Request fields (application/json):

  - `name` (string, required)
    The name of the break rule set
    Example: Legal breaks for Belgium

  - `break_rule_groups` (array, required)
    List of all break rule groups within a set

  - `break_rule_groups.name` (string, required)
    The name of the break rule group
    Example: Heavy trucks

  - `break_rule_groups.break_rules` (array, required)
    List of break rules

  - `break_rule_groups.break_rules.type` (string, required)
    Enum: "MAX_WORK_TIME_BETWEEN_BREAKS", "MAX_DRIVE_TIME_BETWEEN_BREAKS"

  - `break_rule_groups.break_rules.max_work_time_between_breaks` (string, required)
    Maximum work time between breaks in ISO-8601 duration format. Must be non-negative and not exceed 7 days.
    Example: PT4H30M

  - `break_rule_groups.break_rules.break_duration` (string, required)
    Duration of the break in ISO-8601 duration format. Must be non-negative and not exceed 7 days.
    Example: PT45M

  - `break_rule_groups.break_rules.max_drive_time_between_breaks` (string, required)
    Maximum drive time between breaks in ISO-8601 duration format. Must be non-negative and not exceed 7 days.
    Example: PT4H30M

## Response 201:

  - `201` (unknown)
    break rule set created successfully

## Response 201 headers:

  - `ETag` (string)
    A weak Etag (ex `W/"<etag_value>"`) which contains the current version of the entity
    Example: W/"25"

  - `Location` (string)
    Location of the created resource

## Response 400:

  - `400` (unknown)
    Bad request

## Response 400 fields (application/problem+json):

  - `type` (string, required)
    An absolute URI that identifies the problem type.  When dereferenced,
it SHOULD provide human-readable documentation for the problem type
(e.g., using HTML).
    Example: https://developer.conundra.eu/developer-portal/problem/#constraint-violation

  - `title` (string, required)
    A short, summary of the problem type. Written in english and readable
for engineers (usually not suited for non technical stakeholders and
not localized)
    Example: Bad Request

  - `status` (integer, required)
    The HTTP status code generated by the origin server for this occurrence
of the problem.
    Example: 400

  - `detail` (string, required)
    A human readable explanation specific to this occurrence of the
problem.
    Example: Bad request. See violations for more details.

  - `violations` (array)

  - `violations.field` (string)
    A reference to the field in the request that triggered this violation.
    Example: limit

  - `violations.message` (string, required)
    A message explaining the violation in the referenced field.
    Example: Limit must be strictly positive.

## Response 401:

  - `401` (unknown)
    Authentication required

