1. WorkflowStage
Hustro API
  • Analytics
    • Get average issue resolution time
      GET
    • Get detected and resolved issues statistics
      GET
  • Company
    • Get all companies from a project
      GET
    • Create company
      POST
    • Update company with specified id
      PUT
    • Remove company with specified id
      DELETE
    • Restore company with specified id
      GET
  • Compliance check document
    • Create new compliance check document
      POST
    • Edit compliance check document
      PUT
    • Remove compliance check document
      DELETE
  • Contract
    • Get all contracts from a project
      GET
    • Create contract on a project
      POST
    • Update contract with specified id
      PUT
    • Remove contract with specified id
      DELETE
    • Restore contract with specified id
      GET
  • Client
    • Get clients
      GET
    • Create Client
      POST
    • Update Client
      PUT
  • Checklist Answers
    • Add checklist answer
      POST
    • Update checklist answer
      PUT
    • Delete checklist answer
      DELETE
  • Checklist Item
    • Create Checklist Item
    • Update Checklist Item
    • Delete Checklist Item
    • Reorder checklist item
  • Checklist Section
    • Create Checklist Section
    • Update Checklist Section
    • Delete Checklist Section
    • Reorder checklist section
  • Custom field values
    • Create
      • Create rootCause
      • Create effect
      • Create delayReason
      • Create rejectionReason
      • Create issueVerification
      • Create circumstances
      • Create impact
      • Create priority
      • Create projectStage
      • Create decisionToImposeFine
      • Create spilledSubstance
      • Create employmentType
      • Create injuryType
      • Create injuredBodyPart
      • Create worktype
      • Create hazardCategory
      • Create environmentalAspect
      • Create correctiveActionType
    • Translations
      • Create translation rootCause
      • Create translation effect
      • Create translation delayReason
      • Create translation rejectionReason
      • Create translation issueVerification
      • Create translation circumstances
      • Create translation impact
      • Create translation priority
      • Create translation projectStage
      • Create translation decisionToImposeFine
      • Create translation spilledSubstance
      • Create translation employmentType
      • Create translation injuryType
      • Create translation injuredBodyPart
      • Create translation worktype
      • Create translation hazardCategry
      • Create translation environmentalAspect
      • Create translation correctiveActionType
    • VisibleOnProcess
      • Create visibleOnProcess rootCause
      • Create visibleOnProcess effect
      • Create visibleOnProcess delayReason
      • Create visibleOnProcess rejectionReason
      • Create visibleOnProcess issueVerification
      • Create visibleOnProcess circumstances
      • Create visibleOnProcess impact
      • Create visibleOnProcess priority
      • Create visibleOnProcess projectStage
      • Create visibleOnProcess decisionToImposeFine
      • Create visibleOnProcess spilledSubstance
      • Create visibleOnProcess employmentType
      • Create visibleOnProcess injuryType
      • Create visibleOnProcess injuredBodyPart
      • Create visibleOnProcess worktype
      • Create visibleOnProcess hazardCategory
      • Create visibleOnProcess environmentalAspect
      • Create visibleOnProcess correctiveActionType
    • Existing custom values
      • Get worktypes
      • Get hazardCategories
      • Get environmentalAspect
      • Get correctiveActionType
      • Get impact
      • Get rootCause
      • Get effect
      • Get delayReason
      • Get rejectionReason
      • Get issueVerification
      • Get circumstances
      • Get projectStage
      • Get decisionToImposeFine
      • Get spilledSubstance
      • Get employmentType
      • Get injuryType
      • Get injuredBodyPart
  • Documentation
    • GET documentation version signedUrl
    • Create documentation
    • Get documentations
    • Update documentation
    • Delete documentation
    • Restore documentation
    • PUT documentation presigned post
    • PUT documentation uploadConfirmation
    • AWS documentation upload
  • Document
    • On Issue
      • Update document
      • Export document to documentation
      • Import documentation to issue
      • Upload confirmation
      • Upload failure
      • Download data
      • Delete document
      • Create document
      • Drawing start
      • Get single document
      • Get document from incoming email
    • On Event
      • Upload confirmation
      • Upload failure
      • Download data
      • Get single document from event
      • Delete document
      • Create document
    • On Inspection Template
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Checklist Item
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Checklist Section
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Protocol Item
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Protocol Section
      • Create document on protocol section
      • Update document on protocol section
      • Delete document on protocol section
      • Download data for protocol section document
      • Upload confirmation for protocol section document
      • Upload failure for protocol section document
    • Shared Document
      • Get shared document with event
      • Get shared document
  • Dir
    • Create dirs batch
    • Create dir
    • Get dirs
    • Update dir
    • Delete dir
    • Restore dir
  • Event
    • Create event
    • Update event
    • Get single event
    • Delete event
  • Form
    • GET issue form
  • gdpr
    • Get GDPR
  • Issue
    • Get all issues from a project
    • Create issue
    • Get single issue
    • Update issue
    • Delete issue
    • Restore issue
    • Get changelog
    • Get inspection issues
  • Issue access
    • Edit access
    • Delete access
    • Create access item
  • Inspection
    • Get all inspections
    • Create new inspection
    • Edit inspection
    • Get single inspection
  • Incoming Email Message Content
    • Get Incoming Email Message Content
  • Lambda
    • Lambda drawing merged upload confirmation
  • Level
    • Get levels
    • Create level
    • Edit level
    • Update levels
    • Delete level
    • Restore level
  • Logo - on client
    • GET logos
    • Create logo
    • AWS logo upload
    • Update logo
  • Logo - on project
    • GET logos
    • Create logo
    • Update logo
  • Norm document
    • Post new file as norm document
    • Edit norm document
    • Delete norm document
  • Open Api app
    • Create client application
    • Create oauth token
    • Get client applications
    • Delete client application
  • PdfFooter
    • GET footers
    • Create footer
    • Update footer
    • Delete footer
  • PDF reports
    • Create single issue PDF report
    • Create issue list PDF report
    • Create inspection PDF report
  • Project
    • Get projects
    • Create project
    • Update Project
  • Public
    • Get Status
    • Get PDF Service Status
    • Get Icons
    • Get Android Asset Links
    • Get iOS Asset Links
    • Get SimpleForm (Public)
    • Get Client (Public)
    • Get Logo Download (Public)
  • Protocol item
    • Update inspection protocol item
    • Update protocol answer
  • Protocol section
    • Update protocol section
  • Process
    • Update process workflow
    • Get processes
  • Site
    • Get sites
    • Create Site
    • Edit Site
    • Delete Site
    • Restore Site
  • SimpleForm
    • Get Simple Forms
    • Get SimpleForm details
    • Get projects
    • Get sites for project
    • Get levels for site
    • Get documentation version download
    • Send Creation Notification
    • Create issue
    • Create SimpleForm
    • Update Simple Form
    • Delete Simple Form
    • Restore Simple Form
  • Statistics
    • Company score
    • Issue average resolution time
    • Detected Resolved Issues
  • Template
    • Create new template
    • Get all templates
    • Update single template
    • Get inspection template
    • Delete inspection template
  • User
    • Get user-me
    • Get users on project
    • Update user permissions
    • Create user
    • Update user
  • Visible fields
    • GET visible fields
    • Set visible fields
  • Worktype
    • Get all worktypes from a project
  • AWS
    • AWS s3 upload file
  • IssueWorkflow
    • Get project workflows
    • Create a workflow
    • Update a workflow
  • WorkflowStage
    • Create a stage in a workflow
      POST
    • Update a stage
      PUT
    • Delete a stage
      DELETE
    • Reorder a stage
      PUT
  • Workflow Decision
    • Create workflow decision
  • Set emergency phone number
    PUT
  • Schemas
    • Schemas
      • DependedItemDto
      • HazardCategoriesOutDto
      • DependsOnDto
      • EnvironmentalAspectOutDto
      • FieldDto
      • CorrectiveActionOutDto
      • PdfIssueListReportInDto
      • IssueReportOutDto
      • InspectionReportOutDto
      • PdfIssueReportInDto
      • ProjectOutDto
      • ProjectDtoBase
      • ProjectCreateInDto
      • EditableProjectBase
      • ProjectUpdateInDto
      • SiteOutDto
      • DocumentationOutDto
      • changelogOutDto
      • DirsBatchInDto
      • DirsBatchOutDto
      • ExportToDocumentationDto
      • LinkedDocumentationOutDto
      • ReorderSectionInDto
      • ReorderChecklistItemInDto
      • UploadStatus
      • ProtocolSectionOutDto
      • ImageExtension
      • AutoCreatedDto
      • IssueHSSpecificData
      • ComplianceAnswerOptionLabel
      • IssueExtendedInDto
      • ProtocolSectionInDto
      • FinalCost
      • ChecklistAnswer
      • EstimatedCost
      • ChecklistSectionInDto
      • LegacyProtocolItemResult
      • IssuePrimaryDataInDto
      • AnswerType
      • EstimatedCostArray
      • ComplianceAnswerOption
      • MapPositionCoordinate
      • ComplianceCheckInDto
      • AreaDto
      • ComplianceCheckOutDto
      • ApprovalType
      • WorkflowDecisionOutDto
      • WorkflowDecisionInDto
      • WorkflowStageIcon
      • DescriptionPartInDto
      • WorkflowStageApproverOutDto
      • WorkflowStageApproverInDto
      • WorkflowStageUpdateInDto
      • TextDescriptionPartIn
      • WorkflowStageOutDto
      • MentionDescriptionPartIn
      • IssueWorkflowOutDto
      • DescriptionPartOutDto
      • IssueWorkflowCreateInDto
      • TextDescriptionPartOut
      • IssueWorkflowUpdateInDto
      • MentionDescriptionPartOut
      • WorkflowStageCreateInDto
      • ValidationErrorResponse
      • WorkflowStageReorderInDto
      • SignedRequest
      • ObjectIdString
      • AddressInDto
      • ErrorResponse
      • LocaleCode
      • Alpha-3-Code
      • Email
      • NumericUnit
      • NonRequiredShortString
      • IssueReportSelectedField
      • ChecklistAnswerBaseRequest
      • RequiredShortString
      • ChecklistSectionOutDto
      • BaseReportCreateRequest
      • ComplianceChecklistAnswerRequest
      • NonRequiredMediumString
      • IssueReportCreateRequest
      • NumericChecklistAnswerRequest
      • RequiredMediumString
      • IssueListReportCreateRequest
      • TextChecklistAnswerRequest
      • City
      • InspectionReportCreateRequest
      • OptionSelectionChecklistAnswerRequest
      • NonRequiredLargeString
      • ComplianceChecklistAnswerUpdateRequest
      • NonRequiredVeryLargeString
      • ReportType
      • OptionSelectionChecklistAnswerUpdateRequest
      • Phone
      • ChecklistAnswerCreateRequest
      • CompanyInDto
      • UserAccessOutDto
      • ChecklistAnswerUpdateRequest
      • CompanyOutDto
      • OutgoingEmailAccessOutDto
      • ChecklistAnswerOutDto
      • ContractPartyInDto
      • ReportFilePartOutDto
      • ChecklistAnswerBaseOutDto
      • ContractualTime
      • ReportSinglePartDataOutDto
      • ComplianceChecklistAnswerOutDto
      • ContractInDto
      • ReportMultiPartDataOutDto
      • NumericChecklistAnswerOutDto
      • ContractOutDto
      • ReportFilePartDataOutDto
      • TextChecklistAnswerOutDto
      • DirInDto
      • ReportOutDto
      • OptionSelectionChecklistAnswerOutDto
      • DirOutDto
      • ExpressValidatorError
      • DocumentationCreateInDto
      • ErrorResponseBody
      • SelectionOptionInDto
      • DocumentationUpdateInDto
      • ErrorEnvelope
      • SelectionOption
      • DocumentationVersionInDto
      • DocumentationVersionOutDto
      • PresignedPostOutDto
      • SignedRequestOutDto
      • DocumentationSignedRequestOutDto
      • DocumentationPresignedPostOutDto
      • DocumentationUploadConfirmationInDto
      • Date
      • IdWithLabel
      • IdWithoutLabel
      • IdWithoutLabelArray
      • UserOnProjectOutDto
      • UserRoleTopLevel
      • UserRoleOnClient
      • UserRoleOnProject
      • ProcessId
      • AccessLevel
      • AccessInDto
      • AccessOutDto
      • LevelInDto
      • LevelOutDto
      • SiteInDto
      • MapOutDto
      • DocumentInDto
      • Document
      • NormInDto
      • ResolvedDetectedOutDto
      • NormOutDto
      • ChecklistItemInDto
      • ChecklistItemOutDto
      • RemovedChecklistItemOutDto
      • ObjectId
      • ObjectIdArray
      • S3VersionId
      • BasicDto
      • ProjectOutDto
      • ClientOutDto
      • LogoOnClientOutDto
      • LogoOnProjectOutDto
      • LogoCreateInDto
      • LogoUpdateInDto
      • LogoOnClientPresignedPostOutDto
      • LogoOnProjectPresignedPostOutDto
      • GetLogoOnClientOutDto
      • GetLogoOnProjectOutDto
      • FooterColumnType
      • FooterColumnTextLine
      • FooterTextColumnDto
      • FooterColumnsDto
      • FooterLogoColumnDto
      • FooterColumnDto
      • BasePdfFooter
      • PdfFooterOutDto
      • PdfFooterCreateInDto
      • PdfFooterUpdateInDto
      • GetPdfFooterOutDto
      • VisibleFieldOutDto
      • GetVisibleFieldOutDto
      • VisibleFieldInDto
      • VisibleFieldsUpsertInDto
      • BrandingOutDto
      • ClientCreateInDto
      • ClientUpdateInDto
      • BaseEditableClient
      • ProjectBase
      • BaseClient
      • AssetOutDto
      • DeletableBasicDto
      • TemplateInDto
      • TemplateOutDto
      • ProtocolItemInDto
      • ProtocolItemOutDto
      • InspectionInDto
      • InspectionOutDto
      • UserMeLabelInDto
      • UserMeLabelOutDto
      • UserCreateInDto
      • UserPermissionUpdateInDto
      • UserWithoutPermissionUpdateInDto
      • UserOutDto
      • UserMeOutDto
      • UserMeProjectPermissionOutDto
      • UserPermissionInDto
      • UserPermissionOutDto
      • BaseIssueReportInDto
      • PdfInspectionReportInDto
      • BaseReportInDto
      • PdfImageContent
      • PdfFieldsContent
      • PdfSelectedFields
      • ReceiverInDto
      • IdsReportInDto
      • AverageResolutionTimePerProcess
      • IssueInDto
      • FileData
      • DocumentOutDto
      • Text
      • Mention
      • DescriptionWithMentions
      • EventOutDto
      • IssueOutDto
      • PaginatedOutDto
      • AreaArrayDto
      • PositionOnMapDto
      • FinalCostArray
      • IssueEnvSpecificData
      • FileName
    • SimpleFormOutDto
    • ProtocolAnswerOutDtoBase
    • PdfImageDisplayStyle
    • ComplianceProtocolAnswerOutDto
    • PdfAttachmentsScope
    • NumericProtocolAnswerOutDto
    • PdfMessagePresentation
    • TextProtocolAnswerOutDto
    • PdfSectionConfig
    • OptionSelectionProtocolAnswerOutDto
    • PdfIssueAttachmentsConfig
    • ProtocolAnswerOutDto
    • PdfMessageSectionConfig
    • ComplianceProtocolAnswerUpdateInDto
    • NumericProtocolAnswerUpdateInDto
    • TextProtocolAnswerUpdateInDto
    • OptionSelectionProtocolAnswerUpdateInDto
    • ProtocolAnswerUpdateInDto
  1. WorkflowStage

