For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Sanitation Worker

From the FSM Registry screen, an admin can create the sanitation worker page using the add option.

Creating Sanitation Workers

  • Admins can fill the "Add Sanitation Worker" form to create sanitation workers in the system.

  • Admins can fill details such as Mobile Number, Name, Date of Birth, Photograph, Address, Skills, etc.

Create Sanitation Workers
  • The mobile number has to be unique, otherwise a validation error will be shown and the user will not be able to submit the form.

  • There is a role details section at the bottom which is non-mandatory.

  • Using this role details section, an admin can specify the functional roles that this worker has, such as driver, helper, etc.

  • By default, all workers will have a generic SANITATION_WORKER role.

  • The functional roles have been mapped to the system roles using this master.

  • Currently, driver and helper functional roles are present in the system. Both are created as citizens.

  • Sanitation workers can have multiple functional roles, that is, they can be a driver as well as a helper.

  • Employer has two options: ULB and private vendor. This specifies the current employer of this worker. This can be changed in Edit Sanitation Worker.

  • Sanitation workers can also be tagged to vendors on this page based on whether the employer type is a ULB or a private vendor. This implies that the vendor select dropdown is populated based on the employer type.

  • Vendors can be a ULB or a private vendor. This is specified in this master.

  • After submitting the necessary details, an admin can click on submit and a response page is shown.

API Details

Individual Create

  • We will hit the "/individual/v1/_create" endpoint to create sanitation workers

  • The curl is given below:

Vendor Update

  • If a vendor is selected while creating a sanitation worker, we are calling this endpoint "/vendor/v1/_update" to tag this worker to a vendor after the individual create has responded with success.

  • The curl is given below:

Role-Action Mapping

  • Role-action mapping is done for the above two API endpoints for the following role:

Was this helpful?