Update Source
post
https://api.flxpoint.com/source/{sourceId}/auto-create-products-and-listingsUse this when you want to create source data through the API.
๐ X-API-TOKENโฑ 2 req/sToken: Account ยท Source ยท Channel
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Update settings for a source that control the automatic creation of products and listings.
This endpoint requires account level privileges
Request
Body
application/jsonenabledbooleanproductMappingTemplateIdintegerproductBuilderIdintegerautoPublishListingsbooleanchannelsarray[SourceAutoCreateProductsAndListingsChannel]enabledbooleanrequiredchannelIdintegerrequiredmappingTemplateIdintegerExample request
post
/source/{sourceId}/auto-create-products-and-listingscurl -X POST "https://api.flxpoint.com/source/{sourceId}/auto-create-products-and-listings" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"productMappingTemplateId": 0,
"productBuilderId": 0,
"autoPublishListings": true,
"channels": [
{
"enabled": true,
"channelId": 0,
"mappingTemplateId": 0
}
]
}'Example body ยท application/json
{
"enabled": true,
"productMappingTemplateId": 0,
"productBuilderId": 0,
"autoPublishListings": true,
"channels": [
{
"enabled": true,
"channelId": 0,
"mappingTemplateId": 0
}
]
}Responses
200OKapplication/json
enabledbooleanproductMappingTemplateIdintegerproductBuilderIdintegerautoPublishListingsbooleanchannelsarray[SourceAutoCreateProductsAndListingsChannel]enabledbooleanrequiredchannelIdintegerrequiredmappingTemplateIdintegerExample response
{
"enabled": true,
"productMappingTemplateId": 0,
"productBuilderId": 0,
"autoPublishListings": true,
"channels": [
{
"enabled": true,
"channelId": 0,
"mappingTemplateId": 0
}
]
}400Bad Request
No schema documented for this status.
404Not Found
No schema documented for this status.
OpenAPI fragment
{
"post": {
"summary": "Update Source",
"description": "Update settings for a source that control the automatic creation of products and listings. \n\nThis endpoint requires account level privileges",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SourceAutoCreateProductsAndListings"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SourceAutoCreateProductsAndListings"
}
}
}
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight