Premise Resource

Get All Premise

HTTP Request

GET /api/premises

📋 Description: Retrieves a list of premises, providing essential details for effective space management and operational planning.

Parameters

Name

In

Type

Required

Description

isAvailable

query

boolean

false

Whether the resource is available

Default Values

Parameter

Default

Type

isAvailable

false

query

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

Response Schema

Status Code 200

Name

Type

Required

Restrictions

Description

anonymous

[PremiseDTO]

false

none

[Data transfer object representing a premise, encapsulating essential details such as location, type, and associated attributes to facilitate effective decision-making in real estate and operational planning.]

» id

integer(int64)

false

none

Unique identifier for the resource

» createdBy

string

false

none

Username of who created this resource

» createdAt

string(date-time)

false

none

Timestamp when this resource was created

» displayId

string

false

none

Unique identifier for the display

» premiseName

string

false

none

Name of the premise

» description

string

false

none

Description of the resource

» address

string

true

none

Represents the physical location associated with the premise, essential for logistics and service delivery.

» internalTeamNames

[string]

false

none

List of names representing the internal teams associated with the premise, facilitating streamlined collaboration and resource allocation within the organization.

» internalTeamIds

[integer]

false

none

List of unique identifiers representing the internal teams associated with the premise, facilitating streamlined collaboration and resource allocation.

» premiseAvailable

boolean

false

none

Indicates whether the premise is available for use within the specified context.

» premiseFromNrm

boolean

false

none

Indicates whether the premise is sourced from the National Resource Management (NRM) framework, facilitating compliance and reporting within environmental management processes.

» nlmId

integer(int64)

false

none

Unique identifier for the nlm

» nlmDisplayId

string

false

none

Unique identifier for the nlm display

» nlmUsed

boolean

false

none

Indicates whether the National Labor Market (NLM) resources have been utilized in the premise evaluation process.

» manager

integer(int64)

false

none

Unique identifier for the manager associated with the premise, facilitating effective organizational hierarchy and resource management.

» managerName

string

false

none

Name of the manager

» imageId

integer(int64)

false

none

Unique identifier for the image

» area

string

false

none

Represents the geographic area associated with the premise, providing essential context for location-based services and analysis.

» modifiedAt

string(date-time)

false

none

Timestamp when this resource was last modified

Create Premise

HTTP Request

POST /api/premises

📋 Description: Creates a new premises entry in the system, allowing businesses to effectively manage and track their physical locations.

Parameters

Name

In

Type

Required

Description

body

body

PremiseDTO

true

Request body containing the details of the premises to be added, including address, type, and associated business information.

Responses

Status

Meaning

Description

Schema

201

Created

Created

PremiseDTO

Search User Workload By Premises ID

HTTP Request

POST /api/premises/{premisesId}/workload

📋 Description: Creates a new workload entry for the specified premises, enabling effective management and allocation of resources to meet operational demands.

Parameters

Name

In

Type

Required

Description

premisesId

path

integer(int64)

true

Unique identifier for the premises

pageable

query

Pageable

true

Indicates whether the response should be paginated, allowing for efficient retrieval of workload data associated with the specified premises.

body

body

WorkloadDtoFilter

true

Request body containing the workload allocation details for the specified premises, including resource requirements and scheduling information.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PageUserWorkloadDTO

Get Premise

HTTP Request

GET /api/premises/{id}

📋 Description: Fetches detailed information about a specific premises identified by the provided ID, enabling users to access essential data for management and operational decision-making.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

200

OK

OK

PremiseDTO

Update Premise

HTTP Request

POST /api/premises/{id}

📋 Description: Updates the details of a specific premises identified by the provided ID, allowing for efficient management of property-related information within the system.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

body

body

PremiseDTO

true

Request body containing the updated premises information, including attributes such as address, contact details, and operational status.

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

Delete Premise

HTTP Request

DELETE /api/premises/{id}

📋 Description: Deletes a specified premises record from the system, ensuring that outdated or unnecessary data is effectively removed to maintain data integrity and compliance.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

204

No Content

No Content

None

Attach Work Orders To Premises

HTTP Request

POST /api/premises/{id}/workOrders/{workOrderId}

📋 Description: Creates a new work order for the specified premises, enabling efficient management of maintenance and service requests.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

