Change Ownership
- PUT /api/v1.2/scheduler/(int: id)/owner
Use this API to change the ownership of an existing schedule.
Required Role
The following users can make this API call:
Users who belong to the system-admin group.
Users who belong to a group associated with a role that allows managing a schedule. See Managing Groups and Managing Roles for more information.
Parameters
Note
Parameters marked in bold below are mandatory.
Parameter |
Description |
---|---|
new_owner_email |
Provide the email ID of the (new) owner to whom you want to transfer the ownership of the schedule. |
Response
The response contains a JSON object representing the email ID of the schedule’s new owner.
Example
Goal: Modify the owner of the schedule
curl -i -X PUT -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Accept: application/json" -H "Content-type: application/json" \
-d '{"new_owner_email":"[email protected]"}' \
"https://api.qubole.com/api/v1.2/scheduler/24/owner"
Note
The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.
Response
{
"success": true,
"new_owner_email":"[email protected]"
}