const mappings = await client.hostedExtractors.mappings.create([
{
externalId: 'my-mapping',
mapping: { expression: '{ "value": input.value }' },
input: { type: 'csv', delimiter: ';' },
published: true,
},
]);
await client.hostedExtractors.mappings.delete(
[{ externalId: 'my-mapping' }],
{ ignoreUnknownIds: true, force: true }
);
const mappings = await client.hostedExtractors.mappings
.list()
.autoPagingToArray({ limit: Infinity });
Optionalquery: FilterQueryconst mappings = await client.hostedExtractors.mappings.retrieve([
{ externalId: 'my-mapping' },
]);
const mappings = await client.hostedExtractors.mappings.update([
{
externalId: 'my-mapping',
update: { published: { set: false }, input: { setNull: true } },
},
]);
Shared behaviour of the hosted extractor sub-APIs: they identify items by external ID, use
byIds(notbyids), and accept at most 10 items per create or update request and 100 per retrieve or delete request.