To give kudos to a user, you can use the following API endpoint:
Endpoint: POST /kudos/
Payload Parameters:
- receivers (Required): List of user UUIDs that will receive the kudos.
- company_value (Optional): Company value that you want to relate the kudos to.
- content (Required): Text content with the kudos message that will be posted.
- is_anonymous (Required): Boolean, set as true to give those kudos anonymously.
- by_dailybot (Required): Boolean, set as true if you want to give the kudos on behalf of DailyBot.
Request Example:
{
"receivers": [β5945bf0g2-66f5-4b29-bbd6-07421dfga87β,...],
"content": βGreat work!β,
"is_anonymous": false
}
"receivers": [β5945bf0g2-66f5-4b29-bbd6-07421dfga87β,...],
"content": βGreat work!β,
"is_anonymous": false
}
Response Example:
{
"id": uuid,
"parent": uuid",
"user": object(user), // <-- Kudos giver
"receivers": [object(user),...)],
"company_value": object,
"content": text,
"is_anonymous": boolean,
"metadata": object,
"created_at": datetime
}
"id": uuid,
"parent": uuid",
"user": object(user), // <-- Kudos giver
"receivers": [object(user),...)],
"company_value": object,
"content": text,
"is_anonymous": boolean,
"metadata": object,
"created_at": datetime
}
How to Use:
-
Prepare Payload: Create a JSON payload with the required parameters, including the list of user UUIDs for the kudos receivers.
-
Submit Request: Use the
POST
method on the specified endpoint to give kudos. -
Review Response: The response will be a JSON object with meta information about the given kudos.
If you have any questions or need further assistance, please reach out to our support team at support@dailybot.com.
Comments
0 comments
Article is closed for comments.