{
  "openapi": "3.1.1",
  "info": {
    "title": "API Scoreplan legada (deprecated)",
    "description": "API por apikey, deprecated: não use em integração nova. A apikey vai na rota. O substituto de cada endpoint está na descrição dele e em https://developers.scoreplan.com.br/openapi.json.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-prod.scoreplan.com.br"
    }
  ],
  "paths": {
    "/api/{apikey}/Actions/List": {
      "get": {
        "tags": [
          "Ações"
        ],
        "summary": "Lista acoes",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/Actions/External/List` na API External.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "usuario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "dtFim",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "indCodigo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginationResponseDtoOfAPIAcao"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/Actions/ChangeProgress": {
      "post": {
        "tags": [
          "Ações"
        ],
        "summary": "Alterar andamento de acao",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/Actions/External/InsertChangeProgress` na API External.",
        "parameters": [
          {
            "name": "acaoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "percConclusao",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "data",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "descricao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "usuario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cnpj",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valorRealizadoDespesa",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorRealizadoReceita",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/Actions/InsertMonthlyData": {
      "post": {
        "tags": [
          "Ações"
        ],
        "summary": "Inserir Valor Mensal",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/Actions/External/UpdateValues` na API External.",
        "parameters": [
          {
            "name": "inb001Id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "data",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "usuario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cnpj",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valorRealizado",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorRealizadoReceita",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/Actions/ChangeValues": {
      "post": {
        "tags": [
          "Ações"
        ],
        "summary": "Altera os valores da ação no mês",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/Actions/External/UpdateValues` na API External.",
        "parameters": [
          {
            "name": "acaoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "data",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "usuario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cnpj",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valorPrevistoReceita",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorRealizadoReceita",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorPrevistoDespesa",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorRealizadoDespesa",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "valorLiberado",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/Indicators/List": {
      "get": {
        "tags": [
          "Indicadores"
        ],
        "summary": "Lista indicadores",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/Indicators/External/List` na API External.",
        "parameters": [
          {
            "name": "usuario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/APIIndicador"
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/IndicatorsValues/Insert": {
      "post": {
        "tags": [
          "Valores de indicadores"
        ],
        "summary": "Insere valores indicadores",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/IndicatorsValues/External/Insert` na API External.",
        "parameters": [
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertValuesApiBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/PeriodTypes/ListPeriods": {
      "get": {
        "tags": [
          "Tipos de período"
        ],
        "summary": "Lista os períodos de um tipo de período",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/PeriodTypes/External/ListPeriods` na API External.",
        "parameters": [
          {
            "name": "tipoPeriodo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dataInicial",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dataFinal",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnListPeriods"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/{apikey}/PeriodTypes/InsertPeriods": {
      "get": {
        "tags": [
          "Tipos de período"
        ],
        "summary": "Insere periodos",
        "description": "**Deprecated.** API legada por apikey: não use em integração nova.\n\nSubstituto: `/PeriodTypes/External/InsertPeriods` na API External.",
        "parameters": [
          {
            "name": "apikey",
            "in": "path",
            "description": "Chave de acesso da API legada. Trate como senha.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/APIPeriodo"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    }
  },
  "components": {
    "schemas": {
      "APIAcao": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "codigo": {
            "type": "integer",
            "format": "int64"
          },
          "titulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataInicio": {
            "type": "string",
            "format": "date-time"
          },
          "dataFim": {
            "type": "string",
            "format": "date-time"
          },
          "onde": {
            "type": [
              "null",
              "string"
            ]
          },
          "como": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "integer",
            "format": "int32"
          },
          "dataConclusao": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "percConclusao": {
            "type": "integer",
            "format": "int32"
          },
          "valorPrevistoDespesa": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorRealizadoDespesa": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorPrevistoReceita": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorRealizadoReceita": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorLiberado": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "urgencia": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "importancia": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "autoridadeId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "responsavelId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "nomeAutoridade": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeResponsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "notificaAutoridade": {
            "type": [
              "null",
              "string"
            ]
          },
          "notificaResponsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "iniciativaMapaIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "iniciativaOKRIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "fcaIndicadorIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "fcaOcorrenciaIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "informaValores": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "setorId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "descricaoSetor": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "detalheOrigem": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "todasOrigens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "empresa": {
            "type": "integer",
            "format": "int64"
          },
          "valoresMensais": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIValorMensal"
            }
          },
          "idc": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idp": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "classificacoes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "APICamposIndicador": {
        "type": "object",
        "properties": {
          "codCampo": {
            "type": [
              "null",
              "string"
            ]
          },
          "mostraGrafico": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoGrafico": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "acumular": {
            "type": [
              "null",
              "string"
            ]
          },
          "tpGrafAcum": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "tipoAcum": {
            "type": [
              "null",
              "string"
            ]
          },
          "meta": {
            "type": [
              "null",
              "string"
            ]
          },
          "compararMeta": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorMetaPadrao": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "ordem": {
            "type": "integer",
            "format": "int32"
          },
          "valores": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIValorIndicador"
            }
          },
          "valoresAcumulados": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIValorIndicadorAcumulado"
            }
          },
          "eixoYGrafico": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "mostrarValor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "APIFaixaMetrica": {
        "type": "object",
        "properties": {
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorInicial": {
            "type": "number",
            "format": "double"
          },
          "valorFinal": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "APIIndicador": {
        "type": "object",
        "properties": {
          "cnpjEmpresa": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "qntdPeriodosAnteriores": {
            "type": "integer",
            "format": "int32"
          },
          "formaAvaliacao": {
            "type": "integer",
            "format": "int32"
          },
          "setor": {
            "type": [
              "null",
              "string"
            ]
          },
          "classificacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeUsuario": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricaoUnidadeMedida": {
            "type": [
              "null",
              "string"
            ]
          },
          "nivel": {
            "type": [
              "null",
              "string"
            ]
          },
          "fonteDados": {
            "type": [
              "null",
              "string"
            ]
          },
          "metodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "objetivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoPeriodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "validadeInicial": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "campos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APICamposIndicador"
            }
          },
          "metricas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIMetrica"
            }
          }
        }
      },
      "APIMetrica": {
        "type": "object",
        "properties": {
          "dtInicial": {
            "type": "string",
            "format": "date-time"
          },
          "dtFinal": {
            "type": "string",
            "format": "date-time"
          },
          "faixas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIFaixaMetrica"
            }
          }
        }
      },
      "APIPeriodo": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "descCompleta": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataIni": {
            "type": "string",
            "format": "date-time"
          },
          "dataFin": {
            "type": "string",
            "format": "date-time"
          },
          "tipoPeriodo": {
            "$ref": "#/components/schemas/APITipoPeriodo"
          }
        }
      },
      "APITipoPeriodo": {
        "type": "object",
        "properties": {
          "empresa": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "APIValorIndicador": {
        "type": "object",
        "properties": {
          "codCampo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoPeriodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "type": "number",
            "format": "double"
          },
          "comentario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "APIValorIndicadorAcumulado": {
        "type": "object",
        "properties": {
          "ano": {
            "type": "integer",
            "format": "int32"
          },
          "valor": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "APIValorMensal": {
        "type": "object",
        "properties": {
          "ano": {
            "type": "integer",
            "format": "int64"
          },
          "mes": {
            "type": "integer",
            "format": "int64"
          },
          "valorPrevistoDespesa": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorRealizadoDespesa": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorPrevistoReceita": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorRealizadoReceita": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "valorLiberado": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        }
      },
      "APIValorPeriodo": {
        "type": "object",
        "properties": {
          "campo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoPeriodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "excecao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InsertValuesApiBody": {
        "type": "object",
        "properties": {
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "valores": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIValorPeriodo"
            }
          }
        }
      },
      "PaginationResponseDtoOfAPIAcao": {
        "required": [
          "totalRecords",
          "listRecords"
        ],
        "type": "object",
        "properties": {
          "totalRecords": {
            "type": "integer",
            "format": "int64"
          },
          "listRecords": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIAcao"
            }
          }
        }
      },
      "ReturnListPeriods": {
        "type": "object",
        "properties": {
          "List": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/APIPeriodo"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Ações"
    },
    {
      "name": "Indicadores"
    },
    {
      "name": "Valores de indicadores"
    },
    {
      "name": "Tipos de período"
    }
  ]
}