| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET | /v1/SupportEdit/{TicketId} | ||
|---|---|---|---|
| POST,DELETE,OPTIONS | /v1/SupportEdit |
export class Support
{
public SupportId: number;
public TicketId: number;
public AgentId: number;
public constructor(init?: Partial<Support>) { (Object as any).assign(this, init); }
}
export class SupportExtended extends Support
{
public AgentName: string;
public constructor(init?: Partial<SupportExtended>) { super(init); (Object as any).assign(this, init); }
}
export class SupportResponse
{
public ResponseStatus: ResponseStatus;
public Support: SupportExtended[] = [];
public constructor(init?: Partial<SupportResponse>) { (Object as any).assign(this, init); }
}
export class SupportRequest
{
public Support: Support[] = [];
public AgentId: number;
public TicketId: number;
public constructor(init?: Partial<SupportRequest>) { (Object as any).assign(this, init); }
}
TypeScript SupportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/SupportEdit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Support":[{"SupportId":0,"TicketId":0,"AgentId":0}],"AgentId":0,"TicketId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Support":[{"AgentName":"String","SupportId":0,"TicketId":0,"AgentId":0}]}