MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Admissions

Gestion des hospitalisations des patients

Lister les admissions

requires authentication

Permet de récupérer la liste des admissions

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/admissions/all?patient_id=1&doctor_id=2&medical_page_id=5&status=active&room_number=A12&start_date=2026-01-01&end_date=2026-12-31&filter_value=ab&trashed=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 19,
    \"doctor_id\": 14,
    \"medical_page_id\": 12,
    \"status\": \"transferred\",
    \"room_number\": \"aut\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2026-05-07T16:23:58\",
    \"filter_value\": \"architecto\",
    \"trashed\": false,
    \"page_items\": 6,
    \"nbre_items\": 25
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions/all"
);

const params = {
    "patient_id": "1",
    "doctor_id": "2",
    "medical_page_id": "5",
    "status": "active",
    "room_number": "A12",
    "start_date": "2026-01-01",
    "end_date": "2026-12-31",
    "filter_value": "ab",
    "trashed": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 19,
    "doctor_id": 14,
    "medical_page_id": 12,
    "status": "transferred",
    "room_number": "aut",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2026-05-07T16:23:58",
    "filter_value": "architecto",
    "trashed": false,
    "page_items": 6,
    "nbre_items": 25
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/admissions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

patient_id   integer  optional  

ID du patient. Example: 1

doctor_id   integer  optional  

ID du médecin. Example: 2

medical_page_id   integer  optional  

ID de la consultation. Example: 5

status   string  optional  

Statut admission (active, discharged, transferred). Example: active

room_number   string  optional  

Numéro de chambre. Example: A12

start_date   string  optional  

date Date début (YYYY-MM-DD). Example: 2026-01-01

end_date   string  optional  

date Date fin (YYYY-MM-DD). Example: 2026-12-31

filter_value   string  optional  

Recherche globale. Example: ab

trashed   boolean  optional  

Inclure supprimés. Example: false

Body Parameters

patient_id   integer  optional  

Example: 19

doctor_id   integer  optional  

Example: 14

medical_page_id   integer  optional  

Example: 12

status   string  optional  

Example: transferred

Must be one of:
  • active
  • discharged
  • transferred
room_number   string  optional  

Example: aut

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

filter_value   string  optional  

Example: architecto

trashed   boolean  optional  

Example: false

page_items   integer  optional  

Example: 6

nbre_items   integer  optional  

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 1000. Example: 25

Créer une admission

requires authentication

Permet d'enregistrer une nouvelle hospitalisation.

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/admissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 1,
    \"doctor_id\": 2,
    \"medical_page_id\": 5,
    \"admitted_at\": \"2026-05-05 10:00:00\",
    \"discharged_at\": \"2026-05-10 12:00:00\",
    \"room_number\": \"A12\",
    \"status\": \"active\",
    \"notes\": \"deserunt\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 1,
    "doctor_id": 2,
    "medical_page_id": 5,
    "admitted_at": "2026-05-05 10:00:00",
    "discharged_at": "2026-05-10 12:00:00",
    "room_number": "A12",
    "status": "active",
    "notes": "deserunt"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/admissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

ID du patient. Example: 1

doctor_id   integer   

ID du médecin. Example: 2

medical_page_id   integer   

ID de la consultation. Example: 5

admitted_at   datetime   

Date d'entrée. Example: 2026-05-05 10:00:00

discharged_at   datetime  optional  

Date de sortie. Example: 2026-05-10 12:00:00

room_number   string  optional  

Numéro de chambre. Example: A12

status   string  optional  

Statut (active, discharged, transferred). Example: active

notes   string  optional  

Notes complémentaires. Example: deserunt

Afficher une admission

requires authentication

Retourne les détails d'une admission.

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/admissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/admissions/1 could not be found."
}
 

Request      

GET api/admissions/{admission_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

admission_id   integer   

The ID of the admission. Example: 1

admission   integer   

ID de l'admission. Example: 1

Modifier une admission

requires authentication

Tous les champs sont modifiables

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/admissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 10,
    \"doctor_id\": 3,
    \"medical_page_id\": 10,
    \"room_number\": \"hhhfbffkuvvqt\",
    \"admitted_at\": \"2026-05-07T16:23:58\",
    \"discharged_at\": \"2026-05-07T16:23:58\",
    \"status\": \"active\",
    \"notes\": \"quam\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 10,
    "doctor_id": 3,
    "medical_page_id": 10,
    "room_number": "hhhfbffkuvvqt",
    "admitted_at": "2026-05-07T16:23:58",
    "discharged_at": "2026-05-07T16:23:58",
    "status": "active",
    "notes": "quam"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/admissions/{admission_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

admission_id   integer   

The ID of the admission. Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 10

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 3

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 10

room_number   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: hhhfbffkuvvqt

admitted_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

discharged_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

status   string  optional  

Example: active

Must be one of:
  • active
  • discharged
  • transferred
notes   string  optional  

Example: quam

Mettre en corbeille

requires authentication

Body : ids[]

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/admissions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        5
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/admissions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the admissions table.

Restaurer

requires authentication

Body : ids[]

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/admissions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/admissions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/admissions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the admissions table.

Authentification

Gestion de l'authentification des utilisateurs

Fonction permettant à un utilisateur déjà inscrit de se connecter

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"username\": \"consequuntur\",
    \"password\": \"Hq}?W0)-%\\\\Ge3eQ\\\"`[\",
    \"device_key\": \"rerum\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "consequuntur",
    "password": "Hq}?W0)-%\\Ge3eQ\"`[",
    "device_key": "rerum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: consequuntur

password   string   

Example: Hq}?W0)-%\Ge3eQ"[`

device_key   string  optional  

Example: rerum

Fonction permettant à un utilisateur connecté de se déconnecter

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Avance sur salaire / Salary advance

Gestion des avances sur salaire

Afficher la liste filtrée des avances sur salaire

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salaries-advances/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 14,
    \"nbre_items\": 14,
    \"filter_value\": \"magnam\",
    \"trashed\": true,
    \"user_id\": 3,
    \"user_approve_id\": 11,
    \"date\": \"2026-05-07\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 14,
    "nbre_items": 14,
    "filter_value": "magnam",
    "trashed": true,
    "user_id": 3,
    "user_approve_id": 11,
    "date": "2026-05-07"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 14

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Example: magnam

trashed   boolean  optional  

Example: true

user_id   integer  optional  

The id of an existing record in the users table. Example: 3

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 11

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

