POST api/MedicalCenter/MessageGategory/Add

Request Information

URI Parameters

None.

Requires Authorization!

Body Parameters

MessageCategoryViewModel
NameDescriptionTypeAdditional information
MessageCategoryID

integer

None.

MessageCategoryEnglishName

string

Required

Matching regular expression pattern: [a-zA-Z\s]{3,}

String length: inclusive between 3 and 30

MessageCategoryArbicName

string

Required

Matching regular expression pattern: [\u0621-\u064A\u0660-\u0669 ]+$

String length: inclusive between 3 and 30

MedicalCenterID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageCategoryID": 1,
  "MessageCategoryEnglishName": "sample string 2",
  "MessageCategoryArbicName": "sample string 3",
  "MedicalCenterID": 4
}

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Status

integer

None.

Response

Object

None.

Errors

Object

None.

Authorized

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Response": {},
  "Errors": {},
  "Authorized": true
}