A machine main body provided on a lower propelling body of an operating machine, the machine main body comprising: a machine housing section configured to form a machine room for housing a predetermined machine, and including an opening section for opening the machine room upward; a lid member swingable with respect to the machine housing section between a closed position for closing the opening section and an open position for opening the opening section; a supporting member including a first end rotatably supported with respect to the lid member and a second end detachably supported to the machine housing section, the supporting member supporting the lid member such that the swinging of the lid member is restricted in a predetermined swinging position; wherein the machine housing section includes: a housing section main body; and an attaching and detaching section configuring at least a part of an edge portion of the opening section, and the attaching and detaching section includes: an engagement groove configured to engage with, in a state where displacement of the second end of the supporting member along a first route is allowed, the second end of the supporting member such that the lid member is allowed to swing between the closed position and the open position and the swinging of the lid member is restricted in the open position; and a detachment groove branching from the engagement groove and capable of guiding, by allowing displacement of the second end of the supporting member along a second route deviating from the first route, the second end of the supporting member to a position where the second end is released from the engagement by the engagement groove, characterized in that the machine main body comprises an auxiliary supporting section provided in the machine room and configured to detachably support the second end of the supporting member detached from the machine housing section such that the swinging of the lid member is restricted, and the attaching and detaching section is attachable and detachable to and from the housing section main body in a state where the second end of the supporting member is supported by the auxiliary supporting section. a machine housing section configured to form a machine room for housing a predetermined machine, and including an opening section for opening the machine room upward; a lid member swingable with respect to the machine housing section between a closed position for closing the opening section and an open position for opening the opening section; a supporting member including a first end rotatably supported with respect to the lid member and a second end detachably supported to the machine housing section, the supporting member supporting the lid member such that the swinging of the lid member is restricted in a predetermined swinging position; wherein the machine housing section includes: a housing section main body; and an attaching and detaching section configuring at least a part of an edge portion of the opening section, and the attaching and detaching section includes: an engagement groove configured to engage with, in a state where displacement of the second end of the supporting member along a first route is allowed, the second end of the supporting member such that the lid member is allowed to swing between the closed position and the open position and the swinging of the lid member is restricted in the open position; and a detachment groove branching from the engagement groove and capable of guiding, by allowing displacement of the second end of the supporting member along a second route deviating from the first route, the second end of the supporting member to a position where the second end is released from the engagement by the engagement groove, characterized in that the machine main body comprises an auxiliary supporting section provided in the machine room and configured to detachably support the second end of the supporting member detached from the machine housing section such that the swinging of the lid member is restricted, and the attaching and detaching section is attachable and detachable to and from the housing section main body in a state where the second end of the supporting member is supported by the auxiliary supporting section.