Productsup

Get what an export template revision changed

Lists what this revision changed compared with the revision before it, by Version History category: template settings, tags and custom form fields, attributes by name, analyzer tests by attribute and test name, and metadata fields. Computed on request from the two revisions' content with the same rules as `changeSummary`, so the counts match the stored ones. `changes` and `changeSummary` are null when there is nothing to compare against: the template's first revision, a revision that replaced a legacy V1 commit revision, and legacy revisions themselves. **Authorization.** Admin, internal user and internal viewer are unrestricted; an external user must own the template.

GET
/V2/export-templates/{id}/revisions/{revisionId}/changes
AuthorizationBearer <token>

Productsup Keycloak JWT bearer token.

In: header

Path Parameters

id*integer

Export template ID

revisionId*string

Revision public id (UUID), as returned by the revisions list.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://export-template-api.productsup.com/V2/export-templates/0/revisions/01980f10-5b04-7845-b0d5-66861c6cabb0/changes"
{
  "changeSummary": {
    "templateDetails": {
      "added": 1,
      "removed": 0,
      "changed": 2
    },
    "attributes": {
      "added": 0,
      "removed": 0,
      "changed": 1
    },
    "analyzerTests": {
      "added": 0,
      "removed": 0,
      "changed": 0
    },
    "metadata": {
      "added": 0,
      "removed": 0,
      "changed": 0
    }
  },
  "changes": {
    "templateDetails": [
      {
        "type": "changed",
        "field": "encoding",
        "attribute": "Price",
        "name": "Numeric Validation"
      }
    ],
    "attributes": [
      {
        "type": "changed",
        "field": "encoding",
        "attribute": "Price",
        "name": "Numeric Validation"
      }
    ],
    "analyzerTests": [
      {
        "type": "changed",
        "field": "encoding",
        "attribute": "Price",
        "name": "Numeric Validation"
      }
    ],
    "metadata": [
      {
        "type": "changed",
        "field": "encoding",
        "attribute": "Price",
        "name": "Numeric Validation"
      }
    ]
  }
}
{
  "errors": {
    "message": "Resource access denied."
  }
}
{
  "errors": {
    "message": "Resource access denied."
  }
}