PATCH

Update Project Item


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates a project item.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Portfolio
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/portfolio/v1/Items/{item.id}

Path Params
item.idstringRequired

Project item ID.

Body Params
itemItemRequired

The project item to update.

Response Object
itemItem

The updated project item.

Update Project Item
Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/portfolio/v1/Items/456e7890-e89b-12d3-a456-426614174001' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ -d '{ "item": { "title": "Updated Item Title", "description": "This is an updated item description.", "sortOrder": 1.0, "image": { "imageInfo": { "url": "https://example.com/new-image1.jpg", "id": "9a7eef_afc3d989928f45198a16175e3c7aba3d" } }, "link": { "text": "Visit Updated Site", "url": "https://example.com/update", "target": "_blank" } } }'
Response
JSON
{ "item": { "id": "456e7890-e89b-12d3-a456-426614174001", "projectId": "123e4567-e89b-12d3-a456-426614174000", "title": "Updated Item Title", "description": "This is an updated item description.", "sortOrder": 1.0, "type": "IMAGE", "image": { "imageInfo": { "url": "https://example.com/new-image1.jpg", "id": "9a7eef_afc3d989928f45198a16175e3c7aba3d" } }, "createdDate": "2024-07-31T12:00:00Z", "updatedDate": "2024-09-31T12:30:00Z", "link": { "text": "Visit Updated Site", "url": "https://example.com/update", "target": "_blank" } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?