/api2/subowners/update
Modifies an existing subowner.
Request Parameter | Type | Description |
---|---|---|
id | string | Subowner ID |
password | string | (optional) New password to set Do not use this password to authenticate a Live Slicer to your account. Please use an API key instead. Leverage this endpoint to only authorize this subowner to perform slicer-related actions by only granting the "slice" permission to a subowner. |
permissions | list | (optional) Permissions granted to this subowner Learn more. |
newkey | integer | (optional) Pass 1 to have the system generate a new secret API key. |
Response: See subowners/get API.
Sample request/response:
The Call() function, which is imported from uplynk_api2_auth module, prepares the message body and digital signature.
from uplynk_api2_auth import Call
print(Call('/api2/subowners/update', id='f534c6e0ebba4d70b2b4c31659e50952',
permissions=['slice'], newkey=1))
{
"username": "ptvn.dave",
"permissions": [
"slice"
],
"api_key": "dDd3IAo63+IrP5TqRYRnH03gtdcsRpap5lpnlQ7G",
"all_api_keys": {
"dyWViZwTqm/etPT4SB0sTdfz2msh3D9u+iihl4dG": {
"enabled": True
}
"a735c56ea4014685bc74c0a375236cc5": {
"enabled": False
}
}
"id": "f534c6e0ebba4d70b2b4c31659e50952",
"error": 0
}