WorkGroupSupplier
A WorkGroupSupplier represents the assignment of a supplier to a work group. Links a Unit (supplier) to a WorkGroup.
Use this API to:
- Assign suppliers to a job role, work phase, or homogeneous group
- Find all suppliers in a work group (filter by
work_group_id) - Find all work groups a supplier belongs to (filter by
unit_id)
Supports historicization.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Authentication
Section titled “ Authentication ”OAuth2
Section titled “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Section titled “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Section titled “Operations” POST /v2/work-group-supplier/index
Returns a paginated list of supplier-work group assignments.
Most useful filters:
work_group_id: all suppliers in a specific work groupunit_id: all work groups a supplier belongs to
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching
object
object
Supplier code.
Supplier name.
Creation timestamp.
Last modification timestamp.
Whether this assignment is currently active.
Whether the parent entities are currently active.
If true, includes historicized entries.
Example
{ "filter": { "work_group_id": "3a4b5c6d-7e8f-9012-abcd-ef3456789012" }, "per-page": 20, "page": 1, "sort": "name"}Responses
Section titled “ Responses ”List of supplier-work group assignments
object
Supplier code.
Supplier name.
Creation timestamp.
Last modification timestamp.
Whether this assignment is currently active.
Whether the parent entities are currently active.
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/work-group-supplier/create
Assigns a supplier to a work group.
Requires work_group_id and unit_id.
The work_group_supplier_id is auto-generated if not provided.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Assignment to create
object
Unique identifier. Auto-generated if not provided.
The work group. Pass the work_group_id from the WorkGroup API.
The supplier. Pass the unit_id from the Unit API.
Responses
Section titled “ Responses ”Supplier assigned to work group successfully
object
Unique identifier. Auto-generated if not provided.
The work group. Pass the work_group_id from the WorkGroup API.
The supplier. Pass the unit_id from the Unit API.
GET /v2/work-group-supplier/view/{id}
Retrieves a single assignment by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The work_group_supplier_id to retrieve.
Responses
Section titled “ Responses ”Assignment found
object
Supplier code.
Supplier name.
Creation timestamp.
Last modification timestamp.
Whether this assignment is currently active.
Whether the parent entities are currently active.
Assignment not found
update
Section titled “update” PUT /v2/work-group-supplier/update/{id}
Updates an existing assignment.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The work_group_supplier_id to update.
Request Body required
Section titled “Request Body required ”Fields to update
object
Unique identifier. Auto-generated if not provided.
The work group. Pass the work_group_id from the WorkGroup API.
The supplier. Pass the unit_id from the Unit API.
Responses
Section titled “ Responses ”Assignment updated successfully
object
Unique identifier. Auto-generated if not provided.
The work group. Pass the work_group_id from the WorkGroup API.
The supplier. Pass the unit_id from the Unit API.
Assignment not found
delete
Section titled “delete” DELETE /v2/work-group-supplier/delete/{id}
Deletes a supplier-work group assignment.
If force=false (default), the response lists child entities.
If force=true, the assignment is deleted.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The work_group_supplier_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the assignment.
Responses
Section titled “ Responses ”Assignment deleted successfully
Preview of entities that would be deleted (returned when force=false)