Productsup

Get what the export template draft changes

Lists what the current draft changes compared with the active revision, by Version History category, with the same rules as `changeSummary`. A draft with no edits lists nothing. `changes` and `changeSummary` are null when the template has no active revision to compare against, or its active revision is a legacy V1 commit revision. **Authorization.** Admin, internal user and internal viewer are unrestricted; an external user must own the template.

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

Productsup Keycloak JWT bearer token.

In: header

Path Parameters

id*integer

Export template ID

Response Body

application/json

application/json

application/json

curl -X GET "https://export-template-api.productsup.com/V2/export-templates/0/draft/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."
  }
}