API Docs | Machines | Tajima Software Solutions Inc.

With the /Machines endpoint user can get the machine infomraiont from database.

GET /api/Machines/ListMachines Returns the information about machines.
Request Example
    /api/Machines/ListMachines
                
Response Example
    [
        ...
        {
            "$id": "302",
            "MachineId": 10,
            "Name": "string",
            "IsUseDefaultNeedles": false,
            "Description": "string",
            "MachineCategory": "Uncategorized",
            "PossibleStitches": null,
            "NumberOfHeads": null,
            "LastModifiedDate": "2022-10-18T05:22:14",
            "CloudMachineId": null,
            "Active": true,
            "Alias": null,
            "DisplayName": "string",
            "MachineNeedles": [
                {
                    "$id": "303",
                    "Colour": null,
                    "Machine": null,
                    "MachineId": 10,
                    "NeedleNumber": 1,
                    "ColourId": 30,
                    "CompanyId": 2,
                    "Id": 337
                },
	        ...      			
            ],
            "ShouldColourize": true
        },
        ...
    ]
                
GET /api/Machines/GetMachineNeedles/{id} Returns the information about machines needles.
Request Example
    /api/Machines/GetMachineNeedles/?id=0
                
Response Example
    [
        {
            "NeedleNumber": 0,
            "ColorId": 0,
            "ColorName": "string",
            "ColorCode": "string",
            "ColorRed": 0,
            "ColorGreen": 0,
            "ColorBlue": 0
        }
    ]
                
GET /api/Machines/GetDefaultNeedles Returns the information about default needles.
Request Example
    /api/Machines/GetDefaultNeedles/
                
Response Example
    [
        {
            "NeedleNumber": 0,
            "ColorId": 0,
            "ColorName": "string",
            "ColorCode": "string",
            "ColorRed": 0,
            "ColorGreen": 0,
            "ColorBlue": 0
        }
    ]
                
GET /api/Machines/GetMachineStatus/{id} Returns the information of current operator details.
Request Example
    /api/Machines/GetMachineStatus/?id=0
                
Response Example
{
	"MachineId": 0,
	"Pieces": 0,
	"PiecesNumStitches": 0,
	"UpdatedDate": "3/27/2019 10:13:37 AM",
	"Machine": "string",
	"CurrentDesign": "string",
	"Status": "string",
	"StopReason": "string",
	"Operator": "string",
	"OperatorId": 0,
	"OperatorSName": "string",
	"OperatorMail": "string",
	"OperatorPhone": "string",
	"OperatorCannedMessages": "string",
}
                
POST /api/Machines/UpdateMachineNeedles
Model Request Example
[
	{
	    "MachineId": "int",
	    "NeedleNumber": "sbyte",
	    "ColorId": "int"
	}
]
            
Response Example
Response will be 200 OK if there is no error otherwise response will be 409 conflict with error message
            
POST /api/Machines/UpdateDefaultNeedles
Model Request Example
[
	{
	    "MachineId": "int",
	    "NeedleNumber": "sbyte",
	    "ColorId": "int"
	}
]
            
Response Example
Response will be 200 OK if there is no error otherwise response will be 409 conflict with error message
            
GET /api/Machines/MoveOutputToMachineFolder Moves job files to machine folder.
Request Example
    /api/Machines/MoveOutputToMachineFolder?machineName=mymachine&jobName=myJob
                
Response Example
   Response will be 200 OK if there is no error otherwise response will be 409 conflict with error message