POST Api/Task/CompleteAdHocTask

Request Information

URI Parameters

None.

Body Parameters

AdHocTaskRequestModal
NameDescriptionTypeAdditional information
ProjectTaskId

integer

None.

TaskTitle

string

None.

TaskDescription

string

None.

ProjectId

integer

None.

Comments

string

None.

ProjectUrl

string

None.

ProjectName

string

None.

ProjectDetail

ProjectFieldDetail

None.

Source

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectTaskId": 1,
  "TaskTitle": "sample string 2",
  "TaskDescription": "sample string 3",
  "ProjectId": 4,
  "Comments": "sample string 5",
  "ProjectUrl": "sample string 6",
  "ProjectName": "sample string 7",
  "ProjectDetail": {
    "UserOptions": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "EMail": "sample string 3",
        "QbUserId": 4,
        "CustomerId": 5,
        "ProjectName": "sample string 6",
        "IsPrimary": true,
        "QCHUserId": "sample string 8",
        "Roles": [
          "sample string 1",
          "sample string 2"
        ],
        "QCHUserGroups": "sample string 9",
        "BusinessUnit": "sample string 10",
        "ProxyUsers": "sample string 11"
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "EMail": "sample string 3",
        "QbUserId": 4,
        "CustomerId": 5,
        "ProjectName": "sample string 6",
        "IsPrimary": true,
        "QCHUserId": "sample string 8",
        "Roles": [
          "sample string 1",
          "sample string 2"
        ],
        "QCHUserGroups": "sample string 9",
        "BusinessUnit": "sample string 10",
        "ProxyUsers": "sample string 11"
      }
    ],
    "ProjectField": [
      {
        "CustomerId": 1,
        "ProjectId": 2,
        "FieldInternalName": "sample string 3",
        "FieldName": "sample string 4",
        "Position": 5,
        "FieldOptions": [
          {
            "Id": 1,
            "Name": "sample string 2"
          },
          {
            "Id": 1,
            "Name": "sample string 2"
          }
        ],
        "FieldType": 0,
        "TextValue": "sample string 6",
        "NumberValue": {},
        "DecimalValue": 1.0,
        "BoolValue": true,
        "DateTimeValue": "2025-01-08T18:37:47.6780864+00:00",
        "UserQCHIdValue": "sample string 9",
        "UserId": 10,
        "UserQCHIdValues": [
          "sample string 1",
          "sample string 2"
        ],
        "ChoiceValue": "sample string 11",
        "MultiChoiceValues": [
          "sample string 1",
          "sample string 2"
        ],
        "MultiChoiceIdValues": [
          1,
          2
        ],
        "NoteValue": "sample string 12",
        "LookupValue": "sample string 13",
        "LookupMultiValue": [
          "sample string 1",
          "sample string 2"
        ],
        "LookupListName": "sample string 14",
        "MaxLength": 15,
        "NumberOfLines": 16,
        "MaximumValue": 17.1,
        "MinimumValue": 18.1,
        "ViewOrder": 19,
        "DisplayFormat": "sample string 20",
        "UserName": "sample string 21",
        "MultiUserValues": [
          "sample string 1",
          "sample string 2"
        ],
        "MultiUserIdValues": [
          1,
          2
        ],
        "IsChoiceField": true,
        "ChoiceFieldName": "sample string 23",
        "IsUserField": true,
        "IsMultiUser": true,
        "IsActive": true,
        "IgnoreAuditReport": true,
        "IsLookUpField": true,
        "RowVersion": "QEA="
      },
      {
        "CustomerId": 1,
        "ProjectId": 2,
        "FieldInternalName": "sample string 3",
        "FieldName": "sample string 4",
        "Position": 5,
        "FieldOptions": [
          {
            "Id": 1,
            "Name": "sample string 2"
          },
          {
            "Id": 1,
            "Name": "sample string 2"
          }
        ],
        "FieldType": 0,
        "TextValue": "sample string 6",
        "NumberValue": {},
        "DecimalValue": 1.0,
        "BoolValue": true,
        "DateTimeValue": "2025-01-08T18:37:47.6780864+00:00",
        "UserQCHIdValue": "sample string 9",
        "UserId": 10,
        "UserQCHIdValues": [
          "sample string 1",
          "sample string 2"
        ],
        "ChoiceValue": "sample string 11",
        "MultiChoiceValues": [
          "sample string 1",
          "sample string 2"
        ],
        "MultiChoiceIdValues": [
          1,
          2
        ],
        "NoteValue": "sample string 12",
        "LookupValue": "sample string 13",
        "LookupMultiValue": [
          "sample string 1",
          "sample string 2"
        ],
        "LookupListName": "sample string 14",
        "MaxLength": 15,
        "NumberOfLines": 16,
        "MaximumValue": 17.1,
        "MinimumValue": 18.1,
        "ViewOrder": 19,
        "DisplayFormat": "sample string 20",
        "UserName": "sample string 21",
        "MultiUserValues": [
          "sample string 1",
          "sample string 2"
        ],
        "MultiUserIdValues": [
          1,
          2
        ],
        "IsChoiceField": true,
        "ChoiceFieldName": "sample string 23",
        "IsUserField": true,
        "IsMultiUser": true,
        "IsActive": true,
        "IgnoreAuditReport": true,
        "IsLookUpField": true,
        "RowVersion": "QEA="
      }
    ],
    "ErrorId": 1
  },
  "Source": "sample string 8"
}

