Przejdź do głównej zawartości

Pobierz pola wielu obiektów stronicowo (GET)

Przestarzałe
GET
/api/v2/AdditionalFields/MultipleObjects/Pageable
curl --request GET \
--url 'https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields/MultipleObjects/Pageable?pageNumber=0' \
--header 'Authorization: Bearer <token>'

Stronicowana wersja pobierania pól dodatkowych dla wielu obiektów; identyfikatory w query stringu.

If the owner with specified type has any field definitions assigned, fields should be returned even if there are no values for the object with specified id.

objectIds
string

Ids of an objects for which the all the fields should be returned.
Ids should be sent as a JSON array, e.g. [1,2,3]

ownerType
string

Type of an object for which the all the fields should be returned.
To check available OwnerTypes, check GET /AdditionalFieldsOwners

pageNumber
integer format: int32
0

Number of results page to return.
PageSize is set to 100

Success

Typ treściapplication/json
object
results
Array<object>
nullable
object
objectId
integer format: int64
ownerType
string
nullable
definitionId
integer format: int64
nullable
fieldType
string
nullable
fieldName
string
nullable
fieldDisplayName
string
nullable
displayMode
string
nullable
fieldValue
string
nullable
totalRecords
integer format: int32
pageNumber
integer format: int32
pageSize
integer format: int32
Examplegenerated
{
"results": [
{
"objectId": 1,
"ownerType": "example",
"definitionId": 1,
"fieldType": "example",
"fieldName": "example",
"fieldDisplayName": "example",
"displayMode": "example",
"fieldValue": "example"
}
],
"totalRecords": 1,
"pageNumber": 1,
"pageSize": 1
}

Bad Request

Typ treściapplication/json
object
error
string
nullable
Examplegenerated
{
"error": "example"
}

Server Error