Upload or edit the company's digital signature.
PUT/company/company_data/editSign
This endpoint allows uploading or updating the company's digital signature. The signature is stored as a base64-encoded image and is associated with the company's profile.
Requirements:
- Image format: PNG, JPG, or JPEG
- Maximum size: 2MB
- Recommended aspect ratio: 3:1 (width:height)
Use cases:
- Signing digital documents
- Displaying the signature on invoices and contracts
Request example:
POST /editSign
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer [token]
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=image; filename=signature.png
Content-Type: image/png
(binary data)
----WebKitFormBoundary7MA4YWxkTrZu0gW--
Request
Responses
- 200
- 400
- 401
- 404
- 500
Signature updated successfully
Response Headers
Invalid file. This occurs when:
- The file is not a valid image
- It exceeds the maximum allowed size
- It has an unsupported format
Response Headers
Unauthorized. The JWT token is invalid or has expired. The token must be renewed using the authentication endpoint.
Response Headers
Company not found. This occurs when:
- The user is not associated with any company
- The company has been deleted
Response Headers
Error processing the file. This occurs when:
- There is an error converting the image to base64
- There is a failure saving to the database