digitaluapi

<back to all web services

LookupListsAdd

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

export class LookupListsAddResponse
{
    // @DataMember(Order=2)
    public Description: string;

    // @DataMember(Order=3)
    public IsEnabled: boolean;

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

    // @DataMember(Order=5)
    public LastModifiedDate: string;

    // @DataMember(Order=6)
    public RowVersionGuid: string;

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

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

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

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    public IsEnabled: boolean;

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

    // @DataMember(Order=5)
    // @Validate(Validator="NotNull")
    public LastModifiedDate: string;

    // @DataMember(Order=6)
    // @Validate(Validator="NotNull")
    public RowVersionGuid: string;

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

TypeScript LookupListsAdd 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 /lookup_lists HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Description":"String","IsEnabled":false,"LookupListCategoryId":0,"LastModifiedDate":"0001-01-01T00:00:00.0000000","RowVersionGuid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Description":"String","IsEnabled":false,"LookupListCategoryId":0,"LastModifiedDate":"0001-01-01T00:00:00.0000000","RowVersionGuid":"00000000000000000000000000000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}