Pobierz pola wielu obiektów stronicowo (GET)
Przestarzałe
GET
/api/v2/AdditionalFields/MultipleObjects/Pageable
const url = 'https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields/MultipleObjects/Pageable?pageNumber=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”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
Number of results page to return.
PageSize is set to 100
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
results
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
displayMode
string
fieldValue
string
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
Examplegenerated
{ "error": "example"}Server Error

