openapi: 3.0.3
info:
  title: TIIX Cron API
  version: 1.0.0
  description: Operacoes principais do cron dinamico usadas pelo admin tecnico.
  license:
    name: Uso interno
    url: https://dash.tiix.com.br/adm/api-docs
servers:
  - url: /adm/api
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: wordpress_logged_in
security:
  - cookieAuth: []
paths:
  /Cron/run:
    post:
      operationId: Cron.run
      summary: Executa tarefas do cron para o escopo informado
      parameters:
        - in: query
          name: scope
          schema:
            type: string
            enum:
              - daily
              - now
        - in: query
          name: id_contrato
          schema:
            type: integer
      responses:
        '200':
          description: OK
        '400':
          description: Requisicao invalida