Skip to main content

companyUpdate

Update an existing company with partial or complete business information modifications.

Key Features:

  • Partial updates preserve existing data while updating specified fields
  • Comprehensive validation ensures data integrity
  • Audit trail tracking for compliance and change management
  • Support for bulk operations and batch updates

Business Rules:

  • Only provided fields are updated, others remain unchanged
  • Validation rules apply to all modified fields
  • Parent-child relationships can be updated with proper validation
  • Historical data is preserved for audit purposes

Error Scenarios:

  • COMPANY_NOT_FOUND_ERROR: When company with specified ID doesn't exist
  • VALIDATION_ERROR: When updated data fails validation rules
  • UPDATE_ERROR: When system fails to update company record
  • ACCESS_DENIED_ERROR: When user lacks permission to update company

Use Cases:

  • Company profile maintenance
  • Business information updates
  • Organizational structure changes
  • Compliance and regulatory updates

AUTH: Role=[user.OWNER,user.EDITOR] OR (('user is authenticated') AND ('companyId(s) if present in input matches JWT'))

companyUpdate(
id: Int!
input: UpdateCompanyInput!
): Company!

Arguments

companyUpdate.id ● Int! non-null scalar

Unique internal identifier for the company used for system operations and data relationships

companyUpdate.input ● UpdateCompanyInput! non-null input

Partial company information for updating existing company records with validation

Type

Company object

Company entity representing business organizations and corporate entities.

External entity from the company service that provides company identification and business information. Used as a reference for company-specific attributes and organizational relationships within the attribute system.