Przejdź do głównej zawartości

Pobierz pola dodatkowe wielu obiektów

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

Zwraca pola dodatkowe z wartościami dla wielu obiektów; lista ID w treści żądania, zalecane przy dużej liczbie ID. 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
Examplegenerated
{
"ids": [
1
],
"ownerType": "example"
}

Success

Typ treściapplication/json
Array<object>
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
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
nullable
Examplegenerated
{
"error": "example"
}

Server Error