Skip to content

Commit d3d6c3e

Browse files
authored
Merge pull request #115 from dataiku/task/public-api-for-license
Public api for license
2 parents 7062cfa + 8298cb9 commit d3d6c3e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dataikuapi/dssclient.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,17 @@ def get_licensing_status(self):
990990
"""
991991
return self._perform_json("GET", "/admin/licensing/status")
992992

993+
def set_license(self, license):
994+
"""
995+
Sets a new licence for DSS
996+
997+
:param license: license (content of license file)
998+
:return: None
999+
"""
1000+
self._perform_empty(
1001+
"POST", "/admin/licensing/license", raw_body=license)
1002+
1003+
9931004
########################################################
9941005
# Internal Request handling
9951006
########################################################

0 commit comments

Comments
 (0)