Batch changes TimeCardModifiedReason.
Use this method if you want to patch/create/delete TimeCardModifiedReason. For patch action it is not required to provide all fields. Returns updated and created objects. Permissions: Administrator, SupportAdministrator, SystemAdministrator users.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body·
- Type: array of integer | nullFormat: int32Delete
- Properties: 3Type: array of OPS.Shared.Models.TimeCard.Dto.TimeCardModifiedReasonPostDto | nullInsert
- Properties: 4Type: array of OPS.Shared.Models.TimeCard.Dto.TimeCardModifiedReasonPatchDto | nullUpdate
Responses
Request Example for post/v2/TimeCard/ModifiedReasons/Batch
curl /v2/TimeCard/ModifiedReasons/Batch \
--request POST \
--header 'Content-Type: application/json-patch+json' \
--header 'DCKey: YOUR_SECRET_TOKEN' \
--data '{
"Delete": [
1
],
"Insert": [
{
"Description": null,
"CommentEnabled": null,
"CommentRequired": null
}
],
"Update": [
{
"ID": null,
"Description": "",
"CommentEnabled": {},
"CommentRequired": {}
}
]
}'
[
{
"ID": 1,
"Description": null,
"CommentEnabled": true,
"CommentRequired": true
}
]