Elements

Retrieve Elements of a Template

This endpoint retrieves the elements of a specific template. With this elements you can have an ideea what you want to modify in the export to a specific template.

Request

  • Method: GET

  • URL: https://{{restAPIEndpoint}}/v1beta/templates/zdow6r/elements

Response

The response is a JSON object with the following schema:

JSON

{
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "layerType": {
            "type": "string"
          },
          "attributeChangeType": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "slideNumber": {
            "type": "integer"
          }
        }
      }
    }
  }
}

The response body contains an array of elements, where each element object includes the name, layerType, attributeChangeType, value, and slideNumber properties.

Request example:

curl --location 'https://api.creatopy.local/v1beta/templates/zdow6r/elements' \
--header 'Authorization: Bearer eyJhdXRob3JpemF0aW9uIjoiQmVhcmVyIGV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpwWVhRaU9qRTJPREV4TVRVMU56YzVPRElzSW1Oc2FXVnVkRWxrSWpvaU16QmpaalJsTldRdE1XRmxOQzAwT1RrNExUa3lNV010TVdVMU5qZzJOemd4WW1VeEluMC56WlRDX0ZHZW5FdklRZHhZTlk1cW9OWnlxSEdEOUYtTUtpNm1uV0h6V1NvIiwiYWxnIjoiSFMyNTYifQ.eyJjbGllbnRJZCI6IjZhMzhlYTk3LTEyOWQtNDE3MS04NTljLTU1MzVjOWYzZTRlMSJ9.gWvLWJSqk0bSO78t5xxdYcR08KHAyvQtKCxd0mnlK5U'

Response example:

{
    "response": [
        {
            "name": "Image",
            "layerType": "image",
            "attributeChangeType": "SOURCE",
            "value": "ogw3y",
            "slideNumber": 0
        },
        {
            "name": "E-mail",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "oliver.jackson@properties.com",
            "slideNumber": 0
        },
        {
            "name": "Tel Number",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "980.930.7825",
            "slideNumber": 0
        },
        {
            "name": "Name",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "Oliver Jackson",
            "slideNumber": 0
        },
        {
            "name": "Headline",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "Buy or sell with confidence",
            "slideNumber": 0
        },
        {
            "name": "Logo",
            "layerType": "svg",
            "attributeChangeType": "SOURCE",
            "value": "qozx",
            "slideNumber": 0
        },
        {
            "name": "Image 1",
            "layerType": "image",
            "attributeChangeType": "SOURCE",
            "value": "ogw3y",
            "slideNumber": 1
        },
        {
            "name": "Headline 1",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "Buy or sell with confidence",
            "slideNumber": 1
        },
        {
            "name": "Logo 1",
            "layerType": "svg",
            "attributeChangeType": "SOURCE",
            "value": "qozx",
            "slideNumber": 1
        },
        {
            "name": "E-mail 1",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "oliver.jackson@properties.com",
            "slideNumber": 1
        },
        {
            "name": "Tel Number 1",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "980.930.7825",
            "slideNumber": 1
        },
        {
            "name": "Name 1",
            "layerType": "text",
            "attributeChangeType": "LABEL",
            "value": "Oliver Jackson",
            "slideNumber": 1
        }
    ]
}

Last updated