Skip to main content

How to update follow ups

This endpoint allows you to update follow-ups to mark them as complete, archive them, or change their assignees.

To use this endpoint, you first need your credentials. If you don't already have one, please head over to the Authentication and Authorization page to see how you can request for credentials from us.

Request

HTTP request

PUT  https://api.mykaarma.com/leads/followup/department/{departmentUUID}/user/{userUUID}/list

Parameters

Required path parameters:

Parameter NameValueDescription
departmentUUIDstringUnique identifier for the department of the dealer (use the department of the follow-up)
userUUIDstringUnique identifier of the user through whom the action is being taken

Authorization

This request requires authorization. Include your credentials in the authorization header.

Request Body

Property NameTypeDescription
followUpUUIDsarrayList of unique identifiers for the follow-ups that need to be updated
followUpActionTypestringAn ENUM that defines the action to be taken on the follow-ups. Use one of: MARK_AS_DONE, ARCHIVE, ASSIGN, UNASSIGN
newAssigneeobject(Required if followUpActionType is ASSIGN) Details of the new assignee
newAssignee.uuidstringUnique identifier of the user
newAssignee.fnamestringFirst name of the user taking the action
newAssignee.lnamestringLast name of the user taking the action
actionTakenByobjectDetails of the user that is taking the action
actionTakenBy.uuidstringUnique identifier of the user
actionTakenBy.fnamestringFirst name of the user taking the action
actionTakenBy.lnamestringLast name of the user taking the action

Follow-up Action Types

Action TypeDescription
MARK_AS_DONEMarks the follow-up status as COMPLETE
ARCHIVEArchives the follow-ups
ASSIGNAssigns the follow-up to a user. Please send the newAssignee field with this action
UNASSIGNUnassigns the follow-up from the existing assigned user

Sample Request - Mark as Done

curl --location --request PUT 'https://api.mykaarma.com/leads/followup/department/{departmentUUID}/user/{userUUID}/list' \
--header 'accept: application/json' \
--header 'authorization: <your-credentials>' \
--header 'Content-Type: application/json' \
--data '{
"followUpUUIDs": ["follow-up-uuid-1", "follow-up-uuid-2"],
"followUpActionType": "MARK_AS_DONE",
"actionTakenBy": {
"uuid": "user-uuid",
"fname": "John",
"lname": "Doe"
}
}'

Sample Request - Assign Follow-up

curl --location --request PUT 'https://api.mykaarma.com/leads/followup/department/{departmentUUID}/user/{userUUID}/list' \
--header 'accept: application/json' \
--header 'authorization: <your-credentials>' \
--header 'Content-Type: application/json' \
--data '{
"followUpUUIDs": ["follow-up-uuid"],
"followUpActionType": "ASSIGN",
"newAssignee": {
"uuid": "new-assignee-uuid",
"fname": "Jane",
"lname": "Smith"
},
"actionTakenBy": {
"uuid": "user-uuid",
"fname": "John",
"lname": "Doe"
}
}'

Sample Request - Archive Follow-up

curl --location --request PUT 'https://api.mykaarma.com/leads/followup/department/{departmentUUID}/user/{userUUID}/list' \
--header 'accept: application/json' \
--header 'authorization: <your-credentials>' \
--header 'Content-Type: application/json' \
--data '{
"followUpUUIDs": ["follow-up-uuid"],
"followUpActionType": "ARCHIVE",
"actionTakenBy": {
"uuid": "user-uuid",
"fname": "John",
"lname": "Doe"
}
}'

Response

{
"statusCode": 200,
"error": null,
"warnings": null,
"updateSuccessful": true,
"archivedFollowUpUUIDList": []
}

Response Fields

FieldTypeDescription
statusCodeintegerHTTP status code (200 for success)
errorobjectError details if the request failed
warningsarrayWarning messages if any
updateSuccessfulbooleanIndicates if the update was successful
archivedFollowUpUUIDListarrayList of unique identifiers of follow-ups that were already archived before this request was made, so no update took place for them
tip
  • If a follow-up is already archived, it will be included in archivedFollowUpUUIDList and no update will be performed for it
  • Use ASSIGN action type to reassign follow-ups to different users
  • Use UNASSIGN to remove assignment from follow-ups