# Cadastro de Operações

operacao

## GET /operacao

> Obter listagem de operações externas

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Cadastro de Operações","description":"operacao"}],"servers":[{"url":"https://localhost/ppcppadrao/v10"},{"url":"http://localhost/ppcppadrao/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ListaOperacao":{"type":"object","properties":{"continuationToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Operacao"}}}},"Operacao":{"type":"object","properties":{"codOperacao":{"type":"integer","description":"Código da operação"},"abreviatura":{"type":"string","description":"Abreviatura da operação"},"descricao":{"type":"string","description":"Descrição da operação"},"tipo":{"type":"integer","description":"Tipo da operação (1-Interno, 2-Externo)","enum":[1,2]},"situacao":{"type":"integer","description":"Situacao (0-Inativo, 1-Ativo)","enum":[0,1]},"faseProducao":{"type":"integer","description":"Código da fase de produção da operação"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/operacao":{"get":{"tags":["Cadastro de Operações"],"summary":"Obter listagem de operações externas","operationId":"ObterListaOperacao","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa no ERP Consistem","required":true,"schema":{"type":"integer"}},{"name":"situacao","in":"query","description":"0 - Inativo, 1 - Ativo ou Nulo para Todos","schema":{"type":"string"}},{"name":"continuationToken","in":"query","description":"Identificador da paginação da consulta","schema":{"type":"string"}},{"name":"paginacao","in":"query","description":"Quantidade de itens na paginação de retorno (default 20)","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaOperacao"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```

## GET /operacao/{id}

> Obter listagem de operações

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Cadastro de Operações","description":"operacao"}],"servers":[{"url":"https://localhost/ppcppadrao/v10"},{"url":"http://localhost/ppcppadrao/v10"}],"security":[{"csw_auth":[]}],"components":{"securitySchemes":{"csw_auth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"Operacao":{"type":"object","properties":{"codOperacao":{"type":"integer","description":"Código da operação"},"abreviatura":{"type":"string","description":"Abreviatura da operação"},"descricao":{"type":"string","description":"Descrição da operação"},"tipo":{"type":"integer","description":"Tipo da operação (1-Interno, 2-Externo)","enum":[1,2]},"situacao":{"type":"integer","description":"Situacao (0-Inativo, 1-Ativo)","enum":[0,1]},"faseProducao":{"type":"integer","description":"Código da fase de produção da operação"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/operacao/{id}":{"get":{"tags":["Cadastro de Operações"],"summary":"Obter listagem de operações","operationId":"ObterOperacao","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa no ERP Consistem","required":true,"schema":{"type":"integer"}},{"name":"id","in":"path","description":"Código da Operação","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operacao"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Erro"}}}}},"429":{"description":"Too Many Requests","content":{}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erro"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ajuda.consistem.com.br/consistem-api/consistem-erp-api/industrial/ppcp-padrao-v1.0/cadastro-de-operacoes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
