| Requires the role: | superadmin |
| DELETE | /widget/configurationschema/{Version}/migration | Clear the migration patch for a schema version | Sets MigrationFromPreviousVersion back to NULL for the given Version. SuperAdmin only. Idempotent — deleting an already-cleared value is a no-op success. |
|---|
"use strict";
export class WidgetConfigurationSchemaResponse {
/** @param {{Id?:number,Version?:number,Schema?:{ [index:string]: Object; },DefaultConfiguration?:string,MigrationFromPreviousVersion?:string,CreatedDate?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {number} */
Version;
/** @type {{ [index:string]: Object; }} */
Schema = {};
/** @type {?string} */
DefaultConfiguration;
/** @type {?string} */
MigrationFromPreviousVersion;
/** @type {string} */
CreatedDate;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class DeleteWidgetConfigurationSchemaMigration {
/** @param {{Version?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description The schema version whose migration patch should be cleared. */
Version;
}
JavaScript DeleteWidgetConfigurationSchemaMigration DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /widget/configurationschema/{Version}/migration HTTP/1.1
Host: api.bookmore.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"Version":0,"Schema":{"String":{}},"DefaultConfiguration":"String","MigrationFromPreviousVersion":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}