POST api/user_info/user_collection
Добавить коллекцию пользователя
Request Information
URI Parameters
None.
Body Parameters
Входные параметры
AddUserCollectionRequestName | Description | Type | Additional information |
---|---|---|---|
sent_id |
Идентификатор отправки коллекции (используется только в методе принятия коллекции) |
integer |
None. |
parent_id |
Идентификатор родительской коллекции (не обязательный параметр) |
integer |
None. |
name |
Имя коллекции |
string |
None. |
description |
Описание коллекции |
string |
None. |
photo |
Фото коллекции (не обязательный параметр) |
Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{ "parent_id": 1, "name": "sample string 1", "description": "sample string 2", "photo": "QEA=", "sent_id": 1 }
application/xml, text/xml
Sample:
<AddUserCollectionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RucontAPI.Models.UserCollections"> <description>sample string 2</description> <name>sample string 1</name> <parent_id>1</parent_id> <photo>QEA=</photo> <sent_id>1</sent_id> </AddUserCollectionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Идентифиактор коллекции пользователя
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |