Authorization: Bearer ********************
{
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true,
"components": [
{
"custom": true,
"formula": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"isActive": true,
"isIncludedInCTC": true,
"isAttendanceBased": true,
"isTaxable": true,
"type": "EARNINGS",
"code": "BASIC",
"name": "string"
}
]
}
curl --location --request PUT 'https://api.upbooks.io/api/v1/salary-component/' \
--header 'ORGANIZATION-ID: 00000' \
--header 'Content-Type: application/json' \
--data-raw '{
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true,
"components": [
{
"custom": true,
"formula": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"isActive": true,
"isIncludedInCTC": true,
"isAttendanceBased": true,
"isTaxable": true,
"type": "EARNINGS",
"code": "BASIC",
"name": "string"
}
]
}'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organization": {
"id": "string",
"organizationId": "string",
"name": "string",
"state": "string"
},
"groupName": "string",
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string"
}
],
"isDeleted": true,
"salaryCalculationMode": "month-days",
"sandwichLeaves": true
},
"message": "string"
}