> ## Documentation Index
> Fetch the complete documentation index at: https://bmpmoneyplus-sandbox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 1 - Cadastrar Empregador

> Valida os dados e cadastra (ou atualiza) o empregador informado, incluindo contatos e endereço.

Utilize este endpoint para cadastrar ou atualizar os dados do empregador, incluindo contatos e endereço.


## OpenAPI

````yaml post /trabalhador/cadastrar-empregador
openapi: 3.0.1
info:
  title: SwaggerProxy
  version: '1.0'
servers: []
security: []
paths:
  /trabalhador/cadastrar-empregador:
    post:
      tags:
        - trabalhador
      summary: Cadastra/atualiza um Empregador.
      description: >-
        Valida os dados e cadastra (ou atualiza) o empregador informado,
        incluindo contatos e endereço.
      operationId: EConsignado.Lambda.CadastrarEmpregador
      requestBody:
        content:
          application/json:
            schema:
              required:
                - CodigoInscricaoEmpregador
                - Nome
                - NumeroInscricaoEmpregador
              type: object
              properties:
                Nome:
                  type: string
                  description: Nome ou Razão Social do empregador.
                NumeroInscricaoEmpregador:
                  type: string
                  description: Inscrição do empregador (CPF ou CNPJ, apenas dígitos).
                CodigoInscricaoEmpregador:
                  type: integer
                  description: Tipo de inscrição do empregador. 1 = CPF, 2 = CNPJ.
                  format: int32
                DadosContato:
                  type: object
                  properties:
                    Email:
                      type: string
                      description: Email (formato válido).
                    TelefoneCelular1:
                      type: string
                      description: Celular no formato (XX) XXXXX-XXXX.
                    TelefoneFixo1:
                      type: string
                      description: Fixo no formato (XX) XXXX-XXXX ou (XX) XXXXX-XXXX.
                Endereco:
                  required:
                    - Bairro
                    - CEP
                    - Cidade
                    - Logradouro
                    - NroLogradouro
                    - UF
                  type: object
                  properties:
                    CEP:
                      type: string
                      description: CEP.
                    Logradouro:
                      type: string
                      description: Logradouro.
                    NroLogradouro:
                      type: string
                      description: Número do logradouro.
                    Bairro:
                      type: string
                      description: Bairro.
                    Complemento:
                      maxLength: 100
                      type: string
                      description: Complemento (opcional).
                    Cidade:
                      type: string
                      description: Cidade.
                    UF:
                      type: string
                      description: UF (2 caracteres).
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                required:
                  - mensagem
                type: object
                properties:
                  mensagem:
                    type: string
                    description: Mensagem de confirmação.
        '400':
          description: Bad Request - Erros de validação
          content:
            application/json:
              schema:
                type: object
                properties:
                  ErrorId:
                    type: string
                    format: uuid
                  ErrorCode:
                    type: string
                  ErrorCampo:
                    type: string
                  Error:
                    type: string
                  Origem:
                    type: string
        '401':
          description: Unauthorized - Não Autenticado
          content:
            application/json:
              schema:
                type: object
                properties:
                  ErrorId:
                    type: string
                    format: uuid
                  ErrorCode:
                    type: string
                  ErrorCampo:
                    type: string
                  Error:
                    type: string
                  Origem:
                    type: string
        '403':
          description: Forbidden - Não Autorizado
          content:
            application/json:
              schema:
                type: object
                properties:
                  ErrorId:
                    type: string
                    format: uuid
                  ErrorCode:
                    type: string
                  ErrorCampo:
                    type: string
                  Error:
                    type: string
                  Origem:
                    type: string
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                required:
                  - Erro
                type: object
                properties:
                  Erro:
                    type: string
        '408':
          description: Request Timeout - Tempo Excedido
          content:
            application/json:
              schema:
                type: object
                properties:
                  ErrorId:
                    type: string
                    format: uuid
                  ErrorCode:
                    type: string
                  ErrorCampo:
                    type: string
                  Error:
                    type: string
                  Origem:
                    type: string
        '412':
          description: Precondition Failed - Pré-condição não atendida
          content:
            application/json:
              schema:
                required:
                  - Erro
                type: object
                properties:
                  Erro:
                    type: string
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                required:
                  - Erro
                type: object
                properties:
                  Erro:
                    type: string

````