Supported Formats

json

GET /api/users/:user_id/badges
List user badges

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 User Not Found

Params

Param name Description
user_id
required

User Id

Validations:

  • Must be a String


GET /api/users/:user_id/badges/:id
Returns Badge

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 User Id Not Found
404 Payment Method Id Not Found

Params

Param name Description
user_id
required

User id

Validations:

  • Must be a String

id
required

Payment Method Id

Validations:

  • Must be a String


POST /api/users/:user_id/badges
Creates Badge

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 User Not Found
422 Unprocessable Entity

Params

Param name Description
user_id
required

User Id

Validations:

  • Must be a String

type
required

Type of badge

Validations:

  • Must be a String

name
required

Name of badge

Validations:

  • Must be a String

languages
required

Languages of badge

Validations:

  • Must be a String

description
optional

Description of badge

Validations:

  • Must be a String


PUT /api/users/:user_id/badges/:id
Returns Badge

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 User Id Not Found
404 Badge Id Not Found

Params

Param name Description
user_id
required

User id

Validations:

  • Must be a String

id
required

Badge Id

Validations:

  • Must be a String

type
required

Type of badge

Validations:

  • Must be a String

name
required

Name of badge

Validations:

  • Must be a String

languages
required

Languages of badge

Validations:

  • Must be a String

description
optional

Description of badge

Validations:

  • Must be a String


DELETE /api/users/:user_id/badges/:id
Delete Badge

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 User Id Not Found
404 Badge Id Not Found

Params

Param name Description
user_id
required

User id

Validations:

  • Must be a String

id
required

Badge Id

Validations:

  • Must be a String