POST

Update Extended Fields


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 extended fields of a report. Extended fields must first be configured in the app dashboard.

Authentication

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

Permissions
Manage Reports
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/reports/v2/reports/{id}/update-extended-fields

Path Params
idstringRequired

ID of the report to update.

Body Params
namespacestringRequiredminLength 4maxLength 150

Identifier for the app whose extended fields are being updated.


namespaceDatastructRequired

Data to update. Structured according to the schema defined when the extended fields were configured.

Response Object
reportReport

Updated report.

Update Extended Fields
Request
cURL
curl POST 'https://www.wixapis.com/reports/v2/reports/dd7cfd02-1837-4fb8-bc6f-86316f0984a9/update-extended-fields' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>' \ -d '{ "namespace": "@my-app/data-extension-name", "namespaceData": { "reviewed": true } }'
Response
JSON
{ "report": { "id": "dd7cfd02-1837-4fb8-bc6f-86316f0984a9", "entityName": "comment", "entityId": "50353fbc-b265-4f03-888f-a53aa272758d", "identity": { "identityType": "MEMBER", "memberId": "141a3e01-da55-4b3a-a44a-2f194bfc8897" }, "reason": { "reasonType": "DRUGS", "description": "This person promotes drug usage." }, "revision": "1", "createdDate": "2021-10-26T17:22:10.299Z", "updatedDate": "2021-10-26T17:22:10.299Z", "extendedFields": { "namespaces": { "@my-app/data-extension-name": { "reviewed": true } } } } }
Errors

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

Did this help?