{"components":{"examples":{},"headers":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"AssetLabelsMatchRule":{"type":"string","enum":["has_all","has_some","missing_any","no_bindings","with_bindings"]},"AssetIdsParams":{"properties":{"ids":{"items":{"type":"string"},"type":"array"},"idsMatch":{"$ref":"#/components/schemas/AssetLabelsMatchRule"}},"type":"object","additionalProperties":false},"AssetTextMatchRule":{"type":"string","enum":["contains","not_contains","begins","ends","equals","case_sensitive_equals","empty","not_empty"]},"AssetNameMatchParams":{"properties":{"name":{"type":"string"},"nameMatch":{"$ref":"#/components/schemas/AssetTextMatchRule"}},"type":"object","additionalProperties":false},"AssetFileMatchParams":{"properties":{"fileName":{"type":"string"},"fileNameMatch":{"$ref":"#/components/schemas/AssetTextMatchRule"}},"type":"object","additionalProperties":false},"AssetDescriptionMatchParams":{"properties":{"description":{"type":"string"},"descriptionMatch":{"$ref":"#/components/schemas/AssetTextMatchRule"}},"type":"object","additionalProperties":false},"AssignedProductsMatchRule":{"type":"string","enum":["has_all","has_some","missing_any","no_bindings","with_bindings"]},"AssignedProductsParams":{"properties":{"products":{"items":{"type":"string"},"type":"array"},"productsMatch":{"$ref":"#/components/schemas/AssignedProductsMatchRule"}},"type":"object","additionalProperties":false},"AssignedCategoriesMatchRule":{"type":"string","enum":["has_all","has_some","missing_any","no_bindings","with_bindings"]},"AssignedCategoriesParams":{"properties":{"categories":{"items":{"type":"string"},"type":"array"},"categoriesMatch":{"$ref":"#/components/schemas/AssignedCategoriesMatchRule"}},"type":"object","additionalProperties":false},"AssetLabelsParams":{"properties":{"labels":{"items":{"type":"string"},"type":"array"},"labelsMatch":{"$ref":"#/components/schemas/AssetLabelsMatchRule"}},"type":"object","additionalProperties":false},"Uploader":{"type":"string"},"Internal":{"type":"boolean"},"Published":{"type":"boolean"},"AssetDateRange":{"properties":{"after":{"type":"string"},"before":{"type":"string"}},"type":"object","additionalProperties":false},"AssetRelativeDate":{"properties":{"daysAgo":{"type":"number","format":"double"}},"required":["daysAgo"],"type":"object","additionalProperties":false},"AttributeFilterType":{"type":"string","enum":["CONTAINS","NOT_CONTAINS","EQUALS","NOT_EQUALS","EMPTY","NOT_EMPTY","BETWEEN","NOT_BETWEEN","GREATER_THAN","GREATER_OR_EQUALS_TO","SMALLER_THAN","SMALLER_OR_EQUALS_TO","DOES_HAVE_SOME","DOESNT_HAVE_ANY","DOES_HAVE_ALL","DOESNT_HAVE_ALL","ASSOCIATED","NOT_ASSOCIATED","DO_NOT_FILTER","IN","DATE_RELATIVE"]},"RelativeAttributeUnit":{"type":"string","enum":["DAYS_AGO","DAYS_FROM_NOW"]},"AttributeFilterValue":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"number","format":"double"}]},"AssetAttributeFilter":{"properties":{"attributeDefinitionId":{"type":"string"},"type":{"$ref":"#/components/schemas/AttributeFilterType"},"unit":{"$ref":"#/components/schemas/RelativeAttributeUnit"},"values":{"items":{"$ref":"#/components/schemas/AttributeFilterValue"},"type":"array","description":"Absent for value-less conditions: EMPTY, NOT_EMPTY, ASSOCIATED, NOT_ASSOCIATED."}},"required":["attributeDefinitionId","type"],"type":"object","additionalProperties":false},"AssetNumbersParams":{"properties":{"numbers":{"items":{"type":"string"},"type":"array"},"numbersMatch":{"$ref":"#/components/schemas/AssetLabelsMatchRule"}},"type":"object","additionalProperties":false},"AssetAssignedType":{"type":"string","enum":["ANY","AT_LEAST_ONE","UNASSIGNED"]},"AssetsFilters":{"properties":{"idsParams":{"$ref":"#/components/schemas/AssetIdsParams"},"nameParams":{"$ref":"#/components/schemas/AssetNameMatchParams"},"fileParams":{"$ref":"#/components/schemas/AssetFileMatchParams"},"descriptionParams":{"$ref":"#/components/schemas/AssetDescriptionMatchParams"},"productsParams":{"$ref":"#/components/schemas/AssignedProductsParams"},"categoriesParams":{"$ref":"#/components/schemas/AssignedCategoriesParams"},"labelsParams":{"$ref":"#/components/schemas/AssetLabelsParams"},"uploader":{"$ref":"#/components/schemas/Uploader"},"internal":{"$ref":"#/components/schemas/Internal"},"published":{"$ref":"#/components/schemas/Published"},"created":{"$ref":"#/components/schemas/AssetDateRange"},"updated":{"$ref":"#/components/schemas/AssetDateRange"},"createdRelative":{"$ref":"#/components/schemas/AssetRelativeDate"},"updatedRelative":{"$ref":"#/components/schemas/AssetRelativeDate"},"attributeFilters":{"items":{"$ref":"#/components/schemas/AssetAttributeFilter"},"type":"array"},"numbersParams":{"$ref":"#/components/schemas/AssetNumbersParams"},"assignedProduct":{"$ref":"#/components/schemas/AssetAssignedType"},"assignedCategories":{"$ref":"#/components/schemas/AssetAssignedType"}},"type":"object","additionalProperties":false},"MediaTypes":{"items":{"type":"string"},"type":"array"},"DimensionsCondition":{"type":"string"},"FileSize":{"type":"string"},"MediaInfoFilters":{"properties":{"mediaType":{"type":"string","description":"Legacy singular form, still sent by the media filters UI."},"mediaTypes":{"$ref":"#/components/schemas/MediaTypes"},"dimensionsCondition":{"$ref":"#/components/schemas/DimensionsCondition"},"fileMinimumSize":{"$ref":"#/components/schemas/FileSize"},"fileMaximumSize":{"$ref":"#/components/schemas/FileSize"},"fileExtension":{"type":"string"},"assignedProduct":{"$ref":"#/components/schemas/AssetAssignedType"},"assignedCategories":{"$ref":"#/components/schemas/AssetAssignedType"}},"type":"object","additionalProperties":false},"AssetBulkActionFiltering":{"description":"Canonical filtering payload for asset bulk actions, sourced from @bluestone/types.\nDeclared as a local interface extending the shared type so tsoa inlines its\nproperties under this name during swagger generation (a bare re-export/alias is\nnot resolvable by tsoa). Intentionally excludes paging, sorting and quickSearch —\nbulk jobs operate on the full filtered set.","properties":{"asset":{"$ref":"#/components/schemas/AssetsFilters"},"mediaInfo":{"$ref":"#/components/schemas/MediaInfoFilters"}},"type":"object","additionalProperties":false},"AssetBulkEditAction":{"type":"string","enum":["add-attribute","upsert-attribute","update-attribute","remove-attribute","append-select","deduct-select","append-dictionary","deduct-dictionary"]},"AttributeValue":{"anyOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"}]},"AssetBulkEditPayload":{"description":"Flat model for swagger/OpenAPI visibility.\nAll variant-specific fields are optional; the required `action` discriminator\ndetermines which fields are applicable at runtime.","properties":{"action":{"$ref":"#/components/schemas/AssetBulkEditAction"},"attributeDefinitionId":{"type":"string"},"context":{"type":"string"},"attributeValues":{"items":{"$ref":"#/components/schemas/AttributeValue"},"type":"array","description":"Applicable for: add-attribute, upsert-attribute, update-attribute"},"failOnMissingAttribute":{"type":"boolean","description":"Applicable for: update-attribute, append-select, deduct-select, append-dictionary, deduct-dictionary"},"selectValueIds":{"items":{"type":"string"},"type":"array","description":"Applicable for: append-select, deduct-select"},"dictionaryValueIds":{"items":{"type":"string"},"type":"array","description":"Applicable for: append-dictionary, deduct-dictionary"}},"required":["action","attributeDefinitionId","context"],"type":"object","additionalProperties":false},"AssetBulkEditRequestPayload":{"description":"Request payload for the bulk-edit endpoint.\nContains an array of actions to be executed sequentially within a single job.","properties":{"filtering":{"$ref":"#/components/schemas/AssetBulkActionFiltering"},"actions":{"items":{"$ref":"#/components/schemas/AssetBulkEditPayload"},"type":"array"}},"required":["filtering","actions"],"type":"object","additionalProperties":false},"CreateAssetsDeleteJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/AssetBulkActionFiltering"},"context":{"type":"string"}},"required":["filtering","context"],"type":"object","additionalProperties":false},"JobStatus":{"enum":["WAITING","EXECUTING","ERROR","COMPLETED","CANCELLED","COMPLETED_WITH_ISSUES"],"type":"string"},"JobType":{"enum":["productsStatusChange","productsAddLabel","productsTouch"],"type":"string"},"JobModel":{"properties":{"status":{"$ref":"#/components/schemas/JobStatus"},"type":{"$ref":"#/components/schemas/JobType"},"progress":{"type":"number","format":"double"},"id":{"type":"string"},"createdAt":{"type":"number","format":"double"},"updatedAt":{"type":"number","format":"double"}},"required":["status","type","progress","id","createdAt","updatedAt"],"type":"object"},"CreateDateFilterType":{"type":"string","enum":["GREATER_EQUAL","LESS_EQUAL"]},"DateFilter":{"properties":{"type":{"$ref":"#/components/schemas/CreateDateFilterType"},"dateMilis":{"type":"number","format":"double"}},"required":["type","dateMilis"],"type":"object","additionalProperties":false},"CreateDateFilter":{"$ref":"#/components/schemas/DateFilter"},"CreateDateRelativeFilterType":{"type":"string","enum":["DAYS_AGO"],"nullable":false},"DateRelativeFilter":{"properties":{"type":{"$ref":"#/components/schemas/CreateDateRelativeFilterType"},"value":{"type":"number","format":"double"}},"required":["type","value"],"type":"object","additionalProperties":false},"CreateDateRelativeFilter":{"$ref":"#/components/schemas/DateRelativeFilter"},"LastUpdateFilter":{"$ref":"#/components/schemas/DateFilter"},"LastUpdateRelativeFilter":{"$ref":"#/components/schemas/DateRelativeFilter"},"OperationsTypes":{"type":"string","enum":["IS"],"nullable":false},"FilterType":{"properties":{"type":{"$ref":"#/components/schemas/OperationsTypes"},"value":{"type":"string"}},"required":["type","value"],"type":"object","additionalProperties":false},"OperationsInitiator":{"type":"string","enum":["IS"],"nullable":false},"InitiatorFilter":{"properties":{"type":{"$ref":"#/components/schemas/OperationsInitiator"},"initiatorType":{"type":"string","enum":["user","service"]},"value":{"type":"string"}},"required":["type","initiatorType","value"],"type":"object","additionalProperties":false},"ExternalIdFilterType":{"type":"string","enum":["IS"],"nullable":false},"ExternalIdFilter":{"properties":{"type":{"$ref":"#/components/schemas/ExternalIdFilterType"},"value":{"type":"string"}},"required":["type","value"],"type":"object","additionalProperties":false},"ContextsFilterType":{"type":"string","enum":["CONTAINS"],"nullable":false},"ContextsFilter":{"properties":{"type":{"$ref":"#/components/schemas/ContextsFilterType"},"value":{"type":"string"}},"required":["type","value"],"type":"object","additionalProperties":false},"StatusFilterType":{"type":"string","enum":["IS"],"nullable":false},"StatusFilter":{"properties":{"type":{"$ref":"#/components/schemas/StatusFilterType"},"value":{"$ref":"#/components/schemas/JobStatus"}},"required":["type","value"],"type":"object","additionalProperties":false},"Paging":{"properties":{"pageSize":{"type":"number","format":"double","description":"Number of results per page, max 10000"},"page":{"type":"number","format":"double","description":"Page number, starting from 0"}},"type":"object"},"Filters":{"properties":{"createDateFilter":{"items":{"$ref":"#/components/schemas/DateFilter"},"type":"array"},"createDateRelativeFilter":{"items":{"$ref":"#/components/schemas/DateRelativeFilter"},"type":"array"},"lastUpdateFilter":{"items":{"$ref":"#/components/schemas/DateFilter"},"type":"array"},"lastUpdateRelativeFilter":{"items":{"$ref":"#/components/schemas/DateRelativeFilter"},"type":"array"},"typeFilter":{"$ref":"#/components/schemas/FilterType"},"initiatorFilter":{"$ref":"#/components/schemas/InitiatorFilter"},"externalIdFilter":{"$ref":"#/components/schemas/ExternalIdFilter"},"contextsFilter":{"$ref":"#/components/schemas/ContextsFilter"},"statusFilter":{"$ref":"#/components/schemas/StatusFilter"},"paging":{"$ref":"#/components/schemas/Paging"}},"type":"object","additionalProperties":false},"ExternalJobTypeAggregation":{"properties":{"_id":{"properties":{"type":{"type":"string"},"organizationId":{"type":"string"}},"required":["type","organizationId"],"type":"object"},"value":{"type":"string"}},"required":["_id","value"],"type":"object","additionalProperties":false},"InitiatorService":{"properties":{"type":{"type":"string","enum":["service"],"nullable":false},"serviceName":{"type":"string"},"serviceId":{"type":"string"}},"required":["type","serviceName","serviceId"],"type":"object","additionalProperties":false},"InitiatorUser":{"properties":{"type":{"type":"string","enum":["user"],"nullable":false},"id":{"type":"string"}},"required":["type","id"],"type":"object","additionalProperties":false},"InitiatorApiClient":{"properties":{"type":{"type":"string","enum":["api_client"],"nullable":false},"apiClientId":{"type":"string"}},"required":["type","apiClientId"],"type":"object","additionalProperties":false},"Initiator":{"anyOf":[{"$ref":"#/components/schemas/InitiatorService"},{"$ref":"#/components/schemas/InitiatorUser"},{"$ref":"#/components/schemas/InitiatorApiClient"}]},"AdditionalFieldString":{"properties":{"fieldName":{"type":"string"},"fieldKey":{"type":"string"},"fieldValue":{"anyOf":[{"type":"string"},{"type":"number","format":"double"}]},"hidden":{"type":"boolean"}},"required":["fieldName","fieldKey","fieldValue"],"type":"object","additionalProperties":false,"example":{"fieldName":"Some field name","fieldKey":"some_field_key","fieldValue":"some field value","hidden":false}},"JobAssetInfo":{"properties":{"type":{"type":"string","enum":["asset"],"nullable":false},"id":{"type":"string"},"versionId":{"type":"string"},"context":{"type":"string"}},"required":["type","id"],"type":"object","additionalProperties":false},"JobFileOther":{"properties":{"type":{"type":"string","enum":["file"],"nullable":false},"downloadLink":{"type":"string"}},"required":["type","downloadLink"],"type":"object","additionalProperties":false},"IdsConnection":{"properties":{"type":{"type":"string","enum":["ids"],"nullable":false},"ids":{"items":{"type":"string"},"type":"array"}},"required":["type","ids"],"type":"object","additionalProperties":false},"ProductIdsConnection":{"properties":{"type":{"type":"string","enum":["product"],"nullable":false},"connection":{"$ref":"#/components/schemas/IdsConnection"}},"required":["type","connection"],"type":"object","additionalProperties":false},"AssetFilterTypes":{"type":"string","enum":["HAVE_NONE","HAVE_ANY","HAVE_MORE_THAN","HAVE_LESS_THAN","ASSIGNED_TO_ANY","ASSIGNED_TO_ALL","DO_NOT_FILTER"]},"AssetFilter":{"properties":{"assetCount":{"type":"number","format":"double"},"assetIds":{"items":{"type":"string"},"type":"array"},"type":{"$ref":"#/components/schemas/AssetFilterTypes"}},"required":["type"],"type":"object","additionalProperties":false},"AssetLabelsFilterTypes":{"type":"string","enum":["NOT_HAVE_LABEL","HAVE_LABEL","DO_NOT_FILTER"]},"AssetLabelsFilter":{"properties":{"labelsIds":{"items":{"type":"string"},"type":"array"},"type":{"$ref":"#/components/schemas/AssetLabelsFilterTypes"}},"required":["type"],"type":"object","additionalProperties":false},"AttributeFilterTypes":{"type":"string","enum":["CONTAINS","NOT_CONTAINS","EQUALS","NOT_EQUALS","EMPTY","NOT_EMPTY","BETWEEN","NOT_BETWEEN","GREATER_THAN","GREATER_OR_EQUALS_TO","SMALLER_THAN","SMALLER_OR_EQUALS_TO","DOES_HAVE_SOME","DOESNT_HAVE_ANY","DOES_HAVE_ALL","DOESNT_HAVE_ALL","ASSOCIATED","NOT_ASSOCIATED","DO_NOT_FILTER","IN","DATE_RELATIVE"]},"RelativeAttributeUnitTypes":{"type":"string","enum":["DAYS_AGO","DAYS_FROM_NOW"]},"AttributeFilter":{"properties":{"attributeDefinitionId":{"type":"string"},"type":{"$ref":"#/components/schemas/AttributeFilterTypes"},"unit":{"$ref":"#/components/schemas/RelativeAttributeUnitTypes"},"values":{"items":{"$ref":"#/components/schemas/AttributeFilterValue"},"type":"array"}},"required":["attributeDefinitionId","type","values"],"type":"object","additionalProperties":false},"BaseFiltersTypes":{"type":"string","enum":["NAME_IS","NUMBER_IS","DESCRIPTION_IS","NAME_CONTAINS","NUMBER_CONTAINS","DESCRIPTION_CONTAINS","NAME_STARTS_WITH","NUMBER_STARTS_WITH","DESCRIPTION_STARTS_WITH","NAME_ENDS_WITH","NUMBER_ENDS_WITH","DESCRIPTION_ENDS_WITH","NUMBER_IN","NAME_NOT_CONTAINS","NUMBER_NOT_CONTAINS","DESCRIPTION_NOT_CONTAINS","ID_IN","NUMBER_NOT_IN","NAME_EMPTY","NAME_NOT_EMPTY","DESCRIPTION_EMPTY","DESCRIPTION_NOT_EMPTY","LAST_SYNC_STATE_IS","LAST_MODIFIED_BY_IS","LAST_MODIFIED_BY_CURRENT_USER"]},"BaseFilter":{"properties":{"type":{"$ref":"#/components/schemas/BaseFiltersTypes"},"values":{"items":{"type":"string"},"type":"array"}},"required":["type","values"],"type":"object","additionalProperties":false},"CategoryFiltersTypes":{"type":"string","enum":["IN_ANY_CHILD","IN_CATEGORY","WITHOUT_CATEGORY"]},"CategoryFilter":{"properties":{"type":{"$ref":"#/components/schemas/CategoryFiltersTypes"},"categoryId":{"type":"string"}},"required":["type"],"type":"object","additionalProperties":false},"ColumnFieldTypes":{"type":"string","enum":["PRODUCT_NAME","PRODUCT_NUMBER","PRODUCT_TYPE","ATTRIBUTE","LAST_UPDATE","CREATE_DATE"]},"ProductCreateDateFilterTypes":{"type":"string","enum":["GREATER_EQUAL","LESS_EQUAL"]},"ProductCreateDateFilter":{"properties":{"type":{"$ref":"#/components/schemas/ProductCreateDateFilterTypes"},"dateMilis":{"type":"number","format":"double"}},"required":["type","dateMilis"],"type":"object","additionalProperties":false},"ProductUpdateDateFilterTypes":{"type":"string","enum":["GREATER_EQUAL","LESS_EQUAL"]},"ProductUpdateDateFilter":{"properties":{"type":{"$ref":"#/components/schemas/ProductUpdateDateFilterTypes"},"dateMilis":{"type":"number","format":"double"}},"required":["type","dateMilis"],"type":"object","additionalProperties":false},"RelativeDateFilterType":{"type":"string","enum":["DAYS_AGO"],"nullable":false},"RelativeDateFilter":{"properties":{"type":{"$ref":"#/components/schemas/RelativeDateFilterType"},"value":{"type":"number","format":"double"}},"required":["type","value"],"type":"object","additionalProperties":false},"LabelFilterTypes":{"type":"string","enum":["ALL","SOME","NOT","EMPTY","DO_NOT_FILTER","NO_BINDINGS","NOT_IN"]},"LabelFilter":{"properties":{"type":{"$ref":"#/components/schemas/LabelFilterTypes"},"labelsIds":{"items":{"type":"string"},"type":"array"}},"required":["type","labelsIds"],"type":"object","additionalProperties":false},"PublishStateFilterTypes":{"type":"string","enum":["IN"],"nullable":false},"ProductStatus":{"type":"string","enum":["PLAYGROUND_ONLY","TO_BE_PUBLISHED","CONNECTED","NOT_CONNECTED","TO_BE_ARCHIVED","TO_BE_UNPUBLISHED","ARCHIVED"]},"PublishStates":{"$ref":"#/components/schemas/ProductStatus"},"PublishStateFilter":{"properties":{"type":{"$ref":"#/components/schemas/PublishStateFilterTypes"},"publishStates":{"items":{"$ref":"#/components/schemas/ProductStatus"},"type":"array"}},"required":["type","publishStates"],"type":"object","additionalProperties":false},"ValidationStatusFilterTypes":{"type":"string","enum":["IN"],"nullable":false},"ValidationStatusState":{"type":"string","enum":["VALID","INVALID"]},"ValidationStatusFilter":{"properties":{"type":{"$ref":"#/components/schemas/ValidationStatusFilterTypes"},"validationStatus":{"items":{"$ref":"#/components/schemas/ValidationStatusState"},"type":"array"}},"required":["type","validationStatus"],"type":"object","additionalProperties":false},"RelationsFilterTypes":{"type":"string","enum":["EMPTY","HAVE","NOT","DO_NOT_FILTER","HAVE_WITH_PRODUCTS"]},"RelationsFilter":{"properties":{"type":{"$ref":"#/components/schemas/RelationsFilterTypes"},"reverse":{"type":"boolean"},"relationId":{"type":"string"},"productIds":{"items":{"type":"string"},"type":"array"}},"required":["type","reverse"],"type":"object","additionalProperties":false},"ScoreFilterTypes":{"type":"string","enum":["BETWEEN"],"nullable":false},"ScoreFilter":{"properties":{"scores":{"items":{"type":"number","format":"double"},"type":"array"},"type":{"$ref":"#/components/schemas/ScoreFilterTypes"}},"required":["scores","type"],"type":"object","additionalProperties":false},"ScoreRequirementResultFiltersTypes":{"type":"string","enum":["NOT_MEET_ALL"],"nullable":false},"ScoreRequirementResultFilters":{"properties":{"requirementIds":{"items":{"type":"string"},"type":"array"},"type":{"$ref":"#/components/schemas/ScoreRequirementResultFiltersTypes"}},"required":["requirementIds","type"],"type":"object","additionalProperties":false},"SortDirectionTypes":{"type":"string","enum":["ASC","DESC"]},"ProductType":{"type":"string","enum":["VARIANT","GROUP","SINGLE","BUNDLE","FAMILY"]},"TypeFilterTypes":{"$ref":"#/components/schemas/ProductType"},"BaseTypeFilter":{"properties":{"type":{"$ref":"#/components/schemas/ProductType"},"groupIds":{"items":{"type":"string"},"type":"array"}},"required":["type","groupIds"],"type":"object","additionalProperties":false},"GroupTypeFilter":{"properties":{"type":{"type":"string","enum":["GROUP"],"nullable":false},"familyIds":{"items":{"type":"string"},"type":"array"}},"required":["type","familyIds"],"type":"object","additionalProperties":false},"TypeFilter":{"anyOf":[{"$ref":"#/components/schemas/BaseTypeFilter"},{"$ref":"#/components/schemas/GroupTypeFilter"}]},"TypesFilterTypes":{"type":"string","enum":["IN"],"nullable":false},"TypesFilter":{"properties":{"productTypes":{"items":{"$ref":"#/components/schemas/ProductType"},"type":"array"},"type":{"$ref":"#/components/schemas/TypesFilterTypes"}},"required":["productTypes","type"],"type":"object","additionalProperties":false},"OutOfSyncFilterTypes":{"type":"string","enum":["IS"],"nullable":false},"OutOfSyncFilter":{"properties":{"type":{"$ref":"#/components/schemas/OutOfSyncFilterTypes"},"outOfSync":{"type":"boolean"}},"required":["type","outOfSync"],"type":"object","additionalProperties":false},"LastSyncStateFilterTypes":{"type":"string","enum":["IS"],"nullable":false},"LastSyncStateFilter":{"properties":{"type":{"$ref":"#/components/schemas/LastSyncStateFilterTypes"},"lastSyncState":{"type":"string","enum":["FAILED","SUCCESSFUL"]}},"required":["type","lastSyncState"],"type":"object","additionalProperties":false},"VariantFilterTypes":{"type":"string","enum":["HAVE_NONE","HAVE_ANY","HAVE_MORE_THAN","HAVE_LESS_THAN","DO_NOT_FILTER"]},"VariantFilter":{"properties":{"type":{"$ref":"#/components/schemas/VariantFilterTypes"},"variantCount":{"type":"number","format":"double"}},"required":["type"],"type":"object","additionalProperties":false},"GroupFilterTypes":{"type":"string","enum":["HAVE_NONE","HAVE_ANY","HAVE_MORE_THAN","HAVE_LESS_THAN","DO_NOT_FILTER"]},"GroupFilter":{"properties":{"type":{"$ref":"#/components/schemas/GroupFilterTypes"},"groupCount":{"type":"number","format":"double"}},"required":["type"],"type":"object","additionalProperties":false},"BundleFilterTypes":{"type":"string","enum":["HAVE_NONE","HAVE_ANY","HAVE_MORE_THAN","HAVE_LESS_THAN","DO_NOT_FILTER"]},"BundleFilter":{"properties":{"type":{"$ref":"#/components/schemas/BundleFilterTypes"},"bundleCount":{"type":"number","format":"double"}},"required":["type","bundleCount"],"type":"object","additionalProperties":false},"FamilyFilter":{"properties":{"type":{"type":"string","enum":["HAVE_NONE"],"nullable":false}},"required":["type"],"type":"object","additionalProperties":false},"PureProductFilters":{"properties":{"assetFilters":{"items":{"anyOf":[{"$ref":"#/components/schemas/AssetFilter"},{"$ref":"#/components/schemas/AssetLabelsFilter"}]},"type":"array"},"attributeFilters":{"items":{"$ref":"#/components/schemas/AttributeFilter"},"type":"array"},"attributeIdToSortBy":{"type":"string"},"baseFilters":{"items":{"$ref":"#/components/schemas/BaseFilter"},"type":"array"},"categoryFilters":{"items":{"$ref":"#/components/schemas/CategoryFilter"},"type":"array"},"column":{"$ref":"#/components/schemas/ColumnFieldTypes"},"productCreateDateFilter":{"items":{"$ref":"#/components/schemas/ProductCreateDateFilter"},"type":"array"},"productLastUpdateFilter":{"items":{"$ref":"#/components/schemas/ProductUpdateDateFilter"},"type":"array"},"productLastUpdateRelativeFilter":{"items":{"$ref":"#/components/schemas/RelativeDateFilter"},"type":"array"},"productCreateDateRelativeFilter":{"items":{"$ref":"#/components/schemas/RelativeDateFilter"},"type":"array"},"labelFilters":{"items":{"$ref":"#/components/schemas/LabelFilter"},"type":"array"},"publishStateFilter":{"$ref":"#/components/schemas/PublishStateFilter"},"validationStatusFilter":{"$ref":"#/components/schemas/ValidationStatusFilter"},"relationsFilter":{"$ref":"#/components/schemas/RelationsFilter"},"scoreFilter":{"$ref":"#/components/schemas/ScoreFilter"},"scoreRequirementResultFilters":{"items":{"$ref":"#/components/schemas/ScoreRequirementResultFilters"},"type":"array"},"sortDirection":{"$ref":"#/components/schemas/SortDirectionTypes"},"typeFilter":{"$ref":"#/components/schemas/TypeFilter"},"typesFilter":{"$ref":"#/components/schemas/TypesFilter"},"outOfSyncFilter":{"$ref":"#/components/schemas/OutOfSyncFilter"},"lastSyncStateFilter":{"$ref":"#/components/schemas/LastSyncStateFilter"},"variantFilters":{"items":{"$ref":"#/components/schemas/VariantFilter"},"type":"array"},"groupFilters":{"items":{"$ref":"#/components/schemas/GroupFilter"},"type":"array"},"bundleFilters":{"items":{"$ref":"#/components/schemas/BundleFilter"},"type":"array"},"familyFilters":{"items":{"$ref":"#/components/schemas/FamilyFilter"},"type":"array"}},"type":"object","additionalProperties":false},"MatchRule":{"type":"string","enum":["all","any"]},"QueryGroupChild":{"anyOf":[{"$ref":"#/components/schemas/QueryGroup"},{"$ref":"#/components/schemas/QueryTerm"},{"$ref":"#/components/schemas/QueryGroupWithAssociation"}]},"QueryGroup":{"properties":{"matchRule":{"$ref":"#/components/schemas/MatchRule"},"children":{"items":{"$ref":"#/components/schemas/QueryGroupChild"},"type":"array"},"not":{"type":"boolean"}},"required":["matchRule","children"],"type":"object","additionalProperties":false},"QueryTermId":{"properties":{"termType":{"type":"string","enum":["id"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["is","in"]},"value":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"description":"string for filterType='is'; string[] for filterType='in'"}},"required":["termType","filterType","value"],"type":"object","additionalProperties":false},"WildcardFilterTypes":{"type":"string","enum":["contains","starts_with","ends_with"]},"EqualsFilterTypes":{"type":"string","enum":["is"],"nullable":false},"ValueDefinedTypes":{"type":"string","enum":["defined"],"nullable":false},"QueryTermTextField":{"properties":{"termType":{"type":"string","enum":["name","description"]},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"anyOf":[{"$ref":"#/components/schemas/WildcardFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"}]},"value":{"type":"string","description":"Omitted when filterType='defined'"}},"required":["termType","context","filterType"],"type":"object","additionalProperties":false},"SubsetFilterTypes":{"type":"string","enum":["in"],"nullable":false},"QueryTermNumber":{"properties":{"termType":{"type":"string","enum":["number"],"nullable":false},"not":{"type":"boolean"},"filterType":{"anyOf":[{"$ref":"#/components/schemas/WildcardFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"},{"$ref":"#/components/schemas/SubsetFilterTypes"}]},"value":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"description":"string for filterType in {is, contains, starts_with, ends_with}; string[] for filterType='in'"}},"required":["termType","filterType","value"],"type":"object","additionalProperties":false},"PublishStateValues":{"type":"string","enum":["TO_BE_PUBLISHED","PUBLISHED","TO_BE_UNPUBLISHED","DRAFT"]},"QueryTermPublishState":{"properties":{"termType":{"type":"string","enum":["publishState"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["in"],"nullable":false},"value":{"items":{"$ref":"#/components/schemas/PublishStateValues"},"type":"array"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false},"QueryTermState":{"properties":{"termType":{"type":"string","enum":["state"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["in"],"nullable":false},"value":{"items":{"type":"string"},"type":"array"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false,"deprecated":true},"ProductTypeValues":{"type":"string","enum":["BUNDLE","SINGLE","VARIANT","GROUP","FAMILY"]},"QueryTermProductType":{"properties":{"termType":{"type":"string","enum":["type"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["in"],"nullable":false},"value":{"items":{"$ref":"#/components/schemas/ProductTypeValues"},"type":"array"}},"required":["termType","filterType","value"],"type":"object","additionalProperties":false},"ValidationStatusValues":{"type":"string","enum":["VALID","INVALID"]},"QueryTermValidationStatus":{"properties":{"termType":{"type":"string","enum":["validation_status"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["is"],"nullable":false},"value":{"$ref":"#/components/schemas/ValidationStatusValues"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false},"QueryTermPapiOutOfSync":{"properties":{"termType":{"type":"string","enum":["papi_out_of_sync"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["is"],"nullable":false},"value":{"type":"boolean"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false},"LastSyncStateValues":{"type":"string","enum":["SUCCESSFUL","FAILED"]},"QueryTermLastSyncState":{"properties":{"termType":{"type":"string","enum":["last_sync_state"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["is"],"nullable":false},"value":{"$ref":"#/components/schemas/LastSyncStateValues"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false},"QueryTermLastModifiedBy":{"properties":{"termType":{"type":"string","enum":["last_modified_by"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["is","is_current_user"]},"value":{"type":"string","description":"Present only when filterType='is'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermAssignedAssets":{"description":"With a value the term filters by asset id: 'have_some' matches a product assigned to any of the\ngiven assets, 'have_all' only a product assigned to every one of them. Without a value the term\nkeeps its counter meaning: has any, has none, more than, less than.","properties":{"termType":{"type":"string","enum":["assigned_assets"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["have_some","have_all","have_none","greater_than","smaller_than"]},"value":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"number","format":"double"}],"description":"string[] on have_some / have_all; number on greater_than / smaller_than"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermCounter":{"properties":{"termType":{"type":"string","enum":["assigned_variant","assigned_family","bundle"]},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["have_some","have_none","greater_than","smaller_than"]},"value":{"type":"number","format":"double","description":"Present only on greater_than / smaller_than"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"DateFilterTypes":{"type":"string","enum":["date_relative","date_between"]},"DateRelativeFilterUnits":{"type":"string","enum":["days_ago","days_from_now"]},"QueryTermDate":{"properties":{"termType":{"type":"string","enum":["created_date","updated_date"]},"not":{"type":"boolean"},"filterType":{"$ref":"#/components/schemas/DateFilterTypes"},"unit":{"$ref":"#/components/schemas/DateRelativeFilterUnits","description":"Present on filterType='date_relative'"},"value":{"type":"number","format":"double","description":"Present on filterType='date_relative'"},"from":{"type":"number","format":"double","description":"Present on filterType='date_between'"},"to":{"type":"number","format":"double","description":"Present on filterType='date_between'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"CollectionFilterTypes":{"type":"string","enum":["have_some","have_all","have_none"]},"QueryTermProductLabels":{"properties":{"termType":{"type":"string","enum":["labels"],"nullable":false},"not":{"type":"boolean"},"filterType":{"$ref":"#/components/schemas/CollectionFilterTypes"},"value":{"items":{"type":"string"},"type":"array","description":"Omitted when filterType='have_none'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermAssetLabels":{"properties":{"termType":{"type":"string","enum":["asset_labels"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["contains"],"nullable":false},"value":{"items":{"type":"string"},"type":"array"}},"required":["termType","filterType","value"],"type":"object","additionalProperties":false},"QueryTermCategory":{"properties":{"termType":{"type":"string","enum":["category"],"nullable":false},"not":{"type":"boolean"},"filterType":{"anyOf":[{"$ref":"#/components/schemas/CollectionFilterTypes"},{"type":"string","enum":["have_some_with_children","have_all_with_children"]}]},"value":{"items":{"type":"string"},"type":"array","description":"Omitted when filterType='have_none'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermRelations":{"properties":{"termType":{"type":"string","enum":["relations"],"nullable":false},"not":{"type":"boolean"},"filterType":{"type":"string","enum":["is","is_with_products","have_none"]},"reverse":{"type":"boolean","description":"Required when filterType in {is, is_with_products}"},"value":{"type":"string","description":"Required when filterType in {is, is_with_products}"},"productIds":{"items":{"type":"string"},"type":"array","description":"Required when filterType='is_with_products'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermCompletenessRequirements":{"properties":{"termType":{"type":"string","enum":["completeness_requirements"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["not_meet_all"],"nullable":false},"value":{"items":{"type":"string"},"type":"array"}},"required":["termType","context","filterType","value"],"type":"object","additionalProperties":false},"QueryTermCompletenessScore":{"properties":{"termType":{"type":"string","enum":["completeness_score"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"filterType":{"type":"string","enum":["between"],"nullable":false},"from":{"type":"number","format":"double"},"to":{"type":"number","format":"double"}},"required":["termType","context","filterType"],"type":"object","additionalProperties":false},"QueryTermParentFamily":{"properties":{"termType":{"type":"string","enum":["parent_family"],"nullable":false},"not":{"type":"boolean"},"filterType":{"anyOf":[{"$ref":"#/components/schemas/SubsetFilterTypes"},{"type":"string","enum":["have_none"]}]},"value":{"items":{"type":"string"},"type":"array","description":"Variant family ids. Present only when filterType='in'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"QueryTermParentGroup":{"properties":{"termType":{"type":"string","enum":["parent_group"],"nullable":false},"not":{"type":"boolean"},"filterType":{"anyOf":[{"$ref":"#/components/schemas/SubsetFilterTypes"},{"type":"string","enum":["have_none"]}]},"value":{"items":{"type":"string"},"type":"array","description":"Variant group ids. Present only when filterType='in'"}},"required":["termType","filterType"],"type":"object","additionalProperties":false},"AttributeAssignmentTypes":{"type":"string","enum":["assigned"],"nullable":false},"QueryTermAttributeFreeText":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["text","multiline"]},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/WildcardFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"},{"$ref":"#/components/schemas/SubsetFilterTypes"}]},"value":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"description":"string for {contains, starts_with, ends_with, is}; string[] for 'in'; omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeFormattedText":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["formatted_text"],"nullable":false},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/WildcardFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"}]},"value":{"type":"string","description":"Omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributePattern":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["pattern"],"nullable":false},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"type":"string","enum":["contains","is"]}]},"value":{"type":"string","description":"Omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"OpenedRangeFilterTypes":{"type":"string","enum":["smaller_or_equal_than","smaller_than","greater_than","greater_or_equal_than"]},"ClosedRangeFilterTypes":{"type":"string","enum":["between"],"nullable":false},"QueryTermAttributeNumeric":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["integer","decimal"]},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/OpenedRangeFilterTypes"},{"$ref":"#/components/schemas/ClosedRangeFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"},{"$ref":"#/components/schemas/SubsetFilterTypes"},{"type":"string","enum":["have_some"]}]},"value":{"anyOf":[{"type":"number","format":"double"},{"type":"string"},{"items":{"type":"number","format":"double"},"type":"array"},{"items":{"type":"string"},"type":"array"}],"description":"Scalar for {is, opened-range}; array for {in, have_some}; omitted for {assigned, defined, between}"},"from":{"anyOf":[{"type":"number","format":"double"},{"type":"string"}],"description":"Present on filterType='between'"},"to":{"anyOf":[{"type":"number","format":"double"},{"type":"string"}],"description":"Present on filterType='between'"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeBoolean":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["boolean"],"nullable":false},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"}]},"value":{"type":"boolean","description":"Omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeAssignmentOnly":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["matrix","column"]},"filterType":{"type":"string","enum":["assigned"],"nullable":false}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeMultiValue":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["dictionary","multi_select"]},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/CollectionFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"}]},"value":{"items":{"type":"string"},"type":"array","description":"Omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeSingleSelect":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["single_select"],"nullable":false},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"},{"type":"string","enum":["have_some"]}]},"value":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"description":"string for 'is'; string[] for 'have_some'; omitted for {assigned, defined}"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeTimestamp":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["date","date_time"]},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/DateFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"}]},"value":{"type":"number","format":"double","description":"Present on {is, date_relative}"},"unit":{"$ref":"#/components/schemas/DateRelativeFilterUnits","description":"Present on 'date_relative'"},"from":{"type":"number","format":"double","description":"Present on 'date_between'"},"to":{"type":"number","format":"double","description":"Present on 'date_between'"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttributeTime":{"properties":{"termType":{"type":"string","enum":["attribute"],"nullable":false},"not":{"type":"boolean"},"context":{"type":"string","description":"Context id"},"attributeId":{"type":"string"},"attributeType":{"type":"string","enum":["time"],"nullable":false},"filterType":{"anyOf":[{"$ref":"#/components/schemas/AttributeAssignmentTypes"},{"$ref":"#/components/schemas/ValueDefinedTypes"},{"$ref":"#/components/schemas/ClosedRangeFilterTypes"},{"$ref":"#/components/schemas/EqualsFilterTypes"}]},"value":{"type":"string","description":"Present on 'is'"},"from":{"type":"string","description":"Present on 'between'"},"to":{"type":"string","description":"Present on 'between'"}},"required":["termType","context","attributeId","attributeType","filterType"],"type":"object","additionalProperties":false},"QueryTermAttribute":{"anyOf":[{"$ref":"#/components/schemas/QueryTermAttributeFreeText"},{"$ref":"#/components/schemas/QueryTermAttributeFormattedText"},{"$ref":"#/components/schemas/QueryTermAttributePattern"},{"$ref":"#/components/schemas/QueryTermAttributeNumeric"},{"$ref":"#/components/schemas/QueryTermAttributeBoolean"},{"$ref":"#/components/schemas/QueryTermAttributeAssignmentOnly"},{"$ref":"#/components/schemas/QueryTermAttributeMultiValue"},{"$ref":"#/components/schemas/QueryTermAttributeSingleSelect"},{"$ref":"#/components/schemas/QueryTermAttributeTimestamp"},{"$ref":"#/components/schemas/QueryTermAttributeTime"}]},"QueryTerm":{"anyOf":[{"$ref":"#/components/schemas/QueryTermId"},{"$ref":"#/components/schemas/QueryTermTextField"},{"$ref":"#/components/schemas/QueryTermNumber"},{"$ref":"#/components/schemas/QueryTermPublishState"},{"$ref":"#/components/schemas/QueryTermState"},{"$ref":"#/components/schemas/QueryTermProductType"},{"$ref":"#/components/schemas/QueryTermValidationStatus"},{"$ref":"#/components/schemas/QueryTermPapiOutOfSync"},{"$ref":"#/components/schemas/QueryTermLastSyncState"},{"$ref":"#/components/schemas/QueryTermLastModifiedBy"},{"$ref":"#/components/schemas/QueryTermAssignedAssets"},{"$ref":"#/components/schemas/QueryTermCounter"},{"$ref":"#/components/schemas/QueryTermDate"},{"$ref":"#/components/schemas/QueryTermProductLabels"},{"$ref":"#/components/schemas/QueryTermAssetLabels"},{"$ref":"#/components/schemas/QueryTermCategory"},{"$ref":"#/components/schemas/QueryTermRelations"},{"$ref":"#/components/schemas/QueryTermCompletenessRequirements"},{"$ref":"#/components/schemas/QueryTermCompletenessScore"},{"$ref":"#/components/schemas/QueryTermParentFamily"},{"$ref":"#/components/schemas/QueryTermParentGroup"},{"$ref":"#/components/schemas/QueryTermAttribute"}]},"QueryGroupAssociationType":{"type":"string","enum":["variant_group","variant","bundle","product_in_bundle"]},"QueryGroupWithAssociation":{"allOf":[{"$ref":"#/components/schemas/QueryGroup"},{"properties":{"association":{"$ref":"#/components/schemas/QueryGroupAssociationType"}},"required":["association"],"type":"object"}]},"MainQueryGroup":{"properties":{"matchRule":{"$ref":"#/components/schemas/MatchRule"},"children":{"items":{"$ref":"#/components/schemas/QueryGroupChild"},"type":"array"},"not":{"type":"boolean"},"contextFallback":{"type":"boolean","description":"The context fallback functionality is true by default and can be disabled using this parameter or by using the context-fallback header. The value from the header will override this parameter."}},"required":["matchRule","children"],"type":"object","additionalProperties":false},"ProductFiltersOrQuery":{"anyOf":[{"$ref":"#/components/schemas/PureProductFilters"},{"$ref":"#/components/schemas/MainQueryGroup"}]},"AffectedEntities":{"properties":{},"additionalProperties":{"type":"number","format":"double"},"type":"object"},"FilterConnectionProductFiltersOrQuery":{"properties":{"type":{"type":"string","enum":["filter"],"nullable":false},"filter":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"affectedEntities":{"$ref":"#/components/schemas/AffectedEntities"}},"required":["type","filter"],"type":"object","additionalProperties":false},"ProductFilterConnection":{"properties":{"type":{"type":"string","enum":["product"],"nullable":false},"connection":{"$ref":"#/components/schemas/FilterConnectionProductFiltersOrQuery"}},"required":["type","connection"],"type":"object","additionalProperties":false},"ProductFiltersOrBqbConnection":{"$ref":"#/components/schemas/ProductFilterConnection"},"IdConnection":{"properties":{"type":{"type":"string","enum":["id"],"nullable":false},"id":{"type":"string"}},"required":["type","id"],"type":"object","additionalProperties":false},"LabelIdConnection":{"properties":{"type":{"type":"string","enum":["label"],"nullable":false},"connection":{"$ref":"#/components/schemas/IdConnection"}},"required":["type","connection"],"type":"object","additionalProperties":false},"AssetIdsConnection":{"properties":{"type":{"type":"string","enum":["asset"],"nullable":false},"connection":{"properties":{"ids":{"items":{"type":"string"},"type":"array"},"type":{"type":"string","enum":["ids"],"nullable":false}},"required":["ids","type"],"type":"object"}},"required":["type","connection"],"type":"object","additionalProperties":false},"AssetFilterConnection":{"properties":{"type":{"type":"string","enum":["asset"],"nullable":false},"connection":{"properties":{"affectedEntities":{"properties":{},"additionalProperties":{"type":"number","format":"double"},"type":"object"},"filter":{"$ref":"#/components/schemas/AssetBulkActionFiltering"},"type":{"type":"string","enum":["filter"],"nullable":false}},"required":["filter","type"],"type":"object"}},"required":["type","connection"],"type":"object","additionalProperties":false},"ConnectedEntity":{"anyOf":[{"$ref":"#/components/schemas/ProductIdsConnection"},{"$ref":"#/components/schemas/ProductFilterConnection"},{"$ref":"#/components/schemas/LabelIdConnection"},{"$ref":"#/components/schemas/AssetIdsConnection"},{"$ref":"#/components/schemas/AssetFilterConnection"}]},"JobError":{"properties":{"message":{"type":"string"},"technicalMessage":{"type":"string"}},"required":["message"],"type":"object","additionalProperties":false},"ExternalJobCreateModel":{"properties":{"externalId":{"type":"string","description":"Custom id for external job. Together with type and organization - it is making unique constraint."},"type":{"type":"string","description":"Identifier for the type of a job. Should be shared between jobs of the same type."},"typeDescription":{"type":"string","description":"User friendly name for a type. Should be shared between jobs of the same type (avoid using 'Sync 20 products' and anything else that would make name dynamic)."},"status":{"$ref":"#/components/schemas/JobStatus","description":"Status of a job to be presented in UI."},"initiator":{"$ref":"#/components/schemas/Initiator","description":"User, service or api client that started the job."},"additionalFields":{"items":{"$ref":"#/components/schemas/AdditionalFieldString"},"type":"array","description":"Additional fields, can be used to present informations in the UI, or just store information if used with hidden option."},"assets":{"items":{"$ref":"#/components/schemas/JobAssetInfo"},"type":"array","description":"Assets reference to a job - please use contain willContainAssets if your job is meant to have assets at one point."},"files":{"items":{"$ref":"#/components/schemas/JobFileOther"},"type":"array","description":"Files references to job - please use contain willContainFiles if your job is meant to have files at one point. Connected links should be public."},"connectedEntities":{"items":{"$ref":"#/components/schemas/ConnectedEntity"},"type":"array","description":"Entities reference connected to a job. Can be updated only on job creation. Should not contain more than 1000 ids."},"errors":{"items":{"$ref":"#/components/schemas/JobError"},"type":"array","description":"Errors connected to a job."},"contexts":{"items":{"type":"string"},"type":"array","description":"Context id of a job."},"progress":{"type":"number","format":"double","description":"Numerical (0-100) progress meter for a job."},"willContainAssets":{"type":"boolean","description":"Helper property used by UI to know that job will have connected assets at one point."},"willContainFiles":{"type":"boolean","description":"Helper property used by UI to know that job will have connected files at one point."}},"required":["externalId","type","typeDescription","status","initiator"],"type":"object","additionalProperties":false,"example":{"progress":0,"status":"WAITING","typeDescription":"Process products","type":"PROCESS_PRODUCTS_JOB","externalId":"1234-abcd-5678","initiator":{"type":"user","id":"<user_id>"}}},"ExternalJobUpdateModel":{"properties":{"status":{"$ref":"#/components/schemas/JobStatus","description":"Status of a job to be presented in UI. Only some status transitions are allowed (only progressive updates)."},"progress":{"type":"number","format":"double","description":"Numerical (0-100) progress meter for a job. Only progressive updates."}},"type":"object","additionalProperties":false},"JobFile":{"$ref":"#/components/schemas/JobFileOther"},"AdditionalField":{"properties":{"fieldName":{"type":"string"},"fieldKey":{"type":"string"},"fieldValue":{"anyOf":[{"type":"string"},{"type":"number","format":"double"}]},"hidden":{"type":"boolean"}},"required":["fieldName","fieldKey","fieldValue"],"type":"object","additionalProperties":false,"example":{"fieldName":"Some field name","fieldKey":"some_field_key","fieldValue":"some field value","hidden":false}},"ExternalJobsServicesAggregation":{"properties":{"_id":{"properties":{"serviceId":{"type":"string"},"organizationId":{"type":"string"}},"required":["serviceId","organizationId"],"type":"object"},"value":{"type":"string"}},"required":["_id","value"],"type":"object","additionalProperties":false},"NotFoundError":{"properties":{"message":{"type":"string"}},"required":["message"],"type":"object","additionalProperties":false},"SortDirection":{"type":"string","enum":["asc","desc"]},"DeleteReport":{"properties":{"dryrun":{"type":"boolean"},"result":{"items":{"properties":{"deleteCount":{"type":"number","format":"double"},"type":{"type":"string"},"name":{"type":"string"}},"required":["deleteCount","type","name"],"type":"object"},"type":"array"}},"required":["dryrun","result"],"type":"object","additionalProperties":false},"ProductFilters":{"properties":{"assetFilters":{"items":{"anyOf":[{"$ref":"#/components/schemas/AssetFilter"},{"$ref":"#/components/schemas/AssetLabelsFilter"}]},"type":"array"},"attributeFilters":{"items":{"$ref":"#/components/schemas/AttributeFilter"},"type":"array"},"attributeIdToSortBy":{"type":"string"},"baseFilters":{"items":{"$ref":"#/components/schemas/BaseFilter"},"type":"array"},"categoryFilters":{"items":{"$ref":"#/components/schemas/CategoryFilter"},"type":"array"},"column":{"$ref":"#/components/schemas/ColumnFieldTypes"},"productCreateDateFilter":{"items":{"$ref":"#/components/schemas/ProductCreateDateFilter"},"type":"array"},"productLastUpdateFilter":{"items":{"$ref":"#/components/schemas/ProductUpdateDateFilter"},"type":"array"},"productLastUpdateRelativeFilter":{"items":{"$ref":"#/components/schemas/RelativeDateFilter"},"type":"array"},"productCreateDateRelativeFilter":{"items":{"$ref":"#/components/schemas/RelativeDateFilter"},"type":"array"},"labelFilters":{"items":{"$ref":"#/components/schemas/LabelFilter"},"type":"array"},"publishStateFilter":{"$ref":"#/components/schemas/PublishStateFilter"},"validationStatusFilter":{"$ref":"#/components/schemas/ValidationStatusFilter"},"relationsFilter":{"$ref":"#/components/schemas/RelationsFilter"},"scoreFilter":{"$ref":"#/components/schemas/ScoreFilter"},"scoreRequirementResultFilters":{"items":{"$ref":"#/components/schemas/ScoreRequirementResultFilters"},"type":"array"},"sortDirection":{"$ref":"#/components/schemas/SortDirectionTypes"},"typeFilter":{"$ref":"#/components/schemas/TypeFilter"},"typesFilter":{"$ref":"#/components/schemas/TypesFilter"},"outOfSyncFilter":{"$ref":"#/components/schemas/OutOfSyncFilter"},"lastSyncStateFilter":{"$ref":"#/components/schemas/LastSyncStateFilter"},"variantFilters":{"items":{"$ref":"#/components/schemas/VariantFilter"},"type":"array"},"groupFilters":{"items":{"$ref":"#/components/schemas/GroupFilter"},"type":"array"},"bundleFilters":{"items":{"$ref":"#/components/schemas/BundleFilter"},"type":"array"},"familyFilters":{"items":{"$ref":"#/components/schemas/FamilyFilter"},"type":"array"}},"type":"object","additionalProperties":false},"PayloadProductFilterConnection":{"properties":{"type":{"type":"string","enum":["filter"],"nullable":false},"filter":{"$ref":"#/components/schemas/ProductFilters"}},"required":["type","filter"],"type":"object","additionalProperties":false},"PayloadProductIdsConnection":{"properties":{"type":{"type":"string","enum":["ids"],"nullable":false},"ids":{"items":{"type":"string"},"type":"array"}},"required":["type","ids"],"type":"object","additionalProperties":false},"SessionFileType":{"type":"string","enum":["CSV","XLSX"]},"PartialUserSetup":{"properties":{"groupingAttribute":{"type":"string"},"editableAttributes":{"items":{"type":"string"},"type":"array"},"linkedProductsAttributesTable":{"items":{"type":"string"},"type":"array"},"variantsAttributesTable":{"items":{"type":"string"},"type":"array"},"attriutesForThumbnail":{"items":{"type":"string"},"type":"array"},"variantAttributes":{"items":{"type":"string"},"type":"array"}},"type":"object","additionalProperties":{}},"CreatePPEExportJobPayload":{"properties":{"productConnection":{"anyOf":[{"$ref":"#/components/schemas/PayloadProductFilterConnection"},{"$ref":"#/components/schemas/PayloadProductIdsConnection"}]},"context":{"type":"string"},"fileName":{"type":"string"},"fileType":{"$ref":"#/components/schemas/SessionFileType"},"userSetup":{"$ref":"#/components/schemas/PartialUserSetup"}},"required":["productConnection","context","fileName","fileType","userSetup"],"type":"object","additionalProperties":false},"ProductArchiveState":{"enum":["ACTIVE","ARCHIVED"],"type":"string"},"ProductStatusChangeAction":{"type":"string","enum":["PUBLISH","UNPUBLISH","ARCHIVE","UNARCHIVE","SYNC","CONNECT","DISCONNECT"]},"PapiProductStatusChangeAction":{"type":"string","enum":["PUBLISH","UNPUBLISH","ARCHIVE","UNARCHIVE"]},"CreateChangeStatusJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"contexts":{"items":{"type":"string"},"type":"array","description":"Context IDs."},"archiveState":{"$ref":"#/components/schemas/ProductArchiveState"},"action":{"anyOf":[{"$ref":"#/components/schemas/ProductStatusChangeAction"},{"$ref":"#/components/schemas/PapiProductStatusChangeAction"}]},"actionName":{"type":"string"}},"required":["filtering","contexts","archiveState","action","actionName"],"type":"object","additionalProperties":false,"example":{"filtering":{"matchRule":"all","children":[{"termType":"name","filterType":"contains","context":"en","value":"shirt"}]},"contexts":["en"],"archiveState":"ACTIVE","action":"PUBLISH","actionName":"Publish"}},"CreateAddLabelJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"context":{"type":"string"},"labelId":{"type":"string"}},"required":["filtering","context","labelId"],"type":"object","additionalProperties":false,"example":{"filtering":{"matchRule":"all","children":[{"termType":"name","filterType":"contains","context":"en","value":"shirt"}]},"context":"en","labelId":"label-uuid-123"}},"CreateProductTouchJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"contexts":{"items":{"type":"string"},"type":"array"}},"required":["filtering","contexts"],"type":"object","additionalProperties":false},"AttributeId":{"type":"string"},"ProductAttributeUpdatePayloadMultivalue":{"properties":{"attributeId":{"$ref":"#/components/schemas/AttributeId"},"action":{"type":"string","enum":["append","deduct"],"description":"Defines the type of update action to perform on the specified attribute. The allowed actions are:\n- 'add': Adds an attribute to the product if it does not already exist. If you just want to have the attribute itself on products, use this option.\n- 'addAndSet': Similar to 'add', but also sets the value of the attribute. If attribute already exists, it will replace the value. Its best action, if you want to have the same attribute value for the whole set of products.\n- 'set': Sets the value of the attribute, replacing any existing value(s). If attribute is not assigned on product, it will be skipped. Use this if you want to update only products that already have the attribute.\n- 'remove': Removes the specified attribute from products.\n- 'append': Appends values to the existing values of the attribute. Only applicable for multi-valued attributes.\n- 'deduct': Deducts values from the existing values of the attribute. Only applicable for multi-valued attributes."},"values":{"items":{"type":"string"},"type":"array","description":"Value represented as string, even for numeric or boolean types. For 'add' and 'addAndSet' actions, if the attribute is multi-valued, the values will be appended to the existing values. If the attribute is single-valued, the value will be set only if the attribute does not have a value yet."},"attributeDefinitionType":{"type":"string","enum":["dictionary","multi_select"]}},"required":["attributeId","action","attributeDefinitionType"],"type":"object","additionalProperties":false},"ProductAttributeUpdatePayloadScalar":{"properties":{"attributeId":{"$ref":"#/components/schemas/AttributeId"},"action":{"type":"string","enum":["add","addAndSet","set","remove"],"description":"Defines the type of update action to perform on the specified attribute. The allowed actions are:\n- 'add': Adds an attribute to the product if it does not already exist. If you just want to have the attribute itself on products, use this option.\n- 'addAndSet': Similar to 'add', but also sets the value of the attribute. If attribute already exists, it will replace the value. Its best action, if you want to have the same attribute value for the whole set of products.\n- 'set': Sets the value of the attribute, replacing any existing value(s). If attribute is not assigned on product, it will be skipped. Use this if you want to update only products that already have the attribute.\n- 'remove': Removes the specified attribute from products.\n- 'append': Appends values to the existing values of the attribute. Only applicable for multi-valued attributes.\n- 'deduct': Deducts values from the existing values of the attribute. Only applicable for multi-valued attributes."},"values":{"items":{"type":"string"},"type":"array","description":"Value represented as string, even for numeric or boolean types. For 'add' and 'addAndSet' actions, if the attribute is multi-valued, the values will be appended to the existing values. If the attribute is single-valued, the value will be set only if the attribute does not have a value yet."}},"required":["attributeId","action"],"type":"object","additionalProperties":false},"ProductAttributeUpdatePayload":{"anyOf":[{"$ref":"#/components/schemas/ProductAttributeUpdatePayloadMultivalue"},{"$ref":"#/components/schemas/ProductAttributeUpdatePayloadScalar"}]},"CreateProductUpdateAttributesJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"context":{"type":"string","description":"Context ID."},"payload":{"items":{"$ref":"#/components/schemas/ProductAttributeUpdatePayload"},"type":"array"}},"required":["filtering","context","payload"],"type":"object","additionalProperties":false,"example":{"filtering":{"matchRule":"all","children":[{"termType":"name","filterType":"contains","context":"en","value":"shirt"}]},"context":"en","payload":[{"attributeId":"attr-uuid-123","action":"set","values":["new value"]}]}},"CreateStartProductsSyncJobPayload":{"properties":{"filtering":{"$ref":"#/components/schemas/ProductFiltersOrQuery"},"contexts":{"items":{"type":"string"},"type":"array"},"archiveState":{"$ref":"#/components/schemas/ProductArchiveState"}},"required":["filtering","contexts"],"type":"object","additionalProperties":false,"example":{"filtering":{"matchRule":"all","children":[{"termType":"name","filterType":"contains","context":"en","value":"shirt"}]},"contexts":["en"]}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://idp.test.bluestonepim.com/op/token","scopes":{"openid profile systemRoles permissions organization email name nickname":"All needed scopes."}}}}}},"info":{"title":"Asynchronous operations","version":"1-apps","description":"<b><h1>Deprecated endpoints:</h1></b><table border=\"1px;\"><tr><th style=\"text-align: center; vertical-align: middle;\"><b><h3>Uri</b></h3></th><th><b>Method</b></th><th><b><h3>Since</h3></b></th><th><b><h3>End of life</h3></b></th></tr></table>"},"openapi":"3.0.0","paths":{"/assets/update-attributes":{"post":{"operationId":"CreateUpdateAssetsAttributesJob","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"}},"summary":"Create a job for updating attributes on assets.","tags":["Assets"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBulkEditRequestPayload"}}}},"x-bluestone-permission":[{"module":"MEDIA","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/assets/delete":{"delete":{"operationId":"CreateNewAssetsDeleteJob","responses":{"204":{"description":"No content"}},"summary":"Create a job for deleting assets.","tags":["Assets"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssetsDeleteJobPayload"}}}},"x-bluestone-permission":[{"module":"MEDIA","accessType":"DELETE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs":{"post":{"operationId":"GetAllJobsWithFilters","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"currentPageJobs":{"items":{"$ref":"#/components/schemas/JobModel"},"type":"array"},"totalNumberOfJobs":{"type":"number","format":"double"}},"required":["currentPageJobs","totalNumberOfJobs"],"type":"object"}}}},"400":{"description":"","content":{"application/json":{"schema":{"properties":{"details":{"type":"string"},"message":{"type":"string"}},"required":["details","message"],"type":"object"}}}}},"summary":"Get filtered jobs.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Filters"}}}}},"get":{"operationId":"GetAllJobs","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"currentPageJobs":{"items":{"$ref":"#/components/schemas/JobModel"},"type":"array"},"totalNumberOfJobs":{"type":"number","format":"double"}},"required":["currentPageJobs","totalNumberOfJobs"],"type":"object"}}}}},"summary":"Get all jobs.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"query","name":"page","required":false,"schema":{"format":"double","type":"number"}},{"in":"query","name":"pageSize","required":false,"schema":{"format":"double","type":"number"}},{"in":"query","name":"sortField","required":false,"schema":{"default":"createdAt","type":"string"}},{"in":"query","name":"fieldOrder","required":false,"schema":{"$ref":"#/components/schemas/SortDirection"}}]}},"/jobs/external-job-types":{"get":{"operationId":"GetAllExternalJobsTypes","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ExternalJobTypeAggregation"},"type":"array"}}}}},"summary":"Get all external jobs types.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[]}},"/jobs/external-job":{"post":{"operationId":"CreateExternalJob","responses":{"201":{"description":"Success"},"409":{"description":"Duplicated"}},"summary":"Create an external job.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalJobCreateModel"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"CREATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/external-job/{type}/{externalId}":{"patch":{"operationId":"UpdateExternalJob","responses":{"200":{"description":"Success"},"404":{"description":"Not found"}},"summary":"Update an external job by type and internal id. Supports partial update.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string"}},{"in":"path","name":"externalId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalJobUpdateModel"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/external-job/{type}/{externalId}/file":{"post":{"operationId":"UpdateExternalJobFiles","responses":{"200":{"description":"Success"},"404":{"description":"Not found"}},"summary":"Add file reference to an external job.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string"}},{"in":"path","name":"externalId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobFileOther"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/external-job/{type}/{externalId}/asset":{"post":{"operationId":"UpdateExternalJobAssets","responses":{"200":{"description":"Success"},"404":{"description":"Not found"}},"summary":"Add asset reference to an external job.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string"}},{"in":"path","name":"externalId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobAssetInfo"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/external-job/{type}/{externalId}/additional-field":{"post":{"operationId":"UpdateExternalJobAdditionalFields","responses":{"200":{"description":"Success"},"404":{"description":"Not found"}},"summary":"Add additional field to an external job.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string"}},{"in":"path","name":"externalId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdditionalField"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/external-job/{type}/{externalId}/error":{"post":{"operationId":"UpdateExternalJobErrors","responses":{"200":{"description":"Success"},"404":{"description":"Not found"}},"summary":"Add error to an external job.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string"}},{"in":"path","name":"externalId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobError"}}}},"x-bluestone-permission":[{"module":"JOB","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/jobs/all-services":{"get":{"operationId":"GetAllServices","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ExternalJobsServicesAggregation"},"type":"array"}}}}},"summary":"Get all external services.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[]}},"/jobs/count":{"get":{"operationId":"GetJobsCount","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"count":{"type":"number","format":"double"}},"required":["count"],"type":"object"}}}}},"summary":"Get jobs count.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[]}},"/jobs/{jobId}":{"get":{"operationId":"GetJob","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobModel"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"summary":"Get job information.","tags":["job"],"security":[{"oauth2":[]}],"parameters":[{"in":"path","name":"jobId","required":true,"schema":{"type":"string"}}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/organization":{"delete":{"operationId":"DeleteOrganization","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteReport"}}}},"403":{"description":"Permission denied"},"404":{"description":"Not found"}},"description":"Delete all data for an organization. This endpoint can only be called if the organization in the context of this request is archived and the user has the system role ORG_DELETE_ADMIN.","tags":["organization"],"security":[{"oauth2":[]}],"parameters":[{"description":"If true, only return the report without deleting anything","in":"query","name":"dryrun","required":false,"schema":{"default":true,"type":"boolean"}}]}},"/ppe/export":{"post":{"operationId":"CreateNewPPEExportJob","responses":{"204":{"description":"No content"}},"summary":"Create a job for exporting products for PPE users.","tags":["PPE"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePPEExportJobPayload"}}}},"x-bluestone-permission":[{"module":"IMPORT","accessType":"WRITE"}],"x-bluestone-allowed-user-types":["STANDARD"]}},"/products/status-change":{"post":{"operationId":"CreateNewProductStatusChangeJob","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"}},"summary":"Create a job for changing product statuses.","tags":["Products"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChangeStatusJobPayload"}}}},"x-bluestone-permission":[{"module":"PRODUCTS","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/products/add-label":{"post":{"operationId":"CreateNewAddLabelJob","responses":{"204":{"description":"No content"}},"summary":"Create a job for adding label to products.","tags":["Products"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAddLabelJobPayload"}}}},"x-bluestone-permission":[{"module":"PRODUCTS","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/products/touch":{"post":{"operationId":"CreateTouchProductsJob","responses":{"204":{"description":"No content"}},"summary":"Create a job for re-syncing products to papi.","tags":["Products"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductTouchJobPayload"}}}},"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/products/update-attributes":{"post":{"operationId":"CreateUpdateProductsAttributesJob","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"}},"description":"Job is defined by different action type, which affects how this job will behave. For an upsert, you need to use 'addAndSet' action type, for updating only existing attributes - 'set', for removing attributes - 'remove' and for appending/deducting values on multi-valued attributes - 'append'/'deduct' action types. Please refer to the documentation of ProductAttributeUpdatePayload for more details on action types and their behavior.","summary":"Create a job for updating attributes on products.","tags":["Products"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductUpdateAttributesJobPayload"}}}},"x-bluestone-permission":[{"module":"PRODUCTS","accessType":"UPDATE"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}},"/products/sync":{"post":{"operationId":"CreateStartSyncSessionJob","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"}},"summary":"Create a job for creating sync session.","tags":["Products"],"security":[{"oauth2":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStartProductsSyncJobPayload"}}}},"x-bluestone-permission":[{"module":"PRODUCTS","accessType":"PUBLISH"}],"x-bluestone-allowed-user-types":["STANDARD","RESTRICTED"]}}},"servers":[{"url":"api.test.bluestonepim.com/async-operations"}],"x-amazon-apigateway-api-key-source":"AUTHORIZER"}