openapi: 3.0.1 info: title: Marketo Engage Rest Approve Clone.json 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: Clone.json paths: /rest/asset/v1/snippet/{id}/clone.json: post: tags: - Clone.json summary: Marketo Clone Snippet description: 'Clones the target snippet. Required Permissions: Read-Write Assets' operationId: cloneSnippetUsingPOST parameters: - name: id in: path description: id required: true schema: type: integer format: int32 requestBody: description: cloneSnippetRequest content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/CloneSnippetRequest' required: false responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfSnippetResponse' x-codegen-request-body-name: cloneSnippetRequest 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 SnippetResponse: required: - folder - status type: object properties: createdAt: type: string description: Datetime the asset was created format: date-time description: type: string description: Description of the asset folder: $ref: '#/components/schemas/SnippetFolder' id: type: integer description: Id of the asset format: int64 name: type: string description: Name of the asset status: type: string description: Status filter for draft or approved versions updatedAt: type: string description: Datetime the asset was most recently updated format: date-time url: type: string description: Url of the asset in the Marketo UI workspace: type: string description: Name of the workspace CloneSnippetRequest: required: - folder - name type: object properties: name: type: string description: Name for the cloned snippet folder: $ref: '#/components/schemas/Folder' description: type: string description: Description of the cloned snippet ResponseOfSnippetResponse: type: object properties: errors: type: array items: $ref: '#/components/schemas/Error' requestId: type: string result: type: array items: $ref: '#/components/schemas/SnippetResponse' success: type: boolean warnings: type: array items: type: string SnippetFolder: required: - folderName - type - value type: object properties: value: type: integer description: Id of the folder format: int32 type: type: string description: Type of folder enum: - Folder - Program folderName: type: string description: Name of folder description: JSON representation of a folder Error: required: - code - message type: object properties: code: type: string description: Error code of the error. See full list of error codes here message: type: string description: Message describing the cause of the error x-original-swagger-version: '2.0'