digitaluapi

<back to all web services

QueriesAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/queries

export class QueriesAddResponse
{
    // @DataMember(Order=2)
    public QueryText: string;

    // @DataMember(Order=3)
    public PrimarykeyParameter: string;

    // @DataMember(Order=4)
    public TenantsId: number;

    // @DataMember(Order=6)
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<QueriesAddResponse>) { (Object as any).assign(this, init); }
}

// @DataContract
export class QueriesAdd
{
    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    public QueryText: string;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    public PrimarykeyParameter: string;

    // @DataMember(Order=4)
    // @Validate(Validator="NotNull")
    public TenantsId: number;

    public constructor(init?: Partial<QueriesAdd>) { (Object as any).assign(this, init); }
}

TypeScript QueriesAdd DTOs

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

HTTP + OTHER

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

POST /queries HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"QueryText":"String","PrimarykeyParameter":"String","TenantsId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"QueryText":"String","PrimarykeyParameter":"String","TenantsId":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}