Download OpenAPI specification:Download
API for managing workorder portal operations
Retrieve workorder portal entries with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Filter by status |
| workorder | string Filter by workorder ID |
| client | string Filter by client ID |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new workorder portal entry
| workorder required | string Workorder ID reference |
| client required | string Client ID reference |
| access_level | string Default: "view_only" Enum: "view_only" "comment" "full_access" Level of access granted |
| allowed_actions | Array of strings Default: ["view"] Items Enum: "view" "comment" "upload_files" "approve" "reject" Actions allowed for this portal access |
| expiry_date | string <date-time> When portal access expires |
object | |
object | |
object | |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether portal access is disabled |
{- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "access_level": "view_only",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "notifications": {
- "email_enabled": true,
- "sms_enabled": false,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": false
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific workorder portal entry by its ID
| id required | string Workorder portal entry ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing workorder portal entry
| id required | string Workorder portal entry ID |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Current status |
| access_level | string Enum: "view_only" "comment" "full_access" Level of access granted |
| allowed_actions | Array of strings Items Enum: "view" "comment" "upload_files" "approve" "reject" |
| expiry_date | string <date-time> When portal access expires |
object | |
object | |
object | |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether portal access is disabled |
{- "status": "pending",
- "access_level": "view_only",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update the status of a workorder portal entry
| id required | string Workorder portal entry ID |
| status required | string Enum: "pending" "in_progress" "completed" "cancelled" New status |
| notes | string Status update notes |
{- "status": "pending",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}