| POST,OPTIONS | /v1/dispatch/notice/{Token}/ack |
|---|
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
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DispatchNoticeResponse:
ref_code: Optional[str] = None
recipient_name: Optional[str] = None
headline: Optional[str] = None
body: Optional[str] = None
affected_text: Optional[str] = None
original_window: Optional[str] = None
new_window: Optional[str] = None
scope_label: Optional[str] = None
reason: Optional[str] = None
hold_status: Optional[str] = None
resumes_utc: Optional[datetime.datetime] = None
acked: bool = False
invalid: bool = False
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DispatchNoticeAckRequest:
token: Optional[str] = None
Python DispatchNoticeAckRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/notice/{Token}/ack HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Token":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"RefCode":"String","RecipientName":"String","Headline":"String","Body":"String","AffectedText":"String","OriginalWindow":"String","NewWindow":"String","ScopeLabel":"String","Reason":"String","HoldStatus":"String","ResumesUtc":"0001-01-01T00:00:00.0000000","Acked":false,"Invalid":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}