Skip to main content

How do I check if a risk is Open Market, Facility or Declaration

Comments

1 comment

  • Official comment
    Akhil Tomy

    You will need to use Whitespace API on Swagger and check the .control object of the risk.

    Facility

    If the risk is a Facility, it will have a "isFacility" boolean field in control which is set to "true"

    Declaration

    If the risk is a declaration, it will have a "associatedFacilityIDs" array listing the ID's of any Facilities that is has been shown to

    Open Market

    If the risk neither has the "isFacility" set to true( or missing entirley) AND is missing the "associatedFacilityIDs" array then it is Open Market

    NOTE: A declaration could start out as a Open Market risk on Whitespace, it becomes a "Declaration" the moment it is shown to a Facility for the first time.

     

Please sign in to leave a comment.

Powered by Zendesk