POST api/remote_reader/add_user

Добавить пользователя сайта в качестве удаленного читателя организации

Request Information

URI Parameters

None.

Body Parameters

Входные параметры

RemoteReaderAddUserToOrganizationRequest
NameDescriptionTypeAdditional information
OrganizationId

Идентификатор организации

integer

None.

RemoteReaderCode

Код удаленного читателя (номер студенческого или читательского билета)

string

None.

OrganizationStructure1

Наименование оргштатной структуры организации 1-го уровня (может быть null)

string

None.

OrganizationStructure2

Наименование оргштатной структуры организации 2-го уровня (может быть null)

string

None.

OrganizationStructure3

Наименование оргштатной структуры организации 3-го уровня (может быть null)

string

None.

OrganizationStructure4

Наименование оргштатной структуры организации 4-го уровня (может быть null)

string

None.

OrganizationStructure5

Наименование оргштатной структуры организации 5-го уровня (может быть null)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "organizationId": 1,
  "remoteReaderCode": "sample string 2",
  "organizationStructure1": "sample string 3",
  "organizationStructure2": "sample string 4",
  "organizationStructure3": "sample string 5",
  "organizationStructure4": "sample string 6",
  "organizationStructure5": "sample string 7"
}

application/xml, text/xml

Sample:
<RemoteReaderAddUserToOrganizationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RucontAPI.Models.RemoteReaders">
  <OrganizationId>1</OrganizationId>
  <OrganizationStructure1>sample string 3</OrganizationStructure1>
  <OrganizationStructure2>sample string 4</OrganizationStructure2>
  <OrganizationStructure3>sample string 5</OrganizationStructure3>
  <OrganizationStructure4>sample string 6</OrganizationStructure4>
  <OrganizationStructure5>sample string 7</OrganizationStructure5>
  <RemoteReaderCode>sample string 2</RemoteReaderCode>
</RemoteReaderAddUserToOrganizationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Результат выполнения операции в виде HTTP статуса

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.