openapi: 3.0.1 info: title: Marketo Engage Rest Approve Content.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: Content.json paths: /rest/asset/v1/snippet/{id}/content.json: get: tags: - Content.json summary: Marketo Get Snippet Content description: 'Retrieves the content of the target snippet. Required Permissions: Read-Only Assets, Read-Write Assets' operationId: getSnippetContentByIdUsingGET parameters: - name: id in: path description: id required: true schema: type: integer format: int32 - name: status in: query description: Status filter for draft or approved versions schema: type: string enum: - approved - draft responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfSnippetContentResponse' post: tags: - Content.json summary: Marketo Update Snippet Content description: 'Updates the content of the target snippet. Required Permissions: Read-Write Assets' operationId: updateContentUsingPOST_1 parameters: - name: id in: path description: id required: true schema: type: integer format: int32 - name: content in: query description: Content of the snippet required: true schema: type: string - name: type in: query description: Type of snippet content required: true schema: type: string enum: - DynamicContent - HTML - Text responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfIdResponse' components: schemas: ResponseOfSnippetContentResponse: type: object properties: errors: type: array items: $ref: '#/components/schemas/Error' requestId: type: string result: type: array items: $ref: '#/components/schemas/SnippetContentResponse' success: type: boolean warnings: type: array items: type: string SnippetContentResponse: required: - type type: object properties: content: type: string description: Content of the snippet type: type: string description: Type of snippet content 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 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 here message: type: string description: Message describing the cause of the error x-original-swagger-version: '2.0'