Skip to main content

MCP Server Content

Upload MCP server content​

POST /mcp-servers/{mcpServerId}/assets

Code samples


curl -X POST https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json' \
-F 'docMetadata=[{"name":"External guide","url":"https://example.com/docs/guide","type":"LINK"}]' \
-F 'imageMetadata={"api-icon":"icon.png"}'

Uploads the static content package for an MCP server. Mirrors POST /api-portal/api/v0.9/apis/{apiId}/assets.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:mcp_server_content:create`, `dp:mcp_server_content:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyobjecttrueAPI content ZIP upload.
» contentbodystring(binary)trueZIP upload field named content.
» docMetadatabodystringfalseOptional JSON string containing API document link metadata.
» imageMetadatabodystringfalseOptional JSON string containing API image metadata.
mcpServerIdpathstringtrueThe MCP server's handle (unique per org).

Detailed descriptions​

body: API content ZIP upload.

Expected ZIP structure:

  • web/: optional API landing-page files and images.
  • docs/: optional downloadable documents.

At least one of web/ or docs/ must exist at the ZIP root. docMetadata and imageMetadata are JSON strings because they are submitted as multipart form fields.

Example responses

201 Response

{
"message": "string"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
201CreatedJSON message response.MessageResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Replace MCP server content​

PUT /mcp-servers/{mcpServerId}/assets

Code samples


curl -X PUT https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json' \
-F 'docMetadata=[{"name":"External guide","url":"https://example.com/docs/guide","type":"LINK"}]' \
-F 'imageMetadata={"api-icon":"icon.png"}'

Replaces or adds static content files for an existing MCP server. Mirrors PUT /api-portal/api/v0.9/apis/{apiId}/assets.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:mcp_server_content:update`, `dp:mcp_server_content:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyobjecttrueAPI content ZIP upload.
» contentbodystring(binary)trueZIP upload field named content.
» docMetadatabodystringfalseOptional JSON string containing API document link metadata.
» imageMetadatabodystringfalseOptional JSON string containing API image metadata.
mcpServerIdpathstringtrueThe MCP server's handle (unique per org).

Detailed descriptions​

body: API content ZIP upload.

Expected ZIP structure:

  • web/: optional API landing-page files and images.
  • docs/: optional downloadable documents.

At least one of web/ or docs/ must exist at the ZIP root. docMetadata and imageMetadata are JSON strings because they are submitted as multipart form fields.

Example responses

201 Response

{
"message": "string"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
201CreatedJSON message response.MessageResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Get an MCP server content file​

GET /mcp-servers/{mcpServerId}/assets

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=DOC_HowTo&fileName=getting-started.md \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: text/markdown'

Retrieves a single stored MCP server content file. Mirrors GET /api-portal/api/v0.9/apis/{apiId}/assets.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:mcp_server_content:read`, `dp:mcp_server_content:manage`

Parameters​

NameInTypeRequiredDescription
typequerystringtrueStored type of the file, matched exactly: MARKETING for the MCP server's landing page content and theming, such as its Markdown body and Handlebars template; IMAGE for images, such as the MCP server icon; DOC_<category> for documents, for example DOC_HowTo (DOC_Other for documents without a category); and SCHEMA_DEFINITION for the MCP server's tools schema.
fileNamequerystringtrueStored file name to retrieve. For SCHEMA_DEFINITION, use the name the tools schema was stored under: definition.yaml, definition.yml, or definition.json when it came from an MCP server artifact ZIP, or the uploaded file's own name when it was sent in the definition field.
mcpServerIdpathstringtrueThe MCP server's handle (unique per org).

Example responses

200 Response

"<section>API overview</section>"
"https://example.com/docs/guide"
{
"title": "API overview"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

"string"

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKStored API content asset. The concrete media type depends on the stored file extension or whether the content is an external document link.string
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundPlain text success response.string
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Delete MCP server content files​

DELETE /mcp-servers/{mcpServerId}/assets

Code samples


curl -X DELETE https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=DOC_HowTo \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Deletes stored MCP server content. Mirrors DELETE /api-portal/api/v0.9/apis/{apiId}/assets.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:mcp_server_content:delete`, `dp:mcp_server_content:manage`

Parameters​

NameInTypeRequiredDescription
typequerystringtrueStored type of the files to delete: MARKETING for the MCP server's landing page content and theming, such as its Markdown body and Handlebars template; IMAGE for images, such as the MCP server icon; DOC_<category> for documents, for example DOC_HowTo (DOC_Other for documents without a category); and SCHEMA_DEFINITION for the MCP server's tools schema.
fileNamequerystringfalseFile name selector used to delete a single stored API content file.
mcpServerIdpathstringtrueThe MCP server's handle (unique per org).

Example responses

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

"string"

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
204No ContentMCP server content deleted successfully.None
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundPlain text success response.string
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Was this page helpful?