Przejdź do głównej zawartości

Pobierz pola wielu obiektów stronicowo

POST
/api/v2/AdditionalFields/MultipleObjects/Pageable
curl --request POST \
--url https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields/MultipleObjects/Pageable \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "ids": [ 1 ], "ownerType": "example", "pageNumber": 1 }'

Stronicowana wersja pobierania pól dodatkowych dla wielu obiektów; parametry w treści żądania. To operacja odczytu.

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.

object
ids
Array<integer>
nullable
ownerType
string
nullable
pageNumber
integer format: int32
Examplegenerated
{
"ids": [
1
],
"ownerType": "example",
"pageNumber": 1
}

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