> For the complete documentation index, see [llms.txt](https://ajuda.consistem.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.consistem.com.br/consistem-api/consistem-erp-api/industrial/ppcp-padrao-v1.0/processos-de-ordem-de-fabricacao.md).

# Processos De Ordem De Fabricação

processosOrdemFabricacao

## GET /processosOF/{codOF}

> Obter Manutenção de Processos da OF ("Listar")

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Processos de Ordem de Fabricação","description":"processosOrdemFabricacao"}],"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":{"ManutencaoProcessosOF":{"required":["faseProducao","numOperadores","operacao","sequencia","tempoPadrao","tempoPreparacao"],"type":"object","properties":{"engenharia":{"type":"string"},"sequencia":{"maximum":999,"type":"integer","description":"Código da Sequência da OF"},"operacao":{"type":"integer","description":"Numeração da operação da OF"},"tipoOperacao":{"maxLength":10,"type":"string","description":"Tipo da Operação da OF"},"maquina":{"minimum":0,"type":"number","description":"Endereço da Máquina"},"faseProducao":{"maximum":9999,"type":"integer","description":"Numeração da Fase de Produção"},"numOperadores":{"multipleOf":0.001,"type":"number","description":"Quantidade de Operadores"},"tempoPreparacao":{"multipleOf":0.001,"type":"number","description":"Tempo de Preparação do Processo da OF"},"tempoPadrao":{"multipleOf":0.0001,"type":"number","description":"Tempo Padrão do Processo da OF"},"ferramentas":{"type":"string","description":"Ferramentas dos Processos da OF"},"centroCustos":{"maxLength":20,"type":"string","description":"Centro de Custo dos Processos da OF"},"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":{"/processosOF/{codOF}":{"get":{"tags":["Processos de Ordem de Fabricação"],"summary":"Obter Manutenção de Processos da OF (\"Listar\")","operationId":"ObterProcessoOF","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}},{"name":"codOF","in":"path","description":"Código da OF","required":true,"schema":{"type":"integer"}},{"name":"continuationToken","in":"query","description":"Identificador da Paginação de Consulta","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManutencaoProcessosOF"}}}},"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"}}}}}}}}}
```

## POST /processosOF/{codOF}

> Alterar Manutenção de Processos da OF ("Manutenção")

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Processos de Ordem de Fabricação","description":"processosOrdemFabricacao"}],"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":{"Postarray":{"type":"object","properties":{"processos":{"type":"array","description":"Tabela Delete","items":{"$ref":"#/components/schemas/postProcessosOF"}}}},"postProcessosOF":{"type":"object","properties":{"sequencia":{"type":"string","description":"Código da Sequência da OF"},"operacao":{"type":"integer","description":"Numeração da operação da OF"},"maquina":{"minimum":0,"type":"number","description":"Endereço da Máquina"},"faseProducao":{"maximum":9999,"type":"integer","description":"Numeração da Fase de Produção"},"numOperadores":{"multipleOf":0.001,"type":"number","description":"Quantidade de Operadores"},"tempoPreparacao":{"multipleOf":0.0001,"type":"number","description":"Tempo de Preparação do Processo da OF"},"tempoPadrao":{"multipleOf":0.0001,"type":"number","description":"Tempo Padrão do Processo da OF"},"ferramentas":{"type":"string","description":"Ferramentas dos Processos da OF"},"centroCustos":{"maxLength":20,"type":"string","description":"Centro de Custo dos Processos da OF"},"dataInicio":{"type":"string","description":"Data de Início (YYYY-MM-DD)","format":"date"},"dataTermino":{"type":"string","description":"Data de Término (YYYY-MM-DD)","format":"date"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"ManutencaoProcessosOF":{"required":["faseProducao","numOperadores","operacao","sequencia","tempoPadrao","tempoPreparacao"],"type":"object","properties":{"engenharia":{"type":"string"},"sequencia":{"maximum":999,"type":"integer","description":"Código da Sequência da OF"},"operacao":{"type":"integer","description":"Numeração da operação da OF"},"tipoOperacao":{"maxLength":10,"type":"string","description":"Tipo da Operação da OF"},"maquina":{"minimum":0,"type":"number","description":"Endereço da Máquina"},"faseProducao":{"maximum":9999,"type":"integer","description":"Numeração da Fase de Produção"},"numOperadores":{"multipleOf":0.001,"type":"number","description":"Quantidade de Operadores"},"tempoPreparacao":{"multipleOf":0.001,"type":"number","description":"Tempo de Preparação do Processo da OF"},"tempoPadrao":{"multipleOf":0.0001,"type":"number","description":"Tempo Padrão do Processo da OF"},"ferramentas":{"type":"string","description":"Ferramentas dos Processos da OF"},"centroCustos":{"maxLength":20,"type":"string","description":"Centro de Custo dos Processos da OF"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/processosOF/{codOF}":{"post":{"tags":["Processos de Ordem de Fabricação"],"summary":"Alterar Manutenção de Processos da OF (\"Manutenção\")","operationId":"ManutProcessoOf","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}},{"name":"codOF","in":"path","description":"Código da OF","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Postarray"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManutencaoProcessosOF"}}}},"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"}}}}}}}}}
```

## PUT /processosOF/{codOF}

> Incluir Manutenção de Processos da OF ("Incluir")

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Processos de Ordem de Fabricação","description":"processosOrdemFabricacao"}],"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":{"Putarray":{"type":"object","properties":{"processos":{"type":"array","description":"Array Put","items":{"$ref":"#/components/schemas/putProcessosOF"}}}},"putProcessosOF":{"required":["centroCustos","faseProducao","maquina","numOperadores","operacao","tempoPadrao","tempoPreparacao"],"type":"object","properties":{"operacao":{"type":"integer","description":"Numeração da operação da OF"},"maquina":{"minimum":0,"type":"number","description":"Endereço da Máquina"},"faseProducao":{"maximum":9999,"type":"integer","description":"Numeração da Fase de Produção"},"numOperadores":{"multipleOf":0.001,"type":"number","description":"Quantidade de Operadores"},"tempoPreparacao":{"multipleOf":0.0001,"type":"number","description":"Tempo de Preparação do Processo da OF"},"tempoPadrao":{"multipleOf":0.0001,"type":"number","description":"Tempo Padrão do Processo da OF"},"ferramentas":{"type":"string","description":"Ferramentas dos Processos da OF"},"centroCustos":{"type":"string","description":"Centro de Custo dos Processos da OF"},"dataInicio":{"type":"string","description":"Data de Início (YYYY-MM-DD)","format":"date"},"dataTermino":{"type":"string","description":"Data de Término (YYYY-MM-DD)","format":"date"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"ManutencaoProcessosOF":{"required":["faseProducao","numOperadores","operacao","sequencia","tempoPadrao","tempoPreparacao"],"type":"object","properties":{"engenharia":{"type":"string"},"sequencia":{"maximum":999,"type":"integer","description":"Código da Sequência da OF"},"operacao":{"type":"integer","description":"Numeração da operação da OF"},"tipoOperacao":{"maxLength":10,"type":"string","description":"Tipo da Operação da OF"},"maquina":{"minimum":0,"type":"number","description":"Endereço da Máquina"},"faseProducao":{"maximum":9999,"type":"integer","description":"Numeração da Fase de Produção"},"numOperadores":{"multipleOf":0.001,"type":"number","description":"Quantidade de Operadores"},"tempoPreparacao":{"multipleOf":0.001,"type":"number","description":"Tempo de Preparação do Processo da OF"},"tempoPadrao":{"multipleOf":0.0001,"type":"number","description":"Tempo Padrão do Processo da OF"},"ferramentas":{"type":"string","description":"Ferramentas dos Processos da OF"},"centroCustos":{"maxLength":20,"type":"string","description":"Centro de Custo dos Processos da OF"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/processosOF/{codOF}":{"put":{"tags":["Processos de Ordem de Fabricação"],"summary":"Incluir Manutenção de Processos da OF (\"Incluir\")","operationId":"IncluirProcessoOf","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}},{"name":"codOF","in":"path","description":"Código da OF","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Putarray"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManutencaoProcessosOF"}}}},"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"}}}}}}}}}
```

## DELETE /processosOF/{codOF}

> Remover Manutenção Processos da OF ("Remover")

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Processos de Ordem de Fabricação","description":"processosOrdemFabricacao"}],"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":{"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/processosOF/{codOF}":{"delete":{"tags":["Processos de Ordem de Fabricação"],"summary":"Remover Manutenção Processos da OF (\"Remover\")","operationId":"RemoverProcessoOf","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"integer"}},{"name":"codOF","in":"path","description":"Código da OF","required":true,"schema":{"type":"integer"}},{"name":"sequenciaProcesso","in":"query","description":"Sequência do Processo para Exclusão","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{}},"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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ajuda.consistem.com.br/consistem-api/consistem-erp-api/industrial/ppcp-padrao-v1.0/processos-de-ordem-de-fabricacao.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
