curl --request POST \
--url https://api.fabric.inc/v3/product-jobs/actions/filter-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "ATTRIBUTE",
"match": {
"name": {
"locale": [
"en-US"
],
"op": "CONTAINS",
"value": "size"
},
"target": {
"op": "EQUALS",
"value": "CATEGORY"
},
"isMandatory": {
"op": "EQUALS",
"value": true
}
}
}
'{
"jobId": "877f1f77bcf86cd799439087"
}{
"message": "Request is invalid",
"type": "Bad request",
"errors": [
{
"type": "CLIENT_ERROR",
"message": "Invalid request. Unable to find/create product"
}
]
}{
"type": "UNAUTHORIZED_ERROR",
"message": "Requester is unauthorized"
}{
"type": "REQUEST_DENIED",
"message": "User doesn't have the required permission"
}{
"type": "SERVER_ERROR",
"message": "Internal Server Error"
}Initiate Job to Export Items and Variants
Use this endpoint to trigger a job to export items and variants based on the specified filter conditions.
curl --request POST \
--url https://api.fabric.inc/v3/product-jobs/actions/filter-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "ATTRIBUTE",
"match": {
"name": {
"locale": [
"en-US"
],
"op": "CONTAINS",
"value": "size"
},
"target": {
"op": "EQUALS",
"value": "CATEGORY"
},
"isMandatory": {
"op": "EQUALS",
"value": true
}
}
}
'{
"jobId": "877f1f77bcf86cd799439087"
}{
"message": "Request is invalid",
"type": "Bad request",
"errors": [
{
"type": "CLIENT_ERROR",
"message": "Invalid request. Unable to find/create product"
}
]
}{
"type": "UNAUTHORIZED_ERROR",
"message": "Requester is unauthorized"
}{
"type": "REQUEST_DENIED",
"message": "User doesn't have the required permission"
}{
"type": "SERVER_ERROR",
"message": "Internal Server Error"
}Authorizations
S2S access token (JWT) from fabric Identity service (during login)
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
"517fa9dfd42d8b00g1o3k312"
Unique request ID
"263e731c-45c8-11ed-b878-0242ac120002"
Body
- Option 1
- Option 2
- Option 3
- Option 4
Export job request based on the filter conditions applied for attributes, category, collections, items or bundles.
Response
OK
Job ID for the exported job
24-character system-generated job ID
"877f1f77bcf86cd799439087"
Was this page helpful?
