AssetLab Custom Fields API
The Custom Fields API from AssetLab — 4 operation(s) for custom fields.
The Custom Fields API from AssetLab — 4 operation(s) for custom fields.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/assetlab-ca:assetlab-ca-custom-fields-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Assetlab Ca Custom Fields API
version: '1.0'
contact:
name: AssetLab Support
url: https://assetlab.ca
email: support@assetlab.ca
license:
name: Proprietary
description: 'Operations tagged Custom Fields across 2 of this provider''s published API definitions: assetlab-ca-openapi.yaml, assetlab-ca-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
security:
- BearerAuth: []
tags:
- name: Custom Fields
paths:
/custom-field-definitions:
get:
operationId: listCustomFieldDefinitions
summary: List custom field definitions
tags:
- Custom Fields
description: Returns a paginated list of custom field schema definitions. Requires `custom_fields:read` scope.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/per_page'
- name: entity_type
in: query
schema:
type: string
description: Filter by entity type (e.g. asset, work_order)
- name: field_type
in: query
schema:
type: string
enum:
- text
- number
- date
- boolean
- select
description: Filter by field type
responses:
'200':
description: Paginated custom field definition list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CustomFieldDefinition'
pagination:
$ref: '#/components/schemas/Pagination'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: createCustomFieldDefinition
summary: Create custom field definition
tags:
- Custom Fields
description: Requires `custom_fields:write` scope.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomFieldDefinitionCreate'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldDefinition'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
/custom-field-definitions/{id}:
get:
operationId: getCustomFieldDefinition
summary: Get custom field definition by ID
tags:
- Custom Fields
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Custom field definition detail
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldDefinition'
'404':
$ref: '#/components/responses/NotFound'
patch:
operationId: updateCustomFieldDefinition
summary: Update custom field definition
tags:
- Custom Fields
description: Requires `custom_fields:write` scope. Immutable fields are silently stripped.
parameters:
- $ref: '#/components/parameters/id'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomFieldDefinitionUpdate'
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldDefinition'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
delete:
operationId: deleteCustomFieldDefinition
summary: Delete custom field definition
tags:
- Custom Fields
description: Requires `custom_fields:write` scope.
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
$ref: '#/components/responses/Deleted'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
/custom-field-values:
get:
operationId: listCustomFieldValues
summary: List custom field values
tags:
- Custom Fields
description: Returns a paginated list of custom field values for entities. Requires `custom_fields:read` scope.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/per_page'
- name: entity_id
in: query
schema:
type: string
format: uuid
description: Filter by entity (e.g. a specific asset or work order ID)
- name: field_definition_id
in: query
schema:
type: string
format: uuid
description: Filter by field definition
responses:
'200':
description: Paginated custom field value list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CustomFieldValue'
pagination:
$ref: '#/components/schemas/Pagination'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: createCustomFieldValue
summary: Create custom field value
tags:
- Custom Fields
description: Requires `custom_fields:write` scope.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomFieldValueCreate'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldValue'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
/custom-field-values/{id}:
get:
operationId: getCustomFieldValue
summary: Get custom field value by ID
tags:
- Custom Fields
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Custom field value detail
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldValue'
'404':
$ref: '#/components/responses/NotFound'
patch:
operationId: updateCustomFieldValue
summary: Update custom field value
tags:
- Custom Fields
description: Requires `custom_fields:write` scope. Immutable fields are silently stripped.
parameters:
- $ref: '#/components/parameters/id'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomFieldValueUpdate'
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CustomFieldValue'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
delete:
operationId: deleteCustomFieldValue
summary: Delete custom field value
tags:
- Custom Fields
description: Requires `custom_fields:write` scope.
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
$ref: '#/components/responses/Deleted'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
components:
responses:
Deleted:
description: Resource deleted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PayloadTooLarge:
description: Request body exceeds size limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request (validation error or malformed input)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: Insufficient permissions - missing scope, or a resource the organization's plan does not include
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
CustomFieldDefinitionCreate:
type: object
required:
- entity_type
- field_name
- field_label
- field_type
properties:
entity_type:
type: string
field_name:
type: string
field_label:
type: string
field_type:
type: string
enum:
- text
- number
- date
- boolean
- select
field_options:
type: object
nullable: true
is_required:
type: boolean
nullable: true
display_order:
type: integer
nullable: true
CustomFieldValueCreate:
type: object
required:
- entity_id
- field_definition_id
properties:
entity_id:
type: string
format: uuid
field_definition_id:
type: string
format: uuid
value_text:
type: string
nullable: true
value_number:
type: number
nullable: true
value_date:
type: string
format: date
nullable: true
value_boolean:
type: boolean
nullable: true
CustomFieldDefinition:
type: object
properties:
id:
type: string
format: uuid
entity_type:
type: string
field_name:
type: string
field_label:
type: string
field_type:
type: string
enum:
- text
- number
- date
- boolean
- select
field_options:
type: object
nullable: true
is_required:
type: boolean
nullable: true
display_order:
type: integer
nullable: true
created_at:
type: string
format: date-time
nullable: true
updated_at:
type: string
format: date-time
nullable: true
CustomFieldValueUpdate:
type: object
properties:
value_text:
type: string
nullable: true
value_number:
type: number
nullable: true
value_date:
type: string
format: date
nullable: true
value_boolean:
type: boolean
nullable: true
CustomFieldValue:
type: object
properties:
id:
type: string
format: uuid
entity_id:
type: string
format: uuid
field_definition_id:
type: string
format: uuid
value_text:
type: string
nullable: true
value_number:
type: number
nullable: true
value_date:
type: string
format: date
nullable: true
value_boolean:
type: boolean
nullable: true
created_at:
type: string
format: date-time
nullable: true
updated_at:
type: string
format: date-time
nullable: true
Pagination:
type: object
properties:
page:
type: integer
example: 1
per_page:
type: integer
example: 25
total:
type: integer
example: 142
total_pages:
type: integer
example: 6
Error:
type: object
properties:
error:
type: string
example: Asset not found
CustomFieldDefinitionUpdate:
type: object
properties:
field_label:
type: string
field_options:
type: object
nullable: true
is_required:
type: boolean
nullable: true
display_order:
type: integer
nullable: true
parameters:
id:
name: id
in: path
required: true
schema:
type: string
format: uuid
description: Resource UUID
page:
name: page
in: query
schema:
type: integer
default: 1
minimum: 1
description: Page number
per_page:
name: per_page
in: query
schema:
type: integer
default: 25
minimum: 1
maximum: 1000
description: Items per page
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key from AssetLab Settings > API Keys
x-refined-from:
- assetlab-ca-openapi.yaml
- assetlab-ca-openapi.yaml
x-tagGroups:
- name: Core
tags:
- Assets
- Work Orders
- Work Requests
- PM Schedules
- PM Templates
- name: Facilities
tags:
- Sites
- Buildings
- Locations
- name: Feature Classification
tags:
- Systems
- System Groups
- System Classes
- Asset Types
- Asset Type Groups
- Manufacturers
- name: Projects
tags:
- Projects
- Project Sites
- Project Buildings
- Project Locations
- Project System Classes
- Project System Groups
- Project Systems
- Project Assets
- Project Tasks
- Project Milestones
- Project Phases
- Project Budget Items
- Project Time Entries
- Project Comments
- Project Risks
- Project Document Folder Templates
- name: Financial
tags:
- Budgets
- Invoices
- Purchase Orders
- Expenses
- Change Orders
- Cost Categories
- Asset Costs
- Asset Replacement Plans
- name: Vendors & Contracts
tags:
- Vendors
- Contracts
- Vendor Site Assignments
- Contract Sites
- name: Compliance
tags:
- Compliance
- Compliance Records
- name: Parts & Inventory
tags:
- Parts
- Part Categories
- name: Comments & Documents
tags:
- Asset Comments
- Work Order Comments
- Asset Documents
- Project Documents
- Contract Documents
- Attachments
- Upload URLs
- name: Level of Service
tags:
- Service Areas
- Service Area System Classes
- Service Area Sites
- LoS Measures
- LoS Measurements
- LoS Proposed Targets
- LoS Targets History
- System LoS Targets
- Infrastructure LoS Targets
- Criticality Modifiers
- LoS Consequences
- LoS Status Snapshots
- name: Infrastructure
tags:
- Infrastructure Feature Classes
- Infrastructure Networks
- Infrastructure Assets
- Infrastructure Asset Inspections
- name: Dashboard & Analytics
tags:
- Dashboard
- Dashboard Snapshots
- Site FCI History
- Asset Risk History
- Asset Condition Assessments
- name: Configuration
tags:
- Asset Statuses
- Work Categories
- Building Types
- Location Types
- Custom Field Definitions
- Custom Field Values