API Documentation - Update Family

Endpoint

POST /fam1/update

Parameters

The following parameters must be included in the request:

Parameter Type Description Required
id int The ID of the family to update Yes
Famille_Nom string The family name Yes
Fam_Libellés string The label for the family Yes
Fam_Libellés_2 string The second label for the family No
Fam_Libellés_3 string The third label for the family No
Fam_Libellés_4 string The fourth label for the family No
photo1_base64 string The base64 encoded photo for the family No

Response

The response is a JSON object containing the following fields:

{
    "success": "true or false",
    "message": "Description of the response"
}

Error Handling

If an error occurs, the response will contain the following fields:

{
    "success": "false",
    "message": "Error description"
}

Example Request

POST /fam1/update
Content-Type: application/json

{
    "id": 1,
    "Famille_Nom": "Terrasement",
    "Fam_Libellés": "Terracing",
    "Fam_Libellés_2": "Nivelación",
    "Fam_Libellés_3": "Terrassement",
    "Fam_Libellés_4": "Terraplenagem",
    "photo1_base64": "base64encodedstring"
}

Example Response

{
    "success": true,
    "message": "Updated successfully"
}