Create Mapping Set
post
https://api.flxpoint.com/mapping-setUse this when you want to create mappingset 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.
Create a mapping set.
Request
Body
application/jsonidintegeraccountIdintegercreatedByUserIdintegercreatedAtstringnamestringrequireddescriptionstringtotalItemsintegerexclusionListForSourceIdintegerexclusionTypestringRequired when 'exclusionListForSourceId' is provided. Specifies the type of exclusion being applied. Use 'sku', 'brand', or 'category'.
allowed
skubrandcategoryExample request
post
/mapping-setcurl -X POST "https://api.flxpoint.com/mapping-set" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 0,
"accountId": 0,
"createdByUserId": 0,
"createdAt": "string",
"name": "string",
"description": "string",
"totalItems": 0,
"exclusionListForSourceId": 0,
"exclusionType": "sku"
}'Example body ยท application/json
{
"id": 0,
"accountId": 0,
"createdByUserId": 0,
"createdAt": "string",
"name": "string",
"description": "string",
"totalItems": 0,
"exclusionListForSourceId": 0,
"exclusionType": "sku"
}Responses
200OKapplication/json
idintegeraccountIdintegercreatedByUserIdintegercreatedAtstringnamestringrequireddescriptionstringtotalItemsintegerexclusionListForSourceIdintegerexclusionTypestringRequired when 'exclusionListForSourceId' is provided. Specifies the type of exclusion being applied. Use 'sku', 'brand', or 'category'.
allowed
skubrandcategoryExample response
{
"id": 0,
"accountId": 0,
"createdByUserId": 0,
"createdAt": "string",
"name": "string",
"description": "string",
"totalItems": 0,
"exclusionListForSourceId": 0,
"exclusionType": "sku"
}OpenAPI fragment
{
"post": {
"summary": "Create Mapping Set",
"description": "Create a mapping set.",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MappingSet"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MappingSet"
}
}
}
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight