| POST | /v1/workforce/payrules/{PayRulePolicyId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PayRulePolicyId | path | int | No | |
| Doc | body | PayRulePolicyDoc | No | |
| ChangeNote | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Intro | form | string | No | |
| LockLine | form | string | No | |
| TemplateName | form | string | No | |
| Rules | form | List<PayRuleDef> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RuleId | form | string | No | |
| Name | form | string | No | |
| Kind | form | string | No | |
| Demand | form | string | No | |
| SourcePolicyName | form | string | No | |
| CascadeLevel | form | string | No | |
| Why | form | string | No | |
| Change | form | string | No | |
| OverrideWho | form | string | No | |
| OverrideConsequence | form | string | No | |
| NoNote | form | string | No | |
| LegalVerify | form | string | No | |
| Params | form | Dictionary<string, string> | No | |
| Doc | form | List<PayRuleDocSection> | No | |
| Tune | form | PayRuleTune | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| H | form | string | No | |
| T | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Intro | form | string | No | |
| Options | form | List<PayRuleTuneOption> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Label | form | string | No | |
| Sub | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Policy | form | PayRulePolicy | No | |
| Doc | form | PayRulePolicyDoc | No | |
| VersionNumber | form | int | No | |
| Versions | form | List<PayRulePolicyVersionInfo> | No | |
| CanEditRules | form | bool | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PayRulePolicyId | form | int | No | |
| PayRulePolicyUID | form | Guid | No | |
| Name | form | string | No | |
| ScopeLevel | form | string | No | |
| BranchId | form | Guid? | No | |
| JurisdictionKey | form | string | No | |
| CbaKey | form | string | No | |
| WorkTypeKey | form | string | No | |
| CurrentVersion | form | int | No | |
| IsActive | form | bool | No | |
| BranchName | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PayRulePolicyVersionId | form | int | No | |
| VersionNumber | form | int | No | |
| ChangeNote | form | string | No | |
| ChangedByName | form | string | No | |
| CreatedAtUtc | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/workforce/payrules/{PayRulePolicyId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PayRulePolicyId: 0,
Doc:
{
Intro: String,
LockLine: String,
TemplateName: String,
Rules:
[
{
RuleId: String,
Name: String,
Kind: String,
Demand: String,
SourcePolicyName: String,
CascadeLevel: String,
Why: String,
Change: String,
OverrideWho: String,
OverrideConsequence: String,
NoNote: String,
LegalVerify: String,
Params:
{
String: String
},
Doc:
[
{
H: String,
T: String
}
],
Tune:
{
Intro: String,
Options:
[
{
Label: String,
Sub: String
}
]
}
}
]
},
ChangeNote: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Policy:
{
PayRulePolicyId: 0,
PayRulePolicyUID: 00000000000000000000000000000000,
Name: String,
ScopeLevel: String,
BranchId: 00000000000000000000000000000000,
JurisdictionKey: String,
CbaKey: String,
WorkTypeKey: String,
CurrentVersion: 0,
IsActive: False,
BranchName: String
},
Doc:
{
Intro: String,
LockLine: String,
TemplateName: String,
Rules:
[
{
RuleId: String,
Name: String,
Kind: String,
Demand: String,
SourcePolicyName: String,
CascadeLevel: String,
Why: String,
Change: String,
OverrideWho: String,
OverrideConsequence: String,
NoNote: String,
LegalVerify: String,
Params:
{
String: String
},
Doc:
[
{
H: String,
T: String
}
],
Tune:
{
Intro: String,
Options:
[
{
Label: String,
Sub: String
}
]
}
}
]
},
VersionNumber: 0,
Versions:
[
{
PayRulePolicyVersionId: 0,
VersionNumber: 0,
ChangeNote: String,
ChangedByName: String,
CreatedAtUtc: 0001-01-01
}
],
CanEditRules: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}