POST
/
admin
/
v0
/
awards
/
{award_id}
/
assign
Assign an award to a user
curl --request POST \
  --url https://api.tightknit.ai/admin/v0/awards/{award_id}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --data '{
  "recipient": {
    "slack_user_id": "U1234567A"
  },
  "sender": {
    "slack_user_id": "U1234567A"
  },
  "send_anonymously": false
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
enum<string>
required
Available options:
application/json

Path Parameters

award_id
string
required
Minimum length: 1
Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
recipient
object
required

The user identifier, which must be exactly one of the following: Slack user ID, email, or Tightknit profile ID

sender

The sender of the award, if the award is being given by a user

send_anonymously
boolean
default:false

Whether to send the award anonymously. If true, the sender is not shown to the recipient.

Response

Assigns an award to a user

success
boolean
required