AuthN | Python SDK | Agreements Endpoints
Agreements Endpoints
Create an agreement
authn.agreements.create(type, name, text, active)Create an agreement.
response = authn.agreements.create(
type=AgreementType.EULA,
name="EULA_V1",
text="You agree to behave yourself while logged in.",
)
Delete an agreement
authn.agreements.delete(type, id)Delete an agreement.
authn.agreements.delete(
type=AgreementType.EULA,
id="peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a",
)
List agreements
authn.agreements.list(filter, last, order, order_by, size)List agreements.
response = authn.agreements.list()
Update agreement
authn.agreements.update(type, id, name, text, active)Update agreement.
response = authn.agreements.update(
type=AgreementType.EULA,
id="peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a",
text="You agree to behave yourself while logged in. Don't be evil.",
active=True,
)