workOrderId

path

integer(int64)

true

Unique identifier for the work order

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

Detach Work Order To Premises

HTTP Request

DELETE /api/premises/{id}/workOrders/{workOrderId}

📋 Description: Deletes a specific work order associated with a designated premise, facilitating the management and maintenance of operational tasks within the premises.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

workOrderId

path

integer(int64)

true

Unique identifier for the work order

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

Assign Vendor To Premise

HTTP Request

POST /api/premises/{id}/vendors/{vendorId}

📋 Description: Adds a new vendor to the specified premises, enabling enhanced management of vendor relationships and services associated with that location.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

vendorId

path

integer(int64)

true

Unique identifier for the vendor

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

Detach Vendor From Premise

HTTP Request

DELETE /api/premises/{id}/vendors/{vendorId}

📋 Description: Deletes a specified vendor from a designated premises, ensuring that vendor-related data is removed from the system to maintain accurate records and streamline operations.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

vendorId

path

integer(int64)

true

Unique identifier for the vendor

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

Search Repremises

HTTP Request

POST /api/premises/searchREPremises

📋 Description: Submits a search request for real estate premises, enabling users to find and evaluate available properties based on specified criteria.

Parameters

Name

In

Type

Required

Description

pageable

query

Pageable

true

Indicates whether the search results for real estate premises should be returned in a paginated format, enhancing the user experience by allowing for manageable data retrieval.

body

body

PremiseDtoFilter

true

Request body containing search criteria and filters for retrieving real estate premises information relevant to business operations.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PagePremiseDTO

Search Premises With Filter

HTTP Request

POST /api/premises/searchFilter

📋 Description: Submits a search request to filter premises based on specified criteria, enabling users to efficiently locate and manage relevant properties within the system.

Parameters

Name

In

Type

Required

Description

pageable

query

Pageable

true

Indicates whether the search results should be returned in a paginated format, facilitating efficient data retrieval for large datasets.

body

body

PremiseDtoFilter

true

Request body containing search filter criteria for premises, including parameters such as location, size, and type to refine search results effectively.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PagePremiseDTO

Get All My Premises

HTTP Request

GET /api/premises/myPremises

📋 Description: Retrieves a list of premises associated with the authenticated user, providing essential information for effective management and oversight of their properties.

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

Response Schema

Status Code 200

Name

Type

Required

Restrictions

Description

anonymous

[PremiseDTO]

false

none

[Data transfer object representing a premise, encapsulating essential details such as location, type, and associated attributes to facilitate effective decision-making in real estate and operational planning.]

» id

integer(int64)

false

none

Unique identifier for the resource

» createdBy

string

false

none

Username of who created this resource

» createdAt

string(date-time)

false

none

Timestamp when this resource was created

» displayId

string

false

none

Unique identifier for the display

» premiseName

string

false

none

Name of the premise

» description

string

false

none

Description of the resource

» address

string

true

none

Represents the physical location associated with the premise, essential for logistics and service delivery.

» internalTeamNames

[string]

false

none

List of names representing the internal teams associated with the premise, facilitating streamlined collaboration and resource allocation within the organization.

» internalTeamIds

[integer]

false

none

List of unique identifiers representing the internal teams associated with the premise, facilitating streamlined collaboration and resource allocation.

» premiseAvailable

boolean

false

none

Indicates whether the premise is available for use within the specified context.

» premiseFromNrm

boolean

false

none

Indicates whether the premise is sourced from the National Resource Management (NRM) framework, facilitating compliance and reporting within environmental management processes.

» nlmId

integer(int64)

false

none

Unique identifier for the nlm

» nlmDisplayId

string

false

none

Unique identifier for the nlm display

» nlmUsed

boolean

false

none

Indicates whether the National Labor Market (NLM) resources have been utilized in the premise evaluation process.

» manager

integer(int64)

false

none

Unique identifier for the manager associated with the premise, facilitating effective organizational hierarchy and resource management.

» managerName

string

false

none

Name of the manager

» imageId

integer(int64)

false

none

Unique identifier for the image

» area

string

false

none

Represents the geographic area associated with the premise, providing essential context for location-based services and analysis.

» modifiedAt

string(date-time)

false

none

Timestamp when this resource was last modified