{ "opencollection": "1.0.0", "info": { "name": "Marketo Engage Rest Approve Forms API", "version": "1.0" }, "items": [ { "info": { "name": "Forms", "type": "folder" }, "items": [ { "info": { "name": "Marketo Get Form by Name", "type": "http" }, "http": { "method": "GET", "url": "https://localhost:8080/rest/asset/v1/form/byName.json", "params": [ { "name": "name", "value": "", "type": "query", "description": "Name of the form" }, { "name": "status", "value": "", "type": "query", "description": "Status filter for draft or approved versions" }, { "name": "folder", "value": "", "type": "query", "description": "JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'" } ] }, "docs": "Retrieves a form record by its name. Required Permissions: Read-Only Assets, Read-Write Assets" }, { "info": { "name": "Marketo Add Form Field Visibility Rules", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:formId/field/:fieldId/visibility.json", "params": [ { "name": "formId", "value": "", "type": "path", "description": "formId" }, { "name": "fieldId", "value": "", "type": "path", "description": "fieldId" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Adds a visibility rule to the target form field. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Get Form By Id", "type": "http" }, "http": { "method": "GET", "url": "https://localhost:8080/rest/asset/v1/form/: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 a form record by its id. Required Permissions: Read-Only Assets, Read-Write Assets" }, { "info": { "name": "Marketo Update Form Metadata", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Updates the metadata of the target form. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Approve Form Draft", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/approveDraft.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ] }, "docs": "Approves the current draft of the form. This will delete the current approved version of the form. Required Permissions: Approve Assets" }, { "info": { "name": "Marketo Clone Form", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/clone.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Clones the target form. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Delete Form", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/delete.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ] }, "docs": "Deletes the target form. Forms which are in use by landing pages may not be deleted until they are removed from all landing pages. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Discard Form Draft", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/discardDraft.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ] }, "docs": "Discards the current draft of the form. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Update Submit Button", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/submitButton.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Updates the submit button configuration for the target form. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Get Thank You Page by Form Id", "type": "http" }, "http": { "method": "GET", "url": "https://localhost:8080/rest/asset/v1/form/:id/thankYouPage.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" }, { "name": "status", "value": "", "type": "query", "description": "Status filter for draft or approved versions" } ] }, "docs": "Returns the thank you page configuration for a given form. Required Permissions: Read-Only Assets, Read-Write Assets" }, { "info": { "name": "Marketo Update Thank You Page", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/form/:id/thankYouPage.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Updates the thank you page configuration for a given form. This update is destructive and the resulting draft will not have any memory of the previous configuration. Required Permissions: Read-Only Assets, Read-Write Assets" }, { "info": { "name": "Marketo Get Forms", "type": "http" }, "http": { "method": "GET", "url": "https://localhost:8080/rest/asset/v1/forms.json", "params": [ { "name": "status", "value": "", "type": "query", "description": "Status filter for draft or approved versions" }, { "name": "folder", "value": "", "type": "query", "description": "JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'" }, { "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 form records from the target instance. Required Permissions: Read-Only Assets, Read-Write Assets" }, { "info": { "name": "Marketo Create Form", "type": "http" }, "http": { "method": "POST", "url": "https://localhost:8080/rest/asset/v1/forms.json", "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Creates a new form. Required Permissions: Read-Write Assets" }, { "info": { "name": "Marketo Get Form Used By", "type": "http" }, "http": { "method": "GET", "url": "https://localhost:8080/rest/asset/v1/form/:id/usedBy.json", "params": [ { "name": "id", "value": "", "type": "path", "description": "Id of the form" }, { "name": "offset", "value": "", "type": "query", "description": "Integer offset for paging" }, { "name": "maxReturn", "value": "", "type": "query", "description": "Maximum number of assets to return. Max 200, default 20" } ] }, "docs": "Returns a list of asset records which depend on a given form. Required Permissions: Read-Only Assets, Read-Write Assets" } ] } ], "bundled": true }