POST api/admintasks/managetask?UserId={UserId}&UserRole={UserRole}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserId

integer

Required

UserRole

integer

Required

Body Parameters

TaskViewModel
NameDescriptionTypeAdditional information
ActivityId

integer

None.

ActivityName

string

None.

ActivityDate

date

None.

CreatedBy

integer

None.

SubscriberId

integer

None.

SubscriberName

string

None.

SubscriberHouseWithStreet

string

None.

CreatedOn

date

None.

ScheduleDate

date

None.

IsCompleted

boolean

None.

CompletedOn

date

None.

Note

string

None.

IsCancelled

boolean

None.

CancellationDate

date

None.

IsDeleted

boolean

None.

Priority

integer

None.

Status

integer

None.

IsRepeated

boolean

None.

IsEmailNotification

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ActivityId": 1,
  "ActivityName": "sample string 2",
  "ActivityDate": "2026-04-15T18:48:58.1418417+00:00",
  "CreatedBy": 1,
  "SubscriberId": 1,
  "SubscriberName": "sample string 3",
  "SubscriberHouseWithStreet": "sample string 4",
  "CreatedOn": "2026-04-15T18:48:58.1418417+00:00",
  "ScheduleDate": "2026-04-15T18:48:58.1418417+00:00",
  "IsCompleted": true,
  "CompletedOn": "2026-04-15T18:48:58.1418417+00:00",
  "Note": "sample string 5",
  "IsCancelled": true,
  "CancellationDate": "2026-04-15T18:48:58.1418417+00:00",
  "IsDeleted": true,
  "Priority": 1,
  "Status": 1,
  "IsRepeated": true,
  "IsEmailNotification": true
}

application/xml, text/xml

Sample:
<TaskViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Flag360.ViewModels.Admin">
  <ActivityDate>2026-04-15T18:48:58.1418417+00:00</ActivityDate>
  <ActivityId>1</ActivityId>
  <ActivityName>sample string 2</ActivityName>
  <CancellationDate>2026-04-15T18:48:58.1418417+00:00</CancellationDate>
  <CompletedOn>2026-04-15T18:48:58.1418417+00:00</CompletedOn>
  <CreatedBy>1</CreatedBy>
  <CreatedOn>2026-04-15T18:48:58.1418417+00:00</CreatedOn>
  <IsCancelled>true</IsCancelled>
  <IsCompleted>true</IsCompleted>
  <IsDeleted>true</IsDeleted>
  <IsEmailNotification>true</IsEmailNotification>
  <IsRepeated>true</IsRepeated>
  <Note>sample string 5</Note>
  <Priority>1</Priority>
  <ScheduleDate>2026-04-15T18:48:58.1418417+00:00</ScheduleDate>
  <Status>1</Status>
  <SubscriberHouseWithStreet>sample string 4</SubscriberHouseWithStreet>
  <SubscriberId>1</SubscriberId>
  <SubscriberName>sample string 3</SubscriberName>
</TaskViewModel>

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.