Hi,
On PostMan, I can create an order an order line by API :
{
    "jsonrpc": "2.0",
    "params": {
        "model": "sale.order",
        "method": "create",
        "args": [{
            "partner_id": 8,  
            "date_order": "2024-08-11",  
            "validity_date": "2024-11-25",  
            "commitment_date": "2024-11-14 10:47:33", 
            "rental_status":"draft",
            "require_signature": true,
            "require_payment": false,
            "order_line": [
                [0, 0, {
                    "product_id": 32,  // 
                    "product_uom_qty": 1, 
                    "price_unit": 0  
                }]
            ],
            "is_rental_order": true  
        }],
        "kwargs": {
            "context": {
                "lang": "fr_FR",
                "tz": false
            }
        }
    },
    "id":2
}
But I can't create the 
sale.rental.schedule
for this order. It seems to be a user right problem.
Help please
- {
 "jsonrpc": "2.0",
 "params": {
 "model": "sale.rental.schedule",
 "method": "create",
 "args": [{
 "order_line_id": 81,
 "rent_start_date": "2024-10-11 09:26:33",
 "rent_end_date": "2024-10-15 18:26:33",
 "state": "confirmed"
 }],
 "kwargs": {
 "context": {
 "lang": "fr_FR",
 "tz": false
 }
 }
 },
 "id":2
 }
