digitaluapi

<back to all web services

CustomActionsEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/custom_actions/{Id}

export class CustomActionsEditResponse
{
    // @DataMember(Order=1)
    public Id: number;

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

    // @DataMember(Order=3)
    public ActionsId: number;

    // @DataMember(Order=4)
    public FormMetaData: string;

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

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

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

// @DataContract
export class CustomActionsEdit
{
    // @DataMember(Order=1)
    // @Validate(Validator="NotNull")
    public Id: number;

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

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    public ActionsId: number;

    // @DataMember(Order=4)
    // @Validate(Validator="NotNull")
    public FormMetaData: string;

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

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

TypeScript CustomActionsEdit DTOs

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

HTTP + JSV

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

PUT /custom_actions/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	TenantsId: 0,
	ActionsId: 0,
	FormMetaData: String,
	ResultData: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	TenantsId: 0,
	ActionsId: 0,
	FormMetaData: String,
	ResultData: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}