/rest/herzum-hap-services/1.0/api/issueapprovals/{approvalId}/action
UI Expand |
---|
| Name | Type | Description | Optionality |
---|
approvalId | Path Parameter | The id of the IssueApproval we want to operate | Mandatory | ActionRequest | BodyParameter | Example Code Block |
---|
{
"action" : "APPROVE",
"username" : "username",
"password" : "password" ,
"comment" : "comment"
} |
| Optional | action | Part of Action Request | It can be one of APPROVE, REJECT, ABSTAIN, RESET | Mandatory | username | Part of Action Request | The username of the current logged in user | Optional** It can be required if configured into Approval Configuration | password | Part of Action Request | The password of the current logged in user | Optional** It can be required if configured into Approval Configuration | comment | Part of Action Request | The comment to be set with the approval action | Optional** It can be required if configured into Approval Configuration |
|
UI Expand |
---|
expanded | true |
---|
title | Requests / Responses |
---|
| Code | Request |
---|
| UI Expand |
---|
expanded | true |
---|
title | Successful Request |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "Name",
"password" : "Pwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"id": 11,
"issueId": 10500,
"approvalId": 3,
"issueStatus": "10001",
"approvalStatus": "APPROVED",
"date": "08/05/2020 15:24:28",
"approverUser": "admin",
"transitionId": "21",
"transitionName": "In Progress",
"notificationDate": "Not Sent",
"sourceStatusId": "10001",
"type": "WORKFLOW",
"defineCustomApproval": false,
"awt": false,
"awtr": false,
"awtad": false,
"arn": false,
"nac": false,
"rac": false,
"errorTransit": false,
"mra": -1,
"mrr": -1,
"conditionalRuleId": -1,
"submittedDate": "08/05/2020 12:43:52",
"sortSa": 1,
"sa": false,
"saad": false,
"abstainActionStatus": 0,
"isOptionalApproval": false
} |
|
| | UI Expand |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "WRONG",
"username" : "Name",
"password" : "Pwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.action.notexist",
"errorMessage": "The specified action does not exist. Use APPROVE, REJECT, ABSTAIN, RESET",
"status": 400
} |
|
| | UI Expand |
---|
title | WRONG issueApprovalId |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/214124214/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "adminName",
"password" : "adminPwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.notexist",
"errorMessage": "The specified issueApproval does not exist",
"status": 404
} |
|
| | UI Expand |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "userdoesnotexist",
"password" : "adminPwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.user.notfound",
"errorMessage": "The user does not exists",
"status": 404
} |
|
| | UI Expand |
---|
title | Username and Password mismatch |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "user",
"password" : "wrongpwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.credentials.wrong",
"errorMessage": "The username and the password do not match",
"status": 403
} |
|
| | UI Expand |
---|
title | Username different than loggedin user |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "differentusername",
"password" : "pwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "username.notcorrespond",
"errorMessage": "The username does not correspond to the loggedin user",
"status": 403
} |
|
| | UI Expand |
---|
title | Action not allowed or the user does not have permission |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "username",
"password" : "pwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.action.unauthorized",
"errorMessage": "The user cannot perform the required action",
"status": 403
} |
|
| | UI Expand |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"username" : "username",
"password" : "pwd" ,
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.action.required",
"errorMessage": "The action parameter is required",
"status": 400
} |
|
| | UI Expand |
---|
title | Password Required by configuration |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.pwd.required",
"errorMessage": "The password is required by the General Configuration",
"status": 400
} |
|
| | UI Expand |
---|
title | Username Required by configuration |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"password" : "password",
"comment" : "comment"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.username.required",
"errorMessage": "The username is required by the General Configuration",
"status": 400
} |
|
| | UI Expand |
---|
title | Comment Required by configuration |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "username",
"password" : "pwd"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.comment.required",
"errorMessage": "The comment is set to be required by Configuration",
"status": 400
} |
|
| | UI Expand |
---|
title | Forbidden Action on OWls Issue Approvals |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "username",
"password" : "pwd"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.action.owls",
"errorMessage": "Action on configuration issueApprovals (OWLs) are on allowed",
"status": 400
} |
|
| | UI Expand |
---|
title | Action disabled by configuration |
---|
| Code Block |
---|
http://{{hostname}}/rest/herzum-hap-services/1.0/api/issueapprovals/11/action |
Request Code Block |
---|
{
"action" : "APPROVE",
"username" : "username",
"password" : "pwd"
} |
Response Code Block |
---|
{
"errorCode": "issueapproval.action.disabled",
"errorMessage": "The action is disabled by Configuration",
"status": 403
} |
|
| | UI Expand |
---|
| Code Block |
---|
{
"errorCode": "license.invalid",
"errorMessage": "License is invalid",
"status": 402
} |
|
|
|
|