Create a stage in a workflow

POST
https://app.hustro.com/api/v2/project/{projectId}/workflow/{workflowId}/stage
OperationId:createStage
Creates a new stage in a workflow.
Approval semantics:
When approvalType is null, no approval is required and requiredApprovals must be null or omitted.
When approvalType is set (e.g. parallel), approvers must contain between 1 and 10 entries.
requiredApprovals (optional) is the n-of-x threshold: an integer in [1, approvers.length]. When omitted, the backend defaults to approvers.length (all required, matching legacy parallel behavior).
Position:
Provide beforeId and/or afterId to position the stage between existing ones. Cannot insert before the first stage or after the last stage of the workflow.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Workflow with the new stage
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://app.hustro.com/api/v2/project//workflow//stage' \
--header 'hustro-client-version;' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Sophia Gutkowski",
    "icon": "assignment",
    "beforeId": "dC0CCb8a93acC03532a79DC3",
    "afterId": "FC9EDa7Fe4C5Fd4bF84BC5B6",
    "approvalType": "sequential",
    "approvers": [
        {
            "userId": "36FA75d3Bc071cd0f43F3F8a"
        },
        {
            "userId": "B4d2a1a8B2a0606dF3eFd7B9"
        },
        {
            "userId": "1a284cE03ba5cDB16f81A261"
        },
        {
            "userId": "e9687cA796DC9CDaCA5ccEBD"
        },
        {
            "userId": "ba2c00F3cf65573e1BccAA9e"
        }
    ]
}'
Response Response Example
{
    "_id": "string",
    "createdAt": "string",
    "createdBy": "string",
    "modifiedAt": "string",
    "modifiedBy": "string",
    "name": "string",
    "icon": "string",
    "order": "string",
    "approvalType": "string",
    "approvers": [
        {
            "userId": "string",
            "order": "string"
        }
    ],
    "autoApprove": true,
    "deleted": true
}
Previous
Update a workflow
Next
Update a stage
Built with