Import Schemas (1.0.0)
Download OpenAPI specification:Download
Import Schemas API
createImportSchema
Create new schema object containing jsonschema of version 7. This schema is used during import process to validate entity object before persisting it in catalog indexes. Valid jsonschema file
- is validated against meta schema
- references only properties mentioned in whitelist
- #ref points only to local resource, e.g. external resources are not allowed.
Here is list of whitelisted fields that can be used in schema (case sensitive):
- brand (string, may be null)
- title (string, may be null)
- caption (string, may be null)
- description (string, may be null)
- keywords (array of strings, may be null)
- product_id (string, max size 255, cannot contain characters
=%
) - variant_group_id (string, max size 255)
- template_id (string, may be null)
- tax_class_id (string, may be null)
- schedule_b (string, may be null, definition)
- product_hts_number (string, may be null)
- google_category (string, may be null)
- preorder_start (time RFC 3339 string, may be null)
- online_to (time RFC 3339 string, may be null)
- online_from (time RFC 3339 string, may be null)
- country_of_origin (string, may be null)
- material (string, may be null)
- extended_attributes (array of attributes, may be null)
- name (string, may be null)
- value (string, may be null)
- external_identifiers (array of identifiers, may be null)
- type (string, may be null)
- value (string, may be null)
- filterable_attributes (array of attributes, may be null)
- name (string, may be null)
- value (string, may be null)
- searchable_attributes (object contain key value string pairs, may be null )
- [string] : [string] (name of searchable attribute)
- shipping_dimension_unit (string, may be null)
- shipping_dimension_width (number, may be null)
- shipping_dimension_height (number, may be null)
- shipping_dimension_length (number, may be null)
- shipping_weight_value (number, may be null)
- shipping_weight_unit (string, may be null)
- variation_additional_1_name (string, may be null)
- variation_additional_2_name (string, may be null)
- variation_additional_1_value (string, may be null)
- variation_additional_2_value (string, may be null)
- variation_color_value (string, may be null)
- variation_size_gender (string, may be null)
- variation_size_system (string, may be null)
- variation_size_value (string, may be null)
- variation_size_type (string, may be null)
Authorizations:
query Parameters
id | string (ImportSchemaID) [ 1 .. 36 ] characters ^[a-zA-Z0-9_-]+$ default generated id is returned |
entity | string (ImportEntity) non-empty Value: "PRODUCTS" default id PRODUCTS |
Request Body schema: application/schema+json
Responses
Request samples
- Payload
"string"
Response samples
- 201
- 400
- 409
- 500
- default
{- "id": "string",
- "last_updated_at": "2020-01-01T00:00:00+00:00"
}
showImportSchema
Authorizations:
path Parameters
id required | string (ImportSchemaID) [ 1 .. 36 ] characters ^[a-zA-Z0-9_-]+$ ID of the import schema. It must be unique per tenant and contain only ASCII characters. F.e UUID4, human readable name without spaces |
Responses
Response samples
- 200
- 400
- 404
- 500
- default
{ }
updateImportSchema
Authorizations:
path Parameters
id required | string (ImportSchemaID) [ 1 .. 36 ] characters ^[a-zA-Z0-9_-]+$ ID of the import schema. It must be unique per tenant and contain only ASCII characters. F.e UUID4, human readable name without spaces |
Request Body schema: application/schema+json
Responses
Request samples
- Payload
"string"
Response samples
- 400
- 404
- 500
- default
{- "request_id": "string",
- "type": "/some/uri-reference",
- "title": "some title for the error situation",
- "status": 100,
- "detail": "some description for the error situation",
- "instance": "/some/uri-reference#specific-occurrence-context"
}
destroyImportSchema
Authorizations:
path Parameters
id required | string (ImportSchemaID) [ 1 .. 36 ] characters ^[a-zA-Z0-9_-]+$ ID of the import schema. It must be unique per tenant and contain only ASCII characters. F.e UUID4, human readable name without spaces |
Responses
Response samples
- 500
- default
{- "request_id": "string",
- "type": "/some/uri-reference",
- "title": "some title for the error situation",
- "status": 100,
- "detail": "some description for the error situation",
- "instance": "/some/uri-reference#specific-occurrence-context"
}