POST https://apis.wso2.com/api/am/admin/v0.12/applications/{applicationId}/change-owner
This operation is used to change the owner of an Application. In order to change the owner of an application, we need to pass the new application owner as a query parameter
apim:app_owner_change
i
POST https://localhost:9443/api/am/publisher/v0.12/apis/change-owner?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 200 OK
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -X POST "https://localhost:9443/api/am/publisher/v0.12/applications/890a4f4d-09eb-4877-a323-57f6ce2ed79b/change-owner?owner=admin"
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
owner required |
String | ||
Path |
applicationId required |
Application UUID |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. Application owner changed successfully. |
|
400 |
Bad Request. Invalid request or validation error |
Error |
404 |
Not Found. Requested Application does not exist. |
Error |
412 |
Precondition Failed. The request has not been performed because one of the preconditions is not met. |
Error |