Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

UpdateLedProblemsStatus

Requires Authentication
The following routes are available for this service:
All Verbs/UpdateLedProblemsStatus
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


# @Flags()
class LedIssueReason(IntEnum):
    UNKOWN = 0
    MISPLACED = 1
    BROKEN = 2
    NO_T__D_E_F_I_N_E_D = 3
    OVERLAPPING = 4
    MISSING = 5
    C_S01__M_I_S_P_L_A_C_E_D = 6
    C_S01__N_O_T__D_E_F_I_N_E_D = 7


# @Flags()
class LedIssueStatus(IntEnum):
    NULL = 0
    IGNORED = 1
    TOBETREATED = 2


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class LedIssue:
    id: int = 0
    reserved_date_time: int = 0
    area_i_d: int = 0
    position_key: Optional[str] = None
    note: Optional[str] = None
    owner: Optional[str] = None
    reason: Optional[LedIssueReason] = None
    status: Optional[LedIssueStatus] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UpdateLedProblemsStatus:
    # @ApiMember(Description="List of LedIssue to update")
    led_issue: List[LedIssue] = field(default_factory=list)
    """
    List of LedIssue to update
    """

Python UpdateLedProblemsStatus DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /UpdateLedProblemsStatus HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateLedProblemsStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
  <LedIssue>
    <LedIssue>
      <AreaID>0</AreaID>
      <ID>0</ID>
      <Note>String</Note>
      <Owner>String</Owner>
      <PositionKey>String</PositionKey>
      <Reason>UNKOWN</Reason>
      <ReservedDateTime>0</ReservedDateTime>
      <Status>NULL</Status>
    </LedIssue>
  </LedIssue>
</UpdateLedProblemsStatus>