@theredspace/spp-client
    Preparing search index...

    Interface ScheduleRequest

    interface ScheduleRequest {
    approval_status : "P" | "A" | "R" | "O" ;
    attachmentid : number ;
    categoryid : number ;
    created : string ;
    customerid : number ;
    date : string ;
    date_approved ?: string ;
    date_submitted ?: string ;
    description ?: string ;
    enddate : string ;
    externalid ?: string ;
    id : number ;
    name ?: string ;
    notes ?: string ;
    number : number ;
    prefix : string ;
    project_taskid : number ;
    projectid : number ;
    startdate : string ;
    timetype : "P" | "R" ;
    timetypeid : number ;
    updated : string ;
    userid : number ;
    }
    Index

    Properties

    approval_status : "P" | "A" | "R" | "O"

    A one-character approval status: 'O' = Open, 'P' = Pending approval, 'A' = Approved, 'R' = Rejected

    attachmentid : number

    If non-zero, the attachment record ID associated with this request

    categoryid : number

    The ID of the associated category

    created : string

    [Read-only] When the record was created (DateTime)

    customerid : number

    The ID of the associated customer

    date : string

    The date the schedule request was created (Date only)

    date_approved ?: string

    The date the schedule request was approved (Date only)

    date_submitted ?: string

    The date the schedule request was submitted (Date only)

    description ?: string

    Description or purpose for the request

    enddate : string

    The end date of the schedule request (Date only)

    externalid ?: string

    External system ID, if imported

    id : number

    [Read-only] Internal unique ID

    name ?: string

    The name of the schedule request (defaults to prefix+number)

    notes ?: string

    Notes to print on the schedule request

    number : number

    The incrementing schedule request number (must be unique)

    prefix : string

    Static alphanumeric prefix (defaults to “SR-”)

    project_taskid : number

    The ID of the associated project task

    projectid : number

    The ID of the associated project

    startdate : string

    The start date of the schedule request (Date only)

    timetype : "P" | "R"

    Time type: 'R' = regular time, 'P' = personal time

    timetypeid : number

    The ID of the associated time type

    updated : string

    [Read-only] When the record was last updated (DateTime)

    userid : number

    The user ID of the request submitter (defaults to authenticated user)

    Usage and Relationships

    The ScheduleRequest represents a high-level request for scheduling resources. It serves as the parent object for ScheduleRequest_item and ScheduleException.

    Important: When deleting related records, ensure that child records are deleted before parent records. For example:

    1. Delete ScheduleException first.
    2. Delete ScheduleRequest_item second.
    3. Delete ScheduleRequest last.

    Related Types:

    Key Fields:

    • id: Unique identifier for the ScheduleRequest.
    • userid: Identifies the user associated with the request.