application/xml, text/xml

Sample:
<AdHocTaskRequestModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels">
  <Comments>sample string 5</Comments>
  <ProjectDetail>
    <ErrorId>1</ErrorId>
    <ProjectField>
      <ProjectField>
        <BoolValue>true</BoolValue>
        <ChoiceFieldName>sample string 23</ChoiceFieldName>
        <ChoiceValue>sample string 11</ChoiceValue>
        <CustomerId>1</CustomerId>
        <DateTimeValue>2025-01-08T18:37:47.6780864+00:00</DateTimeValue>
        <DecimalValue>1</DecimalValue>
        <DisplayFormat>sample string 20</DisplayFormat>
        <FieldInternalName>sample string 3</FieldInternalName>
        <FieldName>sample string 4</FieldName>
        <FieldOptions xmlns:d5p1="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels.CommonModels.Response">
          <d5p1:BaseDropdownResponse>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:BaseDropdownResponse>
          <d5p1:BaseDropdownResponse>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:BaseDropdownResponse>
        </FieldOptions>
        <FieldType>Integer</FieldType>
        <IgnoreAuditReport>true</IgnoreAuditReport>
        <IsActive>true</IsActive>
        <IsChoiceField>true</IsChoiceField>
        <IsLookUpField>true</IsLookUpField>
        <IsMultiUser>true</IsMultiUser>
        <IsUserField>true</IsUserField>
        <LookupListName>sample string 14</LookupListName>
        <LookupMultiValue xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </LookupMultiValue>
        <LookupValue>sample string 13</LookupValue>
        <MaxLength>15</MaxLength>
        <MaximumValue>17.1</MaximumValue>
        <MinimumValue>18.1</MinimumValue>
        <MultiChoiceIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </MultiChoiceIdValues>
        <MultiChoiceValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </MultiChoiceValues>
        <MultiUserIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </MultiUserIdValues>
        <MultiUserValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </MultiUserValues>
        <NoteValue>sample string 12</NoteValue>
        <NumberOfLines>16</NumberOfLines>
        <NumberValue />
        <Position>5</Position>
        <ProjectId>2</ProjectId>
        <RowVersion>QEA=</RowVersion>
        <TextValue>sample string 6</TextValue>
        <UserId>10</UserId>
        <UserName>sample string 21</UserName>
        <UserQCHIdValue>sample string 9</UserQCHIdValue>
        <UserQCHIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </UserQCHIdValues>
        <ViewOrder>19</ViewOrder>
      </ProjectField>
      <ProjectField>
        <BoolValue>true</BoolValue>
        <ChoiceFieldName>sample string 23</ChoiceFieldName>
        <ChoiceValue>sample string 11</ChoiceValue>
        <CustomerId>1</CustomerId>
        <DateTimeValue>2025-01-08T18:37:47.6780864+00:00</DateTimeValue>
        <DecimalValue>1</DecimalValue>
        <DisplayFormat>sample string 20</DisplayFormat>
        <FieldInternalName>sample string 3</FieldInternalName>
        <FieldName>sample string 4</FieldName>
        <FieldOptions xmlns:d5p1="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels.CommonModels.Response">
          <d5p1:BaseDropdownResponse>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:BaseDropdownResponse>
          <d5p1:BaseDropdownResponse>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:BaseDropdownResponse>
        </FieldOptions>
        <FieldType>Integer</FieldType>
        <IgnoreAuditReport>true</IgnoreAuditReport>
        <IsActive>true</IsActive>
        <IsChoiceField>true</IsChoiceField>
        <IsLookUpField>true</IsLookUpField>
        <IsMultiUser>true</IsMultiUser>
        <IsUserField>true</IsUserField>
        <LookupListName>sample string 14</LookupListName>
        <LookupMultiValue xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </LookupMultiValue>
        <LookupValue>sample string 13</LookupValue>
        <MaxLength>15</MaxLength>
        <MaximumValue>17.1</MaximumValue>
        <MinimumValue>18.1</MinimumValue>
        <MultiChoiceIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </MultiChoiceIdValues>
        <MultiChoiceValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </MultiChoiceValues>
        <MultiUserIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </MultiUserIdValues>
        <MultiUserValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </MultiUserValues>
        <NoteValue>sample string 12</NoteValue>
        <NumberOfLines>16</NumberOfLines>
        <NumberValue />
        <Position>5</Position>
        <ProjectId>2</ProjectId>
        <RowVersion>QEA=</RowVersion>
        <TextValue>sample string 6</TextValue>
        <UserId>10</UserId>
        <UserName>sample string 21</UserName>
        <UserQCHIdValue>sample string 9</UserQCHIdValue>
        <UserQCHIdValues xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </UserQCHIdValues>
        <ViewOrder>19</ViewOrder>
      </ProjectField>
    </ProjectField>
    <UserOptions>
      <UserDetails>
        <BusinessUnit>sample string 10</BusinessUnit>
        <CustomerId>5</CustomerId>
        <EMail>sample string 3</EMail>
        <Id>1</Id>
        <IsPrimary>true</IsPrimary>
        <Name>sample string 2</Name>
        <ProjectName>sample string 6</ProjectName>
        <ProxyUsers>sample string 11</ProxyUsers>
        <QCHUserGroups>sample string 9</QCHUserGroups>
        <QCHUserId>sample string 8</QCHUserId>
        <QbUserId>4</QbUserId>
        <Roles xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Roles>
      </UserDetails>
      <UserDetails>
        <BusinessUnit>sample string 10</BusinessUnit>
        <CustomerId>5</CustomerId>
        <EMail>sample string 3</EMail>
        <Id>1</Id>
        <IsPrimary>true</IsPrimary>
        <Name>sample string 2</Name>
        <ProjectName>sample string 6</ProjectName>
        <ProxyUsers>sample string 11</ProxyUsers>
        <QCHUserGroups>sample string 9</QCHUserGroups>
        <QCHUserId>sample string 8</QCHUserId>
        <QbUserId>4</QbUserId>
        <Roles xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Roles>
      </UserDetails>
    </UserOptions>
  </ProjectDetail>
  <ProjectId>4</ProjectId>
  <ProjectName>sample string 7</ProjectName>
  <ProjectTaskId>1</ProjectTaskId>
  <ProjectUrl>sample string 6</ProjectUrl>
  <Source>sample string 8</Source>
  <TaskDescription>sample string 3</TaskDescription>
  <TaskTitle>sample string 2</TaskTitle>
</AdHocTaskRequestModal>

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.