NewPolicy

POST NewPolicy

URL: /api/AppShield/NewPolicy

Description 

Retrieve a blank Yurbi AppShield Policy object. This call does not create a new AppShield Policy and the only argument required is a sessionToken. This call returns a JSON structure to populate a new AppShield Policy record which then must be saved (see /api/AppSheild/SaveAppShieldPolicy).

Method 

POST

Data Params

{
sessionToken : [string]
}

Example

{
sessionToken : "HJQXIYYL[AZVTTRPILOHXHLWW"
}

Success Response 

Code: 200

{
  "Constraints":[],
  "CreatedBy":null,
  "CreateDate":"2016-06-06T21:17:40.8220078-04:00",
  "Description":"AppShield Policy Created 2016-06-06T21:17:40.8220078-04:00",
  "ErrorCode":0,
  "ErrorMessage":null,
  "Groups":null,
  "id":null,
  "isActive":false,
  "ModifyBy":null,
  "ModifiedDate":"2016-06-06T21:17:40.8220078-04:00",
  "Name":"New AppShield Policy",
  "Users":null
}

Definition of DashobardListItem

NameDescription
ConstraintsDescription of Dashboard
CreatedByCreation Date
CreateDateCreation Date
DescriptionPolicy description.
ErrorCodeError code.
ErrorMessageError message
GroupsGroups assigned to policy.
idUnique id.
isActiveActive
ModifiedByLast User to modify.
ModifiedDateLast modify date of contact record
NameName of Policy
UsersUsers assigned to policy

Sample Call

$.ajax({
  url: "/api/AppShield/NewPolicy",
  dataType: "json",
    data : {
    sessionToken : “HJQXIYYL[AZVTTRPILOHXHLWW”},
  type : "POST",
  success : function(r) {
    console.log(r);
  }
});

Was this article helpful?

NewContact
SaveContact