Submit Account Selections
POST/work-items/:id/submit-account-selection
This API submits account selections. Either an admin, or the owning/current user must make this request.
Request
Path Parameters
The ID of the work item
- application/json
Body
required
Account Selection Data map, keyed on fieldName
Responses
- 200
- 400
- 403
- 404
A work items details object.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
ID of the work item
ID of the requester
The displayname of the requester
The ID of the owner
The name of the owner
The description of the work item
Possible values: [Finished
, Rejected
, Returned
, Expired
, Pending
, Canceled
, null
]
The state of a work item
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[]
nullable
The ID of the certification
The ID of the certification target
The name of the certification target
The display name of the certification target
The name of the application/source
The name of the attribute being certified
The operation of the certification on the attribute
The value of the attribute being certified
The native identity of the target
approvalItems
object[]
nullable
The approval item's ID
The account referenced by the approval item
The name of the application/source
The attribute's name
The attribute's operation
The attribute's value
Possible values: [Finished
, Rejected
, Returned
, Expired
, Pending
, Canceled
, null
]
The state of a work item
The work item name
The number of items in the work item
form
object
nullable
ID of the form
Name of the form
The form title
The form subtitle.
The name of the user that should be shown this form
{
"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": "Pending",
"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",
"name": "emailAddress",
"operation": "update",
"value": "[email protected]",
"state": "Pending"
}
],
"name": "Account Create",
"completed": "2018-10-19T13:49:37.385Z",
"numItems": 19,
"errors": [
"The work item ID that was specified was not found."
],
"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": []
}
]
}
}
Client Error - Returned if the request body is invalid.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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."
}
]
}
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
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
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.
Actual 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."
}
]
}