Skip to main content

Update Work Order

PUT 

/organizations/:organizationId/work-orders/:workOrderId

Update work order

Request

Path Parameters

    organizationId stringrequired

    The ID of organization.

    workOrderId stringrequired

    The ID of work order.

Body

required
    subject string

    The subject of work order.

    description string

    The description of work order.

    expiredAt number

    The expired time of work order.

    workTime number

    The workTime of work order, when type is template.

    scheduleType string

    The schedule type of work order.

    daysOfWeek boolean[]

    Days of week, ex: [false, true, false, false, false, true, false] is monday and friday of week.

    everyWeeks number

    How many weeks interval, ex: 1 is every week, 2 is interval of one week.

    dayOfMonth number

    Day of month, ex: 22 is 22th day of every month.

    everyMonths number

    How many months interval, ex: 1 is every month, 2 is interval of one month(1/22, 3/22, 5/22 etc...).

    everyYears number

    How many years interval, ex: 1 is every year, 2 is interval of one year(2023/01/22, 2025/01/22, 2027/01/22 etc...).

    aheadOfTime number

    Ahead of time(seconds) to available in the list.

    assignee object

    The assignee of work order.

    priority string

    The priority of work order.

    workRequestId string

    The ID of work request.

    locationId string

    The location ID of work order.

    procedures string

    The procedures of work order.

    images string[]

    The images of work order.

    files string[]

    The files of work order.

    partIds string[]

    The ID list of part.

    assetIds string[]

    The ID list of asset.

    enableNotify boolean

    Enable/Disable notification.

Responses

Schema
    data objectrequired

    Data of the work order.

    type stringrequired
    subject stringrequired
    description string
    expiredAt stringrequired
    workTime number
    scheduleType string
    daysOfWeek boolean[]
    everyWeeks number
    dayOfMonth number
    everyMonths number
    everyYears number
    aheadOfTime number
    assignee object
    priority stringrequired
    workRequestId string
    locationId string
    procedures string
    images string[]
    files string[]
    partIds string[]
    assetIds string[]
    enableNotify boolean
    status stringrequired
    timeTrackingType stringrequired
    createdBy stringrequired
    createdAtDateString numberrequired
    createdAt numberrequired
Loading...