productSets.check
Check validity of either create or update parameters.
Parameters
| struct |
user { |
|
| string |
session |
Session (as retrieved from client.loginByToken())
|
| int |
userId |
(optional) Managed user ID
|
|
} |
|
|
| array |
productSets ( |
|
| struct |
{ |
|
| int |
id |
product set's id (excludes: groupId)
|
| int |
groupId |
(optional) group id
|
| string |
name |
(optional) product set's name
|
| int |
premiseId |
(optional) zbozi premise id
|
| double |
cpc |
(optional)(can be null) maximal cost per click (in halers)
|
| string |
status |
(optional) status of product set:
-
active:
active state
-
suspend:
suspend state
|
| array |
labelsValues ( |
(optional)
|
| struct |
{ |
|
| string |
label |
type of label
|
| string |
value |
(optional) (excludes: valueFrom, valueTo) value of label. For all labels excluding price and usable area.
|
| int |
valueFrom |
(optional) (can be null) (excludes: value) range for price and usable area label (in CZK)
|
| int |
valueTo |
(optional) (can be null) (excludes: value) range for price and usable area label (in CZK)
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
) |
|
|
Response
| struct |
{ |
|
| int |
status |
Status code (see bellow)
|
| string |
statusMessage |
Status code description
|
| string |
session |
(optional) Refreshed session
|
| array |
diagnostics ( |
(optional) Various diagnostics(warnings, errors, other information)
|
|
|
) |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
ambiguous_check
missing_attribute
not_allowed_for_campaign_type
product_set_already_removed
product_set_already_restored
product_set_cpc_is_too_low
product_set_cpc_out_of_range
product_set_empty_label
product_set_forbidden_label
product_set_label_value_duplicity
product_set_label_value_missing_or_empty
product_set_label_value_range_duplicity
product_set_label_value_range_invalid
product_set_label_value_range_missing
product_set_label_value_too_long
product_set_name_duplicity
product_set_name_too_long
product_set_no_eshop_zbozi_premise_in_fulltext_campaign
product_set_not_known_label
product_set_not_valid_pla_premise_id
product_set_user_not_linked_with_pla
user_access_denied
wrong_param_value