GET api/userPrivilege/SubProjectPermissions?projectId={projectId}&subProjectId={subProjectId}

Get current user's permissions to subproject

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

integer

Required

subProjectId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Get current user's permissions to subproject

API_Data_SubProjectPrivileges
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

SubProjectPrivileges

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "CanAccess": true,
    "CanCreate": true,
    "CanEdit": true,
    "CanDelete": true,
    "CanMove": true
  }
}

application/xml, text/xml

Sample:
<API_Data_SubProjectPrivileges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>
    <CanAccess>true</CanAccess>
    <CanCreate>true</CanCreate>
    <CanDelete>true</CanDelete>
    <CanEdit>true</CanEdit>
    <CanMove>true</CanMove>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_SubProjectPrivileges>