Open API v2 / Custom Modules / Module Layouts

Module Layouts

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/module-layouts/{id}#

Retrieves a single module layout

Parameters
idinteger · pathrequired
Resource identifier.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
FtpPathstring · nullable
Physical path to the template file on the server. Used for file synchronization. Read-only.
Namestring
Name of the module layout.
Typeenum
The type of module that determines its functional purpose. Possible values: Detail, List.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
curl "https://your-site.webinone.com/api/v2/admin/module-layouts/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Id": 1,
  "FtpPath": "string",
  "Name": "Example",
  "Type": "Detail",
  "Template": "string"
}
PUT/api/v2/admin/module-layouts/{id}#

Updates an existing module layout

Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
Namestringrequired
Name of the request module layout.
Typeenumrequired
The type of module that determines its functional purpose. List: by default. Nullable: false.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
FtpPathstring · nullable
Physical path to the template file on the server. Used for file synchronization. Read-only.
Namestring
Name of the module layout.
Typeenum
The type of module that determines its functional purpose. Possible values: Detail, List.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/module-layouts/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","Type":"Detail","Template":"string"}'
Response · 200
{
  "Id": 1,
  "FtpPath": "string",
  "Name": "Example",
  "Type": "Detail",
  "Template": "string"
}
DELETE/api/v2/admin/module-layouts/{id}#

Deletes an existing module layout

Parameters
idinteger · pathrequired
Resource identifier.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/module-layouts/1" \
  -H "Authorization: Bearer <token>"
POST/api/v2/admin/module-layouts/{moduleId}#

Creates a new module layout

Parameters
moduleIdinteger · pathrequired
Resource identifier.
Body parameters
Namestringrequired
Name of the request module layout.
Typeenumrequired
The type of module that determines its functional purpose. List: by default. Nullable: false.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
FtpPathstring · nullable
Physical path to the template file on the server. Used for file synchronization. Read-only.
Namestring
Name of the module layout.
Typeenum
The type of module that determines its functional purpose. Possible values: Detail, List.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
curl -X POST "https://your-site.webinone.com/api/v2/admin/module-layouts/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","Type":"Detail","Template":"string"}'
Response · 200
{
  "Id": 1,
  "FtpPath": "string",
  "Name": "Example",
  "Type": "Detail",
  "Template": "string"
}
GET/api/v2/admin/module-layouts/{moduleId}/list#

Retrieves a list of module layouts by using a "where" filtering

Parameters
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
moduleIdinteger · pathrequired
Resource identifier.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
FtpPathstring · nullable
Physical path to the template file on the server. Used for file synchronization. Read-only.
Namestring
Name of the module layout.
Typeenum
The type of module that determines its functional purpose. Possible values: Detail, List.Possible values: DetailList
Templatestring · nullable
Defines the visual structure and display logic of the module content.
curl "https://your-site.webinone.com/api/v2/admin/module-layouts/1/list" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "Id": 1,
      "FtpPath": "string",
      "Name": "Example",
      "Type": "Detail",
      "Template": "string"
    }
  ],
  "TotalItemsCount": 0
}