POST api/Admin/SaveOrganization

Request Information

URI Parameters

None.

Body Parameters

OrganizationDto
NameDescriptionTypeAdditional information
Name

string

None.

ShortName

string

None.

Category

string

None.

LogoImage

string

None.

BackgroundImage

string

None.

WebsiteUrl

string

None.

FacebookPageUrl

string

None.

TwitterPageUrl

string

None.

Addresses

Collection of AddressDto

None.

Contacts

Collection of ContactDto

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:
{
  "Name": "sample string 1",
  "ShortName": "sample string 2",
  "Category": "sample string 3",
  "LogoImage": "sample string 4",
  "BackgroundImage": "sample string 5",
  "WebsiteUrl": "sample string 6",
  "FacebookPageUrl": "sample string 7",
  "TwitterPageUrl": "sample string 8",
  "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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:40:16.6135151+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:40:16.6135151+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:40:16.6135151+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:40:16.6135151+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:40:16.6135151+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:40:16.6135151+00:00"
    }
  ],
  "Id": 9,
  "IsDeleted": true,
  "IsActive": true,
  "CreatedBy": 12,
  "CreatedOn": "2025-12-08T15:40:16.6135151+00:00",
  "ModifiedBy": 1,
  "ModifiedOn": "2025-12-08T15:40:16.6135151+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 'OrganizationDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.