openapi: 3.0.1
info:
title: Marketo Engage Rest Approve File Contents 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: File Contents
paths:
/rest/asset/v1/file/{id}/content.json:
post:
tags:
- File Contents
summary: Marketo Update File Content
description: 'Replaces the current content of the file with the included payload. Required Permissions: Read-Write Assets'
operationId: updateContentUsingPOST
parameters:
- name: id
in: path
description: Id for file in database
required: true
schema:
type: integer
format: int32
requestBody:
description: request
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/UpdateFileContentRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfFileResponse'
x-codegen-request-body-name: request
components:
schemas:
UpdateFileContentRequest:
required:
- file
- id
type: object
properties:
file:
type: string
description: Multipart file. Content of the file.
id:
type: integer
description: Id of the file
format: int32
ResponseOfFileResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/FileResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
FileFolder:
type: object
properties:
id:
type: integer
format: int32
name:
type: string
type:
type: string
FileResponse:
required:
- createdAt
- folder
- id
- mimeType
- name
- size
- updatedAt
- url
type: object
properties:
createdAt:
type: string
description: Datetime when the file was created
format: date-time
description:
type: string
description: Description of the file
folder:
$ref: '#/components/schemas/FileFolder'
id:
type: integer
description: Id of the file
format: int32
mimeType:
type: string
description: MIME type of the file
name:
type: string
description: Name of the file
size:
type: integer
description: Size of the file in bytes
format: int32
updatedAt:
type: string
description: Datetime when the file was most recently updated
format: date-time
url:
type: string
description: Publically accessible URL of the file
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
x-original-swagger-version: '2.0'