Paths

Add tokens

๐Ÿ”‘

Required OAuth scope: tokens:write.

Add tokens to a specific group for a given path.

post/api/v2/paths/add-tokens

Request

  • Base URL
    https://app.360learning.com
  • URL
    https://app.360learning.com/api/v2/paths/add-tokens
  • Auth
    OAuth 2
    Client credentials
    Token URL: /api/v2/oauth2/token

Headers

360-api-version'v2.0' required

The version of the API.

Request body

authorIdstring ObjectId required

The unique ID of the user adding the tokens.

groupIdstring ObjectId required

The unique ID of the group to which tokens are being added.

numberTokensBoughtinteger required

The number of tokens being added.

pathIdstring ObjectId required

The unique ID of the path associated with the tokens.

Example request

{
  "authorId": "507f1f77bcf86cd799439011",
  "groupId": "507f1f77bcf86cd799439011",
  "pathId": "507f1f77bcf86cd799439011"
}

Response

Add tokens.

Changes

No recorded changes to this operation across all 2 revisions of this API.