Docs Rizler

Courses

Assign Course

POSThttps://app.rizzdial.com/api/knowledge-hub/courses/{id}/assign
Assign Course
curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/<id>/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "company_id": "MTI="
}'
{
  "data": {
    "id": "NQ==",
    "status": "assigned",
    "user_id": 12,
    "course_id": 1
  },
  "message": "Course assigned to company successfully.",
  "success": true
}

Assign Course#

Assigns the course to one company or user. Already assigned returns 400. Requires edit-knowledge-hub.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

idstringpathrequired

Base64 id from the matching list or builder. A raw numeric id is also accepted.

company_idstringbodyrequired

Base64 or numeric user/company id from Assignable Companies

curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/MQ==/assign \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"company_id":"MTI="}'
messagestring

Course assigned to company successfully.

dataobject

Assignment row with base64 id, status assigned