Pobierz pola dodatkowe wielu obiektów (GET)
Przestarzałe
GET
/api/v2/AdditionalFields/MultipleObjects
const url = 'https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields/MultipleObjects';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 \ --header 'Authorization: Bearer <token>'Zwraca pola dodatkowe z wartościami dla wielu obiektów danego typu; identyfikatory przekazywane 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
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
displayMode
string
fieldValue
string
Examplegenerated
[ { "objectId": 1, "ownerType": "example", "definitionId": 1, "fieldType": "example", "fieldName": "example", "fieldDisplayName": "example", "displayMode": "example", "fieldValue": "example" }]Bad Request
Typ treściapplication/json
object
error
string
Examplegenerated
{ "error": "example"}Server Error

