POST /api/Patient/CreatePatient

POST /api/Patient/CreatePatient

Body

  • name string Required

    Minimum length is 2, maximum length is 20.

  • address string Required

    Minimum length is 2, maximum length is 100.

  • dateOfBirth string(date) Required
  • adminId string Required

    Minimum length is 1.

  • Additional properties are NOT allowed

Body

  • name string Required

    Minimum length is 2, maximum length is 20.

  • address string Required

    Minimum length is 2, maximum length is 100.

  • dateOfBirth string(date) Required
  • adminId string Required

    Minimum length is 1.

  • Additional properties are NOT allowed

Body

  • name string Required

    Minimum length is 2, maximum length is 20.

  • address string Required

    Minimum length is 2, maximum length is 100.

  • dateOfBirth string(date) Required
  • adminId string Required

    Minimum length is 1.

  • Additional properties are NOT allowed

Body

  • name string Required

    Minimum length is 2, maximum length is 20.

  • address string Required

    Minimum length is 2, maximum length is 100.

  • dateOfBirth string(date) Required
  • adminId string Required

    Minimum length is 1.

  • Additional properties are NOT allowed

Responses

  • Success

    Hide response attributes Show response attributes object
    • name string Required

      Minimum length is 2, maximum length is 20.

    • address string Required

      Minimum length is 2, maximum length is 100.

    • dateOfBirth string(date) Required
    • adminId string Required

      Minimum length is 1.

    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • name string Required

      Minimum length is 2, maximum length is 20.

    • address string Required

      Minimum length is 2, maximum length is 100.

    • dateOfBirth string(date) Required
    • adminId string Required

      Minimum length is 1.

    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • name string Required

      Minimum length is 2, maximum length is 20.

    • address string Required

      Minimum length is 2, maximum length is 100.

    • dateOfBirth string(date) Required
    • adminId string Required

      Minimum length is 1.

    • Additional properties are NOT allowed
  • Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
  • 500

    Server Error

curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json-patch+json"
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","address":"string","dateOfBirth":"2024-05-04","adminId":"string"}'
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: text/json"
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}
Request example
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2024-05-04",
  "adminId": "string"
}
Request examples
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}
Request examples
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}
Response examples (200)
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2024-05-04",
  "adminId": "string"
}
Response examples (200)
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}