Marketo Id API
The Id API from Marketo — 5 operation(s) for id.
The Id API from Marketo — 5 operation(s) for id.
openapi: 3.0.1
info:
title: Marketo Engage Rest Approve Id API
description: Marketo exposes a REST API which allows for remote execution of many of the systems capabilities. From creating programs to bulk lead import, there are many options which allow fine-grained control of a Marketo instance.
termsOfService: https://www.adobe.com/legal.html
contact:
name: Adobe Developer Relations
url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
email: developerfeedback@marketo.com
license:
name: API License Agreement
url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license
version: '1.0'
servers:
- url: https://localhost:8080/
tags:
- name: Id
paths:
/rest/asset/v1/smartList/{id}.json:
get:
tags:
- Id
summary: Marketo Get Smart List by Id
description: 'Retrieves a Smart List record by its id. Required Permissions: Read-Asset or Read-Write Asset'
operationId: getSmartListByIdUsingGET
parameters:
- name: id
in: path
description: Id of the smart list to retrieve
required: true
schema:
type: integer
format: int64
- name: includeRules
in: query
description: Set true to populate smart list rules. Default false
schema:
type: boolean
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfSmartListResponseWithRules'
/rest/asset/v1/smartList/{id}/delete.json:
post:
tags:
- Id
summary: Marketo Delete Smart List
description: 'Deletes the designated Smart List. Required Permissions: Read-Write Asset'
operationId: deleteSmartListByIdUsingPOST
parameters:
- name: id
in: path
description: Id of the smart list to delete
required: true
schema:
type: integer
format: int64
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfIdResponse'
/rest/asset/v1/smartList/{id}/clone.json:
post:
tags:
- Id
summary: Marketo Clone Smart List
description: 'Clones the designated Smart List. Required Permissions: Read-Write Asset'
operationId: cloneSmartListUsingPOST
parameters:
- name: id
in: path
description: Id of smart list to clone
required: true
schema:
type: integer
format: int32
requestBody:
description: cloneSmartListRequest
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CloneSmartListRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfSmartListResponse'
x-codegen-request-body-name: cloneSmartListRequest
/rest/asset/v1/staticList/{id}.json:
get:
tags:
- Id
summary: Marketo Get Static List by Id
description: 'Retrieves a Static List record by its id. Required Permissions: Read-Asset or Read-Write Asset'
operationId: getStaticListByIdUsingGET
parameters:
- name: id
in: path
description: Id of the static list to retrieve
required: true
schema:
type: integer
format: int64
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfStaticListResponse'
post:
tags:
- Id
summary: Marketo Update Static List Metadata
description: 'Updates the metadata of a static list asset. Required Permissions: Read-Write Assets'
operationId: updateStaticListUsingPOST
parameters:
- name: id
in: path
description: Id of static list to update
required: true
schema:
type: integer
format: int32
requestBody:
description: updateStaticListRequest
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/UpdateStaticListRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfStaticListResponse'
x-codegen-request-body-name: updateStaticListRequest
/rest/asset/v1/staticList/{id}/delete.json:
post:
tags:
- Id
summary: Marketo Delete Static List
description: 'Deletes the designated Static List. Required Permissions: Read-Write Asset'
operationId: deleteStaticListByIdUsingPOST
parameters:
- name: id
in: path
description: Id of the static list to delete
required: true
schema:
type: integer
format: int64
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfIdResponse'
components:
schemas:
Folder:
required:
- id
- type
type: object
properties:
id:
type: integer
description: Id of the folder
format: int32
type:
type: string
description: Type of folder
enum:
- Folder
- Program
description: JSON representation of a folder
StaticListResponse:
required:
- createdAt
- description
- folder
- id
- name
- updatedAt
- url
- workspace
type: object
properties:
id:
type: integer
description: Id of the static list
format: int64
name:
type: string
description: Name of the static list
description:
type: string
description: Description of the static list
createdAt:
type: string
description: Datetime the static list was created
format: date-time
updatedAt:
type: string
description: Datetime the static list was most recently updated
format: date-time
url:
type: string
description: Url of the static list in the Marketo UI
folder:
$ref: '#/components/schemas/Folder'
workspace:
type: string
description: Name of the workspace
computedUrl:
type: string
SmartListConditions:
required:
- activityAttributeId
- activityAttributeName
- isPrimary
- operator
- values
type: object
properties:
activityAttributeId:
type: integer
description: Id of the activity attribute
format: int32
activityAttributeName:
type: string
description: Name of activity attribute
operator:
type: string
description: Value of operator
values:
type: array
description: List of values
items:
type: string
isPrimary:
type: boolean
description: Whether the condition is primary or not (first condition of the smart list)
description: JSON representation of smart list conditions
ResponseOfStaticListResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/StaticListResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
ResponseOfSmartListResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/SmartListResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
CloneSmartListRequest:
required:
- folder
- name
type: object
properties:
name:
type: string
description: Name for the cloned smart list
folder:
$ref: '#/components/schemas/Folder'
description:
type: string
description: Description of the cloned smart list
SmartListRules:
required:
- filterMatchType
- filters
- triggers
type: object
properties:
filterMatchType:
type: string
description: Smart list filter match type (rule logic)
enum:
- All
- Any
- Advanced
triggers:
type: array
description: List of smart list triggers
items:
type: string
filters:
type: array
description: List of smart list filters
items:
$ref: '#/components/schemas/SmartListFilters'
description: JSON representation of smart list rules
SmartListFilters:
required:
- conditions
- id
- name
- operator
- ruleType
- ruleTypeId
type: object
properties:
id:
type: integer
description: Id of the filter
format: int32
name:
type: string
description: Name of filter
ruleTypeId:
type: integer
description: Id of the rule type
format: int32
ruleType:
type: string
description: Name of rule type
operator:
type: string
description: Name of operator
conditions:
type: array
description: List of smart list conditions
items:
$ref: '#/components/schemas/SmartListConditions'
description: JSON representation of smart list filters
SmartListResponseWithRules:
required:
- createdAt
- description
- folder
- id
- name
- updatedAt
- url
- workspace
type: object
properties:
id:
type: integer
description: Id of the smart list
format: int64
name:
type: string
description: Name of the smart list
description:
type: string
description: Description of the smart list
createdAt:
type: string
description: Datetime the smart list was created
format: date-time
updatedAt:
type: string
description: Datetime the smart list was most recently updated
format: date-time
url:
type: string
description: Url of the smart list in the Marketo UI
folder:
$ref: '#/components/schemas/Folder'
workspace:
type: string
description: Name of the workspace
rules:
$ref: '#/components/schemas/SmartListRules'
ResponseOfIdResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/IdResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
UpdateStaticListRequest:
type: object
properties:
description:
type: string
description: Description of the static list
name:
type: string
description: Name of the static list
SmartListResponse:
required:
- createdAt
- description
- folder
- id
- name
- updatedAt
- url
- workspace
type: object
properties:
id:
type: integer
description: Id of the smart list
format: int64
name:
type: string
description: Name of the smart list
description:
type: string
description: Description of the smart list
createdAt:
type: string
description: Datetime the smart list was created
format: date-time
updatedAt:
type: string
description: Datetime the smart list was most recently updated
format: date-time
url:
type: string
description: Url of the smart list in the Marketo UI
folder:
$ref: '#/components/schemas/Folder'
workspace:
type: string
description: Name of the workspace
IdResponse:
required:
- id
type: object
properties:
id:
type: integer
description: Id of the asset
format: int32
Error:
required:
- code
- message
type: object
properties:
code:
type: string
description: Error code of the error. See full list of error codes <a href="https://developers.marketo.com/rest-api/error-codes/">here</a>
message:
type: string
description: Message describing the cause of the error
ResponseOfSmartListResponseWithRules:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/SmartListResponseWithRules'
success:
type: boolean
warnings:
type: array
items:
type: string
x-original-swagger-version: '2.0'