Create client
Changed onCreate a new client with proper data separation.
This endpoint follows the correct client creation pattern:
- Client basic info goes to Cliente table (nome, nif, contacto, etc.)
- Email goes to Emails table (id_modulo=12, id_modulo_id=client_id)
- Address goes to Moradas table (id_modulo=12, id_modulo_id=client_id)
Automatically assigns the client to the authenticated user's company. Validates NIF uniqueness within the company.
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/clients
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Headers
Request body
Response
Successful Response
Changes
- info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/ - info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/ - info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/
- info
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info