Skip to main content
Create an award assignment

Authorizations

Authorization
string
header
required

A Tightknit admin API key, sent as Authorization: Bearer <key>.

Body

application/json
award_id
string
required

The award to give.

Pattern: ^awrd_[a-zA-Z0-9]{12}$
profile_id
string
required

The member receiving the award.

Pattern: ^prof_[a-zA-Z0-9]{12}$
given_by_id
string

The member credited with giving the award. Omit when nobody is.

Pattern: ^prof_[a-zA-Z0-9]{12}$
given_anonymously
boolean
default:false

Hides the giver from the recipient and from any announcement. Requires given_by_id.

notify
boolean
default:true

Sends the award's Slack DM and channel posts.

Response

Success

object
enum<string>
required

Always award_assignment.

Available options:
award_assignment
id
string
required

Unique identifier for the object.

Example:

"awas_8n4q1w7e3rty"

created_at
string<date-time>
required

When the award was issued, which is not always when it was earned.

source
enum<string>
required

How the award was given. One of:

  • milestone: for completing a journey milestone.
  • journey: for completing a journey.
  • group: for joining a group that grants it.
  • manual: by a person, through Studio, Slack or the API.
Available options:
milestone,
journey,
group,
manual
given_anonymously
boolean
required

Whether the giver asked to stay hidden from the recipient and from any announcement. given_by still names them, so do not display it when this is true.

award_id
string
required

The id of the award given.

award
object | null
required

The award given. Always included.

profile_id
string
required

The id of the profile that received the award.

given_by_id
string | null
required

The id of the profile credited with giving the award. Null when nobody is.

certificate_file_id
string | null
required

The id of the certificate generated for this recipient. Null when the award has no certificate, or until one is generated.

milestone_achievement_id
string | null
required

The id of the milestone achievement that earned the award. Null unless source is milestone.

journey_achievement_id
string | null
required

The id of the journey achievement that earned the award. Null unless source is journey.

group_membership_id
string | null
required

The id of the group membership that granted the award. Null unless source is group.

profile
object | null

The recipient. Present only when profile is expanded.

given_by
object | null

The giver. Present only when given_by is expanded.

certificate_file
object | null

The generated certificate. Present only when certificate_file is expanded.

group_membership
object | null

The granting membership, with its group. Present only when group_membership is expanded.