Endpoint: PATCH /api/projects/{project_id}/pipeline
New body parameter: device
Allowed values: <target>[-<index>] (the index part is optional, default 0)
Examples:
cpu -> device from torch.cpu
xpu -> default device from torch.xpu
cuda -> default device from torch.cuda
xpu-2 -> device with index 2 in torch.xpu
cuda-1 -> device with index 1 in torch.cuda
The endpoint should return 409 Conflict is the device is not available.