People | Promotion
Service to manage entities of type 'Promotion'.
Overview
URL | api/{tenantKey}/{orgKey}/peopleCore/promotions |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
- PUT:
- DELETE:
All Resources
This service uses the following resources:
All Enumerations
This service uses the following enumerations:
GET Promotions
Returns the list of all the entity records available.
Response:
When successful, the response body contains the list of records available. See PromotionResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Promotions (paged)
Returns a page of the list of all the entity records available.
The following elements are optional:
page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
When successful, the response body contains the list of records available. See PromotionResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Promotion by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See PromotionResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Promotion by key
Returns the entity record that matches the specified key.
The following elements are required:
promotionKey | (string) Promotion. |
Response:
When successful, the response body contains the entity record. See PromotionResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Print Promotion by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print Promotion by key
Prints the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Original Print PromotionOriginal by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print Promotion by key
Prints the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
POST Promotions
Creates a new entity record.
The following elements are required:
promotionResource | (ApiPromotionResource) The request body should contain the entity record that should be created. See ApiPromotionResource. |
Response:
When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiPromotionResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Career Promotion
Updates the value of attribute 'Career' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Date Promotion
Updates the value of attribute 'Date' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive Promotion
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set JobGrade Promotion
Updates the value of attribute 'JobGrade' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Position Promotion
Updates the value of attribute 'Position' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set PromotionKey Promotion
Updates the value of attribute 'PromotionKey' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Reason Promotion
Updates the value of attribute 'Reason' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (enum PromotionReason) The request body should contain the new value for the attribute. See PromotionReason. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Remark Promotion
Updates the value of attribute 'Remark' in the specified entity record.
The following elements are required:
promotionKey | (string) Promotion. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
DELETE Promotion by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE Promotion by key
Deletes the entity record that matches the specified key.
The following elements are required:
promotionKey | (string) Promotion. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
ApiPromotionResource
The following elements are required:
promotionKey | (string) Promotion. |
employee | (string) Employee. |
The following elements are optional:
date | (DateTime) Date. |
career | (string) Career. |
position | (string) Position. |
jobGrade | (string) Job Grade. |
reason | (enum PromotionReason) Reason.
See PromotionReason. |
remark | (string) Remark. |
PromotionResource
The following elements are required:
promotionKey | (string) Promotion. |
employee | (string) Employee.
(fk) Allowed value: the natural key of a record of type Employee. These records are accessibly through the Employees service. |
The following elements are optional:
date | (DateTime) Date. |
career | (string) Career.
(fk) Allowed value: the natural key of a record of type Career. These records are accessibly through the Careers service. |
position | (string) Position.
(fk) Allowed value: the natural key of a record of type Position. These records are accessibly through the Positions service. |
jobGrade | (string) Job Grade.
(fk) Allowed value: the natural key of a record of type JobGrade. These records are accessibly through the JobGrades service. |
reason | (enum PromotionReason) Reason.
See PromotionReason. |
remark | (string) Remark. |