POST api/TaskTemplate

Request Information

URI Parameters

None.

Body Parameters

TaskTemplateModel
NameDescriptionTypeAdditional information
TaskTemplateId

integer

None.

CompanyAccountId

integer

None.

TaskTemplateName

string

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

CreatedAt

date

None.

ModifiedAt

date

None.

ActiveStatus

boolean

None.

TaskTemplateUserRoleList

Collection of TaskTemplateUserRoleModel

None.

Request Formats

application/json, text/json

Sample:
{
  "TaskTemplateId": 1,
  "CompanyAccountId": 2,
  "TaskTemplateName": "sample string 3",
  "CreatedBy": 4,
  "ModifiedBy": 5,
  "CreatedAt": "2020-11-28T15:56:30.5199664+00:00",
  "ModifiedAt": "2020-11-28T15:56:30.5199664+00:00",
  "ActiveStatus": true,
  "TaskTemplateUserRoleList": [
    {
      "TaskTemplateUserRoleId": 1,
      "TaskTemplateId": 2,
      "UserRoleId": 3
    },
    {
      "TaskTemplateUserRoleId": 1,
      "TaskTemplateId": 2,
      "UserRoleId": 3
    }
  ]
}

application/xml, text/xml

Sample:
<TaskTemplateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cuewel.Business.Model">
  <ActiveStatus>true</ActiveStatus>
  <CompanyAccountId>2</CompanyAccountId>
  <CreatedAt>2020-11-28T15:56:30.5199664+00:00</CreatedAt>
  <CreatedBy>4</CreatedBy>
  <ModifiedAt>2020-11-28T15:56:30.5199664+00:00</ModifiedAt>
  <ModifiedBy>5</ModifiedBy>
  <TaskTemplateId>1</TaskTemplateId>
  <TaskTemplateName>sample string 3</TaskTemplateName>
  <TaskTemplateUserRoleList>
    <TaskTemplateUserRoleModel>
      <TaskTemplateId>2</TaskTemplateId>
      <TaskTemplateUserRoleId>1</TaskTemplateUserRoleId>
      <UserRoleId>3</UserRoleId>
    </TaskTemplateUserRoleModel>
    <TaskTemplateUserRoleModel>
      <TaskTemplateId>2</TaskTemplateId>
      <TaskTemplateUserRoleId>1</TaskTemplateUserRoleId>
      <UserRoleId>3</UserRoleId>
    </TaskTemplateUserRoleModel>
  </TaskTemplateUserRoleList>
</TaskTemplateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.