POST api/Users/Save

Request Information

URI Parameters

None.

Body Parameters

UserDto
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

MiddleName

string

None.

BirthDate

date

None.

GenderId

integer

None.

SalutationId

integer

None.

Salutation

SalutationDto

None.

Gender

GenderDto

None.

OrganizationUserTypeId

integer

None.

ProfileImageName

string

None.

ProfileImageUrl

string

None.

Email

string

None.

OrganizationUserType

OrganizationUserTypeDto

None.

Addresses

Collection of AddressDto

None.

Contacts

Collection of ContactDto

None.

CompanyId

integer

None.

CompanyName

string

None.

SubCompanyRolesId

integer

None.

permissions

PermissionTicketCustomerDto

None.

Id

integer

None.

IsDeleted

boolean

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

ModifiedBy

integer

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "MiddleName": "sample string 3",
  "BirthDate": "2025-12-08T15:34:36.1312947+00:00",
  "GenderId": 4,
  "SalutationId": 5,
  "Salutation": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Description": "sample string 3",
    "Order": 4,
    "Id": 5,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 8,
    "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
  },
  "Gender": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Description": "sample string 3",
    "Id": 4,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 7,
    "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
  },
  "OrganizationUserTypeId": 6,
  "ProfileImageName": "sample string 7",
  "ProfileImageUrl": "sample string 8",
  "Email": "sample string 9",
  "OrganizationUserType": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Desciption": "sample string 3",
    "Level": 4,
    "Id": 5,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 8,
    "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
  },
  "Addresses": [
    {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "AddressLine3": "sample string 3",
      "Zip": "sample string 4",
      "Lat": "sample string 5",
      "Lng": "sample string 6",
      "Landmark": "sample string 7",
      "IsPrimery": true,
      "Country": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "Id": 3,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 6,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "State": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "StateId": 3,
        "CountryId": 4,
        "Id": 5,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 8,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "City": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "CustomCity": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
    },
    {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "AddressLine3": "sample string 3",
      "Zip": "sample string 4",
      "Lat": "sample string 5",
      "Lng": "sample string 6",
      "Landmark": "sample string 7",
      "IsPrimery": true,
      "Country": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "Id": 3,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 6,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "State": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "StateId": 3,
        "CountryId": 4,
        "Id": 5,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 8,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "City": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "CustomCity": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
    }
  ],
  "Contacts": [
    {
      "EmailId": "sample string 1",
      "AltEmailId": "sample string 2",
      "MobileNumber": "sample string 3",
      "AltMobileNumber": "sample string 4",
      "PhoneNumber": "sample string 5",
      "AltPhoneNumber": "sample string 6",
      "Fax": "sample string 7",
      "ContactPerson": "sample string 8",
      "PrefContactMediumId": 9,
      "IsPrimery": true,
      "CompanyId": 11,
      "Id": 12,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 15,
      "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
    },
    {
      "EmailId": "sample string 1",
      "AltEmailId": "sample string 2",
      "MobileNumber": "sample string 3",
      "AltMobileNumber": "sample string 4",
      "PhoneNumber": "sample string 5",
      "AltPhoneNumber": "sample string 6",
      "Fax": "sample string 7",
      "ContactPerson": "sample string 8",
      "PrefContactMediumId": 9,
      "IsPrimery": true,
      "CompanyId": 11,
      "Id": 12,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 15,
      "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
    }
  ],
  "CompanyId": 10,
  "CompanyName": "sample string 11",
  "SubCompanyRolesId": 12,
  "permissions": {
    "userId": 1,
    "ticketview": true,
    "ticketadd": true,
    "ticketedit": true,
    "ticketdelete": true,
    "customerview": true,
    "customeradd": true,
    "customeredit": true,
    "customerdelete": true,
    "assignticket": true,
    "changeticketstatus": true,
    "technicianview": true,
    "technicianadd": true,
    "technicianedit": true,
    "techniciandelete": true,
    "companyview": true,
    "companyadd": true,
    "companyedit": true,
    "companydelete": true,
    "subagentview": true,
    "subagentadd": true,
    "subagentedit": true,
    "subagentdelete": true,
    "groupview": true,
    "groupadd": true,
    "groupedit": true,
    "groupdelete": true,
    "serverview": true,
    "serveradd": true,
    "serveredit": true,
    "serverdelete": true,
    "technicianworkonserver": true,
    "Name": "sample string 33",
    "Id": 34,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 37,
    "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
  },
  "Id": 13,
  "IsDeleted": true,
  "IsActive": true,
  "CreatedBy": 16,
  "CreatedOn": "2025-12-08T15:34:36.1312947+00:00",
  "ModifiedBy": 1,
  "ModifiedOn": "2025-12-08T15:34:36.1312947+00:00"
}

application/xml, text/xml

Sample:
check

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 'UserDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.