| Requires the role: | SystemAdministrator |
| DELETE | /ai/sessions/{sessionId}/actions/{actionId} |
|---|
export class NodeParameterMap
{
[key:string] : NodeParameter;
public constructor(init?: Partial<NodeParameterMap>) { (Object as any).assign(this, init); }
}
/** @description Delete the specified session action */
// @Api(Description="Delete the specified session action")
export class DeleteAISessionAction implements IDelete
{
/** @description The ID of the session */
// @ApiMember(Description="The ID of the session")
public sessionId: string;
/** @description The ID of the action to delete */
// @ApiMember(Description="The ID of the action to delete")
public actionId: string;
public constructor(init?: Partial<DeleteAISessionAction>) { (Object as any).assign(this, init); }
}
export class EntityInfo
{
/** @description The ID of the object */
// @ApiMember(Description="The ID of the object")
public id: string;
/** @description The date the object was created */
// @ApiMember(Description="The date the object was created")
public dateCreated: string;
/** @description The date the object was last modified */
// @ApiMember(Description="The date the object was last modified")
public dateLastModified: string;
/** @description The user that created this object */
// @ApiMember(Description="The user that created this object")
public createdBy: string;
/** @description The user that last modified this object */
// @ApiMember(Description="The user that last modified this object")
public lastModifiedBy: string;
public constructor(init?: Partial<EntityInfo>) { (Object as any).assign(this, init); }
}
export class AISessionActionInfo
{
public date: string;
public id: string;
public functionName: string;
public arguments: string;
public description: string;
public canBeApplied: boolean;
public constructor(init?: Partial<AISessionActionInfo>) { (Object as any).assign(this, init); }
}
export class AISessionInfo extends EntityInfo
{
/** @description The ID of the account associated with this session */
// @ApiMember(Description="The ID of the account associated with this session")
public accountId: string;
/** @description The name of the account associated with this customer */
// @ApiMember(Description="The name of the account associated with this customer")
public accountName: string;
/** @description The purpose for this AI session */
// @ApiMember(Description="The purpose for this AI session")
public purpose: string;
/** @description The actions performed in this session */
// @ApiMember(Description="The actions performed in this session")
public actions: AISessionActionInfo[];
public constructor(init?: Partial<AISessionInfo>) { super(init); (Object as any).assign(this, init); }
}
TypeScript DeleteAISessionAction DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /ai/sessions/{sessionId}/actions/{actionId} HTTP/1.1
Host: evovoice.io
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AISessionInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.AI">
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</CreatedBy>
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateCreated>
<DateLastModified xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateLastModified>
<Id xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</Id>
<LastModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</LastModifiedBy>
<AccountId>String</AccountId>
<AccountName>String</AccountName>
<Actions>
<AISessionActionInfo>
<Arguments>String</Arguments>
<CanBeApplied>false</CanBeApplied>
<Date>String</Date>
<Description>String</Description>
<FunctionName>String</FunctionName>
<Id>String</Id>
</AISessionActionInfo>
</Actions>
<Purpose>String</Purpose>
</AISessionInfo>