# Cadastro de Fase de Produção

fase

## GET /fase

> Obter Listagem de Fases de Produção

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Cadastro de Fase de Produção","description":"fase"}],"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":{"ListaFase":{"type":"object","properties":{"continuationToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Fase"}}}},"Fase":{"type":"object","properties":{"codFase":{"type":"integer","description":"Código da fase de produção"},"descricao":{"type":"string","description":"Descrição da fase"},"sigla":{"type":"string","description":"Sigla para impressão no plano mestre de produçã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":{"/fase":{"get":{"tags":["Cadastro de Fase de Produção"],"summary":"Obter Listagem de Fases de Produção","operationId":"ObterListaFase","parameters":[{"name":"empresa","in":"header","description":"Código da Empresa no ERP Consistem","required":true,"schema":{"type":"integer"}},{"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/ListaFase"}}}},"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 /fase/{id}

> Obter Fase de Produção

```json
{"openapi":"3.0.1","info":{"title":"PPCP Padrão","version":"1.0"},"tags":[{"name":"Cadastro de Fase de Produção","description":"fase"}],"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":{"Fase":{"type":"object","properties":{"codFase":{"type":"integer","description":"Código da fase de produção"},"descricao":{"type":"string","description":"Descrição da fase"},"sigla":{"type":"string","description":"Sigla para impressão no plano mestre de produçã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":{"/fase/{id}":{"get":{"tags":["Cadastro de Fase de Produção"],"summary":"Obter Fase de Produção","operationId":"ObterFase","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 Fase","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fase"}}}},"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-fase-de-producao.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.
