POST api/Roles/SaveUpdateRole

Request Information

URI Parameters

None.

Body Parameters

SaveUpdateRoleRequestVM
NameDescriptionTypeAdditional information
RoleId

string

None.

UserId

string

Required

AccountId

string

Required

Name

string

Required

UserTeamsAndRoles

RolePermissionsOnSettingVM

None.

Preferences

RolePermissionsOnSettingVM

None.

Communication

RolePermissionsOnSettingVM

None.

Integration

RolePermissionsOnSettingVM

None.

Billing

RolePermissionsOnSettingVM

None.

Accounts

RolePermissionsOnSettingVM

None.

Contact

RolePermissionsOnContactVM

None.

Campaign

RolePermissionsOnCampaignVM

None.

LeadCapture

RolePermissionsOnLeadCaptureVM

None.

MobilePage

RolePermissionsOnMobilePageVM

None.

Offer

RolePermissionsOnOfferVM

None.

AutomationAndTemplates

RolePermissionsOnAutomationAndTemplatesVM

None.

Actions

RolePermissionsOnActionsVM

None.

Library

RolePermissionsOnLibraryVM

None.

Conversation

RolePermissionsOnSettingVM

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleId": "sample string 1",
  "UserId": "sample string 2",
  "AccountId": "sample string 3",
  "Name": "sample string 4",
  "UserTeamsAndRoles": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Preferences": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Communication": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Integration": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Billing": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Accounts": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Contact": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Import": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Export": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "PermanentlyDelete": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Campaign": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "SendCampaign": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "LeadCapture": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "MobilePage": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Offer": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "AutomationAndTemplates": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Actions": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Library": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Subscribe": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Publish": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  },
  "Conversation": {
    "View": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    },
    "Manage": {
      "IsAccessEnabled": true,
      "AccessLevel": {
        "All": true,
        "User": true,
        "Team": true
      }
    }
  }
}

application/xml, text/xml

Sample:
<SaveUpdateRoleRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.RoleRequestVM">
  <Accounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Accounts>
  <Actions xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Actions>
  <AutomationAndTemplates xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </AutomationAndTemplates>
  <Billing xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Billing>
  <Campaign xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:SendCampaign>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:SendCampaign>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Campaign>
  <Communication xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Communication>
  <Contact xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Export>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Export>
    <d2p1:Import>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Import>
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:PermanentlyDelete>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:PermanentlyDelete>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Contact>
  <Conversation xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Conversation>
  <Integration xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Integration>
  <LeadCapture xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </LeadCapture>
  <Library xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:Publish>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Publish>
    <d2p1:Subscribe>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Subscribe>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Library>
  <MobilePage xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </MobilePage>
  <Name>sample string 4</Name>
  <Offer xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Offer>
  <Preferences xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </Preferences>
  <UserTeamsAndRoles xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.RolesResponseModels">
    <d2p1:Manage>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:Manage>
    <d2p1:View>
      <d2p1:AccessLevel>
        <d2p1:All>true</d2p1:All>
        <d2p1:Team>true</d2p1:Team>
        <d2p1:User>true</d2p1:User>
      </d2p1:AccessLevel>
      <d2p1:IsAccessEnabled>true</d2p1:IsAccessEnabled>
    </d2p1:View>
  </UserTeamsAndRoles>
  <AccountId>sample string 3</AccountId>
  <RoleId>sample string 1</RoleId>
  <UserId>sample string 2</UserId>
</SaveUpdateRoleRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.