Show the form for creating a new resource.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salaries-advances" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"salary_advances\": [
        {
            \"user_approve_id\": 2,
            \"amount\": \"corrupti\",
            \"reason\": \"dignissimos\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "salary_advances": [
        {
            "user_approve_id": 2,
            "amount": "corrupti",
            "reason": "dignissimos"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_advances   object[]   
user_approve_id   integer   

The id of an existing record in the users table. Example: 2

amount   string   

Example: corrupti

reason   string   

Example: dignissimos

Afficher une retenue sur salaire spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/salaries-advances/vel" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances/vel"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/salaries-advances/vel could not be found."
}
 

Request      

GET api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: vel

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/salaries-advances/cupiditate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_approve_id\": 7,
    \"status\": \"in_progress\",
    \"reason\": \"ut\",
    \"comments\": \"quisquam\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances/cupiditate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_approve_id": 7,
    "status": "in_progress",
    "reason": "ut",
    "comments": "quisquam"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: cupiditate

Body Parameters

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 7

amount   string  optional  
status   string  optional  

Example: in_progress

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
reason   string  optional  

Example: ut

comments   string  optional  

Example: quisquam

Archiver (soft delete) les avances sur salaire spécifiées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salaries-advances/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Restaurer les avances sur salaire archivées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salaries-advances/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salaries-advances/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Avertissements

Gestion des avertissements

Lister les avertissements

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/warnings/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 37,
    \"nbre_items\": 3,
    \"user_id\": 1,
    \"date\": \"2026-05-07\",
    \"filter_value\": \"olgmgajcyesocigkqhzlrmb\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 37,
    "nbre_items": 3,
    "user_id": 1,
    "date": "2026-05-07",
    "filter_value": "olgmgajcyesocigkqhzlrmb"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 37

nbre_items   integer  optional  

Example: 3

user_id   integer  optional  

The id of an existing record in the users table. Example: 1

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: olgmgajcyesocigkqhzlrmb

Ajouter un ou plusieurs avertissements

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/warnings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"warnings\": [
        {
            \"user_id\": 19,
            \"reason\": \"delectus\",
            \"date\": \"2026-05-07\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "warnings": [
        {
            "user_id": 19,
            "reason": "delectus",
            "date": "2026-05-07"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warnings   object[]   
user_id   integer   

The id of an existing record in the users table. Example: 19

reason   string   

Example: delectus

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

Afficher les détails d'un avertissement

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/warnings/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/warnings/16 could not be found."
}
 

Request      

GET api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 16

Modifier les détails d'un avertissement

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/warnings/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 20,
    \"date\": \"2026-05-07\",
    \"page_items\": 19,
    \"nbre_items\": 3,
    \"filter_value\": \"quia\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 20,
    "date": "2026-05-07",
    "page_items": 19,
    "nbre_items": 3,
    "filter_value": "quia"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 3

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 20

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

page_items   integer  optional  

Example: 19

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: quia

Mettre un ou plusieurs avertissements en corbeille (soft delete)

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/warnings/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"warning_ids\": [
        20
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "warning_ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

Restaurer un ou plusieurs avertissements de la corbeille

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/warnings/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"warning_ids\": [
        13
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "warning_ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

Supprimer définitivement un ou plusieurs avertissements

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/warnings/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"warning_ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/warnings/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "warning_ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

Bons d'achats

Gestion des bons d'achat

Afficher une liste filtrée des bons d'achat

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/purchase-orders/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 50,
    \"nbre_items\": 17,
    \"filter_value\": \"ltlmpohzovcppham\",
    \"status\": \"delivered\",
    \"priority\": \"urgent\",
    \"supplier_id\": 18,
    \"responsible_id\": 17,
    \"medication_ids\": [
        7
    ],
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 50,
    "nbre_items": 17,
    "filter_value": "ltlmpohzovcppham",
    "status": "delivered",
    "priority": "urgent",
    "supplier_id": 18,
    "responsible_id": 17,
    "medication_ids": [
        7
    ],
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-orders/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 50

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ltlmpohzovcppham

status   string  optional  

Example: delivered

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string  optional  

Example: urgent

Must be one of:
  • low
  • medium
  • high
  • urgent
supplier_id   integer  optional  

The id of an existing record in the users table. Example: 18

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 17

medication_ids   integer[]  optional  

The id of an existing record in the medications table.

trashed   boolean  optional  

Example: true

Enregistrer un bon d'achat

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/purchase-orders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"supplier_id\": 19,
    \"responsible_id\": 2,
    \"description\": \"Id perspiciatis animi sint ipsam omnis vel.\",
    \"status\": \"pending_approval\",
    \"priority\": \"medium\",
    \"quotation_file\": \"voluptates\",
    \"medications\": [
        {
            \"id\": 11,
            \"unit_price\": 43,
            \"quantity\": 48
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "supplier_id": 19,
    "responsible_id": 2,
    "description": "Id perspiciatis animi sint ipsam omnis vel.",
    "status": "pending_approval",
    "priority": "medium",
    "quotation_file": "voluptates",
    "medications": [
        {
            "id": 11,
            "unit_price": 43,
            "quantity": 48
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-orders

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supplier_id   integer   

The id of an existing record in the users table. Example: 19

responsible_id   integer   

The id of an existing record in the users table. Example: 2

description   string  optional  

Example: Id perspiciatis animi sint ipsam omnis vel.

status   string  optional  

Example: pending_approval

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string   

Example: medium

Must be one of:
  • low
  • medium
  • high
  • urgent
quotation_file   string  optional  

Example: voluptates

medications   object[]   
id   integer   

The id of an existing record in the medications table. Example: 11

unit_price   number   

Le champ value doit être au moins 0. Example: 43

quantity   integer   

Le champ value doit être au moins 1. Example: 48

Afficher un bon d'achat spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/purchase-orders/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders/5"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/purchase-orders/5 could not be found."
}
 

Request      

GET api/purchase-orders/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 5

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/purchase-orders/14" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"supplier_id\": 19,
    \"responsible_id\": 10,
    \"description\": \"Perspiciatis ipsam et eos iure nihil ex veniam.\",
    \"status\": \"delivered\",
    \"priority\": \"urgent\",
    \"quotation_file\": \"molestiae\",
    \"medications\": [
        {
            \"id\": 17,
            \"unit_price\": 36,
            \"quantity\": 2
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "supplier_id": 19,
    "responsible_id": 10,
    "description": "Perspiciatis ipsam et eos iure nihil ex veniam.",
    "status": "delivered",
    "priority": "urgent",
    "quotation_file": "molestiae",
    "medications": [
        {
            "id": 17,
            "unit_price": 36,
            "quantity": 2
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/purchase-orders/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 14

Body Parameters

supplier_id   integer  optional  

The id of an existing record in the users table. Example: 19

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 10

description   string  optional  

Example: Perspiciatis ipsam et eos iure nihil ex veniam.

status   string  optional  

Example: delivered

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string  optional  

Example: urgent

Must be one of:
  • low
  • medium
  • high
  • urgent
quotation_file   string  optional  

Example: molestiae

medications   object[]  optional  
id   integer   

The id of an existing record in the medications table. Example: 17

unit_price   number   

Le champ value doit être au moins 0. Example: 36

quantity   integer   

Le champ value doit être au moins 1. Example: 2

Fonction pour le multiple archivage des bonds d'achat

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/purchase-orders/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-orders/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the purchase_orders table.

Fonction de restauration multiples des bonds d'achat

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/purchase-orders/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/purchase-orders/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-orders/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the purchase_orders table.

Caisse / Facturation

Gestion des factures et paiements MS-Care

Lister les factures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/invoices/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 38,
    \"nbre_items\": 12,
    \"filter_value\": \"qixjgzxsnn\",
    \"patient_id\": 6,
    \"cashier_id\": 5,
    \"status\": \"saepe\",
    \"payment_mode\": \"esse\",
    \"date_from\": \"2026-05-07\",
    \"date_to\": \"2026-05-07\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 38,
    "nbre_items": 12,
    "filter_value": "qixjgzxsnn",
    "patient_id": 6,
    "cashier_id": 5,
    "status": "saepe",
    "payment_mode": "esse",
    "date_from": "2026-05-07",
    "date_to": "2026-05-07",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 38

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: qixjgzxsnn

patient_id   integer  optional  

The id of an existing record in the users table. Example: 6

cashier_id   integer  optional  

The id of an existing record in the users table. Example: 5

status   string  optional  

Example: saepe

payment_mode   string  optional  

Example: esse

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

trashed   boolean  optional  

Example: false

Créer une facture avec ses lignes

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/invoices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 16,
    \"medical_page_id\": 2,
    \"discount\": 3,
    \"payment_mode\": \"eos\",
    \"notes\": \"tempora\",
    \"mm_operator\": \"est\",
    \"mm_payer_number\": \"laboriosam\",
    \"mm_transaction_ref\": \"in\",
    \"mm_payment_date\": \"2026-05-07\",
    \"insurance_name\": \"accusamus\",
    \"insurance_ref\": \"illum\",
    \"insurance_amount\": 0,
    \"patient_amount\": 80,
    \"items\": [
        {
            \"item_type\": \"quis\",
            \"label\": \"qui\",
            \"quantity\": 78,
            \"unit_price\": 7,
            \"lab_request_id\": 20,
            \"nursing_act_id\": 11,
            \"medication_id\": 7,
            \"prescription_id\": 15
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 16,
    "medical_page_id": 2,
    "discount": 3,
    "payment_mode": "eos",
    "notes": "tempora",
    "mm_operator": "est",
    "mm_payer_number": "laboriosam",
    "mm_transaction_ref": "in",
    "mm_payment_date": "2026-05-07",
    "insurance_name": "accusamus",
    "insurance_ref": "illum",
    "insurance_amount": 0,
    "patient_amount": 80,
    "items": [
        {
            "item_type": "quis",
            "label": "qui",
            "quantity": 78,
            "unit_price": 7,
            "lab_request_id": 20,
            "nursing_act_id": 11,
            "medication_id": 7,
            "prescription_id": 15
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 16

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 2

discount   number  optional  

Le champ value doit être au moins 0. Example: 3

payment_mode   string  optional  

Example: eos

notes   string  optional  

Example: tempora

mm_operator   string  optional  

Example: est

mm_payer_number   string  optional  

Example: laboriosam

mm_transaction_ref   string  optional  

Example: in

mm_payment_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

insurance_name   string  optional  

Example: accusamus

insurance_ref   string  optional  

Example: illum

insurance_amount   number  optional  

Le champ value doit être au moins 0. Example: 0

patient_amount   number  optional  

Le champ value doit être au moins 0. Example: 80

items   object[]   

Le champ value doit contenir au moins 1 éléments.

item_type   string   

Example: quis

label   string   

Example: qui

quantity   integer   

Le champ value doit être au moins 1. Example: 78

unit_price   number   

Le champ value doit être au moins 0. Example: 7

lab_request_id   integer  optional  

The id of an existing record in the lab_requests table. Example: 20

nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 11

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 7

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 15

Afficher une facture

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/invoices/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/invoices/16 could not be found."
}
 

Request      

GET api/invoices/{invoice_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 16

Mettre à jour une facture (paiement complémentaire)

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/invoices/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount_paid\": 34,
    \"payment_mode\": \"distinctio\",
    \"discount\": 70,
    \"notes\": \"reiciendis\",
    \"mm_operator\": \"aliquam\",
    \"mm_payer_number\": \"non\",
    \"mm_transaction_ref\": \"autem\",
    \"mm_payment_date\": \"2026-05-07\",
    \"insurance_name\": \"ut\",
    \"insurance_ref\": \"sed\",
    \"insurance_amount\": 72,
    \"patient_amount\": 18
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/7"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount_paid": 34,
    "payment_mode": "distinctio",
    "discount": 70,
    "notes": "reiciendis",
    "mm_operator": "aliquam",
    "mm_payer_number": "non",
    "mm_transaction_ref": "autem",
    "mm_payment_date": "2026-05-07",
    "insurance_name": "ut",
    "insurance_ref": "sed",
    "insurance_amount": 72,
    "patient_amount": 18
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/invoices/{invoice_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 7

Body Parameters

amount_paid   number  optional  

Le champ value doit être au moins 0. Example: 34

payment_mode   string  optional  

Example: distinctio

discount   number  optional  

Le champ value doit être au moins 0. Example: 70

notes   string  optional  

Example: reiciendis

mm_operator   string  optional  

Example: aliquam

mm_payer_number   string  optional  

Example: non

mm_transaction_ref   string  optional  

Example: autem

mm_payment_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

insurance_name   string  optional  

Example: ut

insurance_ref   string  optional  

Example: sed

insurance_amount   number  optional  

Le champ value doit être au moins 0. Example: 72

patient_amount   number  optional  

Le champ value doit être au moins 0. Example: 18

Annuler une facture (avec traçabilité)

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/invoices/15/cancel" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/15/cancel"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/invoices/{invoice_id}/cancel

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 15

Archiver des factures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/invoices/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the invoices table.

Restaurer des factures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/invoices/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        3
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/invoices/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/invoices/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the invoices table.

Carnet Médical

Gestion des carnets médicaux

Lister les carnets médicaux

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-books/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 64,
    \"nbre_items\": 8,
    \"filter_value\": \"zciinoipiwlsxvyqphipyp\",
    \"responsible_doctor_id\": 1,
    \"health_center_id\": 13,
    \"patient_id\": 5,
    \"trashed\": false,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"ckd_stage\": \"sint\",
    \"dialysis_center\": \"ut\",
    \"current_doctor_name\": \"sed\",
    \"ckd_diagnosis_date\": \"2026-05-07T16:23:58\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 64,
    "nbre_items": 8,
    "filter_value": "zciinoipiwlsxvyqphipyp",
    "responsible_doctor_id": 1,
    "health_center_id": 13,
    "patient_id": 5,
    "trashed": false,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "ckd_stage": "sint",
    "dialysis_center": "ut",
    "current_doctor_name": "sed",
    "ckd_diagnosis_date": "2026-05-07T16:23:58"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-books/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 64

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: zciinoipiwlsxvyqphipyp

responsible_doctor_id   integer  optional  

The id of an existing record in the users table. Example: 1

health_center_id   integer  optional  

Example: 13

patient_id   integer  optional  

The id of an existing record in the users table. Example: 5

trashed   boolean  optional  

Example: false

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

ckd_stage   string  optional  

Example: sint

dialysis_type   string  optional  
Must be one of:
0   string  optional  
dialysis_center   string  optional  

Example: ut

current_doctor_name   string  optional  

Example: sed

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

Ajouter un carnet médical

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-books" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "patient_id=11"\
    --form "responsible_doctor_id=20"\
    --form "health_center_id=17"\
    --form "blood_type=B-"\
    --form "known_allergies=inventore"\
    --form "chronic_diseases=aspernatur"\
    --form "observation=eos"\
    --form "status=rejected"\
    --form "current_doctor_name=vitae"\
    --form "current_doctor_phone=consequatur"\
    --form "current_doctor_address=aspernatur"\
    --form "medical_history=minima"\
    --form "current_treatments=ut"\
    --form "known_kidney_diseases=quas"\
    --form "autoimmune_or_infectious_diseases=dolor"\
    --form "allergies=id"\
    --form "ckd_stage=aperiam"\
    --form "ckd_diagnosis_date=2026-05-07T16:23:58"\
    --form "ckd_etiology=ut"\
    --form "recent_biological_tests=qui"\
    --form "dry_weight=68617.528"\
    --form "dialysis_indicated="\
    --form "dialysis_type=hemodialysis"\
    --form "dialysis_center=exercitationem"\
    --form "dialysis_frequency=voluptates"\
    --form "dialysis_complications=veritatis"\
    --form "renal_imaging_file=@/tmp/php9SA1tv" 
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('patient_id', '11');
body.append('responsible_doctor_id', '20');
body.append('health_center_id', '17');
body.append('blood_type', 'B-');
body.append('known_allergies', 'inventore');
body.append('chronic_diseases', 'aspernatur');
body.append('observation', 'eos');
body.append('status', 'rejected');
body.append('current_doctor_name', 'vitae');
body.append('current_doctor_phone', 'consequatur');
body.append('current_doctor_address', 'aspernatur');
body.append('medical_history', 'minima');
body.append('current_treatments', 'ut');
body.append('known_kidney_diseases', 'quas');
body.append('autoimmune_or_infectious_diseases', 'dolor');
body.append('allergies', 'id');
body.append('ckd_stage', 'aperiam');
body.append('ckd_diagnosis_date', '2026-05-07T16:23:58');
body.append('ckd_etiology', 'ut');
body.append('recent_biological_tests', 'qui');
body.append('dry_weight', '68617.528');
body.append('dialysis_indicated', '');
body.append('dialysis_type', 'hemodialysis');
body.append('dialysis_center', 'exercitationem');
body.append('dialysis_frequency', 'voluptates');
body.append('dialysis_complications', 'veritatis');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/medical-books

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 11

responsible_doctor_id   integer   

The id of an existing record in the users table. Example: 20

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 17

blood_type   string  optional  

Example: B-

Must be one of:
  • A+
  • A-
  • B+
  • B-
  • AB+
  • AB-
  • O+
  • O-
known_allergies   string  optional  

Example: inventore

chronic_diseases   string  optional  

Example: aspernatur

observation   string  optional  

Example: eos

status   string  optional  

Example: rejected

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
current_doctor_name   string  optional  

Example: vitae

current_doctor_phone   string  optional  

Example: consequatur

current_doctor_address   string  optional  

Example: aspernatur

medical_history   string  optional  

Example: minima

current_treatments   string  optional  

Example: ut

known_kidney_diseases   string  optional  

Example: quas

autoimmune_or_infectious_diseases   string  optional  

Example: dolor

allergies   string  optional  

Example: id

ckd_stage   string  optional  

Example: aperiam

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

ckd_etiology   string  optional  

Example: ut

recent_biological_tests   string  optional  

Example: qui

renal_imaging_file   file  optional  

Must be a file. Le champ value ne peut être supérieur à 2048 kilobytes. Example: /tmp/php9SA1tv

dry_weight   number  optional  

Example: 68617.528

dialysis_indicated   boolean  optional  

Example: false

dialysis_type   string  optional  

Example: hemodialysis

Must be one of:
  • hemodialysis
  • peritoneal
dialysis_center   string  optional  

Example: exercitationem

dialysis_frequency   string  optional  

Example: voluptates

dialysis_complications   string  optional  

Example: veritatis

Afficher les infos d'un carnet médical

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/medical-books/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medical-books/1 could not be found."
}
 

Request      

GET api/medical-books/{medical_book}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_book   integer   

Example: 1

Modifier un carnet médical

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/medical-books/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "patient_id=12"\
    --form "responsible_doctor_id=20"\
    --form "health_center_id=6"\
    --form "blood_type=A-"\
    --form "known_allergies=enim"\
    --form "chronic_diseases=voluptates"\
    --form "observation=magnam"\
    --form "status=undone"\
    --form "current_doctor_name=praesentium"\
    --form "current_doctor_phone=eveniet"\
    --form "current_doctor_address=magnam"\
    --form "medical_history=magni"\
    --form "current_treatments=nulla"\
    --form "known_kidney_diseases=voluptatibus"\
    --form "autoimmune_or_infectious_diseases=quia"\
    --form "allergies=eaque"\
    --form "ckd_stage=quae"\
    --form "ckd_diagnosis_date=2026-05-07T16:23:58"\
    --form "ckd_etiology=qui"\
    --form "recent_biological_tests=repellat"\
    --form "dry_weight=3.365152"\
    --form "dialysis_indicated="\
    --form "dialysis_type=hemodialysis"\
    --form "dialysis_center=praesentium"\
    --form "dialysis_frequency=voluptatem"\
    --form "dialysis_complications=quia"\
    --form "renal_imaging_file=@/tmp/phptZQBLD" 
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('patient_id', '12');
body.append('responsible_doctor_id', '20');
body.append('health_center_id', '6');
body.append('blood_type', 'A-');
body.append('known_allergies', 'enim');
body.append('chronic_diseases', 'voluptates');
body.append('observation', 'magnam');
body.append('status', 'undone');
body.append('current_doctor_name', 'praesentium');
body.append('current_doctor_phone', 'eveniet');
body.append('current_doctor_address', 'magnam');
body.append('medical_history', 'magni');
body.append('current_treatments', 'nulla');
body.append('known_kidney_diseases', 'voluptatibus');
body.append('autoimmune_or_infectious_diseases', 'quia');
body.append('allergies', 'eaque');
body.append('ckd_stage', 'quae');
body.append('ckd_diagnosis_date', '2026-05-07T16:23:58');
body.append('ckd_etiology', 'qui');
body.append('recent_biological_tests', 'repellat');
body.append('dry_weight', '3.365152');
body.append('dialysis_indicated', '');
body.append('dialysis_type', 'hemodialysis');
body.append('dialysis_center', 'praesentium');
body.append('dialysis_frequency', 'voluptatem');
body.append('dialysis_complications', 'quia');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Request      

PUT api/medical-books/{medical_book}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

medical_book   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 12

responsible_doctor_id   integer  optional  

The id of an existing record in the users table. Example: 20

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 6

blood_type   string  optional  

Example: A-

Must be one of:
  • A+
  • A-
  • B+
  • B-
  • AB+
  • AB-
  • O+
  • O-
known_allergies   string  optional  

Example: enim

chronic_diseases   string  optional  

Example: voluptates

observation   string  optional  

Example: magnam

status   string  optional  

Example: undone

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
current_doctor_name   string  optional  

Example: praesentium

current_doctor_phone   string  optional  

Example: eveniet

current_doctor_address   string  optional  

Example: magnam

medical_history   string  optional  

Example: magni

current_treatments   string  optional  

Example: nulla

known_kidney_diseases   string  optional  

Example: voluptatibus

autoimmune_or_infectious_diseases   string  optional  

Example: quia

allergies   string  optional  

Example: eaque

ckd_stage   string  optional  

Example: quae

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

ckd_etiology   string  optional  

Example: qui

recent_biological_tests   string  optional  

Example: repellat

renal_imaging_file   file  optional  

Must be a file. Le champ value ne peut être supérieur à 2048 kilobytes. Example: /tmp/phptZQBLD

dry_weight   number  optional  

Example: 3.365152

dialysis_indicated   boolean  optional  

Example: false

dialysis_type   string  optional  

Example: hemodialysis

Must be one of:
  • hemodialysis
  • peritoneal
dialysis_center   string  optional  

Example: praesentium

dialysis_frequency   string  optional  

Example: voluptatem

dialysis_complications   string  optional  

Example: quia

Archiver plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-books/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        17
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-books/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_books table.

Restaurer plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-books/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-books/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-books/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_books table.

Catalogue Actes Infirmiers

POST api/nursing-act-catalogs/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 9,
    \"nbre_items\": 17,
    \"filter_value\": \"xwlogmncwrrscub\",
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"type\": \"nesciunt\",
    \"is_active\": true,
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 9,
    "nbre_items": 17,
    "filter_value": "xwlogmncwrrscub",
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "type": "nesciunt",
    "is_active": true,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-act-catalogs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 9

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: xwlogmncwrrscub

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

type   string  optional  

Example: nesciunt

is_active   boolean  optional  

Example: true

trashed   boolean  optional  

Example: true

POST api/nursing-act-catalogs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"tqccwtcbiqetwmmobhdpbej\",
    \"type\": \"similique\",
    \"description\": \"Explicabo beatae et fugiat adipisci molestiae neque.\",
    \"price\": 16,
    \"is_active\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "tqccwtcbiqetwmmobhdpbej",
    "type": "similique",
    "description": "Explicabo beatae et fugiat adipisci molestiae neque.",
    "price": 16,
    "is_active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-act-catalogs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: tqccwtcbiqetwmmobhdpbej

type   string   

Example: similique

description   string  optional  

Example: Explicabo beatae et fugiat adipisci molestiae neque.

price   number   

Le champ value doit être au moins 0. Example: 16

is_active   boolean  optional  

Example: true

GET api/nursing-act-catalogs/{nursing_act_catalog}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/nursing-act-catalogs/1 could not be found."
}
 

Request      

GET api/nursing-act-catalogs/{nursing_act_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act_catalog   integer   

Example: 1

PUT api/nursing-act-catalogs/{nursing_act_catalog}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ddkkcdrolpbaolzu\",
    \"type\": \"adipisci\",
    \"description\": \"Et maxime repudiandae nihil modi.\",
    \"price\": 47,
    \"is_active\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ddkkcdrolpbaolzu",
    "type": "adipisci",
    "description": "Et maxime repudiandae nihil modi.",
    "price": 47,
    "is_active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/nursing-act-catalogs/{nursing_act_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act_catalog   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ddkkcdrolpbaolzu

type   string  optional  

Example: adipisci

description   string  optional  

Example: Et maxime repudiandae nihil modi.

price   number  optional  

Le champ value doit être au moins 0. Example: 47

is_active   boolean  optional  

Example: true

POST api/nursing-act-catalogs/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        5
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-act-catalogs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_act_catalogs table.

POST api/nursing-act-catalogs/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-act-catalogs/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-act-catalogs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_act_catalogs table.

Catalogue Examens Laboratoire

POST api/lab-exam-catalogs/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 84,
    \"nbre_items\": 4,
    \"filter_value\": \"tervgnahieuntjhra\",
    \"type\": \"ratione\",
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"is_active\": true,
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 84,
    "nbre_items": 4,
    "filter_value": "tervgnahieuntjhra",
    "type": "ratione",
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "is_active": true,
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-catalogs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 84

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: tervgnahieuntjhra

type   string  optional  

Example: ratione

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

is_active   boolean  optional  

Example: true

trashed   boolean  optional  

Example: false

POST api/lab-exam-catalogs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"jugzxshnxcndeqwgyptsnwv\",
    \"code\": \"hg\",
    \"type\": \"qui\",
    \"description\": \"Velit atque natus itaque aliquid enim.\",
    \"price\": 70,
    \"turnaround_hours\": 14,
    \"preparation_instructions\": \"commodi\",
    \"sample_required\": \"sed\",
    \"is_active\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "jugzxshnxcndeqwgyptsnwv",
    "code": "hg",
    "type": "qui",
    "description": "Velit atque natus itaque aliquid enim.",
    "price": 70,
    "turnaround_hours": 14,
    "preparation_instructions": "commodi",
    "sample_required": "sed",
    "is_active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-catalogs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: jugzxshnxcndeqwgyptsnwv

code   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: hg

type   string   

Example: qui

description   string  optional  

Example: Velit atque natus itaque aliquid enim.

price   number   

Le champ value doit être au moins 0. Example: 70

turnaround_hours   integer  optional  

Le champ value doit être au moins 0. Example: 14

preparation_instructions   string  optional  

Example: commodi

sample_required   string  optional  

Example: sed

is_active   boolean  optional  

Example: true

GET api/lab-exam-catalogs/{lab_exam_catalog}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/lab-exam-catalogs/1 could not be found."
}
 

Request      

GET api/lab-exam-catalogs/{lab_exam_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_exam_catalog   integer   

Example: 1

PUT api/lab-exam-catalogs/{lab_exam_catalog}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ieghobwnzxdxmvwhittpbo\",
    \"type\": \"impedit\",
    \"description\": \"Non ut qui possimus consequatur.\",
    \"price\": 5,
    \"turnaround_hours\": 70,
    \"preparation_instructions\": \"sed\",
    \"sample_required\": \"hic\",
    \"is_active\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ieghobwnzxdxmvwhittpbo",
    "type": "impedit",
    "description": "Non ut qui possimus consequatur.",
    "price": 5,
    "turnaround_hours": 70,
    "preparation_instructions": "sed",
    "sample_required": "hic",
    "is_active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/lab-exam-catalogs/{lab_exam_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_exam_catalog   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ieghobwnzxdxmvwhittpbo

type   string  optional  

Example: impedit

description   string  optional  

Example: Non ut qui possimus consequatur.

price   number  optional  

Le champ value doit être au moins 0. Example: 5

turnaround_hours   integer  optional  

Le champ value doit être au moins 0. Example: 70

preparation_instructions   string  optional  

Example: sed

sample_required   string  optional  

Example: hic

is_active   boolean  optional  

Example: true

POST api/lab-exam-catalogs/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-catalogs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

POST api/lab-exam-catalogs/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        17
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-catalogs/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-catalogs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

Centres de santé

Gestion des centres de santé

Lister les centres de santé

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/health-centers/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 33,
    \"nbre_items\": 9,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"eapqcogusehpelyby\",
    \"responsible_id\": 19,
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 33,
    "nbre_items": 9,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "eapqcogusehpelyby",
    "responsible_id": 19,
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/health-centers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 33

nbre_items   integer  optional  

Example: 9

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: eapqcogusehpelyby

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 19

trashed   boolean  optional  

Example: false

Ajouter un centre de santé

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/health-centers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 15,
    \"name\": \"uk\",
    \"code\": \"hfvy\",
    \"description\": \"Quod voluptatibus autem maiores qui voluptatem repellendus enim.\",
    \"address\": \"emsugjcqseonxvaw\",
    \"city\": \"xguedonduzyctkd\",
    \"country\": \"ovka\",
    \"phone\": \"rdy\",
    \"logo\": \"javtzm\",
    \"email\": \"kertzmann.vito@example.net\",
    \"website\": \"pqvohraehyohxmklrsupn\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 15,
    "name": "uk",
    "code": "hfvy",
    "description": "Quod voluptatibus autem maiores qui voluptatem repellendus enim.",
    "address": "emsugjcqseonxvaw",
    "city": "xguedonduzyctkd",
    "country": "ovka",
    "phone": "rdy",
    "logo": "javtzm",
    "email": "kertzmann.vito@example.net",
    "website": "pqvohraehyohxmklrsupn"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/health-centers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

responsible_id   integer   

The id of an existing record in the users table. Example: 15

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: uk

code   string  optional  

Le champ value ne peut contenir plus de 10 caractères. Example: hfvy

description   string  optional  

Example: Quod voluptatibus autem maiores qui voluptatem repellendus enim.

address   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: emsugjcqseonxvaw

city   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: xguedonduzyctkd

country   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ovka

phone   string   

Le champ value ne peut contenir plus de 200 caractères. Example: rdy

logo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: javtzm

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: kertzmann.vito@example.net

website   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: pqvohraehyohxmklrsupn

Afficher les informations d'un centre de santé

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/health-centers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/health-centers/1 could not be found."
}
 

Request      

GET api/health-centers/{health_center}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

health_center   integer   

Example: 1

Modifier les informations d'un centre de santé

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/health-centers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 18,
    \"name\": \"mqnmppzgbuedph\",
    \"code\": \"wcrd\",
    \"description\": \"Assumenda voluptatem deserunt ipsa omnis libero molestiae omnis.\",
    \"address\": \"iojswfvwcig\",
    \"city\": \"auquwtkdpjhnlgqeciewy\",
    \"country\": \"vzpvtzmpuukherlbqorpa\",
    \"phone\": \"bpywugtzjzjmzm\",
    \"logo\": \"kpll\",
    \"email\": \"marjolaine18@example.com\",
    \"website\": \"mruquloajnrzgitmepara\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 18,
    "name": "mqnmppzgbuedph",
    "code": "wcrd",
    "description": "Assumenda voluptatem deserunt ipsa omnis libero molestiae omnis.",
    "address": "iojswfvwcig",
    "city": "auquwtkdpjhnlgqeciewy",
    "country": "vzpvtzmpuukherlbqorpa",
    "phone": "bpywugtzjzjmzm",
    "logo": "kpll",
    "email": "marjolaine18@example.com",
    "website": "mruquloajnrzgitmepara"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/health-centers/{health_center}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

health_center   integer   

Example: 1

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 18

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: mqnmppzgbuedph

code   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: wcrd

description   string  optional  

Example: Assumenda voluptatem deserunt ipsa omnis libero molestiae omnis.

address   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: iojswfvwcig

city   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: auquwtkdpjhnlgqeciewy

country   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: vzpvtzmpuukherlbqorpa

phone   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: bpywugtzjzjmzm

logo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: kpll

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: marjolaine18@example.com

website   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: mruquloajnrzgitmepara

Archiver plusieurs health_centers

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/health-centers/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/health-centers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the health_centers table.

Restaurer plusieurs health_centers

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/health-centers/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        5
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/health-centers/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/health-centers/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the health_centers table.

Chat

Gestion des discussions du chat

Lister les discussions (privées et en groupe)

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/chat/rooms/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 88,
    \"nbre_items\": 16,
    \"filter_value\": \"gopbyxlcytdx\",
    \"is_group\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/rooms/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 88,
    "nbre_items": 16,
    "filter_value": "gopbyxlcytdx",
    "is_group": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/chat/rooms/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 88

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: gopbyxlcytdx

is_group   boolean  optional  

Example: true

Démarrer une discussion

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/chat/rooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"tkvdunnprhcpwsljy\",
    \"photo\": \"uyhwwtonkkqowvqh\",
    \"participants\": [
        4
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/rooms"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "tkvdunnprhcpwsljy",
    "photo": "uyhwwtonkkqowvqh",
    "participants": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/chat/rooms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: tkvdunnprhcpwsljy

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: uyhwwtonkkqowvqh

participants   integer[]   

The id of an existing record in the users table.

Afficher les infos d'une discussion

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/chat/rooms/6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/rooms/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/chat/rooms/6 could not be found."
}
 

Request      

GET api/chat/rooms/{message_room}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_room   integer   

Example: 6

Modifier une discussion

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/chat/rooms/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"eh\",
    \"photo\": \"bbnptxfclbpjhudpyoijdqz\",
    \"participants\": [
        12
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/rooms/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "eh",
    "photo": "bbnptxfclbpjhudpyoijdqz",
    "participants": [
        12
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/chat/rooms/{message_room}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_room   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: eh

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: bbnptxfclbpjhudpyoijdqz

participants   integer[]  optional  

The id of an existing record in the users table.

Gestion des messages du chat

Lister les messages

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/chat/messages/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 18,
    \"nbre_items\": 10,
    \"filter_value\": \"bzpkgsol\",
    \"message_room_id\": 18,
    \"user_id\": 8
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/messages/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 18,
    "nbre_items": 10,
    "filter_value": "bzpkgsol",
    "message_room_id": 18,
    "user_id": 8
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/chat/messages/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 18

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: bzpkgsol

message_room_id   integer  optional  

The id of an existing record in the message_rooms table. Example: 18

user_id   integer  optional  

The id of an existing record in the users table. Example: 8

Ajouter un message

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/chat/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message_room_id\": 2,
    \"body\": \"quibusdam\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/messages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "message_room_id": 2,
    "body": "quibusdam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/chat/messages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

message_room_id   integer   

The id of an existing record in the message_rooms table. Example: 2

body   string   

Example: quibusdam

Afficher un message

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/chat/messages/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/messages/5"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/chat/messages/5 could not be found."
}
 

Request      

GET api/chat/messages/{message_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_id   integer   

The ID of the message. Example: 5

Modifier un message

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/chat/messages/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"body\": \"est\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/chat/messages/9"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "body": "est"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/chat/messages/{message_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_id   integer   

The ID of the message. Example: 9

Body Parameters

body   string   

Example: est

Checkups patients

Gestion des checkups patients

Lister les checkups patients

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/check-ups/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 15,
    \"nbre_items\": 16,
    \"filter_value\": \"aqxixaksebgwkkgcp\",
    \"patient_id\": 18,
    \"medical_page_id\": 19,
    \"date\": \"2026-05-07\",
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"alert_status\": \"warning\",
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 15,
    "nbre_items": 16,
    "filter_value": "aqxixaksebgwkkgcp",
    "patient_id": 18,
    "medical_page_id": 19,
    "date": "2026-05-07",
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "alert_status": "warning",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/check-ups/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 15

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: aqxixaksebgwkkgcp

patient_id   integer  optional  

The id of an existing record in the users table. Example: 18

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 19

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

alert_status   string  optional  

Example: warning

Must be one of:
  • normal
  • warning
  • critical
trashed   boolean  optional  

Example: true

Ajouter un checkup patient

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/check-ups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 7,
    \"medical_page_id\": 10,
    \"dialysis_session_id\": 14,
    \"weight_kg\": 549.7,
    \"blood_pressure_systolic\": 1,
    \"blood_pressure_diastolic\": 15,
    \"heart_rate\": 19,
    \"temperature_c\": 44468.37517,
    \"blood_glucose\": 607943529.62977,
    \"urine_output_ml\": 14,
    \"spo2\": 19,
    \"creatinine\": 9.4053,
    \"urea\": 701056.355,
    \"creatinine_clearance\": 460534784.0818688,
    \"potassium\": 636.91125011,
    \"sodium\": 271571963.71419716,
    \"phosphorus\": 3.68138194,
    \"calcium\": 1034.3236,
    \"hemoglobin\": 25.789,
    \"notes\": \"sit\",
    \"date\": \"2026-05-07T16:23:58\",
    \"alert_status\": \"normal\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 7,
    "medical_page_id": 10,
    "dialysis_session_id": 14,
    "weight_kg": 549.7,
    "blood_pressure_systolic": 1,
    "blood_pressure_diastolic": 15,
    "heart_rate": 19,
    "temperature_c": 44468.37517,
    "blood_glucose": 607943529.62977,
    "urine_output_ml": 14,
    "spo2": 19,
    "creatinine": 9.4053,
    "urea": 701056.355,
    "creatinine_clearance": 460534784.0818688,
    "potassium": 636.91125011,
    "sodium": 271571963.71419716,
    "phosphorus": 3.68138194,
    "calcium": 1034.3236,
    "hemoglobin": 25.789,
    "notes": "sit",
    "date": "2026-05-07T16:23:58",
    "alert_status": "normal"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/check-ups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 7

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 10

dialysis_session_id   integer  optional  

Example: 14

weight_kg   number   

Example: 549.7

blood_pressure_systolic   integer  optional  

Example: 1

blood_pressure_diastolic   integer  optional  

Example: 15

heart_rate   integer  optional  

Example: 19

temperature_c   number  optional  

Example: 44468.37517

blood_glucose   number  optional  

Example: 607943529.62977

urine_output_ml   integer  optional  

Example: 14

spo2   integer  optional  

Example: 19

creatinine   number  optional  

Example: 9.4053

urea   number  optional  

Example: 701056.355

creatinine_clearance   number  optional  

Example: 460534784.08187

potassium   number  optional  

Example: 636.91125011

sodium   number  optional  

Example: 271571963.7142

phosphorus   number  optional  

Example: 3.68138194

calcium   number  optional  

Example: 1034.3236

hemoglobin   number  optional  

Example: 25.789

notes   string  optional  

Example: sit

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

hour   string  optional  
alert_status   string  optional  

Example: normal

Must be one of:
  • normal
  • warning
  • critical

Afficher les infos d'un checkup patient

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/check-ups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/check-ups/1 could not be found."
}
 

Request      

GET api/check-ups/{patient_check_up}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

patient_check_up   integer   

Example: 1

Modifier un checkup patient

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/check-ups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 4,
    \"medical_page_id\": 5,
    \"dialysis_session_id\": 16,
    \"weight_kg\": 5825.76,
    \"blood_pressure_systolic\": 18,
    \"blood_pressure_diastolic\": 13,
    \"heart_rate\": 7,
    \"temperature_c\": 13.3,
    \"blood_glucose\": 63,
    \"urine_output_ml\": 19,
    \"spo2\": 1,
    \"creatinine\": 663591609.2,
    \"urea\": 6787052.638083335,
    \"creatinine_clearance\": 5071,
    \"potassium\": 549670059.374243,
    \"sodium\": 265,
    \"phosphorus\": 52575.472357,
    \"calcium\": 647911,
    \"hemoglobin\": 743.695,
    \"notes\": \"quisquam\",
    \"date\": \"2026-05-07T16:23:58\",
    \"alert_status\": \"warning\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 4,
    "medical_page_id": 5,
    "dialysis_session_id": 16,
    "weight_kg": 5825.76,
    "blood_pressure_systolic": 18,
    "blood_pressure_diastolic": 13,
    "heart_rate": 7,
    "temperature_c": 13.3,
    "blood_glucose": 63,
    "urine_output_ml": 19,
    "spo2": 1,
    "creatinine": 663591609.2,
    "urea": 6787052.638083335,
    "creatinine_clearance": 5071,
    "potassium": 549670059.374243,
    "sodium": 265,
    "phosphorus": 52575.472357,
    "calcium": 647911,
    "hemoglobin": 743.695,
    "notes": "quisquam",
    "date": "2026-05-07T16:23:58",
    "alert_status": "warning"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/check-ups/{patient_check_up}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

patient_check_up   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 4

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 5

dialysis_session_id   integer  optional  

Example: 16

weight_kg   number   

Example: 5825.76

blood_pressure_systolic   integer  optional  

Example: 18

blood_pressure_diastolic   integer  optional  

Example: 13

heart_rate   integer  optional  

Example: 7

temperature_c   number  optional  

Example: 13.3

blood_glucose   number  optional  

Example: 63

urine_output_ml   integer  optional  

Example: 19

spo2   integer  optional  

Example: 1

creatinine   number  optional  

Example: 663591609.2

urea   number  optional  

Example: 6787052.6380833

creatinine_clearance   number  optional  

Example: 5071

potassium   number  optional  

Example: 549670059.37424

sodium   number  optional  

Example: 265

phosphorus   number  optional  

Example: 52575.472357

calcium   number  optional  

Example: 647911

hemoglobin   number  optional  

Example: 743.695

notes   string  optional  

Example: quisquam

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

hour   string  optional  
alert_status   string  optional  

Example: warning

Must be one of:
  • normal
  • warning
  • critical

Archiver plusieurs patient_check_ups

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/check-ups/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/check-ups/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the patient_check_ups table.

Restaurer plusieurs patient_check_ups

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/check-ups/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/check-ups/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/check-ups/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the patient_check_ups table.

Clôture de Caisse

Gestion des clôtures journalières de caisse MS-Care

POST api/cash-closures/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/cash-closures/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 24,
    \"nbre_items\": 3,
    \"cashier_id\": 20,
    \"status\": \"open\",
    \"date_from\": \"2026-05-07\",
    \"date_to\": \"2026-05-07\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/cash-closures/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 24,
    "nbre_items": 3,
    "cashier_id": 20,
    "status": "open",
    "date_from": "2026-05-07",
    "date_to": "2026-05-07"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-closures/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 24

nbre_items   integer  optional  

Example: 3

cashier_id   integer  optional  

The id of an existing record in the users table. Example: 20

status   string  optional  

Example: open

Must be one of:
  • open
  • closed
date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

Créer une clôture de caisse — calcule automatiquement les totaux du jour

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/cash-closures" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"closure_date\": \"2026-05-07\",
    \"notes\": \"labore\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/cash-closures"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "closure_date": "2026-05-07",
    "notes": "labore"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-closures

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

closure_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

notes   string  optional  

Example: labore

GET api/cash-closures/{cash_closure}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/cash-closures/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/cash-closures/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/cash-closures/11 could not be found."
}
 

Request      

GET api/cash-closures/{cash_closure}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_closure   integer   

Example: 11

Clôturer définitivement (passer à closed)

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/cash-closures/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"closed\",
    \"notes\": \"esse\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/cash-closures/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "closed",
    "notes": "esse"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/cash-closures/{cash_closure}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_closure   integer   

Example: 12

Body Parameters

status   string  optional  

Example: closed

Must be one of:
  • open
  • closed
notes   string  optional  

Example: esse

Contrats

Gestion des contrats employés

Retourne la liste des contrats avec la possibilité de filtrer et paginer les résultats.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/contracts/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 9,
    \"nbre_items\": 13,
    \"filter_value\": \"et\",
    \"position\": \"alias\",
    \"status\": \"Pending\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 9,
    "nbre_items": 13,
    "filter_value": "et",
    "position": "alias",
    "status": "Pending",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 9

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: et

position   string  optional  

Example: alias

status   string  optional  

Example: Pending

Must be one of:
  • Active
  • Terminated
  • Pending
trashed   boolean  optional  

Example: false

Affiche les détails d’un contrat spécifique à partir de son identifiant.

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/contracts/repellendus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/repellendus"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/contracts/repellendus could not be found."
}
 

Request      

GET api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: repellendus

Crée un nouveau contrat pour un utilisateur, après vérification d'absence de contrat actif.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/contracts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 7,
    \"user_approve_id\": 20,
    \"type\": \"consequatur\",
    \"description\": \"Dolorem fugiat facilis consequatur magni magnam ducimus eveniet.\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"duration\": 72,
    \"working_hours\": \"necessitatibus\",
    \"position\": \"dolor\",
    \"gross_salary\": 86,
    \"status\": \"Active\",
    \"service_benefits\": \"deleniti\",
    \"bonus\": \"cupiditate\",
    \"number_days_off\": 12
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 7,
    "user_approve_id": 20,
    "type": "consequatur",
    "description": "Dolorem fugiat facilis consequatur magni magnam ducimus eveniet.",
    "start_date": "2026-05-07T16:23:58",
    "duration": 72,
    "working_hours": "necessitatibus",
    "position": "dolor",
    "gross_salary": 86,
    "status": "Active",
    "service_benefits": "deleniti",
    "bonus": "cupiditate",
    "number_days_off": 12
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 7

user_approve_id   integer   

The id of an existing record in the users table. Example: 20

type   string   

Example: consequatur

description   string  optional  

Example: Dolorem fugiat facilis consequatur magni magnam ducimus eveniet.

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

duration   integer  optional  

Le champ value doit être au moins 1. Example: 72

working_hours   string   

Example: necessitatibus

position   string   

Example: dolor

gross_salary   number   

Le champ value doit être au moins 0. Example: 86

status   string  optional  

Example: Active

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: deleniti

bonus   string  optional  

Example: cupiditate

number_days_off   integer  optional  

Example: 12

Met à jour les informations d’un contrat donné.

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/contracts/sed" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 8,
    \"user_approve_id\": 1,
    \"type\": \"Stage\",
    \"description\": \"Quasi animi repudiandae et ipsa nihil.\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"duration\": 57,
    \"working_hours\": \"est\",
    \"position\": \"aut\",
    \"gross_salary\": 51,
    \"status\": \"Pending\",
    \"service_benefits\": \"et\",
    \"bonus\": \"modi\",
    \"number_days_off\": 20
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/sed"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 8,
    "user_approve_id": 1,
    "type": "Stage",
    "description": "Quasi animi repudiandae et ipsa nihil.",
    "start_date": "2026-05-07T16:23:58",
    "duration": 57,
    "working_hours": "est",
    "position": "aut",
    "gross_salary": 51,
    "status": "Pending",
    "service_benefits": "et",
    "bonus": "modi",
    "number_days_off": 20
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: sed

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 8

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 1

type   string  optional  

Example: Stage

Must be one of:
  • CDD
  • CDI
  • Stage
description   string  optional  

Example: Quasi animi repudiandae et ipsa nihil.

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

duration   integer  optional  

Le champ value doit être au moins 1. Example: 57

working_hours   string  optional  

Example: est

position   string  optional  

Example: aut

gross_salary   number  optional  

Le champ value doit être au moins 0. Example: 51

status   string  optional  

Example: Pending

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: et

bonus   string  optional  

Example: modi

number_days_off   integer  optional  

Example: 20

Archiver (soft delete) les contrats spécifiées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/contracts/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Restaurer les contrats archivés.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/contracts/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Supprimer définitivement les contrats spécifiés.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/contracts/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/contracts/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Demande d'approvisionnement | Supply demand

Contrôleur chargé de la gestion des demandes d'approvisionnement.

Crée une nouvelle demande d'approvisionnement.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/supply-demands" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"yawanowvnlqntqlrejyiw\",
    \"description\": \"Rem illo perspiciatis repellendus velit non.\",
    \"responsible_id\": 7,
    \"status\": \"refused\",
    \"priority\": \"medium\",
    \"medications\": [
        {
            \"id\": 18,
            \"unit_price\": 1,
            \"quantity\": 59,
            \"supplier_id\": 4
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "yawanowvnlqntqlrejyiw",
    "description": "Rem illo perspiciatis repellendus velit non.",
    "responsible_id": 7,
    "status": "refused",
    "priority": "medium",
    "medications": [
        {
            "id": 18,
            "unit_price": 1,
            "quantity": 59,
            "supplier_id": 4
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yawanowvnlqntqlrejyiw

description   string  optional  

Example: Rem illo perspiciatis repellendus velit non.

responsible_id   integer   

The id of an existing record in the users table. Example: 7

status   string  optional  

Example: refused

Must be one of:
  • pending
  • accepted
  • refused
priority   string   

Example: medium

Must be one of:
  • high
  • medium
  • low
medications   object[]   

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the medications table. Example: 18

unit_price   integer  optional  

Example: 1

quantity   integer   

Le champ value doit être au moins 1. Example: 59

supplier_id   integer   

The id of an existing record in the users table. Example: 4

Affiche la liste paginée des demandes d'approvisionnement, avec filtres optionnels.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/supply-demands/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filter_value\": \"aut\",
    \"responsible_id\": 19,
    \"priority\": \"high\",
    \"status\": \"refused\",
    \"medication_ids\": [
        5
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter_value": "aut",
    "responsible_id": 19,
    "priority": "high",
    "status": "refused",
    "medication_ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

filter_value   string  optional  

Example: aut

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 19

priority   string  optional  

Example: high

Must be one of:
  • high
  • medium
  • low
status   string  optional  

Example: refused

Must be one of:
  • pending
  • accepted
  • refused
medication_ids   integer[]  optional  

The id of an existing record in the medications table.

Affiche les détails d'une demande d'approvisionnement spécifique.

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/supply-demands/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/supply-demands/8 could not be found."
}
 

Request      

GET api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 8

Met à jour les informations d'une demande d'approvisionnement existante.

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/supply-demands/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"gtw\",
    \"description\": \"Culpa voluptatem aut rerum nulla at temporibus.\",
    \"responsible_id\": 18,
    \"status\": \"pending\",
    \"priority\": \"high\",
    \"medications\": [
        {
            \"id\": 5,
            \"unit_price\": 14,
            \"quantity\": 63,
            \"supplier_id\": 18
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands/10"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "gtw",
    "description": "Culpa voluptatem aut rerum nulla at temporibus.",
    "responsible_id": 18,
    "status": "pending",
    "priority": "high",
    "medications": [
        {
            "id": 5,
            "unit_price": 14,
            "quantity": 63,
            "supplier_id": 18
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 10

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: gtw

description   string  optional  

Example: Culpa voluptatem aut rerum nulla at temporibus.

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 18

status   string  optional  

Example: pending

Must be one of:
  • pending
  • accepted
  • refused
priority   string  optional  

Example: high

Must be one of:
  • high
  • medium
  • low
medications   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the medications table. Example: 5

unit_price   integer  optional  

Example: 14

quantity   integer   

Le champ value doit être au moins 1. Example: 63

supplier_id   integer   

The id of an existing record in the users table. Example: 18

Met en corbeille (suppression logique) une ou plusieurs demandes d'approvisionnement.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/supply-demands/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"supply_demand_ids\": [
        17
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "supply_demand_ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

Restaure une ou plusieurs demandes d'approvisionnement supprimées (suppression logique).

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/supply-demands/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"supply_demand_ids\": [
        2
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/supply-demands/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "supply_demand_ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

Demande d'explication / Explanation Request

Gestion des demandes d'explication

Afficher les demandes d'explication

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/explanation-requests/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 68,
    \"nbre_items\": 16,
    \"filter_value\": \"vjoledzrvikjfdlz\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 68,
    "nbre_items": 16,
    "filter_value": "vjoledzrvikjfdlz"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 68

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: vjoledzrvikjfdlz

Creer une demande d'explication

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/explanation-requests" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"molestiae\",
    \"description\": \"Error facilis vel at provident est omnis adipisci.\",
    \"idUser\": 12,
    \"idResponsable\": 13,
    \"image\": \"ut\",
    \"comments\": \"enim\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "molestiae",
    "description": "Error facilis vel at provident est omnis adipisci.",
    "idUser": 12,
    "idResponsable": 13,
    "image": "ut",
    "comments": "enim"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: molestiae

description   string  optional  

Example: Error facilis vel at provident est omnis adipisci.

idUser   integer   

The id of an existing record in the users table. Example: 12

idResponsable   integer   

The id of an existing record in the users table. Example: 13

image   string  optional  

Example: ut

comments   string  optional  

Example: enim

Afficher une demande d'explication spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/explanation-requests/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/explanation-requests/2 could not be found."
}
 

Request      

GET api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 2

Mettre a jour une demande d'explication

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/explanation-requests/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dicta\",
    \"description\": \"Dolor qui rerum distinctio ut beatae.\",
    \"idUser\": 2,
    \"idResponsable\": 1,
    \"image\": \"rerum\",
    \"comments\": \"unde\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dicta",
    "description": "Dolor qui rerum distinctio ut beatae.",
    "idUser": 2,
    "idResponsable": 1,
    "image": "rerum",
    "comments": "unde"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 1

Body Parameters

name   string  optional  

Example: dicta

description   string  optional  

Example: Dolor qui rerum distinctio ut beatae.

idUser   integer  optional  

The id of an existing record in the users table. Example: 2

idResponsable   integer  optional  

The id of an existing record in the users table. Example: 1

image   string  optional  

Example: rerum

comments   string  optional  

Example: unde

Archiver (soft delete) les demandes d'explication.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/explanation-requests/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the explanation_requests table.

Restaurer les demandes d'explication archivées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/explanation-requests/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/explanation-requests/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the explanation_requests table.

Demande de congé

Gestion des demandes de congé employé

Lister les congés enregistrés

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/holidays/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 14,
    \"user_approve_id\": 11,
    \"status\": \"rejected\",
    \"archive\": \"only_trashed\",
    \"date\": \"2026-05-07T16:23:58\",
    \"page_items\": 11,
    \"nbre_items\": 12,
    \"filter_value\": \"reprehenderit\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 14,
    "user_approve_id": 11,
    "status": "rejected",
    "archive": "only_trashed",
    "date": "2026-05-07T16:23:58",
    "page_items": 11,
    "nbre_items": 12,
    "filter_value": "reprehenderit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 14

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 11

status   string  optional  

Example: rejected

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
archive   string  optional  

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed
date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

page_items   integer  optional  

Example: 11

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Example: reprehenderit

Enregistrer une demande de congé

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/holidays" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"ut\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2026-05-07T16:23:58\",
    \"days_taken\": 9,
    \"reason\": \"ynsjpajhhnapdnmwo\",
    \"user_approve_id\": 10
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "ut",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2026-05-07T16:23:58",
    "days_taken": 9,
    "reason": "ynsjpajhhnapdnmwo",
    "user_approve_id": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

Example: ut

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

days_taken   integer   

Example: 9

reason   string   

Le champ value ne peut contenir plus de 255 caractères. Example: ynsjpajhhnapdnmwo

user_approve_id   integer   

The id of an existing record in the users table. Example: 10

Afficher les détails d'une retenue sur salaire

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/holidays/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/holidays/16 could not be found."
}
 

Request      

GET api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 16

Modifier une demande de congé

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/holidays/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"cumque\",
    \"start_date\": \"2120-08-15\",
    \"end_date\": \"2078-04-10\",
    \"days_taken\": 1,
    \"reason\": \"zqzxojesb\",
    \"status\": \"in_progress\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays/5"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "cumque",
    "start_date": "2120-08-15",
    "end_date": "2078-04-10",
    "days_taken": 1,
    "reason": "zqzxojesb",
    "status": "in_progress"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 5

Body Parameters

type   string  optional  

Example: cumque

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à today. Example: 2120-08-15

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2078-04-10

days_taken   integer  optional  

Example: 1

reason   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zqzxojesb

status   string  optional  

Example: in_progress

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

Archiver une ou plusieurs demandes de congés

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/holidays/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"idHolidays\": [
        9
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "idHolidays": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

Restaurer une ou plusieurs demandes de congés

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/holidays/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"idHolidays\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/holidays/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "idHolidays": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

Demandes de Permissions

Contrôleur pour la gestion des demandes de permission des utilisateurs

Affiche une liste paginée des demandes de permission.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permission-requests/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"approved\",
    \"departure\": \"2026-05-07\",
    \"return\": \"2026-05-07\",
    \"duration\": 19,
    \"page_items\": 7,
    \"nbre_items\": 5,
    \"filter_value\": \"oeeycnpokelfklhdzsuepxzi\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "approved",
    "departure": "2026-05-07",
    "return": "2026-05-07",
    "duration": 19,
    "page_items": 7,
    "nbre_items": 5,
    "filter_value": "oeeycnpokelfklhdzsuepxzi"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected
departure   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

duration   integer  optional  

Example: 19

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 7

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: oeeycnpokelfklhdzsuepxzi

Crée une nouvelle demande de permission.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permission-requests" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"voluptatem\",
    \"departure\": \"2026-05-07\",
    \"return\": \"2057-04-27\",
    \"duration\": 57,
    \"status\": \"pending\",
    \"user_approve_id\": 10
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "voluptatem",
    "departure": "2026-05-07",
    "return": "2057-04-27",
    "duration": 57,
    "status": "pending",
    "user_approve_id": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

reason   string   

Example: voluptatem

departure   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après departure. Example: 2057-04-27

duration   integer  optional  

Le champ value doit être au moins 1. Example: 57

status   string  optional  

Example: pending

Must be one of:
  • pending
  • approved
  • rejected
user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 10

Affiche les détails d'une demande de permission spécifique.

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/permission-requests/est" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests/est"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/permission-requests/est could not be found."
}
 

Request      

GET api/permission-requests/{permission_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission_request   string   

Example: est

Met à jour une demande de permission si elle est encore en attente.

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/permission-requests/sunt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"totam\",
    \"departure\": \"2026-05-07\",
    \"return\": \"2085-11-16\",
    \"duration\": 74,
    \"status\": \"approved\",
    \"user_approve_id\": 19
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests/sunt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "totam",
    "departure": "2026-05-07",
    "return": "2085-11-16",
    "duration": 74,
    "status": "approved",
    "user_approve_id": 19
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/permission-requests/{permission_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission_request   string   

Example: sunt

Body Parameters

reason   string  optional  

Example: totam

departure   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après departure. Example: 2085-11-16

duration   integer  optional  

Le champ value doit être au moins 1. Example: 74

status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected
user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 19

Archiver (soft delete) les presences spécifiées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permission-requests/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the permission_requests table.

Restaurer les permission_requests archivés.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permission-requests/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permission-requests/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the permission_requests table.

Départements

Gestion des départements

Lister les départements

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/departments/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 46,
    \"nbre_items\": 20,
    \"filter_value\": \"rasquhabvgjboloj\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2026-05-07T16:23:58\",
    \"responsible_id\": 4,
    \"health_center_id\": 5,
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 46,
    "nbre_items": 20,
    "filter_value": "rasquhabvgjboloj",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2026-05-07T16:23:58",
    "responsible_id": 4,
    "health_center_id": 5,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/departments/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 46

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: rasquhabvgjboloj

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 4

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 5

trashed   boolean  optional  

Example: true

Ajouter un département

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/departments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 9,
    \"health_center_id\": 10,
    \"name\": \"arkvqmb\",
    \"description\": \"Et sed qui commodi vel illo.\",
    \"phone\": \"blhaqcceleqsa\",
    \"email\": \"luettgen.nedra@example.com\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 9,
    "health_center_id": 10,
    "name": "arkvqmb",
    "description": "Et sed qui commodi vel illo.",
    "phone": "blhaqcceleqsa",
    "email": "luettgen.nedra@example.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/departments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 9

health_center_id   integer   

The id of an existing record in the health_centers table. Example: 10

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: arkvqmb

description   string   

Example: Et sed qui commodi vel illo.

phone   string   

Le champ value ne peut contenir plus de 200 caractères. Example: blhaqcceleqsa

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: luettgen.nedra@example.com

Afficher les infos d'un département

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/departments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/departments/1 could not be found."
}
 

Request      

GET api/departments/{department_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

department_id   integer   

The ID of the department. Example: 1

Modifier un département

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/departments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 9,
    \"health_center_id\": 4,
    \"name\": \"nltamaploqnzonjuujboug\",
    \"description\": \"Culpa molestiae omnis maxime sint tempore.\",
    \"phone\": \"rkugltgm\",
    \"email\": \"bwilliamson@example.com\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 9,
    "health_center_id": 4,
    "name": "nltamaploqnzonjuujboug",
    "description": "Culpa molestiae omnis maxime sint tempore.",
    "phone": "rkugltgm",
    "email": "bwilliamson@example.com"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/departments/{department_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

department_id   integer   

The ID of the department. Example: 1

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 9

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 4

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: nltamaploqnzonjuujboug

description   string  optional  

Example: Culpa molestiae omnis maxime sint tempore.

phone   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: rkugltgm

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: bwilliamson@example.com

Archiver plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/departments/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/departments/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the departments table.

Restaurer plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/departments/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/departments/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/departments/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the departments table.

Endpoints

Lister les rendez-vous

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/rendez-vous/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 17,
    \"nbre_items\": 11,
    \"filter_value\": \"shqpxiqmaxmcberrudeukmssr\",
    \"patient_id\": 13,
    \"doctor_id\": 5,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"date\": \"2026-05-07\",
    \"status\": \"validated\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 17,
    "nbre_items": 11,
    "filter_value": "shqpxiqmaxmcberrudeukmssr",
    "patient_id": 13,
    "doctor_id": 5,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "date": "2026-05-07",
    "status": "validated",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rendez-vous/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 17

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: shqpxiqmaxmcberrudeukmssr

patient_id   integer  optional  

The id of an existing record in the users table. Example: 13

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 5

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: validated

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
trashed   boolean  optional  

Example: false

Ajouter un rendez-vous

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/rendez-vous" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 19,
    \"doctor_id\": 4,
    \"date\": \"2026-05-07\",
    \"hour\": \"16:23\",
    \"description\": \"Et iure qui quaerat libero possimus sed.\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 19,
    "doctor_id": 4,
    "date": "2026-05-07",
    "hour": "16:23",
    "description": "Et iure qui quaerat libero possimus sed."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rendez-vous

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 19

doctor_id   integer   

The id of an existing record in the users table. Example: 4

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

hour   string   

Must be a valid date in the format H:i. Example: 16:23

description   string   

Example: Et iure qui quaerat libero possimus sed.

Afficher les infos d'un rendez-vous

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/rendez-vous/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/rendez-vous/1 could not be found."
}
 

Request      

GET api/rendez-vous/{rendez_vous}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

rendez_vous   integer   

Example: 1

Modifier un rendez-vous

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/rendez-vous/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 15,
    \"doctor_id\": 2,
    \"date\": \"2026-05-07\",
    \"hour\": \"16:23\",
    \"description\": \"Sed perspiciatis consequatur vel hic corrupti.\",
    \"status\": \"done\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 15,
    "doctor_id": 2,
    "date": "2026-05-07",
    "hour": "16:23",
    "description": "Sed perspiciatis consequatur vel hic corrupti.",
    "status": "done"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/rendez-vous/{rendez_vous}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

rendez_vous   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 15

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 2

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

hour   string  optional  

Must be a valid date in the format H:i. Example: 16:23

description   string  optional  

Example: Sed perspiciatis consequatur vel hic corrupti.

status   string  optional  

Example: done

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone

Archiver plusieurs rendez_vous

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/rendez-vous/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        4
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rendez-vous/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the rendez_vous table.

Restaurer plusieurs rendez_vous

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/rendez-vous/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        18
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/rendez-vous/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rendez-vous/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the rendez_vous table.

POST api/dashboardfounder

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/dashboardfounder" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"health_center_id\": 7
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dashboardfounder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "health_center_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/dashboardfounder

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 7

Exécutions de planning de soins

Gestion des exécutions de planning de soins

POST api/care-schedule-executions/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 71,
    \"nbre_items\": 13,
    \"filter_value\": \"cyhavajbmyn\",
    \"care_schedule_id\": 7,
    \"nurse_id\": 20,
    \"status\": \"done\",
    \"nursing_act_id\": 4,
    \"date_from\": \"2026-05-07\",
    \"date_to\": \"2026-05-07\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 71,
    "nbre_items": 13,
    "filter_value": "cyhavajbmyn",
    "care_schedule_id": 7,
    "nurse_id": 20,
    "status": "done",
    "nursing_act_id": 4,
    "date_from": "2026-05-07",
    "date_to": "2026-05-07",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedule-executions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 71

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: cyhavajbmyn

care_schedule_id   integer  optional  

The id of an existing record in the care_schedules table. Example: 7

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 20

status   string  optional  

Example: done

Must be one of:
  • pending
  • done
  • late
  • missed
nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 4

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

trashed   boolean  optional  

Example: false

POST api/care-schedule-executions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedule-executions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"care_schedule_id\": 9,
    \"nurse_id\": 19,
    \"scheduled_at\": \"2026-05-07T16:23:58\",
    \"executed_at\": \"2026-05-07T16:23:58\",
    \"status\": \"pending\",
    \"observations\": \"autem\",
    \"nursing_act_id\": 7
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "care_schedule_id": 9,
    "nurse_id": 19,
    "scheduled_at": "2026-05-07T16:23:58",
    "executed_at": "2026-05-07T16:23:58",
    "status": "pending",
    "observations": "autem",
    "nursing_act_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedule-executions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

care_schedule_id   integer   

Example: 9

nurse_id   integer   

The id of an existing record in the users table. Example: 19

scheduled_at   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

executed_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

status   string   

Example: pending

Must be one of:
  • pending
  • done
  • late
  • missed
observations   string  optional  

Example: autem

nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 7

GET api/care-schedule-executions/{care_schedule_execution}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/care-schedule-executions/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/care-schedule-executions/11 could not be found."
}
 

Request      

GET api/care-schedule-executions/{care_schedule_execution}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule_execution   integer   

Example: 11

PUT api/care-schedule-executions/{care_schedule_execution}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/19" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"care_schedule_id\": 8,
    \"nurse_id\": 9,
    \"scheduled_at\": \"2026-05-07T16:23:58\",
    \"executed_at\": \"2026-05-07T16:23:58\",
    \"status\": \"done\",
    \"observations\": \"sed\",
    \"nursing_act_id\": 15
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/19"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "care_schedule_id": 8,
    "nurse_id": 9,
    "scheduled_at": "2026-05-07T16:23:58",
    "executed_at": "2026-05-07T16:23:58",
    "status": "done",
    "observations": "sed",
    "nursing_act_id": 15
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/care-schedule-executions/{care_schedule_execution}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule_execution   integer   

Example: 19

Body Parameters

care_schedule_id   integer  optional  

Example: 8

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 9

scheduled_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

executed_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

status   string  optional  

Example: done

Must be one of:
  • pending
  • done
  • late
  • missed
observations   string  optional  

Example: sed

nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 15

POST api/care-schedule-executions/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        18
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedule-executions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the care_schedule_executions table.

POST api/care-schedule-executions/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedule-executions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedule-executions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the care_schedule_executions table.

Forum

Catégories Gestion des catégories de forum

Lister les categories de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/categories/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 63,
    \"nbre_items\": 10,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"xcketvazpibbcvbjv\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 63,
    "nbre_items": 10,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "xcketvazpibbcvbjv"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/categories/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 63

nbre_items   integer  optional  

Example: 10

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: xcketvazpibbcvbjv

Ajouter une catégorie de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"miaduswomrbtomdfidn\",
    \"description\": \"Culpa laboriosam et sit necessitatibus numquam at magnam.\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "miaduswomrbtomdfidn",
    "description": "Culpa laboriosam et sit necessitatibus numquam at magnam."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: miaduswomrbtomdfidn

description   string  optional  

Example: Culpa laboriosam et sit necessitatibus numquam at magnam.

Afficher les infos d'une catégorie de forum

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/forum/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/categories/1 could not be found."
}
 

Request      

GET api/forum/categories/{forum_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_category   integer   

Example: 1

Modifier une catégorie de forum

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/forum/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"teaotizkcnkoit\",
    \"description\": \"Quam cum ea blanditiis non ipsum adipisci vel.\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "teaotizkcnkoit",
    "description": "Quam cum ea blanditiis non ipsum adipisci vel."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/forum/categories/{forum_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_category   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: teaotizkcnkoit

description   string  optional  

Example: Quam cum ea blanditiis non ipsum adipisci vel.

Archiver plusieurs categories de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/categories/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/categories/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_categories table.

Restaurer plusieurs categories de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/categories/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/categories/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/categories/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_categories table.

Questions Gestion des questions de forum

Lister les questions de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/questions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 59,
    \"nbre_items\": 17,
    \"filter_value\": \"skfapvlg\",
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"forum_category_id\": 13,
    \"user_id\": 1
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 59,
    "nbre_items": 17,
    "filter_value": "skfapvlg",
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "forum_category_id": 13,
    "user_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/questions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 59

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: skfapvlg

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 13

user_id   integer  optional  

The id of an existing record in the users table. Example: 1

Ajouter une question de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/questions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_category_id\": 20,
    \"title\": \"iktwhqza\",
    \"body\": \"quod\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_category_id": 20,
    "title": "iktwhqza",
    "body": "quod"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/questions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

forum_category_id   integer   

The id of an existing record in the forum_categories table. Example: 20

title   string   

Le champ value ne peut contenir plus de 200 caractères. Example: iktwhqza

body   string   

Example: quod

Afficher les infos d'une question de forum

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/forum/questions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/questions/1 could not be found."
}
 

Request      

GET api/forum/questions/{forum_question}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_question   integer   

Example: 1

Modifier une question de forum

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/forum/questions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_category_id\": 5,
    \"title\": \"t\",
    \"body\": \"laudantium\",
    \"is_resolved\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_category_id": 5,
    "title": "t",
    "body": "laudantium",
    "is_resolved": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/forum/questions/{forum_question}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_question   integer   

Example: 1

Body Parameters

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 5

title   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: t

body   string  optional  

Example: laudantium

is_resolved   boolean  optional  

Example: false

Archiver plusieurs questions de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/questions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/questions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_questions table.

Restaurer plusieurs questions de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/questions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/questions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/questions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_questions table.

Réponses Gestion des réponses aux questions de forum

Lister les réponses de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/answers/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 35,
    \"nbre_items\": 1,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"bfpuwfobib\",
    \"forum_category_id\": 17,
    \"forum_question_id\": 4,
    \"user_id\": 4
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 35,
    "nbre_items": 1,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "bfpuwfobib",
    "forum_category_id": 17,
    "forum_question_id": 4,
    "user_id": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/answers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 35

nbre_items   integer  optional  

Example: 1

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: bfpuwfobib

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 17

forum_question_id   integer  optional  

The id of an existing record in the forum_questions table. Example: 4

user_id   integer  optional  

The id of an existing record in the users table. Example: 4

Ajouter une réponse à une question de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/answers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_question_id\": 4,
    \"body\": \"qui\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_question_id": 4,
    "body": "qui"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/answers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

forum_question_id   integer   

The id of an existing record in the forum_questions table. Example: 4

body   string   

Example: qui

Afficher les infos d'une réponse à une question de forum

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/forum/answers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/answers/1 could not be found."
}
 

Request      

GET api/forum/answers/{forum_answer}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_answer   integer   

Example: 1

Modifier une réponse à une question de forum

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/forum/answers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_question_id\": 15,
    \"body\": \"est\",
    \"is_accepted\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_question_id": 15,
    "body": "est",
    "is_accepted": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/forum/answers/{forum_answer}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_answer   integer   

Example: 1

Body Parameters

forum_question_id   integer  optional  

The id of an existing record in the forum_questions table. Example: 15

body   string  optional  

Example: est

is_accepted   boolean  optional  

Example: false

Archiver plusieurs questions de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/answers/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/answers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_answers table.

Restaurer plusieurs réponses aux questions de forum

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/forum/answers/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/forum/answers/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/forum/answers/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_answers table.

Laboratoire

Gestion des demandes et résultats d'examens laboratoire

Lister les demandes d'examens

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-requests/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 49,
    \"nbre_items\": 8,
    \"filter_value\": \"yjjepgnpwdhreqqnirspsj\",
    \"patient_id\": 9,
    \"doctor_id\": 12,
    \"technician_id\": 4,
    \"status\": \"requested\",
    \"lab_exam_pack_id\": 9,
    \"date_from\": \"2026-05-07\",
    \"date_to\": \"2026-05-07\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 49,
    "nbre_items": 8,
    "filter_value": "yjjepgnpwdhreqqnirspsj",
    "patient_id": 9,
    "doctor_id": 12,
    "technician_id": 4,
    "status": "requested",
    "lab_exam_pack_id": 9,
    "date_from": "2026-05-07",
    "date_to": "2026-05-07",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 49

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: yjjepgnpwdhreqqnirspsj

patient_id   integer  optional  

The id of an existing record in the users table. Example: 9

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 12

technician_id   integer  optional  

The id of an existing record in the users table. Example: 4

status   string  optional  

Example: requested

Must be one of:
  • requested
  • sampled
  • in_progress
  • done
  • validated
lab_exam_pack_id   integer  optional  

The id of an existing record in the lab_exam_packs table. Example: 9

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

trashed   boolean  optional  

Example: false

Créer une demande d'examen labo

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-requests" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 10,
    \"doctor_id\": 14,
    \"medical_page_id\": 18,
    \"lab_exam_catalog_id\": 11,
    \"lab_exam_pack_id\": 16,
    \"exam_name\": \"dnueefwplegzpwrgykvywqsjg\",
    \"clinical_info\": \"ut\",
    \"price\": 39,
    \"requested_at\": \"2026-05-07T16:23:58\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 10,
    "doctor_id": 14,
    "medical_page_id": 18,
    "lab_exam_catalog_id": 11,
    "lab_exam_pack_id": 16,
    "exam_name": "dnueefwplegzpwrgykvywqsjg",
    "clinical_info": "ut",
    "price": 39,
    "requested_at": "2026-05-07T16:23:58"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 10

doctor_id   integer   

The id of an existing record in the users table. Example: 14

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 18

lab_exam_catalog_id   integer  optional  

The id of an existing record in the lab_exam_catalogs table. Example: 11

lab_exam_pack_id   integer  optional  

The id of an existing record in the lab_exam_packs table. Example: 16

exam_name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: dnueefwplegzpwrgykvywqsjg

clinical_info   string  optional  

Example: ut

price   number  optional  

Le champ value doit être au moins 0. Example: 39

requested_at   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

Afficher une demande d'examen

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/lab-requests/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/lab-requests/1 could not be found."
}
 

Request      

GET api/lab-requests/{lab_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_request   integer   

Example: 1

Mettre à jour le statut et les résultats d'un examen

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/lab-requests/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"in\",
    \"technician_id\": 15,
    \"validator_id\": 12,
    \"clinical_info\": \"est\",
    \"sampled_at\": \"2026-05-07T16:23:58\",
    \"result_at\": \"2026-05-07T16:23:58\",
    \"validated_at\": \"2026-05-07T16:23:58\",
    \"price\": 72,
    \"results\": [
        {
            \"parameter_name\": \"magnam\",
            \"value\": \"voluptatem\",
            \"unit\": \"qui\",
            \"reference_range\": \"odit\",
            \"is_abnormal\": true,
            \"notes\": \"voluptatem\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "in",
    "technician_id": 15,
    "validator_id": 12,
    "clinical_info": "est",
    "sampled_at": "2026-05-07T16:23:58",
    "result_at": "2026-05-07T16:23:58",
    "validated_at": "2026-05-07T16:23:58",
    "price": 72,
    "results": [
        {
            "parameter_name": "magnam",
            "value": "voluptatem",
            "unit": "qui",
            "reference_range": "odit",
            "is_abnormal": true,
            "notes": "voluptatem"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/lab-requests/{lab_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_request   integer   

Example: 1

Body Parameters

status   string  optional  

Example: in

technician_id   integer  optional  

The id of an existing record in the users table. Example: 15

validator_id   integer  optional  

The id of an existing record in the users table. Example: 12

clinical_info   string  optional  

Example: est

sampled_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

result_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

validated_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

price   number  optional  

Le champ value doit être au moins 0. Example: 72

results   object[]  optional  
parameter_name   string  optional  

This field is required when results is present. Example: magnam

value   string  optional  

Example: voluptatem

unit   string  optional  

Example: qui

reference_range   string  optional  

Example: odit

is_abnormal   boolean  optional  

Example: true

notes   string  optional  

Example: voluptatem

Archiver des demandes labo

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-requests/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_requests table.

Restaurer des demandes labo

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-requests/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        18
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-requests/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_requests table.

Médicaments

Gestion des médicaments

Lister les médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 87,
    \"nbre_items\": 10,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"nsiaajekichn\",
    \"name\": \"fokbkirfyzxvcdbrc\",
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 87,
    "nbre_items": 10,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "nsiaajekichn",
    "name": "fokbkirfyzxvcdbrc",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 87

nbre_items   integer  optional  

Example: 10

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: nsiaajekichn

name   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: fokbkirfyzxvcdbrc

trashed   boolean  optional  

Example: true

Ajout d'un médicament

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"hbgrdcarykuqcc\",
    \"description\": \"Ea tenetur cupiditate consequuntur eos saepe iusto.\",
    \"photo\": \"perferendis\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "hbgrdcarykuqcc",
    "description": "Ea tenetur cupiditate consequuntur eos saepe iusto.",
    "photo": "perferendis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: hbgrdcarykuqcc

description   string  optional  

Example: Ea tenetur cupiditate consequuntur eos saepe iusto.

photo   string  optional  

Example: perferendis

Afficher un médicament

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/medications/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medications/1 could not be found."
}
 

Request      

GET api/medications/{medication_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_id   integer   

The ID of the medication. Example: 1

Modifier un médicament

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/medications/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"yuib\",
    \"description\": \"Est aliquam voluptatem animi facilis eius voluptatem fugiat eius.\",
    \"photo\": \"est\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "yuib",
    "description": "Est aliquam voluptatem animi facilis eius voluptatem fugiat eius.",
    "photo": "est"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/medications/{medication_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_id   integer   

The ID of the medication. Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: yuib

description   string  optional  

Example: Est aliquam voluptatem animi facilis eius voluptatem fugiat eius.

photo   string  optional  

Example: est

Archiver plusieurs médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medications table.

Restaurer plusieurs médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medications table.

Notes de frais / Expense Reports

Gestion des notes de frais

Afficher les notes de frais

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/expense-reports/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"paid\",
    \"date\": \"2026-05-07\",
    \"page_items\": 79,
    \"nbre_items\": 6,
    \"filter_value\": \"mhwagttinjwdqdfdimhw\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "paid",
    "date": "2026-05-07",
    "page_items": 79,
    "nbre_items": 6,
    "filter_value": "mhwagttinjwdqdfdimhw"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-reports/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

status   string  optional  

Example: paid

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 79

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: mhwagttinjwdqdfdimhw

Afficher une note de frais spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/expense-reports/a" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/a"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/expense-reports/a could not be found."
}
 

Request      

GET api/expense-reports/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the expense report. Example: a

Créer une note de frais

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/expense-reports" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"libelle\": \"et\",
    \"amount\": 46,
    \"description\": \"Voluptas voluptatem velit esse eveniet rerum amet.\",
    \"date\": \"2026-05-07\",
    \"status\": \"paid\",
    \"idUserApprove\": 4
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "libelle": "et",
    "amount": 46,
    "description": "Voluptas voluptatem velit esse eveniet rerum amet.",
    "date": "2026-05-07",
    "status": "paid",
    "idUserApprove": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-reports

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

libelle   string   

Example: et

amount   number   

Le champ value doit être au moins 0. Example: 46

description   string   

Example: Voluptas voluptatem velit esse eveniet rerum amet.

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: paid

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
idUserApprove   integer  optional  

The id of an existing record in the users table. Example: 4

Mettre à jour une note de frais

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/expense-reports/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"libelle\": \"ratione\",
    \"amount\": 29,
    \"description\": \"Omnis quos ea molestiae non voluptates.\",
    \"date\": \"2026-05-07\",
    \"status\": \"paid\",
    \"idUserApprove\": 6
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/et"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "libelle": "ratione",
    "amount": 29,
    "description": "Omnis quos ea molestiae non voluptates.",
    "date": "2026-05-07",
    "status": "paid",
    "idUserApprove": 6
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/expense-reports/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the expense report. Example: et

Body Parameters

libelle   string  optional  

Example: ratione

amount   number  optional  

Le champ value doit être au moins 0. Example: 29

description   string  optional  

Example: Omnis quos ea molestiae non voluptates.

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: paid

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
idUserApprove   integer  optional  

The id of an existing record in the users table. Example: 6

Archiver (soft delete) les notes de frais.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/expense-reports/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-reports/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

Restaurer les notes de frais archivées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/expense-reports/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        9
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-reports/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

Supprimer définitivement les notes de frais spécifiées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/expense-reports/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        9
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/expense-reports/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-reports/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

Nourritures

Gestion des nourritures

Lister les nourritures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/foods/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 8,
    \"nbre_items\": 17,
    \"filter_value\": \"qmvfbm\",
    \"trashed\": true,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"name\": \"onbdywmic\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 8,
    "nbre_items": 17,
    "filter_value": "qmvfbm",
    "trashed": true,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "name": "onbdywmic"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/foods/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 8

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: qmvfbm

trashed   boolean  optional  

Example: true

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

name   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: onbdywmic

Ajouter une nourriture

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/foods" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"lzwjzhpqyccgmtrquaycdh\",
    \"description\": \"Laboriosam dolores debitis impedit eos tempore.\",
    \"potassium_mg\": \"wfmunvwj\",
    \"sodium_mg\": \"nlwtaccqwpejrttrnjh\",
    \"phosphorus_mg\": \"opouvwnfbbprkqqbmolhc\",
    \"photo\": \"rhotzwmuvwcvfpfzguypdehx\",
    \"food_alternatives\": [
        {
            \"alternative_id\": 9,
            \"reason\": \"miwatoguxsalh\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "lzwjzhpqyccgmtrquaycdh",
    "description": "Laboriosam dolores debitis impedit eos tempore.",
    "potassium_mg": "wfmunvwj",
    "sodium_mg": "nlwtaccqwpejrttrnjh",
    "phosphorus_mg": "opouvwnfbbprkqqbmolhc",
    "photo": "rhotzwmuvwcvfpfzguypdehx",
    "food_alternatives": [
        {
            "alternative_id": 9,
            "reason": "miwatoguxsalh"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/foods

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: lzwjzhpqyccgmtrquaycdh

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Laboriosam dolores debitis impedit eos tempore.

potassium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: wfmunvwj

sodium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: nlwtaccqwpejrttrnjh

phosphorus_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: opouvwnfbbprkqqbmolhc

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: rhotzwmuvwcvfpfzguypdehx

food_alternatives   object[]  optional  
alternative_id   integer   

The id of an existing record in the food table. Example: 9

reason   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: miwatoguxsalh

Afficher une nourriture

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/foods/6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/foods/6 could not be found."
}
 

Request      

GET api/foods/{food_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

food_id   integer   

The ID of the food. Example: 6

Modifier une nourriture

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/foods/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"m\",
    \"description\": \"Rerum alias inventore recusandae sunt.\",
    \"potassium_mg\": \"ykeofpux\",
    \"sodium_mg\": \"ygncjtyqztenb\",
    \"phosphorus_mg\": \"p\",
    \"photo\": \"nho\",
    \"food_alternatives\": [
        {
            \"alternative_id\": 8,
            \"reason\": \"mshfz\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "m",
    "description": "Rerum alias inventore recusandae sunt.",
    "potassium_mg": "ykeofpux",
    "sodium_mg": "ygncjtyqztenb",
    "phosphorus_mg": "p",
    "photo": "nho",
    "food_alternatives": [
        {
            "alternative_id": 8,
            "reason": "mshfz"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/foods/{food_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

food_id   integer   

The ID of the food. Example: 12

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: m

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Rerum alias inventore recusandae sunt.

potassium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ykeofpux

sodium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ygncjtyqztenb

phosphorus_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: p

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: nho

food_alternatives   object[]  optional  
alternative_id   integer   

The id of an existing record in the food table. Example: 8

reason   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: mshfz

Archiver plusieurs nourritures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/foods/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/foods/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the food table.

Restaurer plusieurs nourritures

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/foods/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/foods/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/foods/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the food table.

Packs d'examens de laboratoire

Gestion des packs d'examens de laboratoire

POST api/lab-exam-packs/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 85,
    \"nbre_items\": 1,
    \"filter_value\": \"kzhawrdqbgrmdnhxmpeqzm\",
    \"is_active\": true,
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 85,
    "nbre_items": 1,
    "filter_value": "kzhawrdqbgrmdnhxmpeqzm",
    "is_active": true,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-packs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 85

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: kzhawrdqbgrmdnhxmpeqzm

is_active   boolean  optional  

Example: true

trashed   boolean  optional  

Example: true

POST api/lab-exam-packs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"vii\",
    \"description\": \"Aliquam ex odio qui quod nulla voluptatem illo ea.\",
    \"price\": 88,
    \"is_active\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "vii",
    "description": "Aliquam ex odio qui quod nulla voluptatem illo ea.",
    "price": 88,
    "is_active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-packs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: vii

description   string  optional  

Example: Aliquam ex odio qui quod nulla voluptatem illo ea.

price   number   

Le champ value doit être au moins 0. Example: 88

is_active   boolean  optional  

Example: true

exam_ids   string[]  optional  

The id of an existing record in the lab_exam_catalogs table.

GET api/lab-exam-packs/{labExamPack_id}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/lab-exam-packs/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/lab-exam-packs/18 could not be found."
}
 

Request      

GET api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 18

PUT api/lab-exam-packs/{labExamPack_id}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"xsxjc\",
    \"description\": \"Quia eum deleniti id quidem consequuntur ipsum.\",
    \"price\": 69,
    \"is_active\": false,
    \"exam_ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "xsxjc",
    "description": "Quia eum deleniti id quidem consequuntur ipsum.",
    "price": 69,
    "is_active": false,
    "exam_ids": [
        8
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 4

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: xsxjc

description   string  optional  

Example: Quia eum deleniti id quidem consequuntur ipsum.

price   number  optional  

Le champ value doit être au moins 0. Example: 69

is_active   boolean  optional  

Example: false

exam_ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

DELETE api/lab-exam-packs/{labExamPack_id}

requires authentication

Example request:
curl --request DELETE \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 17

POST api/lab-exam-packs/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-packs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_packs table.

POST api/lab-exam-packs/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/lab-exam-packs/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/lab-exam-packs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_packs table.

Page Médicale

Gestion de pages d'un carnet médical

Lister les pagse de carnets médicaux

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-pages/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 87,
    \"nbre_items\": 5,
    \"filter_value\": \"tiamzyzcgydrakakdy\",
    \"doctor_id\": 11,
    \"medical_book_id\": 16,
    \"department_id\": 8,
    \"consultation_date\": \"2026-05-07\",
    \"status\": \"completed\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2026-05-07T16:23:58\",
    \"trashed\": false,
    \"consultation_type\": \"follow_up\",
    \"disease_history\": \"aut\",
    \"current_treatments\": \"soluta\",
    \"family_history\": \"inventore\",
    \"blood_pressure\": \"ipsam\",
    \"heart_rate\": 4,
    \"respiratory_rate\": 15,
    \"temperature_c\": 5.644305,
    \"spo2\": 16,
    \"blood_glucose\": 14.3612,
    \"weight_kg\": 673026.35,
    \"height_cm\": 5586562.722452287,
    \"bmi\": 32699175.4,
    \"pain_score\": 16,
    \"general_condition\": \"good\",
    \"general_condition_notes\": \"aut\",
    \"physical_examination\": \"minus\",
    \"hypothesis\": \"nobis\",
    \"icd10_code\": \"et\",
    \"severity\": \"moderate\",
    \"discharge_decision\": \"referred\",
    \"next_appointment\": \"2026-05-07\",
    \"additional_notes\": \"est\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 87,
    "nbre_items": 5,
    "filter_value": "tiamzyzcgydrakakdy",
    "doctor_id": 11,
    "medical_book_id": 16,
    "department_id": 8,
    "consultation_date": "2026-05-07",
    "status": "completed",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2026-05-07T16:23:58",
    "trashed": false,
    "consultation_type": "follow_up",
    "disease_history": "aut",
    "current_treatments": "soluta",
    "family_history": "inventore",
    "blood_pressure": "ipsam",
    "heart_rate": 4,
    "respiratory_rate": 15,
    "temperature_c": 5.644305,
    "spo2": 16,
    "blood_glucose": 14.3612,
    "weight_kg": 673026.35,
    "height_cm": 5586562.722452287,
    "bmi": 32699175.4,
    "pain_score": 16,
    "general_condition": "good",
    "general_condition_notes": "aut",
    "physical_examination": "minus",
    "hypothesis": "nobis",
    "icd10_code": "et",
    "severity": "moderate",
    "discharge_decision": "referred",
    "next_appointment": "2026-05-07",
    "additional_notes": "est"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-pages/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 87

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: tiamzyzcgydrakakdy

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 11

medical_book_id   integer  optional  

The id of an existing record in the medical_books table. Example: 16

department_id   integer  optional  

The id of an existing record in the departments table. Example: 8

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: completed

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

trashed   boolean  optional  

Example: false

consultation_type   string  optional  

Example: follow_up

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: aut

current_treatments   string  optional  

Example: soluta

family_history   string  optional  

Example: inventore

blood_pressure   string  optional  

Example: ipsam

heart_rate   integer  optional  

Example: 4

respiratory_rate   integer  optional  

Example: 15

temperature_c   number  optional  

Example: 5.644305

spo2   integer  optional  

Example: 16

blood_glucose   number  optional  

Example: 14.3612

weight_kg   number  optional  

Example: 673026.35

height_cm   number  optional  

Example: 5586562.7224523

bmi   number  optional  

Example: 32699175.4

pain_score   integer  optional  

Example: 16

general_condition   string  optional  

Example: good

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: aut

physical_examination   string  optional  

Example: minus

hypothesis   string  optional  

Example: nobis

icd10_code   string  optional  

Example: et

severity   string  optional  

Example: moderate

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: referred

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

additional_notes   string  optional  

Example: est

Ajouter une page de carnet médical

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-pages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"medical_book_id\": 14,
    \"department_id\": 3,
    \"doctor_id\": 8,
    \"consultation_date\": \"2026-05-07\",
    \"reason_for_visit\": \"dolore\",
    \"clinical_notes\": \"facilis\",
    \"diagnosis\": \"aut\",
    \"free_notes\": \"corporis\",
    \"status\": \"in_progress\",
    \"consultation_type\": \"emergency\",
    \"disease_history\": \"neque\",
    \"current_treatments\": \"enim\",
    \"family_history\": \"et\",
    \"blood_pressure\": \"sit\",
    \"heart_rate\": 13,
    \"respiratory_rate\": 10,
    \"temperature_c\": 106255.3859543,
    \"spo2\": 2,
    \"blood_glucose\": 771669.6854,
    \"weight_kg\": 2025.89348387,
    \"height_cm\": 37146583.10469,
    \"bmi\": 0.610641,
    \"pain_score\": 4,
    \"general_condition\": \"critical\",
    \"general_condition_notes\": \"dolore\",
    \"physical_examination\": \"omnis\",
    \"hypothesis\": \"maxime\",
    \"icd10_code\": \"totam\",
    \"severity\": \"critical\",
    \"discharge_decision\": \"home\",
    \"next_appointment\": \"2026-05-07\",
    \"additionnal_notes\": \"facere\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "medical_book_id": 14,
    "department_id": 3,
    "doctor_id": 8,
    "consultation_date": "2026-05-07",
    "reason_for_visit": "dolore",
    "clinical_notes": "facilis",
    "diagnosis": "aut",
    "free_notes": "corporis",
    "status": "in_progress",
    "consultation_type": "emergency",
    "disease_history": "neque",
    "current_treatments": "enim",
    "family_history": "et",
    "blood_pressure": "sit",
    "heart_rate": 13,
    "respiratory_rate": 10,
    "temperature_c": 106255.3859543,
    "spo2": 2,
    "blood_glucose": 771669.6854,
    "weight_kg": 2025.89348387,
    "height_cm": 37146583.10469,
    "bmi": 0.610641,
    "pain_score": 4,
    "general_condition": "critical",
    "general_condition_notes": "dolore",
    "physical_examination": "omnis",
    "hypothesis": "maxime",
    "icd10_code": "totam",
    "severity": "critical",
    "discharge_decision": "home",
    "next_appointment": "2026-05-07",
    "additionnal_notes": "facere"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-pages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medical_book_id   integer   

The id of an existing record in the medical_books table. Example: 14

department_id   integer  optional  

The id of an existing record in the departments table. Example: 3

doctor_id   integer   

The id of an existing record in the users table. Example: 8

consultation_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

reason_for_visit   string   

Example: dolore

clinical_notes   string   

Example: facilis

diagnosis   string   

Example: aut

free_notes   string  optional  

Example: corporis

recommendations   string  optional  
status   string  optional  

Example: in_progress

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
consultation_type   string  optional  

Example: emergency

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: neque

current_treatments   string  optional  

Example: enim

family_history   string  optional  

Example: et

blood_pressure   string  optional  

Example: sit

heart_rate   integer  optional  

Example: 13

respiratory_rate   integer  optional  

Example: 10

temperature_c   number  optional  

Example: 106255.3859543

spo2   integer  optional  

Example: 2

blood_glucose   number  optional  

Example: 771669.6854

weight_kg   number  optional  

Example: 2025.89348387

height_cm   number  optional  

Example: 37146583.10469

bmi   number  optional  

Example: 0.610641

pain_score   integer  optional  

Example: 4

general_condition   string  optional  

Example: critical

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: dolore

physical_examination   string  optional  

Example: omnis

hypothesis   string  optional  

Example: maxime

icd10_code   string  optional  

Example: totam

severity   string  optional  

Example: critical

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: home

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

additionnal_notes   string  optional  

Example: facere

Afficher les infos d'une page de carnet médical

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/medical-pages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medical-pages/1 could not be found."
}
 

Request      

GET api/medical-pages/{medical_page}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_page   integer   

Example: 1

Modifier une page de carnet médical

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/medical-pages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"medical_book_id\": 18,
    \"department_id\": 13,
    \"doctor_id\": 2,
    \"consultation_date\": \"2026-05-07\",
    \"reason_for_visit\": \"soluta\",
    \"clinical_notes\": \"velit\",
    \"diagnosis\": \"nihil\",
    \"free_notes\": \"voluptatem\",
    \"recommendations\": \"assumenda\",
    \"status\": \"completed\",
    \"consultation_type\": \"emergency\",
    \"disease_history\": \"perspiciatis\",
    \"current_treatments\": \"magni\",
    \"family_history\": \"voluptatum\",
    \"blood_pressure\": \"tptoukkfxvhvtan\",
    \"heart_rate\": 2,
    \"respiratory_rate\": 15,
    \"temperature_c\": 3175.07869,
    \"spo2\": 9,
    \"blood_glucose\": 169903688.290478,
    \"weight_kg\": 203152.76105489,
    \"height_cm\": 47097.415481,
    \"bmi\": 102.176,
    \"pain_score\": 20,
    \"general_condition\": \"critical\",
    \"general_condition_notes\": \"aut\",
    \"physical_examination\": \"accusantium\",
    \"hypothesis\": \"porro\",
    \"icd10_code\": \"est\",
    \"severity\": \"moderate\",
    \"discharge_decision\": \"referred\",
    \"next_appointment\": \"2026-05-07\",
    \"additionnal_notes\": \"ex\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "medical_book_id": 18,
    "department_id": 13,
    "doctor_id": 2,
    "consultation_date": "2026-05-07",
    "reason_for_visit": "soluta",
    "clinical_notes": "velit",
    "diagnosis": "nihil",
    "free_notes": "voluptatem",
    "recommendations": "assumenda",
    "status": "completed",
    "consultation_type": "emergency",
    "disease_history": "perspiciatis",
    "current_treatments": "magni",
    "family_history": "voluptatum",
    "blood_pressure": "tptoukkfxvhvtan",
    "heart_rate": 2,
    "respiratory_rate": 15,
    "temperature_c": 3175.07869,
    "spo2": 9,
    "blood_glucose": 169903688.290478,
    "weight_kg": 203152.76105489,
    "height_cm": 47097.415481,
    "bmi": 102.176,
    "pain_score": 20,
    "general_condition": "critical",
    "general_condition_notes": "aut",
    "physical_examination": "accusantium",
    "hypothesis": "porro",
    "icd10_code": "est",
    "severity": "moderate",
    "discharge_decision": "referred",
    "next_appointment": "2026-05-07",
    "additionnal_notes": "ex"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/medical-pages/{medical_page}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_page   integer   

Example: 1

Body Parameters

medical_book_id   integer  optional  

The id of an existing record in the medical_books table. Example: 18

department_id   integer  optional  

The id of an existing record in the departments table. Example: 13

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 2

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

reason_for_visit   string  optional  

Example: soluta

clinical_notes   string  optional  

Example: velit

diagnosis   string  optional  

Example: nihil

free_notes   string  optional  

Example: voluptatem

recommendations   string  optional  

Example: assumenda

status   string  optional  

Example: completed

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
consultation_type   string  optional  

Example: emergency

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: perspiciatis

current_treatments   string  optional  

Example: magni

family_history   string  optional  

Example: voluptatum

blood_pressure   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: tptoukkfxvhvtan

heart_rate   integer  optional  

Example: 2

respiratory_rate   integer  optional  

Example: 15

temperature_c   number  optional  

Example: 3175.07869

spo2   integer  optional  

Example: 9

blood_glucose   number  optional  

Example: 169903688.29048

weight_kg   number  optional  

Example: 203152.76105489

height_cm   number  optional  

Example: 47097.415481

bmi   number  optional  

Example: 102.176

pain_score   integer  optional  

Example: 20

general_condition   string  optional  

Example: critical

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: aut

physical_examination   string  optional  

Example: accusantium

hypothesis   string  optional  

Example: porro

icd10_code   string  optional  

Example: est

severity   string  optional  

Example: moderate

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: referred

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

additionnal_notes   string  optional  

Example: ex

Archiver plusieurs medical_pages

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-pages/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-pages/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_pages table.

Restaurer plusieurs medical_pages

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medical-pages/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medical-pages/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical-pages/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_pages table.

Permissions

Gestion des permissions

Afficher la liste des permissions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permissions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 66,
    \"nbre_items\": 2,
    \"filter_value\": \"exercitationem\",
    \"ressource\": \"sequi\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permissions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 66,
    "nbre_items": 2,
    "filter_value": "exercitationem",
    "ressource": "sequi"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 66

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: exercitationem

ressource   string  optional  

Example: sequi

POST api/permissions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"permissions\": [
        {
            \"name\": \"voluptas\",
            \"description\": \"Et temporibus earum quia omnis autem aperiam maiores.\",
            \"ressource\": \"velit\",
            \"code\": \"consequatur\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "permissions": [
        {
            "name": "voluptas",
            "description": "Et temporibus earum quia omnis autem aperiam maiores.",
            "ressource": "velit",
            "code": "consequatur"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

permissions   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: voluptas

description   string  optional  

Example: Et temporibus earum quia omnis autem aperiam maiores.

ressource   string   

Example: velit

code   string  optional  

Example: consequatur

Afficher une permission spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/permissions/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permissions/et"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/permissions/et could not be found."
}
 

Request      

GET api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: et

Mettre a jour une permission spécifique

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/permissions/atque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"laborum\",
    \"permissions\": [
        {
            \"description\": \"Id dignissimos ut autem deleniti placeat officiis officiis.\",
            \"ressource\": \"a\",
            \"code\": \"placeat\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/permissions/atque"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "laborum",
    "permissions": [
        {
            "description": "Id dignissimos ut autem deleniti placeat officiis officiis.",
            "ressource": "a",
            "code": "placeat"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: atque

Body Parameters

name   string   

Example: laborum

permissions   object[]  optional  
description   string  optional  

Example: Id dignissimos ut autem deleniti placeat officiis officiis.

ressource   string  optional  

Example: a

code   string  optional  

Example: placeat

Pharmacie — Lots & Stock

POST api/medication-batches/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medication-batches/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 27,
    \"nbre_items\": 2,
    \"filter_value\": \"tneqxqnlwc\",
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"medication_id\": 11,
    \"expiry_alert\": false,
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 27,
    "nbre_items": 2,
    "filter_value": "tneqxqnlwc",
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "medication_id": 11,
    "expiry_alert": false,
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medication-batches/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 27

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: tneqxqnlwc

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-07

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 11

expiry_alert   boolean  optional  

Example: false

trashed   boolean  optional  

Example: false

POST api/medication-batches

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medication-batches" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"medication_id\": 2,
    \"batch_number\": \"s\",
    \"expiry_date\": \"2026-05-07\",
    \"quantity_in\": 18,
    \"purchase_price\": 23,
    \"supplier\": \"mvmio\",
    \"received_date\": \"2026-05-07\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "medication_id": 2,
    "batch_number": "s",
    "expiry_date": "2026-05-07",
    "quantity_in": 18,
    "purchase_price": 23,
    "supplier": "mvmio",
    "received_date": "2026-05-07"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medication-batches

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medication_id   integer   

The id of an existing record in the medications table. Example: 2

batch_number   string   

Le champ value ne peut contenir plus de 100 caractères. Example: s

expiry_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

quantity_in   integer   

Le champ value doit être au moins 1. Example: 18

purchase_price   number  optional  

Le champ value doit être au moins 0. Example: 23

supplier   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mvmio

received_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

GET api/medication-batches/{medication_batch}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/medication-batches/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medication-batches/18 could not be found."
}
 

Request      

GET api/medication-batches/{medication_batch}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_batch   integer   

Example: 18

PUT api/medication-batches/{medication_batch}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/medication-batches/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"batch_number\": \"loaexmbrizxmcdd\",
    \"expiry_date\": \"2026-05-07\",
    \"quantity_in\": 12,
    \"purchase_price\": 68,
    \"supplier\": \"c\",
    \"received_date\": \"2026-05-07\",
    \"expiry_alert\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches/13"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "batch_number": "loaexmbrizxmcdd",
    "expiry_date": "2026-05-07",
    "quantity_in": 12,
    "purchase_price": 68,
    "supplier": "c",
    "received_date": "2026-05-07",
    "expiry_alert": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/medication-batches/{medication_batch}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_batch   integer   

Example: 13

Body Parameters

batch_number   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: loaexmbrizxmcdd

expiry_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

quantity_in   integer  optional  

Le champ value doit être au moins 0. Example: 12

purchase_price   number  optional  

Le champ value doit être au moins 0. Example: 68

supplier   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: c

received_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

expiry_alert   boolean  optional  

Example: false

POST api/medication-batches/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medication-batches/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medication-batches/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_batches table.

POST api/medication-batches/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medication-batches/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medication-batches/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medication-batches/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_batches table.

Planification des soins

Gestion des plannings de soins infirmiers

Lister les plannings de soins

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedules/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 46,
    \"nbre_items\": 3,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"fsqpehxgqzefv\",
    \"is_active\": false,
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 46,
    "nbre_items": 3,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "fsqpehxgqzefv",
    "is_active": false,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedules/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 46

nbre_items   integer  optional  

Example: 3

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: fsqpehxgqzefv

patient_id   string  optional  

The id of an existing record in the users table.

is_active   boolean  optional  

Example: false

trashed   boolean  optional  

Example: true

Ajout d'un planning de soin

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedules" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": \"dolor\",
    \"admission_id\": 18,
    \"medical_page_id\": \"eos\",
    \"nursing_act_catalog_id\": \"optio\",
    \"act_name\": \"cahuqtjqljlv\",
    \"dosage\": \"pkgsdo\",
    \"scheduled_time\": \"16:23\",
    \"frequency\": \"zpweeeqtyfztudckymzqobkp\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2118-12-28\",
    \"is_active\": true,
    \"notes\": \"sed\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": "dolor",
    "admission_id": 18,
    "medical_page_id": "eos",
    "nursing_act_catalog_id": "optio",
    "act_name": "cahuqtjqljlv",
    "dosage": "pkgsdo",
    "scheduled_time": "16:23",
    "frequency": "zpweeeqtyfztudckymzqobkp",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2118-12-28",
    "is_active": true,
    "notes": "sed"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedules

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   string   

The id of an existing record in the users table. Example: dolor

admission_id   integer  optional  

Example: 18

medical_page_id   string   

The id of an existing record in the medical_pages table. Example: eos

nursing_act_catalog_id   string   

The id of an existing record in the nursing_act_catalogs table. Example: optio

medication_id   string  optional  

The id of an existing record in the medications table.

act_name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: cahuqtjqljlv

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: pkgsdo

scheduled_time   string   

Must be a valid date in the format H:i. Example: 16:23

frequency   string   

Le champ value ne peut contenir plus de 100 caractères. Example: zpweeeqtyfztudckymzqobkp

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à start_date. Example: 2118-12-28

is_active   boolean  optional  

Example: true

notes   string  optional  

Example: sed

Afficher un planning de soin

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/care-schedules/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/care-schedules/1 could not be found."
}
 

Request      

GET api/care-schedules/{care_schedule}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule   integer   

Example: 1

Modifier un planning de soin

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/care-schedules/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"admission_id\": 17,
    \"act_name\": \"mzaqozut\",
    \"dosage\": \"hasvjzhdesp\",
    \"scheduled_time\": \"16:23\",
    \"frequency\": \"bsdiftqicpcqowxobdff\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2104-01-06\",
    \"is_active\": false,
    \"notes\": \"sit\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "admission_id": 17,
    "act_name": "mzaqozut",
    "dosage": "hasvjzhdesp",
    "scheduled_time": "16:23",
    "frequency": "bsdiftqicpcqowxobdff",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2104-01-06",
    "is_active": false,
    "notes": "sit"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/care-schedules/{care_schedule}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule   integer   

Example: 1

Body Parameters

patient_id   string  optional  

The id of an existing record in the users table.

admission_id   integer  optional  

Example: 17

medical_page_id   string  optional  

The id of an existing record in the medical_pages table.

nursing_act_catalog_id   string  optional  

The id of an existing record in the nursing_act_catalogs table.

medication_id   string  optional  

The id of an existing record in the medications table.

act_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mzaqozut

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: hasvjzhdesp

scheduled_time   string  optional  

Must be a valid date in the format H:i. Example: 16:23

frequency   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: bsdiftqicpcqowxobdff

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à start_date. Example: 2104-01-06

is_active   boolean  optional  

Example: false

notes   string  optional  

Example: sit

Archiver plusieurs plannings de soins

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedules/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedules/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the care_schedules table.

Restaurer plusieurs plannings de soins

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/care-schedules/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/care-schedules/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/care-schedules/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the care_schedules table.

Prescriptions

Gestion des prescriptions

Lister les prescriptions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/prescriptions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 41,
    \"nbre_items\": 19,
    \"filter_value\": \"hr\",
    \"patient_id\": 12,
    \"medical_page_id\": 3,
    \"status\": \"cancelled\",
    \"start_date\": \"2026-05-07T16:23:58\",
    \"end_date\": \"2026-05-07T16:23:58\",
    \"trashed\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 41,
    "nbre_items": 19,
    "filter_value": "hr",
    "patient_id": 12,
    "medical_page_id": 3,
    "status": "cancelled",
    "start_date": "2026-05-07T16:23:58",
    "end_date": "2026-05-07T16:23:58",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/prescriptions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 41

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: hr

patient_id   integer  optional  

The id of an existing record in the users table. Example: 12

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 3

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • active
  • completed
  • cancelled
start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

trashed   boolean  optional  

Example: false

Ajouter une prescription

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/prescriptions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 8,
    \"medical_page_id\": 3,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2103-08-22\",
    \"frequency\": \"corrupti\",
    \"dosage\": \"corrupti\",
    \"description\": \"Harum qui possimus eaque est et.\",
    \"status\": \"pending\",
    \"medications\": [
        {
            \"medication_id\": 3,
            \"dosage\": 4,
            \"frequency\": \"animi\",
            \"description\": \"Voluptatem quod excepturi tempore quod nostrum.\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 8,
    "medical_page_id": 3,
    "start_date": "2026-05-07",
    "end_date": "2103-08-22",
    "frequency": "corrupti",
    "dosage": "corrupti",
    "description": "Harum qui possimus eaque est et.",
    "status": "pending",
    "medications": [
        {
            "medication_id": 3,
            "dosage": 4,
            "frequency": "animi",
            "description": "Voluptatem quod excepturi tempore quod nostrum."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/prescriptions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 8

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 3

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2103-08-22

frequency   string  optional  

Example: corrupti

dosage   string  optional  

Example: corrupti

description   string   

Example: Harum qui possimus eaque est et.

status   string  optional  

Example: pending

Must be one of:
  • pending
  • active
  • completed
  • cancelled
medications   object[]   
medication_id   integer   

The id of an existing record in the medications table. Example: 3

dosage   integer   

Le champ value doit être au moins 1. Example: 4

frequency   string   

Example: animi

description   string  optional  

Example: Voluptatem quod excepturi tempore quod nostrum.

Afficher les infos d'une prescription

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/prescriptions/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/prescriptions/3 could not be found."
}
 

Request      

GET api/prescriptions/{prescription_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

prescription_id   integer   

The ID of the prescription. Example: 3

Modifier une prescription

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/prescriptions/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 18,
    \"medical_page_id\": 6,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2059-09-03\",
    \"frequency\": \"minus\",
    \"dosage\": \"expedita\",
    \"description\": \"Et voluptatem provident beatae quis voluptatem qui incidunt.\",
    \"status\": \"cancelled\",
    \"medications\": [
        {
            \"medication_id\": 3,
            \"dosage\": 36,
            \"frequency\": \"in\",
            \"description\": \"Et laborum error recusandae voluptatem voluptatem voluptatibus quo ut.\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 18,
    "medical_page_id": 6,
    "start_date": "2026-05-07",
    "end_date": "2059-09-03",
    "frequency": "minus",
    "dosage": "expedita",
    "description": "Et voluptatem provident beatae quis voluptatem qui incidunt.",
    "status": "cancelled",
    "medications": [
        {
            "medication_id": 3,
            "dosage": 36,
            "frequency": "in",
            "description": "Et laborum error recusandae voluptatem voluptatem voluptatibus quo ut."
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/prescriptions/{prescription_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

prescription_id   integer   

The ID of the prescription. Example: 3

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 18

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 6

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2059-09-03

frequency   string  optional  

Example: minus

dosage   string  optional  

Example: expedita

description   string  optional  

Example: Et voluptatem provident beatae quis voluptatem qui incidunt.

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • active
  • completed
  • cancelled
medications   object[]  optional  
medication_id   integer   

The id of an existing record in the medications table. Example: 3

dosage   integer   

Le champ value doit être au moins 1. Example: 36

frequency   string   

Example: in

description   string  optional  

Example: Et laborum error recusandae voluptatem voluptatem voluptatibus quo ut.

Archiver plusieurs prescriptions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/prescriptions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        18
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/prescriptions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the prescriptions table.

Restaurer plusieurs prescriptions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/prescriptions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/prescriptions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/prescriptions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the prescriptions table.

Prises de Médicaments

Gestion des prises de médicaments

Lister les prises de médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications-intakes/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 63,
    \"nbre_items\": 8,
    \"filter_value\": \"lds\",
    \"trashed\": false,
    \"prescription_id\": 3,
    \"medication_id\": 11,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2106-12-28\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 63,
    "nbre_items": 8,
    "filter_value": "lds",
    "trashed": false,
    "prescription_id": 3,
    "medication_id": 11,
    "start_date": "2026-05-07",
    "end_date": "2106-12-28"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications-intakes/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 63

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: lds

trashed   boolean  optional  

Example: false

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 3

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 11

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2106-12-28

Ajouter une prise de médicament

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications-intakes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"prescription_id\": 15,
    \"medication_id\": 19,
    \"is_taken\": false,
    \"date_time\": \"2026-05-07 16:23\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "prescription_id": 15,
    "medication_id": 19,
    "is_taken": false,
    "date_time": "2026-05-07 16:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications-intakes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

prescription_id   integer   

The id of an existing record in the prescriptions table. Example: 15

medication_id   integer   

The id of an existing record in the medications table. Example: 19

is_taken   boolean  optional  

Example: false

date_time   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d H:i. Example: 2026-05-07 16:23

Afficher une prise de médicament

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/medications-intakes/19" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes/19"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medications-intakes/19 could not be found."
}
 

Request      

GET api/medications-intakes/{medication_intake}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_intake   integer   

Example: 19

Modifier une prise de médicament

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/medications-intakes/14" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"prescription_id\": 5,
    \"medication_id\": 9,
    \"is_taken\": false,
    \"date_time\": \"2026-05-07 16:23\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "prescription_id": 5,
    "medication_id": 9,
    "is_taken": false,
    "date_time": "2026-05-07 16:23"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/medications-intakes/{medication_intake}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_intake   integer   

Example: 14

Body Parameters

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 5

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 9

is_taken   boolean  optional  

Example: false

date_time   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d H:i. Example: 2026-05-07 16:23

Archiver plusieurs prises de médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications-intakes/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications-intakes/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medication_intakes table.

Restaurer plusieurs prises de médicaments

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/medications-intakes/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        11
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/medications-intakes/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medications-intakes/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medication_intakes table.

Recettes

Gestion des recettes

Lister les recettes

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/recipes/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 8,
    \"nbre_items\": 12,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"filter_value\": \"jnjwrcw\",
    \"is_low_potassium\": true,
    \"is_low_sodium\": false
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 8,
    "nbre_items": 12,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "filter_value": "jnjwrcw",
    "is_low_potassium": true,
    "is_low_sodium": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/recipes/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 8

nbre_items   integer  optional  

Example: 12

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: jnjwrcw

is_low_potassium   boolean  optional  

Example: true

is_low_sodium   boolean  optional  

Example: false

Ajouter une recette

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/recipes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"optio\",
    \"description\": \"Ab excepturi temporibus qui qui iste suscipit odio.\",
    \"instructions\": \"quo\",
    \"preparation_time\": 7,
    \"servings\": 11,
    \"is_low_potassium\": false,
    \"is_low_sodium\": false,
    \"calories\": 19,
    \"sodium_mg\": 19,
    \"potassium_mg\": 16,
    \"photo\": \"sed\",
    \"foods\": [
        {
            \"food_id\": 13,
            \"quantity\": \"facere\",
            \"description\": \"Non animi voluptatem voluptas recusandae impedit harum.\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "optio",
    "description": "Ab excepturi temporibus qui qui iste suscipit odio.",
    "instructions": "quo",
    "preparation_time": 7,
    "servings": 11,
    "is_low_potassium": false,
    "is_low_sodium": false,
    "calories": 19,
    "sodium_mg": 19,
    "potassium_mg": 16,
    "photo": "sed",
    "foods": [
        {
            "food_id": 13,
            "quantity": "facere",
            "description": "Non animi voluptatem voluptas recusandae impedit harum."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/recipes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: optio

description   string  optional  

Example: Ab excepturi temporibus qui qui iste suscipit odio.

instructions   string  optional  

Example: quo

preparation_time   integer  optional  

Example: 7

servings   integer  optional  

Example: 11

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: false

calories   integer  optional  

Example: 19

sodium_mg   integer  optional  

Example: 19

potassium_mg   integer  optional  

Example: 16

photo   string  optional  

Example: sed

foods   object[]   
food_id   integer   

The id of an existing record in the food table. Example: 13

quantity   string   

Example: facere

description   string  optional  

Example: Non animi voluptatem voluptas recusandae impedit harum.

Afficher les infos d'une recette

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/recipes/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/recipes/3 could not be found."
}
 

Request      

GET api/recipes/{recipe_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

recipe_id   integer   

The ID of the recipe. Example: 3

Modifier une recette

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/recipes/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"possimus\",
    \"description\": \"Repudiandae voluptatem beatae odit.\",
    \"instructions\": \"repellendus\",
    \"preparation_time\": \"corporis\",
    \"servings\": \"ut\",
    \"is_low_potassium\": false,
    \"is_low_sodium\": true,
    \"calories\": \"quo\",
    \"sodium_mg\": \"vero\",
    \"potassium_mg\": \"dolorum\",
    \"photo\": \"voluptatum\",
    \"foods\": [
        {
            \"food_id\": 17,
            \"quantity\": \"aut\",
            \"description\": \"Autem ea et id blanditiis itaque sint ducimus quis.\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "possimus",
    "description": "Repudiandae voluptatem beatae odit.",
    "instructions": "repellendus",
    "preparation_time": "corporis",
    "servings": "ut",
    "is_low_potassium": false,
    "is_low_sodium": true,
    "calories": "quo",
    "sodium_mg": "vero",
    "potassium_mg": "dolorum",
    "photo": "voluptatum",
    "foods": [
        {
            "food_id": 17,
            "quantity": "aut",
            "description": "Autem ea et id blanditiis itaque sint ducimus quis."
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/recipes/{recipe_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

recipe_id   integer   

The ID of the recipe. Example: 17

Body Parameters

name   string  optional  

Example: possimus

description   string  optional  

Example: Repudiandae voluptatem beatae odit.

instructions   string  optional  

Example: repellendus

preparation_time   string  optional  

Example: corporis

servings   string  optional  

Example: ut

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: true

calories   string  optional  

Example: quo

sodium_mg   string  optional  

Example: vero

potassium_mg   string  optional  

Example: dolorum

photo   string  optional  

Example: voluptatum

foods   object[]  optional  
food_id   integer   

The id of an existing record in the food table. Example: 17

quantity   string   

Example: aut

description   string  optional  

Example: Autem ea et id blanditiis itaque sint ducimus quis.

Archiver plusieurs recettes

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/recipes/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/recipes/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the recipes table.

Restaurer plusieurs recettes

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/recipes/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/recipes/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/recipes/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the recipes table.

Retenue sur salaire / Salary deduction

Gestion des retenus sur salaire

Afficher la liste filtrée des retenues sur salaire

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salary-deductions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 11,
    \"user_approve_id\": 1,
    \"date\": \"2026-05-07\",
    \"status\": \"in_progress\",
    \"page_items\": 6,
    \"trashed\": false,
    \"nbre_items\": 2,
    \"filter_value\": \"ivplh\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 11,
    "user_approve_id": 1,
    "date": "2026-05-07",
    "status": "in_progress",
    "page_items": 6,
    "trashed": false,
    "nbre_items": 2,
    "filter_value": "ivplh"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salary-deductions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 11

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 1

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: in_progress

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
page_items   integer  optional  

Le champ value doit être au moins 1. Example: 6

trashed   boolean  optional  

Example: false

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ivplh

Show the form for creating a new resource.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salary-deductions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"salary_deductions\": [
        {
            \"user_id\": 9,
            \"user_approve_id\": 16,
            \"reason\": \"ipsum\",
            \"amount\": 72,
            \"date\": \"2026-05-07\",
            \"status\": \"rejected\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "salary_deductions": [
        {
            "user_id": 9,
            "user_approve_id": 16,
            "reason": "ipsum",
            "amount": 72,
            "date": "2026-05-07",
            "status": "rejected"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salary-deductions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_deductions   object[]   
user_id   integer   

The id of an existing record in the users table. Example: 9

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 16

reason   string   

Example: ipsum

amount   number   

Le champ value doit être au moins 0. Example: 72

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: rejected

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

Afficher une retenue sur salaire spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/salary-deductions/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/salary-deductions/4 could not be found."
}
 

Request      

GET api/salary-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 4

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/salary-deductions/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 12,
    \"user_approve_id\": 5,
    \"reason\": \"ipsa\",
    \"amount\": 57,
    \"date\": \"2026-05-07\",
    \"status\": \"pending_approval\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 12,
    "user_approve_id": 5,
    "reason": "ipsa",
    "amount": 57,
    "date": "2026-05-07",
    "status": "pending_approval"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/salary-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 16

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 12

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

reason   string  optional  

Example: ipsa

amount   number  optional  

Le champ value doit être au moins 0. Example: 57

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

Archiver (soft delete) les retenues sur salaire spécifiées.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salary-deductions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salary-deductions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the salary_deductions table.

Restaurer les feedbacks archivés.

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/salary-deductions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/salary-deductions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salary-deductions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the salary_deductions table.

Rôles

Gestion des rôles

Lister les roles

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/roles/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 37,
    \"nbre_items\": 4,
    \"filter_value\": \"sed\",
    \"types\": [
        \"non\"
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/roles/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 37,
    "nbre_items": 4,
    "filter_value": "sed",
    "types": [
        "non"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 37

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Example: sed

types   string[]  optional  

Ajouter une liste de role

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"voluptatem\",
    \"permissions\": [
        2
    ],
    \"description\": \"Ullam eum et qui eveniet autem qui eaque.\",
    \"type\": \"consequatur\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/roles"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "voluptatem",
    "permissions": [
        2
    ],
    "description": "Ullam eum et qui eveniet autem qui eaque.",
    "type": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: voluptatem

permissions   integer[]   

The id of an existing record in the permissions table.

description   string  optional  

Example: Ullam eum et qui eveniet autem qui eaque.

type   string  optional  

Example: consequatur

Afficher un role spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/roles/1 could not be found."
}
 

Request      

GET api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

Modifier ou un role spécifique

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"vel\",
    \"permissions\": [
        8
    ],
    \"description\": \"Nostrum error dolorem soluta molestiae laborum a.\",
    \"type\": \"voluptatem\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "vel",
    "permissions": [
        8
    ],
    "description": "Nostrum error dolorem soluta molestiae laborum a.",
    "type": "voluptatem"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

Body Parameters

name   string  optional  

Example: vel

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Nostrum error dolorem soluta molestiae laborum a.

type   string  optional  

Example: voluptatem

Sanctions

Gestion des sanctions utilisateurs

List sanctions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/sanctions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 9,
    \"nbre_items\": 1,
    \"filter_value\": \"voluptatum\",
    \"trashed\": false,
    \"user_id\": 2,
    \"type\": \"necessitatibus\",
    \"created_by\": 16
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 9,
    "nbre_items": 1,
    "filter_value": "voluptatum",
    "trashed": false,
    "user_id": 2,
    "type": "necessitatibus",
    "created_by": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/sanctions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 9

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

Example: voluptatum

trashed   boolean  optional  

Example: false

user_id   integer  optional  

The id of an existing record in the users table. Example: 2

type   string  optional  

Example: necessitatibus

created_by   integer  optional  

The id of an existing record in the users table. Example: 16

Show sanction

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/sanctions/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/13"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/sanctions/13 could not be found."
}
 

Request      

GET api/sanctions/{sanction_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sanction_id   integer   

The ID of the sanction. Example: 13

Create sanctions

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/sanctions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"sanctions\": [
        {
            \"user_id\": 4,
            \"type\": \"est\",
            \"reasons\": \"sed\",
            \"description\": \"Aspernatur quis itaque aliquam tempore voluptatem qui occaecati non.\"
        }
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sanctions": [
        {
            "user_id": 4,
            "type": "est",
            "reasons": "sed",
            "description": "Aspernatur quis itaque aliquam tempore voluptatem qui occaecati non."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/sanctions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sanctions   object[]   

Le champ value doit contenir au moins 1 éléments.

user_id   integer   

The id of an existing record in the users table. Example: 4

type   string   

Example: est

reasons   string   

Example: sed

description   string   

Example: Aspernatur quis itaque aliquam tempore voluptatem qui occaecati non.

Update sanction

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/sanctions/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 13,
    \"type\": \"repudiandae\",
    \"reasons\": \"sed\",
    \"description\": \"Est tenetur rem perspiciatis qui qui beatae nihil.\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 13,
    "type": "repudiandae",
    "reasons": "sed",
    "description": "Est tenetur rem perspiciatis qui qui beatae nihil."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/sanctions/{sanction_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sanction_id   integer   

The ID of the sanction. Example: 18

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 13

type   string  optional  

Example: repudiandae

reasons   string  optional  

Example: sed

description   string  optional  

Example: Est tenetur rem perspiciatis qui qui beatae nihil.

Trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/sanctions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/sanctions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

Restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/sanctions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/sanctions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

Destroy permanently

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/sanctions/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/sanctions/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/sanctions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

Soins Infirmiers

Gestion des actes infirmiers MS-Care

POST api/nursing-acts/all

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-acts/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 61,
    \"nbre_items\": 15,
    \"filter_value\": \"ebjnsfupfwdwzjsqcb\",
    \"patient_id\": 10,
    \"nurse_id\": 4,
    \"medical_page_id\": 1,
    \"act_type\": \"ut\",
    \"external_prescription_ref\": \"facilis\",
    \"nursing_act_origin\": \"dolor\",
    \"date_from\": \"2026-05-07\",
    \"date_to\": \"2026-05-07\",
    \"trashed\": true
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 61,
    "nbre_items": 15,
    "filter_value": "ebjnsfupfwdwzjsqcb",
    "patient_id": 10,
    "nurse_id": 4,
    "medical_page_id": 1,
    "act_type": "ut",
    "external_prescription_ref": "facilis",
    "nursing_act_origin": "dolor",
    "date_from": "2026-05-07",
    "date_to": "2026-05-07",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-acts/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 61

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ebjnsfupfwdwzjsqcb

patient_id   integer  optional  

The id of an existing record in the users table. Example: 10

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 4

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 1

act_type   string  optional  

Example: ut

external_prescription_ref   string  optional  

Example: facilis

nursing_act_origin   string  optional  

Example: dolor

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

trashed   boolean  optional  

Example: true

POST api/nursing-acts

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-acts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 5,
    \"nurse_id\": 6,
    \"medical_page_id\": 15,
    \"nursing_act_catalog_id\": 14,
    \"patient_check_up_id\": 16,
    \"act_name\": \"bekdyxqdyxcuhshdpsflkschb\",
    \"act_type\": \"magni\",
    \"reason\": \"voluptas\",
    \"acts_performed\": \"repudiandae\",
    \"patient_evolution\": \"et\",
    \"observations\": \"molestias\",
    \"incidents\": \"voluptatem\",
    \"external_prescription_ref\": \"laborum\",
    \"nursing_act_origin\": \"consequuntur\",
    \"price\": 46,
    \"date\": \"2026-05-07T16:23:58\",
    \"hour\": \"16:23\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 5,
    "nurse_id": 6,
    "medical_page_id": 15,
    "nursing_act_catalog_id": 14,
    "patient_check_up_id": 16,
    "act_name": "bekdyxqdyxcuhshdpsflkschb",
    "act_type": "magni",
    "reason": "voluptas",
    "acts_performed": "repudiandae",
    "patient_evolution": "et",
    "observations": "molestias",
    "incidents": "voluptatem",
    "external_prescription_ref": "laborum",
    "nursing_act_origin": "consequuntur",
    "price": 46,
    "date": "2026-05-07T16:23:58",
    "hour": "16:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-acts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 5

nurse_id   integer   

The id of an existing record in the users table. Example: 6

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 15

nursing_act_catalog_id   integer  optional  

The id of an existing record in the nursing_act_catalogs table. Example: 14

patient_check_up_id   integer  optional  

The id of an existing record in the patient_check_ups table. Example: 16

act_name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: bekdyxqdyxcuhshdpsflkschb

act_type   string   

Example: magni

reason   string  optional  

Example: voluptas

acts_performed   string  optional  

Example: repudiandae

patient_evolution   string  optional  

Example: et

observations   string  optional  

Example: molestias

incidents   string  optional  

Example: voluptatem

external_prescription_ref   string  optional  

Example: laborum

nursing_act_origin   string  optional  

Example: consequuntur

price   number  optional  

Le champ value doit être au moins 0. Example: 46

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

hour   string  optional  

Must be a valid date in the format H:i. Example: 16:23

GET api/nursing-acts/{nursing_act}

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/nursing-acts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/nursing-acts/1 could not be found."
}
 

Request      

GET api/nursing-acts/{nursing_act}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act   integer   

Example: 1

PUT api/nursing-acts/{nursing_act}

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/nursing-acts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 19,
    \"nurse_id\": 3,
    \"medical_page_id\": 19,
    \"nursing_act_catalog_id\": 10,
    \"patient_check_up_id\": 18,
    \"act_name\": \"hklyldseegsdzudeqviuprhie\",
    \"act_type\": \"in\",
    \"reason\": \"molestias\",
    \"acts_performed\": \"earum\",
    \"patient_evolution\": \"ut\",
    \"observations\": \"impedit\",
    \"incidents\": \"at\",
    \"external_prescription_ref\": \"numquam\",
    \"nursing_act_origin\": \"quas\",
    \"price\": 78,
    \"date\": \"2026-05-07T16:23:58\",
    \"hour\": \"16:23\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 19,
    "nurse_id": 3,
    "medical_page_id": 19,
    "nursing_act_catalog_id": 10,
    "patient_check_up_id": 18,
    "act_name": "hklyldseegsdzudeqviuprhie",
    "act_type": "in",
    "reason": "molestias",
    "acts_performed": "earum",
    "patient_evolution": "ut",
    "observations": "impedit",
    "incidents": "at",
    "external_prescription_ref": "numquam",
    "nursing_act_origin": "quas",
    "price": 78,
    "date": "2026-05-07T16:23:58",
    "hour": "16:23"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/nursing-acts/{nursing_act}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 19

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 3

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 19

nursing_act_catalog_id   integer  optional  

The id of an existing record in the nursing_act_catalogs table. Example: 10

patient_check_up_id   integer  optional  

The id of an existing record in the patient_check_ups table. Example: 18

act_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: hklyldseegsdzudeqviuprhie

act_type   string  optional  

Example: in

reason   string  optional  

Example: molestias

acts_performed   string  optional  

Example: earum

patient_evolution   string  optional  

Example: ut

observations   string  optional  

Example: impedit

incidents   string  optional  

Example: at

external_prescription_ref   string  optional  

Example: numquam

nursing_act_origin   string  optional  

Example: quas

price   number  optional  

Le champ value doit être au moins 0. Example: 78

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

hour   string  optional  

Must be a valid date in the format H:i. Example: 16:23

POST api/nursing-acts/trash

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-acts/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-acts/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_acts table.

POST api/nursing-acts/restore

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/nursing-acts/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/nursing-acts/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/nursing-acts/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_acts table.

Séances de dialyse

Gestion des séances de dialyse

Lister les séances de dialyse

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 76,
    \"nbre_items\": 15,
    \"filter_value\": \"rhsawippvoxvmgnwz\",
    \"trashed\": false,
    \"patient_id\": 10,
    \"doctor_id\": 6,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2080-07-25\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 76,
    "nbre_items": 15,
    "filter_value": "rhsawippvoxvmgnwz",
    "trashed": false,
    "patient_id": 10,
    "doctor_id": 6,
    "start_date": "2026-05-07",
    "end_date": "2080-07-25"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/dialysis-sessions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 76

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: rhsawippvoxvmgnwz

trashed   boolean  optional  

Example: false

patient_id   integer  optional  

The id of an existing record in the users table. Example: 10

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 6

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2080-07-25

Ajouter une séance de dialyse

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/dialysis-sessions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 3,
    \"doctor_id\": 2,
    \"session_start\": \"repellendus\",
    \"session_end\": \"eligendi\",
    \"weight_before\": \"enim\",
    \"weight_after\": \"et\",
    \"fluid_removed\": \"molestiae\",
    \"blood_pressure_post\": \"eum\",
    \"side_effects\": \"voluptas\",
    \"description\": \"Repellat est voluptatem assumenda aliquid.\",
    \"observation\": \"similique\",
    \"status\": \"pending\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 3,
    "doctor_id": 2,
    "session_start": "repellendus",
    "session_end": "eligendi",
    "weight_before": "enim",
    "weight_after": "et",
    "fluid_removed": "molestiae",
    "blood_pressure_post": "eum",
    "side_effects": "voluptas",
    "description": "Repellat est voluptatem assumenda aliquid.",
    "observation": "similique",
    "status": "pending"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/dialysis-sessions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 3

doctor_id   integer   

The id of an existing record in the users table. Example: 2

session_start   string   

Example: repellendus

session_end   string  optional  

Example: eligendi

weight_before   string  optional  

Example: enim

weight_after   string  optional  

Example: et

fluid_removed   string  optional  

Example: molestiae

blood_pressure_post   string  optional  

Example: eum

side_effects   string  optional  

Example: voluptas

description   string  optional  

Example: Repellat est voluptatem assumenda aliquid.

observation   string  optional  

Example: similique

status   string  optional  

Example: pending

Must be one of:
  • pending
  • done
  • cancelled

Afficher une séance de dialyse

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/dialysis-sessions/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/9"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/dialysis-sessions/9 could not be found."
}
 

Request      

GET api/dialysis-sessions/{dialysis_session}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dialysis_session   integer   

Example: 9

Modifier une séance de dialyse

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 17,
    \"doctor_id\": 6,
    \"session_start\": \"eaque\",
    \"session_end\": \"modi\",
    \"blood_pressure_post\": \"velit\",
    \"side_effects\": \"rem\",
    \"status\": \"cancelled\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 17,
    "doctor_id": 6,
    "session_start": "eaque",
    "session_end": "modi",
    "blood_pressure_post": "velit",
    "side_effects": "rem",
    "status": "cancelled"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/dialysis-sessions/{dialysis_session}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dialysis_session   integer   

Example: 20

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 17

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 6

session_start   string  optional  

Example: eaque

session_end   string  optional  

Example: modi

weight_before   string  optional  
weight_after   string  optional  
fluid_removed   string  optional  
blood_pressure_post   string  optional  

Example: velit

side_effects   string  optional  

Example: rem

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • done
  • cancelled

Archiver plusieurs séances de dialyse

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/dialysis-sessions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the dialysis_sessions table.

Restaurer plusieurs séances de dialyse

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/dialysis-sessions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/dialysis-sessions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the dialysis_sessions table.

Upload de fichier

Gestion des uploads de fichiers

Upload d'un fichier

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/upload-photo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"photo\": \"thjpqdmb\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/upload-photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "photo": "thjpqdmb"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/upload-photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

photo   string   

Le champ value ne peut contenir plus de 5120 caractères. Example: thjpqdmb

Utilisateurs

Gestion des utilisateurs

Fonction qui permet de recuperer la liste des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/users/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role_id\": 5,
    \"page_items\": 28,
    \"nbre_items\": 13,
    \"filter_value\": \"aut\",
    \"in_order_name\": false,
    \"start_date\": \"2026-05-07\",
    \"end_date\": \"2026-05-07\",
    \"health_center_id\": 5,
    \"department_id\": 12,
    \"coverage_type\": \"partial\",
    \"marital_status\": \"single\",
    \"is_patient\": true,
    \"insurance_name\": \"doloribus\",
    \"company_name\": \"sit\",
    \"role_types\": [
        \"odio\"
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "role_id": 5,
    "page_items": 28,
    "nbre_items": 13,
    "filter_value": "aut",
    "in_order_name": false,
    "start_date": "2026-05-07",
    "end_date": "2026-05-07",
    "health_center_id": 5,
    "department_id": 12,
    "coverage_type": "partial",
    "marital_status": "single",
    "is_patient": true,
    "insurance_name": "doloribus",
    "company_name": "sit",
    "role_types": [
        "odio"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

role_id   integer  optional  

The id of an existing record in the roles table. Example: 5

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 28

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: aut

in_order_name   boolean  optional  

Example: false

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-07

health_center_id   integer  optional  

Example: 5

department_id   integer  optional  

Example: 12

coverage_type   string  optional  

Example: partial

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
marital_status   string  optional  

Example: single

Must be one of:
  • single
  • married
  • widowed
  • divorced
is_patient   boolean  optional  

Example: true

insurance_name   string  optional  

Example: doloribus

company_name   string  optional  

Example: sit

role_types   string[]  optional  

Fonction qui permet d'ajouter un utilisateur sans passer par la verification

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"username\": \"gcdqlmpdbbak\",
    \"firstname\": \"ljzsin\",
    \"lastname\": \"jcgggduzsujskgl\",
    \"gender\": \"female\",
    \"birthday\": \"2026-05-07T16:23:58\",
    \"birth_place\": \"ojssetdy\",
    \"marital_status\": \"single\",
    \"nationality\": \"woxexreslkvaij\",
    \"nui\": \"ymyhrfzxazklud\",
    \"niss\": \"yzrwxjinipvsasbckmdfllse\",
    \"email\": \"qgutkowski@example.com\",
    \"phone\": \"g\",
    \"phone2\": \"kzlzpykhr\",
    \"city\": \"byk\",
    \"address\": \"pgepmtlsvayal\",
    \"country\": \"mlthgjdqjbpfwaqitxawlsq\",
    \"password\": \"DAHFF<Nvr\",
    \"photo\": \"perspiciatis\",
    \"specialty\": \"deu\",
    \"license_number\": \"itzpqbkgqggl\",
    \"years_of_experience\": 41,
    \"work_schedule\": \"ybclooioad\",
    \"role_id\": 3,
    \"health_center_id\": 9,
    \"department_id\": 7,
    \"mutuality_number\": \"ry\",
    \"coverage_type\": \"obligatory\",
    \"guardian_name\": \"fgcptfzdrkyu\",
    \"guardian_contact\": \"rqbxnmstvrz\",
    \"guardian_relation\": \"vkhkximufjjj\",
    \"insurance_name\": \"olndbqbyggahsfkdumac\",
    \"insurance_number\": \"pljckhoarbzfi\",
    \"company_name\": \"pucuiquujnyhcjpu\",
    \"is_patient\": true,
    \"reference\": \"wdomyzxuhxkcyratslotw\",
    \"cni\": \"dvpxpojlnbdzwohsbqtyeo\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "gcdqlmpdbbak",
    "firstname": "ljzsin",
    "lastname": "jcgggduzsujskgl",
    "gender": "female",
    "birthday": "2026-05-07T16:23:58",
    "birth_place": "ojssetdy",
    "marital_status": "single",
    "nationality": "woxexreslkvaij",
    "nui": "ymyhrfzxazklud",
    "niss": "yzrwxjinipvsasbckmdfllse",
    "email": "qgutkowski@example.com",
    "phone": "g",
    "phone2": "kzlzpykhr",
    "city": "byk",
    "address": "pgepmtlsvayal",
    "country": "mlthgjdqjbpfwaqitxawlsq",
    "password": "DAHFF<Nvr",
    "photo": "perspiciatis",
    "specialty": "deu",
    "license_number": "itzpqbkgqggl",
    "years_of_experience": 41,
    "work_schedule": "ybclooioad",
    "role_id": 3,
    "health_center_id": 9,
    "department_id": 7,
    "mutuality_number": "ry",
    "coverage_type": "obligatory",
    "guardian_name": "fgcptfzdrkyu",
    "guardian_contact": "rqbxnmstvrz",
    "guardian_relation": "vkhkximufjjj",
    "insurance_name": "olndbqbyggahsfkdumac",
    "insurance_number": "pljckhoarbzfi",
    "company_name": "pucuiquujnyhcjpu",
    "is_patient": true,
    "reference": "wdomyzxuhxkcyratslotw",
    "cni": "dvpxpojlnbdzwohsbqtyeo"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: gcdqlmpdbbak

firstname   string   

Le champ value ne peut contenir plus de 255 caractères. Example: ljzsin

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jcgggduzsujskgl

gender   string   

Example: female

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ojssetdy

marital_status   string  optional  

Example: single

Must be one of:
  • single
  • married
  • widowed
  • divorced
nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: woxexreslkvaij

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ymyhrfzxazklud

niss   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yzrwxjinipvsasbckmdfllse

email   string  optional  

Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: qgutkowski@example.com

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: g

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: kzlzpykhr

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: byk

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pgepmtlsvayal

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mlthgjdqjbpfwaqitxawlsq

password   string   

Le champ value doit contenir au moins 6 caractères. Example: DAHFF<Nvr

photo   string  optional  

Example: perspiciatis

specialty   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: deu

license_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: itzpqbkgqggl

years_of_experience   integer  optional  

Le champ value doit être au moins 0. Example: 41

work_schedule   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ybclooioad

role_id   integer   

The id of an existing record in the roles table. Example: 3

health_center_id   integer  optional  

Example: 9

department_id   integer  optional  

Example: 7

mutuality_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ry

coverage_type   string  optional  

Example: obligatory

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
guardian_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fgcptfzdrkyu

guardian_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rqbxnmstvrz

guardian_relation   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: vkhkximufjjj

insurance_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: olndbqbyggahsfkdumac

insurance_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pljckhoarbzfi

company_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pucuiquujnyhcjpu

is_patient   boolean  optional  

Example: true

reference   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wdomyzxuhxkcyratslotw

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dvpxpojlnbdzwohsbqtyeo

Cette route permet d'afficher les informations d'un utilisateur

requires authentication

Example request:
curl --request GET \
    --get "https://vitacare.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/users/1 could not be found."
}
 

Request      

GET api/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user. Example: 1

Changer un mot de passe

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/users/update-password/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"HXXEk6\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/update-password/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "HXXEk6"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/users/update-password/{user?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user   integer  optional  

Example: 1

Body Parameters

password   string   

Le champ value doit contenir au moins 6 caractères. Example: HXXEk6

Fonction permettant de mettre à jour les informations d'un utilisateur

requires authentication

Example request:
curl --request PUT \
    "https://vitacare.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"firstname\": \"drdsnkgeekhymrovuxyobit\",
    \"lastname\": \"inyghnyucocgfwcwqprdt\",
    \"gender\": \"male\",
    \"birthday\": \"2026-05-07T16:23:58\",
    \"birth_place\": \"rkufjjxlscbgxgrftlizatz\",
    \"marital_status\": \"widowed\",
    \"nationality\": \"unskptjtdltwqiqh\",
    \"nui\": \"fwhgkcmpjkhyp\",
    \"niss\": \"ftogojfkolgkx\",
    \"connexion_type\": \"phone\",
    \"email\": \"rhiannon02@example.org\",
    \"phone\": \"xyyanegbtdlwesmcpe\",
    \"phone2\": \"hcaxdzpiigbx\",
    \"city\": \"wl\",
    \"address\": \"hknfznpm\",
    \"country\": \"kjhonvoqeait\",
    \"password\": \"Xc&>XH=QUzCTk6-\",
    \"photo\": \"ut\",
    \"specialty\": \"vetbbhhqlavggshuj\",
    \"license_number\": \"etskimjgrqzavsjxkwxcvik\",
    \"years_of_experience\": 6,
    \"work_schedule\": \"ujtcbcgwgexeibifncfdnxkq\",
    \"role_id\": 12,
    \"health_center_id\": 8,
    \"department_id\": 1,
    \"mutuality_number\": \"nitjwegsjxsed\",
    \"coverage_type\": \"partial\",
    \"guardian_name\": \"ezgseqhgppqvg\",
    \"guardian_contact\": \"qhfi\",
    \"guardian_relation\": \"dbggalmjafgjxlj\",
    \"insurance_name\": \"mcmpwtzjsilkbiyksctwujyo\",
    \"insurance_number\": \"apuepxp\",
    \"company_name\": \"bmelkjsyqkaxwqcixqszfqqr\",
    \"is_patient\": true,
    \"reference\": \"s\"
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "firstname": "drdsnkgeekhymrovuxyobit",
    "lastname": "inyghnyucocgfwcwqprdt",
    "gender": "male",
    "birthday": "2026-05-07T16:23:58",
    "birth_place": "rkufjjxlscbgxgrftlizatz",
    "marital_status": "widowed",
    "nationality": "unskptjtdltwqiqh",
    "nui": "fwhgkcmpjkhyp",
    "niss": "ftogojfkolgkx",
    "connexion_type": "phone",
    "email": "rhiannon02@example.org",
    "phone": "xyyanegbtdlwesmcpe",
    "phone2": "hcaxdzpiigbx",
    "city": "wl",
    "address": "hknfznpm",
    "country": "kjhonvoqeait",
    "password": "Xc&>XH=QUzCTk6-",
    "photo": "ut",
    "specialty": "vetbbhhqlavggshuj",
    "license_number": "etskimjgrqzavsjxkwxcvik",
    "years_of_experience": 6,
    "work_schedule": "ujtcbcgwgexeibifncfdnxkq",
    "role_id": 12,
    "health_center_id": 8,
    "department_id": 1,
    "mutuality_number": "nitjwegsjxsed",
    "coverage_type": "partial",
    "guardian_name": "ezgseqhgppqvg",
    "guardian_contact": "qhfi",
    "guardian_relation": "dbggalmjafgjxlj",
    "insurance_name": "mcmpwtzjsilkbiyksctwujyo",
    "insurance_number": "apuepxp",
    "company_name": "bmelkjsyqkaxwqcixqszfqqr",
    "is_patient": true,
    "reference": "s"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/users/{user?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user   integer  optional  

Example: 1

Body Parameters

firstname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: drdsnkgeekhymrovuxyobit

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: inyghnyucocgfwcwqprdt

gender   string  optional  

Example: male

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-07T16:23:58

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rkufjjxlscbgxgrftlizatz

marital_status   string  optional  

Example: widowed

Must be one of:
  • single
  • married
  • widowed
  • divorced
nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: unskptjtdltwqiqh

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fwhgkcmpjkhyp

niss   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ftogojfkolgkx

connexion_type   string  optional  

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: rhiannon02@example.org

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: xyyanegbtdlwesmcpe

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: hcaxdzpiigbx

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wl

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: hknfznpm

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: kjhonvoqeait

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: Xc&>XH=QUzCTk6-

photo   string  optional  

Example: ut

specialty   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: vetbbhhqlavggshuj

license_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: etskimjgrqzavsjxkwxcvik

years_of_experience   integer  optional  

Le champ value doit être au moins 0. Example: 6

work_schedule   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ujtcbcgwgexeibifncfdnxkq

role_id   integer  optional  

The id of an existing record in the roles table. Example: 12

health_center_id   integer  optional  

Example: 8

department_id   integer  optional  

Example: 1

mutuality_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: nitjwegsjxsed

coverage_type   string  optional  

Example: partial

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
guardian_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ezgseqhgppqvg

guardian_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qhfi

guardian_relation   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dbggalmjafgjxlj

insurance_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mcmpwtzjsilkbiyksctwujyo

insurance_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: apuepxp

company_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bmelkjsyqkaxwqcixqszfqqr

is_patient   boolean  optional  

Example: true

reference   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: s

Fonction pour le multiple archivage des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/users/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        8
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

Fonction de restauration multiples d'utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/users/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        20
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

Fonction de suppression définitive multiple d'utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://vitacare.ms-hotel.net/api/users/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        5
    ]
}"
const url = new URL(
    "https://vitacare.ms-hotel.net/api/users/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional