This task involves developing an API to allow users to update the status of a specific policy using its unique ID. The API will enable users to change the policy status to one of three states: inactive, active, or published. This API will be useful for managing policy lifecycle updates within the system.
Goals
[x] Develop the Update Policy by ID API using the Strapi plugin.
[x] Ensure the API allows users to update the status of a policy to "inactive", "active", or "published."
[x] Implement error handling to ensure valid status updates.
[x] Maintain code quality and follow best practices.
Expected Outcome
A fully functional API that allows users to update the status of a policy based on its ID.
Users will be able to set the status of a policy to inactive, active, or published.
The updated status should be reflected in the system for any subsequent queries.
Acceptance Criteria
[x] Update Policy by ID API is created and operational.
[x] The API allows users to update the policy status to "inactive", "active", or "published."
[x] The updated status is correctly reflected in the system.
Description
This task involves developing an API to allow users to update the status of a specific policy using its unique ID. The API will enable users to change the policy status to one of three states: inactive, active, or published. This API will be useful for managing policy lifecycle updates within the system.
Goals
Expected Outcome
Acceptance Criteria
Mockups / Wireframes
NA
Product Name
Beckn
Domain
Strapi
Tech Skills Needed
Complexity
Medium
Category
API Development
Sub Category
Policy Management