text: # SPDX-License-Identifier: CC-BY-SA-2.0
  # SPDX-FileCopyrightText: 2013-2020 Normation SAS
  post:
    summary: Trigger update of policies
    description: Update configuration policies if needed
    operationId: updatePolicies
    responses:
      "200":
        description: Success
        content:
          application/json:
            schema:
              type: object
              required:
                - result
                - action
                - data
              properties:
                result:
                  type: string
                  description: Result of the request
                  enum:
                    - success
                    - error
                action:
                  type: string
                  description: The id of the action
                  enum:
                    - updatePolicies
                data:
                  type: object
                  required:
                    - policies
                  properties:
                    policies:
                      type: string
                      enum:
                        - Started
    tags:
      - System
    x-code-samples:
      - lang: curl
        source:
          $ref: ../../code_samples/curl/system/update-policies.sh
  