Update Content Library Link

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://px-apidocs.gainsight.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "gainsight-px-rest-api MCP server": {
    "url": "https://px-apidocs.gainsight.com/mcp"
  }
}

Close
PUT /v1/content-library

Update the URL or function payload of a Weblink or JS Function content item in your PX Subscription.

Only content items of type LINK, or FUNC_CALL are supported.

Examples:

URI Results
PUT /v1/content-library Update a Weblink URL: { "contentId": "abcd1234", "url": "https://example.com" }
PUT /v1/content-library Update a JS Function payload: { "contentId": "abcd1234", "funcPayload": "{\"key\":\"value\"}" }

Important: For Weblink types (LINK), provide url in the request body. For JS Function types (FUNC_CALL), provide funcPayload. The content type is inferred from the contentId — only one field is applied per call.

application/json

Body Required

request

  • contentId string Required

    Content ID of the Weblink or JS Function item to update

  • funcPayload string

    New function payload JSON for JS Function (FUNC_CALL) content types

  • url string

    New URL for Weblink content types

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • contentId string
    • id string
    • imageUrl string
    • lastModifiedBy object
      Hide lastModifiedBy attributes Show lastModifiedBy attributes object
      • id string
      • name string
    • lastModifiedDate integer(int64)
  • 400

    Bad request — invalid content type or missing required field

  • 401

    Unauthorized or bad API Key

  • 404

    Content item not found

  • 429

    Rate limit exceeded

PUT /v1/content-library
curl \
 --request PUT 'https://app.aptrinsic.com/v1/content-library' \
 --header "Content-Type: application/json" \
 --data '{
  "contentId": "string",
  "funcPayload": "string",
  "url": "string"
}'
Request examples
{
  "contentId": "string",
  "funcPayload": "string",
  "url": "string"
}
Response examples (200)
{
  "contentId": "string",
  "id": "string",
  "imageUrl": "string",
  "lastModifiedBy": {
    "id": "string",
    "name": "string"
  },
  "lastModifiedDate": 42
}