Zaktualizuj zapisany filtr ofert
PUT
/api/ManageOffersFilterPreset/UpdatePreset
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ManageOffersFilterPreset/UpdatePreset';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","filterGroups":[{"conditions":[{"field":"example","fieldType":"Text","operator":"example","value":"example","valueTo":"example"}]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ManageOffersFilterPreset/UpdatePreset \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "filterGroups": [ { "conditions": [ { "field": "example", "fieldType": "Text", "operator": "example", "value": "example", "valueTo": "example" } ] } ] }'Używane głównie przez panel Sellrocket.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
Example
{ "filterGroups": [ { "conditions": [ { "fieldType": "Text" } ] } ]}object
id
wymagane
integer format: int64
name
wymagane
string
filterGroups
wymagane
Array<object>
object
conditions
wymagane
Array<object>
object
field
wymagane
string
fieldType
wymagane
string
operator
wymagane
string
value
string
valueTo
string
Example
{ "filterGroups": [ { "conditions": [ { "fieldType": "Text" } ] } ]}
