Skip to main content
DELETE
/
v1
/
Scheduling
/
schedule
/
machine-tasks
Delete Machine Tasks
curl --request DELETE \
  --url https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks \
  --header 'Authorization: <api-key>'
[
  {
    "MachineId": 123,
    "TaskLutId": "<string>",
    "SchedulingId": 123,
    "DriverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "DriverName": "<string>",
    "TimezoneOffset": 123,
    "ScheduleDate": "2023-11-07T05:31:56Z",
    "StatusId": 123,
    "Notes": "<string>",
    "GeneratePickList": true,
    "GeneratePickListTime": "<string>",
    "GeneratePickListRange": 123,
    "ScheduleNextWorkingDay": true,
    "AssignedToPatternId": 123,
    "AssignedToScheduleId": 123,
    "IncompletionReason": "<string>",
    "IncompletionReasonImages": [
      {
        "EntityPictureId": 123,
        "EntityPictureUrl": "<string>"
      }
    ],
    "Pattern": {
      "PatternId": 123,
      "Name": "<string>",
      "Description": "<string>",
      "RepeatType": 123,
      "RepeatInterval": 123,
      "IsStatic": true,
      "StartOn": "2023-11-07T05:31:56Z",
      "EndOn": "2023-11-07T05:31:56Z",
      "EndAfter": 123,
      "RepeatOn": [
        {
          "Tasks": "<string>",
          "Days": "<string>",
          "Week": "<string>",
          "MonthDay": "<string>",
          "SetPos": "<string>",
          "RecurrenceEx": "<string>",
          "WeekNumber": "<string>"
        }
      ]
    },
    "IsClustered": true,
    "ClusterIds": "<string>",
    "CreatedBy": 123,
    "CreatedDt": "2023-11-07T05:31:56Z",
    "UpdatedBy": 123,
    "UpdatedDt": "2023-11-07T05:31:56Z",
    "isMobile": true,
    "isSeriesUpdate": true,
    "originalDate": "<string>",
    "IncompletionReasonId": 123,
    "IncompletionReasonName": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Query Parameters

SchedulingIds
integer<int64>[]

A list of unique identifiers for the specific scheduling instances to be deleted.

MachineID
integer<int64>

The unique identifier of the machine for which the tasks are to be deleted.

isStatic
boolean

A flag indicating if the tasks are static.

date
string

The date for which the tasks are to be deleted.

Response

200 - application/json

The details of the deleted tasks.

MachineId
integer<int64>

The unique identifier of the machine associated with the task.

TaskLutId
string | null

The identifier for the type of task from the lookup table.

SchedulingId
integer<int64>

The unique identifier of the scheduling instance.

DriverId
string<uuid> | null

The unique identifier of the driver assigned to the task.

DriverName
string | null

The name of the driver assigned to the task.

TimezoneOffset
number<double>

The timezone offset in hours for the scheduled task.

ScheduleDate
string<date-time> | null

The date and time when the task is scheduled.

StatusId
integer<int32>

The status identifier of the task.

Notes
string | null

Additional notes related to the task.

GeneratePickList
boolean

Indicates whether a pick list should be generated for the task.

GeneratePickListTime
string | null

The time when the pick list is generated.

GeneratePickListRange
integer<int32> | null

The range in minutes for generating the pick list.

ScheduleNextWorkingDay
boolean

Indicates whether the task should be scheduled for the next working day.

AssignedToPatternId
integer<int64> | null

The unique identifier of the pattern to which the task is assigned.

AssignedToScheduleId
integer<int64> | null

The unique identifier of the schedule to which the task is assigned.

IncompletionReason
string | null

The reason for task incompletion, if applicable.

IncompletionReasonImages
object[] | null

A list of images associated with the reason for task incompletion.

Pattern
object

The pattern details associated with the task, if any.

IsClustered
boolean | null

Indicates whether the task is part of a clustered set of tasks.

ClusterIds
string | null

The identifiers of the clustered tasks, if applicable.

CreatedBy
integer<int64>

The unique identifier of the user who created the task.

CreatedDt
string<date-time>

The date and time when the task was created.

UpdatedBy
integer<int64> | null

The unique identifier of the user who last updated the task.

UpdatedDt
string<date-time> | null

The date and time when the task was last updated.

isMobile
boolean | null

Indicates whether the task was created or updated via a mobile device.

isSeriesUpdate
boolean | null

Indicates whether the task is part of a series update.

originalDate
string | null

The original date of the task before any rescheduling, if applicable.

IncompletionReasonId
integer<int32> | null

The unique identifier of the reason for task incompletion.

IncompletionReasonName
string | null

The name of the reason for task incompletion.