GET api/userPrivilege/TaskPermissions?projectId={projectId}&taskId={taskId}

Get current user's permissions to task

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

integer

Required

taskId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Get current user's permissions to task

API_Data_TaskPrivileges
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

TaskPrivileges

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "CanAccess": true,
    "CanSubmit": true,
    "CanDelete": true,
    "CanPowerEditStatus": true,
    "CanChangeSubProject": true,
    "CanPerformClose": true,
    "CanPerformReopen": true,
    "CanPerformGroupAction": true
  }
}

application/xml, text/xml

Sample:
<API_Data_TaskPrivileges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>
    <CanAccess>true</CanAccess>
    <CanChangeSubProject>true</CanChangeSubProject>
    <CanDelete>true</CanDelete>
    <CanPerformClose>true</CanPerformClose>
    <CanPerformGroupAction>true</CanPerformGroupAction>
    <CanPerformReopen>true</CanPerformReopen>
    <CanPowerEditStatus>true</CanPowerEditStatus>
    <CanSubmit>true</CanSubmit>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_TaskPrivileges>