Skip to main content

Update badge

PUT 

/admin/badges/:id.json

Update badge

Request

Path Parameters

    id integerrequired

Body

    name stringrequired

    The name for the new badge.

    badge_type_id integerrequired

    The ID for the badge type. 1 for Gold, 2 for Silver, 3 for Bronze.

Responses

success response

Schema
    badge_types object[]required
  • Array [
  • id integerrequired
    name stringrequired
    sort_order integerrequired
  • ]
  • badge objectrequired
    id integerrequired
    name stringrequired
    description stringrequired
    grant_count integerrequired
    allow_title booleanrequired
    multiple_grant booleanrequired
    icon stringrequired
    image_url stringnullrequired
    listable booleanrequired
    enabled booleanrequired
    badge_grouping_id integerrequired
    system booleanrequired
    long_description stringrequired
    slug stringrequired
    manually_grantable booleanrequired
    query stringnullrequired
    trigger stringnullrequired
    target_posts booleanrequired
    auto_revoke booleanrequired
    show_posts booleanrequired
    badge_type_id integerrequired
Loading...