POST api/OfficeBearerCategories

Request Information

URI Parameters

None.

Body Parameters

OfficeBearerCategory
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

OfficeBearers

Collection of OfficeBearer

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "OfficeBearers": [
    {
      "Name": "sample string 1",
      "Url": "sample string 2",
      "Post": "sample string 3",
      "MobileNo": "sample string 4",
      "Email": "sample string 5",
      "FileUrl": "sample string 6",
      "Title": "sample string 7",
      "MetaDescription": "sample string 8",
      "Description": "sample string 9",
      "CircleId": 1,
      "Circle": {
        "Title": "sample string 1",
        "Email": "sample string 2",
        "Description": "sample string 3",
        "IsHeadOffice": true,
        "Users": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          }
        ],
        "Id": 5,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 7",
        "ModifiedById": "sample string 8"
      },
      "OfficeBearerPostId": 1,
      "OfficeBearerPost": {
        "Name": "sample string 1",
        "IndexNo": 2,
        "Id": 3,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 5",
        "ModifiedById": "sample string 6"
      },
      "OfficeBearerCategoryId": 10,
      "Id": 11,
      "IsActive": true,
      "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
      "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
      "CreatedById": "sample string 13",
      "ModifiedById": "sample string 14"
    },
    {
      "Name": "sample string 1",
      "Url": "sample string 2",
      "Post": "sample string 3",
      "MobileNo": "sample string 4",
      "Email": "sample string 5",
      "FileUrl": "sample string 6",
      "Title": "sample string 7",
      "MetaDescription": "sample string 8",
      "Description": "sample string 9",
      "CircleId": 1,
      "Circle": {
        "Title": "sample string 1",
        "Email": "sample string 2",
        "Description": "sample string 3",
        "IsHeadOffice": true,
        "Users": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          }
        ],
        "Id": 5,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 7",
        "ModifiedById": "sample string 8"
      },
      "OfficeBearerPostId": 1,
      "OfficeBearerPost": {
        "Name": "sample string 1",
        "IndexNo": 2,
        "Id": 3,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 5",
        "ModifiedById": "sample string 6"
      },
      "OfficeBearerCategoryId": 10,
      "Id": 11,
      "IsActive": true,
      "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
      "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
      "CreatedById": "sample string 13",
      "ModifiedById": "sample string 14"
    }
  ],
  "Id": 3,
  "IsActive": true,
  "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
  "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
  "CreatedById": "sample string 5",
  "ModifiedById": "sample string 6"
}

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

Response Information

Resource Description

OfficeBearerCategory
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

OfficeBearers

Collection of OfficeBearer

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "OfficeBearers": [
    {
      "Name": "sample string 1",
      "Url": "sample string 2",
      "Post": "sample string 3",
      "MobileNo": "sample string 4",
      "Email": "sample string 5",
      "FileUrl": "sample string 6",
      "Title": "sample string 7",
      "MetaDescription": "sample string 8",
      "Description": "sample string 9",
      "CircleId": 1,
      "Circle": {
        "Title": "sample string 1",
        "Email": "sample string 2",
        "Description": "sample string 3",
        "IsHeadOffice": true,
        "Users": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          }
        ],
        "Id": 5,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 7",
        "ModifiedById": "sample string 8"
      },
      "OfficeBearerPostId": 1,
      "OfficeBearerPost": {
        "Name": "sample string 1",
        "IndexNo": 2,
        "Id": 3,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 5",
        "ModifiedById": "sample string 6"
      },
      "OfficeBearerCategoryId": 10,
      "Id": 11,
      "IsActive": true,
      "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
      "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
      "CreatedById": "sample string 13",
      "ModifiedById": "sample string 14"
    },
    {
      "Name": "sample string 1",
      "Url": "sample string 2",
      "Post": "sample string 3",
      "MobileNo": "sample string 4",
      "Email": "sample string 5",
      "FileUrl": "sample string 6",
      "Title": "sample string 7",
      "MetaDescription": "sample string 8",
      "Description": "sample string 9",
      "CircleId": 1,
      "Circle": {
        "Title": "sample string 1",
        "Email": "sample string 2",
        "Description": "sample string 3",
        "IsHeadOffice": true,
        "Users": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "PhoneNo": "sample string 3",
            "MobileNo": "sample string 4",
            "State": "sample string 5",
            "PFNo": "sample string 6",
            "Address": "sample string 7",
            "ProfileImage": "sample string 8",
            "BirthDate": "2024-10-07T07:06:39.0408719+05:30",
            "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
            "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
            "IsDeleted": true,
            "IsActive": true,
            "IsApproved": true,
            "IsAdmin": true,
            "CircleId": 1,
            "Email": "sample string 15",
            "EmailConfirmed": true,
            "PasswordHash": "sample string 17",
            "SecurityStamp": "sample string 18",
            "PhoneNumber": "sample string 19",
            "PhoneNumberConfirmed": true,
            "TwoFactorEnabled": true,
            "LockoutEndDateUtc": "2024-10-07T07:06:39.0408719+05:30",
            "LockoutEnabled": true,
            "AccessFailedCount": 23,
            "Roles": [],
            "Claims": [],
            "Logins": [],
            "Id": "sample string 24",
            "UserName": "sample string 25"
          }
        ],
        "Id": 5,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 7",
        "ModifiedById": "sample string 8"
      },
      "OfficeBearerPostId": 1,
      "OfficeBearerPost": {
        "Name": "sample string 1",
        "IndexNo": 2,
        "Id": 3,
        "IsActive": true,
        "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
        "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
        "CreatedById": "sample string 5",
        "ModifiedById": "sample string 6"
      },
      "OfficeBearerCategoryId": 10,
      "Id": 11,
      "IsActive": true,
      "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
      "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
      "CreatedById": "sample string 13",
      "ModifiedById": "sample string 14"
    }
  ],
  "Id": 3,
  "IsActive": true,
  "CreatedDate": "2024-10-07T07:06:39.0408719+05:30",
  "ModifiedDate": "2024-10-07T07:06:39.0408719+05:30",
  "CreatedById": "sample string 5",
  "ModifiedById": "sample string 6"
}