Marketo File Contents API

The File Contents API from Marketo — 1 operation(s) for file contents.

Operations 1

POST /rest/asset/v1/file/{id}/content.json Update File Content #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/marketo-file-contents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

marketo-file-contents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Marketo Engage Rest API
  version: '1.0'
  title: Marketo Engage Rest File Contents API
  termsOfService: https://www.adobe.com/legal.html
  contact:
    name: Adobe Developer Relations
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
    email: ''
  license:
    name: API License Agreement
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license
servers:
- url: https://localhost:8080/
tags:
- name: File Contents
  description: File Content Controller
paths:
  /rest/asset/v1/file/{id}/content.json:
    post:
      tags:
      - File Contents
      summary: 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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfFileResponse'
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UpdateFileContentRequest'
        description: request
        required: true
components:
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      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
    UpdateFileContentRequest:
      type: object
      required:
      - file
      - id
      properties:
        file:
          type: string
          description: Multipart file. Content of the file.
        id:
          type: integer
          format: int32
          description: Id of the file
    FileResponse:
      type: object
      required:
      - createdAt
      - folder
      - id
      - mimeType
      - name
      - size
      - updatedAt
      - url
      properties:
        createdAt:
          type: string
          format: date-time
          description: Datetime when the file was created
        description:
          type: string
          description: Description of the file
        folder:
          description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
          $ref: '#/components/schemas/FileFolder'
        id:
          type: integer
          format: int32
          description: Id of the file
        mimeType:
          type: string
          description: MIME type of the file
        name:
          type: string
          description: Name of the file
        size:
          type: integer
          format: int32
          description: Size of the file in bytes
        updatedAt:
          type: string
          format: date-time
          description: Datetime when the file was most recently updated
        url:
          type: string
          description: Publically accessible URL of the file
    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