DELETE /applications/{applicationId}/requirements/{requirementId}
Delete a requirement
Delete a requirement. Only requirements with status "pending" can be deleted.
Requires writeApplications permission.
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Required Parameters
x-account-id
header string Account ID for the request
applicationId
path string The unique ID of the application
requirementId
path integer The ID of the requirement
Try it out
Loading...
Output:
Responses
Description
Requirement deleted successfully
{ "success": true, "message": "Requirement deleted"}Description
Cannot delete non-pending requirement
{ "error": "string", "status": 0, "message": "string"}Description
Unauthorized - User not authenticated
Description
Forbidden - User does not have writeApplications permission
Description
Requirement or application not found
References
#/components/parameters/xAccountIdHeader#/components/parameters/applicationIdPath#/components/parameters/requirementIdPath#/components/schemas/Error
#/components/parameters/xAccountIdHeader
in: headername: x-account-idschema: type: stringdescription: Account ID for the requestrequired: trueexample: "2311"|export type xAccountIdHeader = any; // Schema type not fully supported#/components/parameters/applicationIdPath
name: applicationIdin: pathrequired: trueschema: type: stringdescription: The unique ID of the application|export type applicationIdPath = any; // Schema type not fully supported#/components/parameters/requirementIdPath
name: requirementIdin: pathrequired: trueschema: type: integerdescription: The ID of the requirement|export type requirementIdPath = any; // Schema type not fully supported#/components/schemas/Error
type: objectproperties: error: type: string description: Error message status: type: integer description: HTTP status code message: type: string description: Detailed error messagedescription: Error response objectrequired: - error|export interface Error { /** Error message */ error: string; /** HTTP status code */ status?: number; /** Detailed error message */ message?: string;}Route Source Code
Check out the source code for this route entrypoint here: /applications/[applicationId]/requirements/[requirementId]/route.ts
Or the swagger.yaml spec this documentation was generated from:
/applications/[applicationId]/requirements/swagger.yaml