curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/leaves/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "leave",
"attributes": {
"name": "<string>",
"leave_type": "<string>",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"fte_percentage": 123,
"note": "<string>"
},
"relationships": {}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "leave",
"attributes": {
"effective_from": "2023-12-25",
"custom_fields": {},
"name": "<string>",
"leave_type": "<string>",
"effective_to": "2023-12-25",
"fte_percentage": 123,
"note": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"relationships": {
"profile": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "profile",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Updates a specific leave
curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/leaves/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "leave",
"attributes": {
"name": "<string>",
"leave_type": "<string>",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"fte_percentage": 123,
"note": "<string>"
},
"relationships": {}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "leave",
"attributes": {
"effective_from": "2023-12-25",
"custom_fields": {},
"name": "<string>",
"leave_type": "<string>",
"effective_to": "2023-12-25",
"fte_percentage": 123,
"note": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"relationships": {
"profile": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "profile",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer token
Leave UUID
Show child attributes
"leave""leave"
leave updated with custom fields overwriting existing value
Show child attributes
"leave""leave"
Show child attributes
Show child attributes
Show child attributes