This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a user-defined data extension schema, overriding the existing data.
You can only call this method when authenticated as a Wix app or Wix user identity.
Schema to update.
Updated schema.
curl -X PUT \
'https://www.wixapis.com/schema-service/v1/schemas' \
-H 'Content-type: application/json' \
-H 'Authorization: <AUTH>' \
-d '
{
"dataExtensionSchema": {
"id": "01ea0c8d-80b8-46e3-bfda-611b3678545b",
"fqdn": "wix.ecom.*.order",
"namespace": "_user_fields",
"jsonSchema": {
"additionalProperties": false,
"properties": {
"myCustomField1": {
"maxLength": 75,
"type": "string",
"x-wix-created-date": "2024-10-08T12:13:38.592731806Z",
"x-wix-permissions": {
"read": [
"users-of-users",
"users",
"apps"
],
"write": [
"users"
]
}
},
"myCustomField2": {
"maxLength": 100,
"type": "string",
"x-wix-created-date": "2024-10-08T12:13:38.592731806Z",
"x-wix-permissions": {
"read": [
"users-of-users",
"users",
"apps"
],
"write": [
"users"
]
}
}
}
},
"revision": "2"
}
}
'
{
"dataExtensionSchema": {
"id": "01ea0c8d-80b8-46e3-bfda-611b3678545b",
"fqdn": "wix.ecom.*.order",
"namespace": "_user_fields",
"jsonSchema": {
"properties": {
"myCustomField1": {
"type": "string",
"maxLength": 75,
"x-wix-permissions": {
"read": ["users-of-users", "users", "apps"],
"write": ["users"]
},
"x-wix-created-date": "2024-10-08T12:13:38.592731806Z"
},
"myCustomField2": {
"type": "string",
"maxLength": 100,
"x-wix-permissions": {
"read": ["users-of-users", "users", "apps"],
"write": ["users"]
},
"x-wix-created-date": "2024-10-08T12:30:44.854371962Z"
}
},
"additionalProperties": false
},
"updatedDate": "2024-10-08T12:35:50.909Z",
"createdDate": "2024-10-08T12:13:38.639Z",
"revision": "3",
"maxLimitBytes": 10000,
"currentSizeBytes": 175,
"extensionPoint": "ROOT"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.