Bays

This page includes all endpoints available for the agenda bays of Logiciel Actif (GEM-CAR required).

List all agenda bays

GET https://app.gem-books.com/api/agenda_bays

This endpoint allows you to get the list of your bays. The bays are returned sorted by most recent number.

Headers

NameTypeDescription

Authentification*

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 2,
            "branch_id": 1,
            "order": 2,
            "default": 1,
            "name": "TECH 2",
            "tech_id": 0,
            "initials": "SM",
            "bay_type": 1,
            "vehicle_types": "",
            "cost": "150.00",
            "diner_name": "",
            "lunch_start": "13:00:00",
            "lunch_end": "14:00:00",
            "has_dinner": 1,
            "client_can_schedule": 0,
            "out_of_business_hours": 0,
            "disabled": 0
        },
        {
            "id": 1,
            "branch_id": 1,
            "order": 1,
            "default": 0,
            "name": "TECH 1",
            "tech_id": 0,
            "initials": "",
            "bay_type": 1,
            "vehicle_types": "",
            "cost": "0.00",
            "diner_name": "",
            "lunch_start": "12:00:00",
            "lunch_end": "13:00:00",
            "has_dinner": 1,
            "client_can_schedule": 0,
            "out_of_business_hours": 0,
            "disabled": 0
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "per_page": 25,
        "total": 2
    },
    "success": true
}

List a specific agenda bay

GET https://app.gem-books.com/api/agenda_bays/:id

This endpoint allows you to get one specific bay.

Headers

NameTypeDescription

Authentification*

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 1,
            "branch_id": 1,
            "order": 1,
            "default": 0,
            "name": "TECH 4",
            "tech_id": 0,
            "initials": "",
            "bay_type": 1,
            "vehicle_types": "",
            "cost": "0.00",
            "diner_name": "",
            "lunch_start": "12:00:00",
            "lunch_end": "13:00:00",
            "has_dinner": 1,
            "client_can_schedule": 0,
            "out_of_business_hours": 0,
            "disabled": 0
        }
    ],
    "success": true
}

Create an agenda bay

POST https://app.gem-books.com/api/agenda_bays

Headers

NameTypeDescription

Authentification

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 1,
            "branch_id": 1,
            "order": 1,
            "default": 0,
            "name": "TECH 4",
            "tech_id": 0,
            "initials": "",
            "bay_type": 1,
            "vehicle_types": "",
            "cost": "0.00",
            "diner_name": "",
            "lunch_start": "12:00:00",
            "lunch_end": "13:00:00",
            "has_dinner": 1,
            "client_can_schedule": 0,
            "out_of_business_hours": 0,
            "disabled": 0
        }
    ],
    "success": true
}

Body Example

{
    "branch_id": 1,
    "order": 1,
    "default": 0,
    "name": "TECH 4",
    "tech_id": 0,
    "initials": "",
    "bay_type": 1,
    "vehicle_types": "",
    "cost": "0.00",
    "diner_name": "",
    "lunch_start": "12:00:00",
    "lunch_end": "13:00:00",
    "has_dinner": 1,
    "client_can_schedule": 0,
    "out_of_business_hours": 0,
    "disabled": 0
}

Update a bay

PUT https://app.gem-books.com/api/agenda_bays/:id

Headers

NameTypeDescription

Authentification

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 1,
            "branch_id": 1,
            "order": 1,
            "default": 0,
            "name": "TECH 4",
            "tech_id": 0,
            "initials": "",
            "bay_type": 1,
            "vehicle_types": "",
            "cost": "0.00",
            "diner_name": "",
            "lunch_start": "12:00:00",
            "lunch_end": "13:00:00",
            "has_dinner": 1,
            "client_can_schedule": 0,
            "out_of_business_hours": 0,
            "disabled": 0
        }
    ],
    "success": true
}

Body Example

{
    "branch_id": 1,
    "order": 1,
    "default": 0,
    "name": "TECH 4",
    "tech_id": 0,
    "initials": "",
    "bay_type": 1,
    "vehicle_types": "",
    "cost": "0.00",
    "diner_name": "",
    "lunch_start": "12:00:00",
    "lunch_end": "13:00:00",
    "has_dinner": 1,
    "client_can_schedule": 0,
    "out_of_business_hours": 0,
    "disabled": 0
}

Last updated