POST api/Security/OperatorAdd

Request Information

URI Parameters

None.

Body Parameters

OperatorAddRequest
NameDescriptionTypeAdditional information
OperatorAdd

OperatorAdd

None.

PatientID

globally unique identifier

None.

WebApiVersion

integer

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OperatorAdd": {
    "OperatorTypeID": "987baba8-37fd-42a4-acb5-4a6d7535652d",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Email": "sample string 4",
    "Password": "sample string 5",
    "IsAdmin": true
  },
  "PatientID": "f09f1d5b-0e31-4b9f-8574-8d236cf7c6ce",
  "WebApiVersion": 2,
  "Language": "sample string 3"
}

application/xml, text/xml

Sample:
<OperatorAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <Language>sample string 3</Language>
  <PatientID>f09f1d5b-0e31-4b9f-8574-8d236cf7c6ce</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <OperatorAdd>
    <Email>sample string 4</Email>
    <FirstName>sample string 2</FirstName>
    <IsAdmin>true</IsAdmin>
    <LastName>sample string 3</LastName>
    <OperatorTypeID>987baba8-37fd-42a4-acb5-4a6d7535652d</OperatorTypeID>
    <Password>sample string 5</Password>
  </OperatorAdd>
</OperatorAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperatorResponse
NameDescriptionTypeAdditional information
Operator

Operator

None.

Token

TupleOfStringAndString

None.

WebApiVersion

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Operator": {
    "OperatorID": "85a282c4-e678-4b83-a5b2-14b6caa0691b",
    "OperatorTypeID": "e3e90e4e-f89f-4e47-b8b3-7ef7308ef2dd",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "Email": "sample string 5",
    "Password": "sample string 6",
    "IsAdmin": true,
    "Photo": "sample string 8"
  },
  "Token": {
    "m_Item1": "sample string 1",
    "m_Item2": "sample string 2"
  },
  "WebApiVersion": 1
}

application/xml, text/xml

Sample:
<OperatorResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <WebApiVersion>1</WebApiVersion>
  <Operator>
    <Email>sample string 5</Email>
    <FirstName>sample string 3</FirstName>
    <IsAdmin>true</IsAdmin>
    <LastName>sample string 4</LastName>
    <OperatorID>85a282c4-e678-4b83-a5b2-14b6caa0691b</OperatorID>
    <OperatorTypeID>e3e90e4e-f89f-4e47-b8b3-7ef7308ef2dd</OperatorTypeID>
    <Password>sample string 6</Password>
    <Photo>sample string 8</Photo>
  </Operator>
  <Token xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:m_Item1>sample string 1</d2p1:m_Item1>
    <d2p1:m_Item2>sample string 2</d2p1:m_Item2>
  </Token>
</OperatorResponse>