Files
Gainsight/Scripts/API_Tests/accredible-create.py
2023-06-07 22:10:31 -04:00

16 lines
396 B
Python

import requests
url = "https://api.accredible.com/v1/credentials"
# POST
attributes = {
# id: this can be any string. perhaps we set it to an email for easy ref?
recipient.name: "{{ learner.name }}",
recipient.email: "{{ learner.email }}",
group_id: 461982,
name: "Credential Name",
issued_on: "date",
expired_on: "date",
complete: "bool",
private: "bool",
}