Content Library

Update Content Library Link

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:

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

<b>Important:</b> 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.

put/v1/content-library

Request

Request body

contentIdstring required

Content ID of the Weblink or JS Function item to update

funcPayloadstring

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

urlstring

New URL for Weblink content types

Response

Success

contentIdstring
idstring
imageUrlstring
lastModifiedDateinteger

Changes

No recorded changes to this operation across all 1 revision of this API.