JavaScript
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({attributeCode: '<string>', all: true})
};
fetch('https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"attributeCode\": \"<string>\",\n \"all\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"attributeCode\": \"<string>\",\n \"all\": true\n}")
.asString();Enrichment
Post apiv1pimproducts enrichment accept
POST
/
api
/
v1
/
pim
/
products
/
{productId}
/
enrichment
/
{suggestionId}
/
accept
JavaScript
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({attributeCode: '<string>', all: true})
};
fetch('https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"attributeCode\": \"<string>\",\n \"all\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://app.facetflux.com/api/v1/pim/products/{productId}/enrichment/{suggestionId}/accept")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"attributeCode\": \"<string>\",\n \"all\": true\n}")
.asString();⌘I