Petition Details
- URL: api/v8.6/task/{procedureId}/{itemId}/procedure?itemType={itemType}
- Type: GET
-
Required headings:
- Authorization: TOKEN
Parameters
Name | Data type | Obligatory | Description |
---|---|---|---|
procedureId | Number | Yes | ID of the procedure to be associated (PRID from table ASDK_PROCEDURE) |
itemId | Number | Yes | Case ID (Composite ID or Global Case ID) |
itemId | Number | Yes | Case Type (1-Incident, 2-Problem, 3-Change, 4-Requirement) |

Body of the petition
N/A
Answer
No response body will be visible because the http response must be 200.
Error messages
Code | HTTP status | Error Message | Reason |
---|---|---|---|
400 | BadRequest | InvalidProcedureId | The procedure id is in an invalid format or is not among the possible procedures to be associated with the case (*). *The possible procedures to be associated depend on the configuration. This takes into account whether the procedure is associated with the type of case and whether a case has a service associated with it which has a configured procedure. |
404 | NotFound | InvalidItemId | The case id is not a validly formatted value or if the case does not correspond to the case type. |
400 | BadRequest | InvalidItemType | The case type is invalid. |
400 | BadRequest | InvalidStateConfiguraton | There are no statuses configured for tasks in the case project. |
404 | NotFound | CaseIsClosed | The case is in a final state. |
400 | BadRequest | FailureAddProcedure | The case already has an associated procedure. |
404 | NotFound | UnauthorizedCreateTaskIn CasesOfOtherSpecialist | The user cannot associate procedures with the case. Validation of the CREATE TASK IN CASES OF OTHER SPECIALIST permission is done as in the Specialists Web Console (ASDKV8). |
500 | InternalServerError | FailureAddProcedure | Internal server error. |