# Update Content Library Link **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. ## Servers - https://app.aptrinsic.com: https://app.aptrinsic.com () ## Parameters ### Body: application/json (object) request - **contentId** (string) 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 Success #### Body: application/json (object) - **contentId** (string) - **id** (string) - **imageUrl** (string) - **lastModifiedBy** (object) - **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 [Powered by Bump.sh](https://bump.sh)