| Required roles: | Administrator, Administrator, Administrator | Requires any of the roles: | Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/LineMessages/{Id} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/LineMessages | ||
| GET,POST,PUT,DELETE,OPTIONS | /v1/LineMessages/Line/{LineId} | ||
| GET,POST,PUT,DELETE,OPTIONS | /v1/LineMessages/Location/{LocationId}/Customers/{CustomerId} |
export class LineMessage
{
public Id: string;
public LineId: string;
public LineName: string;
public Message: string;
public MessageId: string;
public DisplayOrder: number;
public constructor(init?: Partial<LineMessage>) { (Object as any).assign(this, init); }
}
export class LineMessagesResponse
{
public ResponseStatus: ResponseStatus;
public LineMessages: LineMessage[] = [];
public constructor(init?: Partial<LineMessagesResponse>) { (Object as any).assign(this, init); }
}
export class LineMessagesRequest
{
public Id: string;
public LineId: string;
public LineMessages: LineMessage[] = [];
public constructor(init?: Partial<LineMessagesRequest>) { (Object as any).assign(this, init); }
}
TypeScript LineMessagesRequest 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/LineMessages/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineMessages":[{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineName":"String","Message":"String","MessageId":"00000000000000000000000000000000","DisplayOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"LineMessages":[{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineName":"String","Message":"String","MessageId":"00000000000000000000000000000000","DisplayOrder":0}]}