Reject an Approval Item
This API rejects an Approval Item. Either an admin, or the owning/current user must make this request.
Path Parameters
- id string required
The ID of the work item
Example: ef38f94347e94562b5bb8424a56397d8 - approvalItemId string required
The ID of the approval item.
Example: 1211bcaa32112bcef6122adb21cef1ac
- 200
- 400
- 401
- 403
- 404
- 429
- 500
A work items details object.
- application/json
- Schema
- Example (from schema)
Schema
- id string
ID of the work item
- requesterId string
ID of the requester
- requesterDisplayName string
The displayname of the requester
- ownerId string
The ID of the owner
- ownerName string
The name of the owner
- created date-time
Time when the work item was created
- modified date-time
Time when the work item was last updated
- description string
The description of the work item
- state string
Possible values: [
FINISHED
,REJECTED
,RETURNED
,EXPIRED
,PENDING
,CANCELED
]The state of a work item
- type string
Possible values: [
UNKNOWN
,GENERIC
,CERTIFICATION
,REMEDIATION
,DELEGATION
,APPROVAL
,VIOLATIONREVIEW
,FORM
,POLICYVIOLATION
,CHALLENGE
,IMPACTANALYSIS
,SIGNOFF
,EVENT
,MANUALACTION
,TEST
]The type of the work item
remediationItems object
id stringThe ID of the certification
targetId stringThe ID of the certification target
targetName stringThe name of the certification target
targetDisplayName stringThe display name of the certification target
applicationName stringThe name of the application/source
attributeName stringThe name of the attribute being certified
attributeOperation stringThe operation of the certification on the attribute
attributeValue stringThe value of the attribute being certified
nativeIdentity stringThe native identity of the target
approvalItems object
id stringID of the approval item
account stringThe account referenced by the approval item
application stringThe name the application/source
attributeName stringThe name of the attribute
attributeOperation stringThe operation of the attribute
attributeValue stringThe value of the attribute
state stringPossible values: [
FINISHED
,REJECTED
,RETURNED
,EXPIRED
,PENDING
,CANCELED
]The state of a work item
- name string
The work item name
- completed date-time
The time at which the work item completed
- numItems int32
The number of items in the work item
form object
id stringID of the form
name stringName of the form
title stringThe form title
subtitle stringThe form subtitle.
targetUser stringThe name of the user that should be shown this form
sections object
name stringName of the FormItem
label stringLabel of the section
formItems object[]List of FormItems. FormItems can be SectionDetails and/or FieldDetails
- errors string[]
An array of errors that ocurred during the work item
{
"id": "2c9180835d2e5168015d32f890ca1581",
"requesterId": "2c9180835d2e5168015d32f890ca1581",
"requesterDisplayName": "John Smith",
"ownerId": "2c9180835d2e5168015d32f890ca1581",
"ownerName": "Jason Smith",
"created": "2017-07-11T18:45:37.098Z",
"modified": "2018-06-25T20:22:28.104Z",
"description": "Create account on source 'AD'",
"state": "FINISHED",
"type": "GENERIC",
"remediationItems": {
"id": "2c9180835d2e5168015d32f890ca1581",
"targetId": "2c9180835d2e5168015d32f890ca1581",
"targetName": "john.smith",
"targetDisplayName": "emailAddress",
"applicationName": "Active Directory",
"attributeName": "phoneNumber",
"attributeOperation": "update",
"attributeValue": "512-555-1212",
"nativeIdentity": "jason.smith2"
},
"approvalItems": {
"id": "2c9180835d2e5168015d32f890ca1581",
"account": "john.smith",
"application": "Active Directory",
"attributeName": "emailAddress",
"attributeOperation": "update",
"attributeValue": "[email protected]",
"state": "FINISHED"
},
"name": "Account Create",
"completed": "2018-10-19T13:49:37.385Z",
"numItems": 19,
"form": {
"id": "2c9180835d2e5168015d32f890ca1581",
"name": "AccountSelection Form",
"title": "Account Selection for John.Doe",
"subtitle": "Please select from the following",
"targetUser": "Jane.Doe",
"sections": {
"name": "Field1",
"label": "Section 1",
"formItems": []
}
},
"errors": [
"The work item ID that was specified was not found."
]
}
Client Error - Returned if the request body is invalid.
- application/json
- Schema
- Example (from schema)
Schema
- detailCode string
Fine-grained error code providing more detail of the error.
- trackingId string
Unique tracking id for the error.
messages object[]
Generic localized reason for error
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
causes object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "JWT validation failed: JWT is expired"
}
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
- application/json
- Schema
- Example (from schema)
- 403
Schema
- detailCode string
Fine-grained error code providing more detail of the error.
- trackingId string
Unique tracking id for the error.
messages object[]
Generic localized reason for error
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
causes object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 403 response object
{
"detailCode": "403 Forbidden",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The server understood the request but refuses to authorize it."
}
]
}
Not Found - returned if the request URL refers to a resource or object that does not exist
- application/json
- Schema
- Example (from schema)
- 404
Schema
- detailCode string
Fine-grained error code providing more detail of the error.
- trackingId string
Unique tracking id for the error.
messages object[]
Generic localized reason for error
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
causes object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 404 response object
{
"detailCode": "404 Not found",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The server did not find a current representation for the target resource."
}
]
}
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
- application/json
- Schema
- Example (from schema)
Schema
- message
A message describing the error
{
"message": " Rate Limit Exceeded "
}
Internal Server Error - Returned if there is an unexpected error.
- application/json
- Schema
- Example (from schema)
- 500
Schema
- detailCode string
Fine-grained error code providing more detail of the error.
- trackingId string
Unique tracking id for the error.
messages object[]
Generic localized reason for error
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
causes object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
locale stringThe locale for the message text, a BCP 47 language tag.
localeOrigin stringPossible values: [
DEFAULT
,REQUEST
]An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
text stringActual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 500 response object
{
"detailCode": "500.0 Internal Fault",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "An internal fault occurred."
}
]
}