Create an element entry
post
/hcmRestApi/resources/11.13.18.05/elementEntries
Request
Header Parameters
-
Effective-Of:
This header accepts a string value. The string is a semi-colon separated list of
= . It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers. -
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AssignmentId: integer
Unique identifier for a person assignment.
-
CreatorType(required): string
Title:
Creator Type
Maximum Length:30
Name of the user or the process that created the element entry record, such as batch element entry. -
EffectiveEndDate(required): string
(date)
Title:
Effective End Date
Date at the end of the period within which the entry is available for processing with element entry identifier. -
EffectiveStartDate(required): string
(date)
Title:
Effective Start Date
Date at the beginning of the period within which the entry is available for processing. -
ElementEntryHistory: array
Element Entry History
Title:
Element Entry History
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. -
ElementEntryId: integer
(int64)
Unique identifier for an element entry.
-
elementEntryValues: array
Element Entry Values
Title:
Element Entry Values
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. -
ElementName(required): string
Maximum Length:
80
Name of the element the entry is for, such as Performance Bonus. -
ElementTypeId(required): integer
(int64)
Title:
Element Name
Unique identifier of the element type. -
EntrySequence: integer
(int64)
Title:
Sequence Number
Unique number that identifies an element entry record when overlapping entries exists for the same element. -
EntryType(required): string
Title:
Entry Type
Maximum Length:30
Type of the element entry, such as regular entry or override. -
Intent: string
Maximum Length:
200
Apply internal finder validation. -
PersonId(required): integer
(int64)
Unique identifier for a person.
-
Reason: string
Title:
Reason
Maximum Length:4000
Reason for creating or updating an element entry. -
Subpriority: integer
(int32)
Title:
Subpriority
Number used to sequence the processing of element entries with the same priority.
Nested Schema : Element Entry History
Type:
array
Title:
Element Entry History
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate.
Show Source
Nested Schema : Element Entry Values
Type:
array
Title:
Element Entry Values
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate.
Show Source
Nested Schema : schema
Type:
Show Source
object
-
ElementEntryValueId: integer
(int64)
Unique identifier for an element entry value.
-
InputValueId: integer
(int64)
Unique identifier for an input value.
-
InputValueName: string
Name of the element's input value.
-
LovScreenEntryValue: string
Maximum Length:
60
Entry values contained within a list of values. -
ScreenEntryValue: string
Maximum Length:
60
Entry for input values available for each entry of the element.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : elementEntries-item-response
Type:
Show Source
object
-
AssignmentId: integer
Unique identifier for a person assignment.
-
AssignmentNumber: string
Read Only:
true
Maximum Length:255
Person's assignment number for the element entry. -
CreatorType: string
Title:
Creator Type
Maximum Length:30
Name of the user or the process that created the element entry record, such as batch element entry. -
EffectiveEndDate: string
(date)
Title:
Effective End Date
Date at the end of the period within which the entry is available for processing with element entry identifier. -
EffectiveStartDate: string
(date)
Title:
Effective Start Date
Date at the beginning of the period within which the entry is available for processing. -
ElementEntryHistory: array
Element Entry History
Title:
Element Entry History
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. -
ElementEntryId: integer
(int64)
Unique identifier for an element entry.
-
elementEntryValues: array
Element Entry Values
Title:
Element Entry Values
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. -
ElementName: string
Maximum Length:
80
Name of the element the entry is for, such as Performance Bonus. -
ElementTypeId: integer
(int64)
Title:
Element Name
Unique identifier of the element type. -
EntrySequence: integer
(int64)
Title:
Sequence Number
Unique number that identifies an element entry record when overlapping entries exists for the same element. -
EntryType: string
Title:
Entry Type
Maximum Length:30
Type of the element entry, such as regular entry or override. -
Intent: string
Maximum Length:
200
Apply internal finder validation. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PayrollRelationshipNumber: string
Read Only:
true
Maximum Length:255
Unique number that identifies the association between a person and a payroll statutory unit based on the payroll calculation and reporting requirements. -
PersonId: integer
(int64)
Unique identifier for a person.
-
PersonNumber: string
Title:
Person Number
Read Only:true
Maximum Length:30
Person number of the worker. -
Reason: string
Title:
Reason
Maximum Length:4000
Reason for creating or updating an element entry. -
Subpriority: integer
(int32)
Title:
Subpriority
Number used to sequence the processing of element entries with the same priority. -
UsageLevel: string
Title:
Employment Level
Read Only:true
Maximum Length:30
Employment level of the element at which the entry is created.
Nested Schema : Element Entry History
Type:
array
Title:
Element Entry History
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate.
Show Source
Nested Schema : Element Entry Values
Type:
array
Title:
Element Entry Values
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate.
Show Source
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : elementEntries-ElementEntryHistory-item-response
Type:
Show Source
object
-
EffectiveEndDate: string
(date)
Read Only:
true
Default entry value for the element entry. -
EffectiveStartDate: string
(date)
Read Only:
true
Unique identifier for an element entry value. -
ElementEntryId: integer
(int64)
Read Only:
true
Number assigned to an input value that determines the sequence in which the values appear. -
ElementTypeId: integer
(int64)
Read Only:
true
Indicates whether the existing entry values should be updated when the default value is updated. -
LastUpdateDate: string
(date-time)
Read Only:
true
Indicates whether a value is required for the input. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
Source location of the values contained within a list of values. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MultipleEntryCount: integer
(int64)
Read Only:
true
Unique identifier for an input value. -
Reason: string
Read Only:
true
Maximum Length:4000
Name of the element's input value. -
Subpriority: integer
(int32)
Read Only:
true
Entry values contained within a list of values.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : elementEntries-elementEntryValues-item-response
Type:
Show Source
object
-
DefaultValue: string
Read Only:
true
Maximum Length:60
Default entry value for the element entry. -
DisplaySequence: integer
(int32)
Title:
Display Sequence
Read Only:true
Number assigned to an input value that determines the sequence in which the values appear. -
ElementEntryValueId: integer
(int64)
Unique identifier for an element entry value.
-
HotDefaultFlag: boolean
Title:
Apply default at run time
Read Only:true
Maximum Length:30
Indicates whether the existing entry values should be updated when the default value is updated. -
InputValueId: integer
(int64)
Unique identifier for an input value.
-
InputValueName: string
Name of the element's input value.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
LovScreenEntryValue: string
Maximum Length:
60
Entry values contained within a list of values. -
MandatoryFlag: boolean
Read Only:
true
Maximum Length:1
Indicates whether a value is required for the input. -
PAY_VALUE_SET_ValueSetScreenEntryValue_VALUE_SET_SWITCHER: string
Read Only:
true
-
ReservedInputValue: string
Title:
Special Purpose
Read Only:true
Maximum Length:30
Unique identifier for the payroll -
ScreenEntryDataURL: string
Read Only:
true
Maximum Length:255
Source location of the values contained within a list of values. -
ScreenEntryValue: string
Maximum Length:
60
Entry for input values available for each entry of the element. -
UOM: string
Read Only:
true
Maximum Length:30
Name of the type of measurement that's applicable to a number displayed in a balance, amount, or other type of numeric field such as money, character or number. -
UserEnterableFlag: boolean
Title:
Allow User Entry
Read Only:true
Maximum Length:1
Indicates whether the user can enter input values.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Links
- ElementEntryHistory
-
Operation: /hcmRestApi/resources/11.13.18.05/elementEntries/{elementEntriesUniqID}/child/ElementEntryHistoryParameters:
- elementEntriesUniqID:
$request.path.elementEntriesUniqID
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. - elementEntriesUniqID:
- creatorTypesLOV
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DPAY_CREATOR_TYPE%2CLookupCode%3D{CreatorType}
The following properties are defined on the LOV link relation:- Source Attribute: CreatorType; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- elementEntryValues
-
Operation: /hcmRestApi/resources/11.13.18.05/elementEntries/{elementEntriesUniqID}/child/elementEntryValuesParameters:
- elementEntriesUniqID:
$request.path.elementEntriesUniqID
The elementEntryValues is a child of the elementEntries resource which includes values entered for an element, such as amount, periodicity, or rate. - elementEntriesUniqID:
Examples
The following example shows how to create an element entry by submitting a POST request on the REST resource using cURL.
curl -u <user>:<password> -H "Content-Type:application/json" -X POST -d <payload> https://<host>:<port>/hcmRestApi/resources/11.13.18.05/elementEntries
Example of Payload
The following is an example of the payload.
{ "PersonId": 300100003143709, "ElementTypeId": 300100003068055, "AssignmentId": 300100003143747, "EntryType": "E", "CreatorType": "F", "EntrySequence": 1, "elementEntryValues": [ { "InputValueId": 300100003068067, "ScreenEntryValue": "1000" } ] }
Example of Response Header
The following is an example of the response header.
Status: HTTP/1.1 201 Created Content-Type : application/json
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "ElementEntryId": 300100559371979, "EffectiveStartDate": "2020-07-25", "EffectiveEndDate": "4712-12-31", "CreatorType": "F", "ElementTypeId": 300100003068055, "EntryType": "E", "EntrySequence": 1, "PersonId": 300100003143709, "Reason": null, "Subpriority": null, "PersonNumber": "300100003143709", "AssignmentId": 300100003143747, "AssignmentNumber": "E300100003143709", "PayrollRelationshipNumber": "300100003143743", "ElementName": "ZHRX_USP_RegEarnings_One", "UsageLevel": "PA", "elementEntryValues": { "items": [] "links": [ { ...} ] }