Get a non-employee approval item detail​
Gets a non-employee approval item detail. There are two contextual uses for this endpoint:
- The user has the role context of
idn:nesr:read
, in which case they can get any approval. - The user owns the requested approval.
Path Parameters
- id string required
Non-Employee approval item id (UUID)
Example: e136567de87e4d029e60b3c3c55db56d
Query Parameters
- include-detail boolean
The object nonEmployeeRequest will not be included detail when set to false. Default value is true
Example: true
- 200
- 400
- 401
- 403
- 429
- 500
Non-Employee approval item object.
- application/json
- Schema
- Example (from schema)
Schema
- id UUID
Non-Employee approval item id
approver object
Reference to the associated Identity
type stringPossible values: [
GOVERNANCE_GROUP
,IDENTITY
]Identifies if the identity is a normal identity or a governance group
id stringIdentity id
- accountName string
Requested identity account name
- approvalStatus string
Possible values: [
APPROVED
,REJECTED
,PENDING
,NOT_READY
,CANCELLED
]Enum representing the non-employee request approval status
- approvalOrder float
Approval order
- comment string
comment of approver
- modified date-time
When the request was last modified.
- created date-time
When the request was created.
nonEmployeeRequest object
Non-Employee request associated to this approval
id UUIDNon-Employee request id.
requester object
type stringPossible values: [
GOVERNANCE_GROUP
,IDENTITY
]Identifies if the identity is a normal identity or a governance group
id stringIdentity id
accountName stringRequested identity account name.
firstName stringNon-Employee's first name.
lastName stringNon-Employee's last name.
email stringNon-Employee's email.
phone stringNon-Employee's phone.
manager stringThe account ID of a valid identity to serve as this non-employee's manager.
nonEmployeeSource object
id UUIDNon-Employee source id.
sourceId stringSource Id associated with this non-employee source.
name stringSource name associated with this non-employee source.
description stringSource description associated with this non-employee source.
schemaAttributes object[]
List of schema attributes associated with this non-employee source.
id UUIDSchema Attribute Id
system booleanTrue if this schema attribute is mandatory on all non-employees sources.
modified date-timeWhen the schema attribute was last modified.
created date-timeWhen the schema attribute was created.
type stringPossible values: [
TEXT
,DATE
,IDENTITY
]Enum representing the type of data a schema attribute accepts.
label stringLabel displayed on the UI for this schema attribute.
technicalName stringThe technical name of the attribute. Must be unique per source.
helpText stringhelp text displayed by UI.
placeholder stringHint text that fills UI box.
required booleanIf true, the schema attribute is required for all non-employees in the source
data object
Attribute blob/bag for a non-employee.
property name*
stringapprovalStatus stringPossible values: [
APPROVED
,REJECTED
,PENDING
,NOT_READY
,CANCELLED
]Enum representing the non-employee request approval status
comment stringcomment of requester
completionDate date-timeWhen the request was completely approved.
startDate dateNon-Employee employment start date.
endDate dateNon-Employee employment end date.
modified date-timeWhen the request was last modified.
created date-timeWhen the request was created.
{
"id": "2c1e388b-1e55-4b0a-ab5c-897f1204159c",
"approver": {
"type": "IDENTITY",
"id": "5168015d32f890ca15812c9180835d2e"
},
"accountName": "test.account",
"approvalStatus": "APPROVED",
"approvalOrder": 1,
"comment": "I approve",
"modified": "2019-08-23T18:52:59.162Z",
"created": "2019-08-23T18:40:35.772Z",
"nonEmployeeRequest": {
"id": "ac110005-7156-1150-8171-5b292e3e0084",
"requester": {
"type": "IDENTITY",
"id": "2c9180866166b5b0016167c32ef31a66",
"name": "William Smith"
},
"accountName": "william.smith",
"firstName": "William",
"lastName": "Smith",
"email": "william.smith@example.com",
"phone": "5555555555",
"manager": "jane.doe",
"nonEmployeeSource": {
"id": "a0303682-5e4a-44f7-bdc2-6ce6112549c1",
"sourceId": "2c91808568c529c60168cca6f90c1313",
"name": "Retail",
"description": "Source description",
"schemaAttributes": [
{
"id": "ac110005-7156-1150-8171-5b292e3e0084",
"system": true,
"modified": "2019-08-23T18:52:59.162Z",
"created": "2019-08-23T18:40:35.772Z",
"type": "TEXT",
"label": "Account Name",
"technicalName": "account.name",
"helpText": "The unique identifier for the account",
"placeholder": "Enter a unique user name for this account.",
"required": true
}
]
},
"data": {
"description": "Auditing"
},
"approvalStatus": "APPROVED",
"comment": "approved",
"completionDate": "2020-03-24T11:11:41.139-05:00",
"startDate": "2020-03-24",
"endDate": "2021-03-25",
"modified": "2020-03-24T11:11:41.139-05:00",
"created": "2020-03-24T11:11:41.139-05:00"
}
}
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."
}
]
}
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."
}
]
}