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.
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
}