POST api/SharedCollection/Sort

Sorting media items added to a shared collection

Request Information

URI Parameters

None.

Body Parameters

Sort parameters

SortCollectionParams
NameDescriptionTypeAdditional information
CollectionId

Shared collection ID

integer

None.

ItemIds

IDs of media items to be moved

Collection of integer

None.

Position

Position to which media items should be moved

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "collectionId": 1,
  "itemIds": [
    1,
    2
  ],
  "position": 2
}

Response Information

Resource Description

Result containing the flag of successful operation

ObjResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Error

Error description

string

None.

Success

Flag of successful operation

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "error": "sample string 2",
  "success": true,
  "errorCode": 4
}

Parameter Information

sortParams

Sort options of media items in the shared collection

Property Description
CollectionId (Int64)
Shared collection ID
ItemIds (Int64[])
IDs of media items to be moved
Position (Int64)
Position to which media items should be moved