List export templates
Lists the published export templates the caller may use, for example to choose a template when adding an export. Each template returns its published values: never-published and deleted templates are left out, and unpublished changes don't show. **Who sees what.** - Admin, internal users and internal viewers see every published template: `global`, `custom` and `internal`. - External users see the `global` templates and the `custom` templates of their accounts (every account they belong to; for a machine token, the token's account). They never see `internal` templates. **Visibility.** `global` = available to every account. `custom` = assigned to an account, project or site (`assignedTo`). `internal` = not global and assigned to nothing; for Productsup only. **usedIn.** Lists the templates used on one site (`usedIn[siteId]`), on the sites of one project (`usedIn[projectId]`) or on the sites of one account (`usedIn[accountId]`), whatever their visibility, because they are already there. External users may only ask for their own accounts and the sites and projects of their accounts; any other id returns 403. Send exactly one of the three. **assignedTo.** Lists the `custom` templates assigned to a site (`assignedTo[siteId]`), to a project but not to one of its sites (`assignedTo[projectId]`), or to an account but not to one of its projects or sites (`assignedTo[accountId]`). Send one, two or all three; a template matching any of them is returned. Add `includeGlobal=true` to get the `global` templates in the same list. Sending a site with its project and its account and `includeGlobal=true` returns what can be added to that site, as on the platform's "Add export" page. External users still only see the custom templates of their own accounts, and `assignedTo[accountId]` must be one of them (403 otherwise). **Popularity** is the number of different accounts that use the template on a site. The list is sorted by popularity (most used first) unless `sort=name`. The fields `confidence`, `channelOwner`, `lastReviewedOn` and `internalDocLink` are returned to admin, internal users and internal viewers only.
Productsup Keycloak JWT bearer token.
In: header
Query Parameters
Part of the template name, case-insensitive.
length <= 255Category slugs, for example search-engines. A template matches when it is in any of them. Templates without a category are in other.
Admin, internal users and internal viewers only; external users get 403.
Only the templates used on this site. Send only one of the usedIn ids.
1 <= valueOnly the templates used on the sites of this account. Send only one of the usedIn ids.
1 <= valueOnly the templates used on the sites of this project. Send only one of the usedIn ids. Covers the sites whose project ETM knows: from the platform's project-id in its channel events, and from the assignment backfill.
1 <= valueOnly the custom templates assigned to this site. Can be sent with the other assignedTo ids; a template matching any of them is returned.
1 <= valueOnly the custom templates assigned to this project and to none of its sites. Can be sent with the other assignedTo ids; a template matching any of them is returned.
1 <= valueOnly the custom templates assigned to this account and to none of its projects or sites. External users: one of their own accounts, otherwise 403. Can be sent with the other assignedTo ids; a template matching any of them is returned.
1 <= valueWith assignedTo: also return the global templates. Without assignedTo the list already has them.
falsepopularity (most used first, then name A–Z), name (A–Z) or -name (Z–A).
"popularity""popularity" | "name" | "-name"Zero-based index of the first item to return.
00 <= valueMaximum number of items to return per page. Values above 1000 are silently clamped to 1000.
501 <= value <= 1000Response Body
application/json
application/json
application/json
curl -X GET "https://export-template-api.productsup.com/V2/export-templates"{
"data": [
{
"id": 5220,
"name": "Google Shopping",
"logoUrl": "string",
"description": "string",
"categories": [
{
"id": 0,
"name": "string",
"slug": "string",
"description": "string"
}
],
"countries": [
{
"code": "de",
"name": "string",
"region": "string"
}
],
"visibility": "global",
"assignedTo": {
"accountId": 0,
"projectId": 0,
"siteId": 0
},
"type": "api",
"popularity": 0,
"exportType": "standard",
"attributesCount": 0,
"supportsDelta": true,
"lastPublishedAt": "2019-08-24T14:15:22Z",
"featured": true,
"priority": 0,
"brand": {
"id": 0,
"name": "string"
},
"marketingTitle": "string",
"websiteLink": "string",
"landingPageLink": "string",
"helpCenterLink": "string",
"specificationsLink": "string",
"confidence": "string",
"channelOwner": "string",
"lastReviewedOn": "string",
"internalDocLink": "string"
}
],
"pagination": {
"firstResult": 0,
"maxResults": 50,
"count": 5,
"total": 5
}
}{
"errors": {
"message": "Resource access denied."
}
}{
"errors": {
"message": "Resource access denied."
}
}How is this guide?