{
  "opencollection": "1.0.0",
  "info": {
    "name": "Marketo Engage Rest Approve Snippets API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Snippets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Marketo Get Snippet by Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Status filter for draft or approved versions"
              }
            ]
          },
          "docs": "Retrieves the target snippet record. Required Permissions: Read-Only Assets, Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Update Snippet Metadata",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Updates the metadata of the snippet. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Approve Snippet Draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/approveDraft.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ]
          },
          "docs": "Approves the current draft of the snippet. Required Permissions: Approve Assets"
        },
        {
          "info": {
            "name": "Marketo Clone Snippet",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/clone.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Clones the target snippet. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Get Snippet Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/content.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Status filter for draft or approved versions"
              }
            ]
          },
          "docs": "Retrieves the content of the target snippet. Required Permissions: Read-Only Assets, Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Update Snippet Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/content.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "content",
                "value": "",
                "type": "query",
                "description": "Content of the snippet"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Type of snippet content"
              }
            ]
          },
          "docs": "Updates the content of the target snippet. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Delete Snippet",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/delete.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ]
          },
          "docs": "Deletes the target snippet. The snippet may not be in use by emails or landing pages. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Discard Snippet Draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/discardDraft.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ]
          },
          "docs": "Discards the current draft of the snippet. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Get Dynamic Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/dynamicContent.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Status filter for draft or approved versions"
              }
            ]
          },
          "docs": "Gets the list of dynamic content sections for the snippet. Required Permissions: Read-Only Assets, Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Update Snippet Dynamic Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/dynamicContent/:segmentId.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "segmentId",
                "value": "",
                "type": "path",
                "description": "segmentId"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Updates the target dynamic content section. Required Permissions: Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Unapprove Snippet",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippet/:id/unapprove.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ]
          },
          "docs": "Unapproves the current version of the snippet. The snippet may not be in use. The snippet will be reverted to a draft-only state. Required Permissions: Approve Assets"
        },
        {
          "info": {
            "name": "Marketo Get Snippets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8080/rest/asset/v1/snippets.json",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Status filter for draft or approved versions"
              },
              {
                "name": "maxReturn",
                "value": "",
                "type": "query",
                "description": "Maximum number of channels to return. Max 200, default 20"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Integer offset for paging"
              }
            ]
          },
          "docs": "Retrieves a list of accessible snippets from the target instance. Required Permissions: Read-Only Assets, Read-Write Assets"
        },
        {
          "info": {
            "name": "Marketo Create Snippet",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8080/rest/asset/v1/snippets.json",
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Creates a new snippet. Required Permissions: Read-Write Assets"
        }
      ]
    }
  ],
  "bundled": true
}