POST api/v1/ProjectShowInPlanTaskPermission/Add

Request Information

URI Parameters

None.

Body Parameters

ProjectShowInPlanTaskPermissionModel
NameDescriptionTypeAdditional information
Id

string

None.

ProjectId

string

None.

ProjectName

string

None.

IsAllowAdmin

boolean

None.

IsAllowPMOfProject

boolean

None.

IsAllowPMLeadPM

boolean

None.

IsAllowUserLeadUser

boolean

None.

IsAllowAll

boolean

None.

DepartmentId

string

None.

HRGroupId

string

None.

JobTitleId

string

None.

StaffId

string

None.

StaffEmails

Collection of ProjectShowInPlanTaskPermissionStaffEmailModel

None.

UserLeadUserScreenCode

string

None.

Note

string

None.

IsDisable

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "ProjectId": "sample string 2",
  "ProjectName": "sample string 3",
  "IsAllowAdmin": true,
  "IsAllowPMOfProject": true,
  "IsAllowPMLeadPM": true,
  "IsAllowUserLeadUser": true,
  "IsAllowAll": true,
  "DepartmentId": "sample string 9",
  "HRGroupId": "sample string 10",
  "JobTitleId": "sample string 11",
  "StaffId": "sample string 12",
  "StaffEmails": [
    {
      "Email": "sample string 1",
      "StaffName": "sample string 2"
    },
    {
      "Email": "sample string 1",
      "StaffName": "sample string 2"
    }
  ],
  "UserLeadUserScreenCode": "sample string 13",
  "Note": "sample string 14",
  "IsDisable": true
}

application/xml, text/xml

Sample:
<ProjectShowInPlanTaskPermissionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
  <DepartmentId>sample string 9</DepartmentId>
  <HRGroupId>sample string 10</HRGroupId>
  <Id>sample string 1</Id>
  <IsAllowAdmin>true</IsAllowAdmin>
  <IsAllowAll>true</IsAllowAll>
  <IsAllowPMLeadPM>true</IsAllowPMLeadPM>
  <IsAllowPMOfProject>true</IsAllowPMOfProject>
  <IsAllowUserLeadUser>true</IsAllowUserLeadUser>
  <IsDisable>true</IsDisable>
  <JobTitleId>sample string 11</JobTitleId>
  <Note>sample string 14</Note>
  <ProjectId>sample string 2</ProjectId>
  <ProjectName>sample string 3</ProjectName>
  <StaffEmails>
    <ProjectShowInPlanTaskPermissionStaffEmailModel>
      <Email>sample string 1</Email>
      <StaffName>sample string 2</StaffName>
    </ProjectShowInPlanTaskPermissionStaffEmailModel>
    <ProjectShowInPlanTaskPermissionStaffEmailModel>
      <Email>sample string 1</Email>
      <StaffName>sample string 2</StaffName>
    </ProjectShowInPlanTaskPermissionStaffEmailModel>
  </StaffEmails>
  <StaffId>sample string 12</StaffId>
  <UserLeadUserScreenCode>sample string 13</UserLeadUserScreenCode>
</ProjectShowInPlanTaskPermissionModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProjectShowInPlanTaskPermissionModel'.

Response Information

Resource Description

EzyResultObjectOfProjectShowInPlanTaskPermissionModel
NameDescriptionTypeAdditional information
Data

ProjectShowInPlanTaskPermissionModel

None.

ExtraData

Dictionary of string [key] and Object [value]

None.

StartTime

decimal number

None.

EndTime

decimal number

None.

TotalMili

decimal number

None.

StatusCode

integer

None.

Msg

string

None.

MsgShowInUI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": "sample string 1",
    "ProjectId": "sample string 2",
    "ProjectName": "sample string 3",
    "IsAllowAdmin": true,
    "IsAllowPMOfProject": true,
    "IsAllowPMLeadPM": true,
    "IsAllowUserLeadUser": true,
    "IsAllowAll": true,
    "DepartmentId": "sample string 9",
    "HRGroupId": "sample string 10",
    "JobTitleId": "sample string 11",
    "StaffId": "sample string 12",
    "StaffEmails": [
      {
        "Email": "sample string 1",
        "StaffName": "sample string 2"
      },
      {
        "Email": "sample string 1",
        "StaffName": "sample string 2"
      }
    ],
    "UserLeadUserScreenCode": "sample string 13",
    "Note": "sample string 14",
    "IsDisable": true
  },
  "ExtraData": null,
  "StartTime": 1.1,
  "EndTime": 2.1,
  "TotalMili": 3.1,
  "StatusCode": 4,
  "Msg": "sample string 5",
  "MsgShowInUI": "sample string 6"
}

application/xml, text/xml

Sample:
<EzyResultObjectOfProjectShowInPlanTaskPermissionModel3BwjWE5f xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.Library.Message">
  <Msg>sample string 5</Msg>
  <MsgShowInUI>sample string 6</MsgShowInUI>
  <StatusCode>4</StatusCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
    <d2p1:DepartmentId>sample string 9</d2p1:DepartmentId>
    <d2p1:HRGroupId>sample string 10</d2p1:HRGroupId>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:IsAllowAdmin>true</d2p1:IsAllowAdmin>
    <d2p1:IsAllowAll>true</d2p1:IsAllowAll>
    <d2p1:IsAllowPMLeadPM>true</d2p1:IsAllowPMLeadPM>
    <d2p1:IsAllowPMOfProject>true</d2p1:IsAllowPMOfProject>
    <d2p1:IsAllowUserLeadUser>true</d2p1:IsAllowUserLeadUser>
    <d2p1:IsDisable>true</d2p1:IsDisable>
    <d2p1:JobTitleId>sample string 11</d2p1:JobTitleId>
    <d2p1:Note>sample string 14</d2p1:Note>
    <d2p1:ProjectId>sample string 2</d2p1:ProjectId>
    <d2p1:ProjectName>sample string 3</d2p1:ProjectName>
    <d2p1:StaffEmails>
      <d2p1:ProjectShowInPlanTaskPermissionStaffEmailModel>
        <d2p1:Email>sample string 1</d2p1:Email>
        <d2p1:StaffName>sample string 2</d2p1:StaffName>
      </d2p1:ProjectShowInPlanTaskPermissionStaffEmailModel>
      <d2p1:ProjectShowInPlanTaskPermissionStaffEmailModel>
        <d2p1:Email>sample string 1</d2p1:Email>
        <d2p1:StaffName>sample string 2</d2p1:StaffName>
      </d2p1:ProjectShowInPlanTaskPermissionStaffEmailModel>
    </d2p1:StaffEmails>
    <d2p1:StaffId>sample string 12</d2p1:StaffId>
    <d2p1:UserLeadUserScreenCode>sample string 13</d2p1:UserLeadUserScreenCode>
  </Data>
  <EndTime>2.1</EndTime>
  <ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <StartTime>1.1</StartTime>
  <TotalMili>3.1</TotalMili>
</EzyResultObjectOfProjectShowInPlanTaskPermissionModel3BwjWE5f>