BNN Api

<back to all web services

GetRole

Gets role by Id

The following routes are available for this service:
GET/GetRole

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

HTTP + XML

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

POST /xml/reply/GetRole HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: application/xml
Content-Length: length

<GetRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests">
  <Id>0</Id>
</GetRole>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RoleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Responses">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Dto">
    <d2p1:AlertMember>0</d2p1:AlertMember>
    <d2p1:AllowChat>0</d2p1:AllowChat>
    <d2p1:AllowStealth>0</d2p1:AllowStealth>
    <d2p1:AllowWebview>0</d2p1:AllowWebview>
    <d2p1:ApproveIncident>0</d2p1:ApproveIncident>
    <d2p1:ApproveMedia>0</d2p1:ApproveMedia>
    <d2p1:BnnChat>0</d2p1:BnnChat>
    <d2p1:BnnTacRooms>0</d2p1:BnnTacRooms>
    <d2p1:Broadcast>0</d2p1:Broadcast>
    <d2p1:CanDeleteMedia>0</d2p1:CanDeleteMedia>
    <d2p1:ChatModerator>0</d2p1:ChatModerator>
    <d2p1:ClaimIncident>0</d2p1:ClaimIncident>
    <d2p1:ConfiscateClaim>0</d2p1:ConfiscateClaim>
    <d2p1:ConsolidatedChat>0</d2p1:ConsolidatedChat>
    <d2p1:CountiesAllowed>0</d2p1:CountiesAllowed>
    <d2p1:FireHazmat>0</d2p1:FireHazmat>
    <d2p1:FunctionEditProfile>0</d2p1:FunctionEditProfile>
    <d2p1:FunctionPvtChat>0</d2p1:FunctionPvtChat>
    <d2p1:FunctionSearchbyMemberId>0</d2p1:FunctionSearchbyMemberId>
    <d2p1:FunctionTextMessage>0</d2p1:FunctionTextMessage>
    <d2p1:FunctionVote>0</d2p1:FunctionVote>
    <d2p1:GetMediaLevel>0</d2p1:GetMediaLevel>
    <d2p1:HoverUserInfo>0</d2p1:HoverUserInfo>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:Incidents>0</d2p1:Incidents>
    <d2p1:IncludeInMessaging>0</d2p1:IncludeInMessaging>
    <d2p1:IncludeInOul>0</d2p1:IncludeInOul>
    <d2p1:International>0</d2p1:International>
    <d2p1:Local>0</d2p1:Local>
    <d2p1:MapMembers>0</d2p1:MapMembers>
    <d2p1:National>0</d2p1:National>
    <d2p1:PoliceCrime>0</d2p1:PoliceCrime>
    <d2p1:ReleaseClaim>0</d2p1:ReleaseClaim>
    <d2p1:RescueTrauma>0</d2p1:RescueTrauma>
    <d2p1:RoleName>String</d2p1:RoleName>
    <d2p1:SeeClaims>0</d2p1:SeeClaims>
    <d2p1:SendBlog>0</d2p1:SendBlog>
    <d2p1:SendConfirm>0</d2p1:SendConfirm>
    <d2p1:SendIncident>0</d2p1:SendIncident>
    <d2p1:SendPreAlert>0</d2p1:SendPreAlert>
    <d2p1:SmokeWater>0</d2p1:SmokeWater>
    <d2p1:TabEmail>0</d2p1:TabEmail>
    <d2p1:ThirdAlarm>0</d2p1:ThirdAlarm>
    <d2p1:Traffic>0</d2p1:Traffic>
    <d2p1:Weather>0</d2p1:Weather>
    <d2p1:WindowAdmin>0</d2p1:WindowAdmin>
    <d2p1:WindowBlog>0</d2p1:WindowBlog>
    <d2p1:WindowHistory>0</d2p1:WindowHistory>
    <d2p1:WindowMemberStats>0</d2p1:WindowMemberStats>
    <d2p1:WindowMessaging>0</d2p1:WindowMessaging>
    <d2p1:WindowProfile>0</d2p1:WindowProfile>
    <d2p1:WindowResources>0</d2p1:WindowResources>
    <d2p1:WindowRist>0</d2p1:WindowRist>
    <d2p1:WindowSearch>0</d2p1:WindowSearch>
    <d2p1:WindowSendJob>0</d2p1:WindowSendJob>
    <d2p1:WindowSendJobFreeForm>0</d2p1:WindowSendJobFreeForm>
    <d2p1:WindowSendJobIntl>0</d2p1:WindowSendJobIntl>
    <d2p1:WindowVmMediaTips>0</d2p1:WindowVmMediaTips>
  </Data>
</RoleResponse>