Project
Questi contenuti non sono ancora disponibili nella tua lingua.
Represents an abstraction layer for a company or organizational unit, capturing key data such as the number of employees and platform-relevant information like the number of users and project status.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Authentication
Sezione intitolata “ Authentication ”OAuth2
Sezione intitolata “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Sezione intitolata “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Sezione intitolata “Operations” POST /v2/project/index
Returns a paginated and filterable list of projects. Use POST to allow complex filters via JSON payload.
Authorizations
Sezione intitolata “Authorizations ”Request Body
Sezione intitolata “Request Body ”Parameters for searching projects
object
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "name": "Project 1", "project_type": "safety" }, "per-page": 20, "page": 1, "sort": "name"}
Responses
Sezione intitolata “ Responses ”List of projects
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
Example
{ "project_id": "proj-1", "name": "Project 1", "description": "Safety project", "status": "active", "project_type": "safety", "customer_id": "cus-1", "partner_id": "par-1", "created_at": "2024-01-01", "updated_at": "2024-01-02"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/project/create
Create a new project by providing the required details.
Authorizations
Sezione intitolata “Authorizations ”Request Body required
Sezione intitolata “Request Body required ”Project object to be created
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
The date when the project was deleted (if applicable).
Example
{ "name": "Project 2", "description": "New project", "status": "active", "project_type": "safety", "customer_id": "cus-2", "partner_id": "par-2"}
Responses
Sezione intitolata “ Responses ”Project created successfully
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
The date when the project was deleted (if applicable).
Example
{ "project_id": "proj-2", "name": "Project 2", "description": "New project", "status": "active", "project_type": "safety", "customer_id": "cus-2", "partner_id": "par-2"}
GET /v2/project/view/{id}
Retrieve a project by its unique ID.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the project to retrieve
Responses
Sezione intitolata “ Responses ”Project found
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
Example
{ "project_id": "proj-1", "name": "Project 1", "description": "Safety project", "status": "active", "project_type": "safety", "customer_id": "cus-1", "partner_id": "par-1", "created_at": "2024-01-01", "updated_at": "2024-01-02"}
Project not found
DELETE /v2/project/delete/{id}
Delete a project by its unique ID. If force=true, all related entities will also be deleted.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the project to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Project deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
PUT /v2/project/update/{id}
Update an existing project by its unique ID.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the project to update
Request Body required
Sezione intitolata “Request Body required ”Project object with updated data
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
The date when the project was deleted (if applicable).
Example
{ "name": "Updated Project", "status": "suspended"}
Responses
Sezione intitolata “ Responses ”Project updated successfully
object
The unique identifier of the project (primary key).
The name of the project, with a maximum length of 50 characters.
A description of the project, if available.
The current status of the project (active, suspended, or deleted).
The type of the project (either ‘safety’ or ‘template’).
Additional data associated with the project in JSON format.
object
The refund amount associated with the project.
The URL of the project’s icon, with a maximum length of 255 characters.
The number of people associated with the project.
The unique identifier of the subscription linked to the project.
The unique identifier of the customer associated with the project.
The unique identifier of the partner associated with the project.
The date when the project was created.
The date when the project details were last updated.
The date when the project was deleted (if applicable).
Example
{ "project_id": "proj-1", "name": "Updated Project", "status": "suspended"}
Project not found