> 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/separacao-de-materiais.md).

# Separação De Materiais

separacaoMateriais

## PUT /requisicaoOFSeparacaoMateriais

> Geração de Requisição de OF por Separação de Materiais

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Separação de Materiais","description":"separacaoMateriais"}],"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":{"ListaOFGerarRequisicao":{"type":"object","properties":{"codNaturezaProducao":{"maximum":999,"type":"integer","description":"Código Natureza de Estoque de Produção"},"tipoAgrupamento":{"type":"integer","maximum":9,"description":"Tipo de Agrupamento (0-OF, 1-OF/Lote, 2-Controle)","enum":[0,1,2]},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}},"ordensFabricacao":{"type":"array","description":"Lista Ordens de Fabricação","items":{"$ref":"#/components/schemas/ReqOFSepMaterialPut"}}}},"DadosCustomizados":{"required":["campo","valor"],"type":"object","properties":{"campo":{"type":"string"},"valor":{"type":"string"}}},"ReqOFSepMaterialPut":{"type":"object","properties":{"codOF":{"maximum":9999999,"type":"integer","description":"Código da Ordem de Fabricação"},"codLote":{"maxLength":10,"type":"string","description":"Código do Lote"},"dadosCustomizados":{"type":"array","items":{"$ref":"#/components/schemas/DadosCustomizados"}}}},"ListaReqOFSepMaterialGet":{"type":"object","properties":{"ordensFabricacao":{"type":"array","description":"Lista Ordens de Fabricação","items":{"$ref":"#/components/schemas/ReqOFSepMaterialGet"}},"errosGeracaoRequisicaoOF":{"type":"array","description":"Lista de Erros de Geração de Requisições das Ordens de Fabricação","items":{"$ref":"#/components/schemas/ErrosReqOFSepMaterialGet"}}}},"ReqOFSepMaterialGet":{"type":"object","properties":{"codOF":{"maximum":9999999,"type":"integer","description":"Código da Ordem de Fabricação"},"requisicoes":{"type":"array","description":"Requisições da Ordem de Fabricação","items":{"$ref":"#/components/schemas/ReqOFGet"}}}},"ReqOFGet":{"type":"object","properties":{"codRequisicao":{"maximum":9999999,"type":"integer","description":"Código da Requisição"}}},"ErrosReqOFSepMaterialGet":{"type":"object","properties":{"mensagemErro":{"type":"string","description":"Mensagem de Erro"}}},"Erro":{"type":"object","properties":{"mensagem":{"type":"string"}}}}},"paths":{"/requisicaoOFSeparacaoMateriais":{"put":{"tags":["Separação de Materiais"],"summary":"Geração de Requisição de OF por Separação de Materiais","operationId":"GerarReqOFSeparacaoMateriais","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Dados Ordem de Fabricação para Gerar Requisição por Separação de Materiais","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaOFGerarRequisicao"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListaReqOFSepMaterialGet"}}}},"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/separacao-de-materiais.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.
