Application


Change Application Owner

POST https://apis.wso2.com/api/am/admin/v0.14/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

OAuth 2.0 Scope

apim:app_owner_changei

Request

POST https://localhost:9443/api/am/admin/v0.14/apis/change-owner?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8

Response

HTTP/1.1 200 OK

Sample CURL

curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -X POST "https://localhost:9443/api/am/admin/v0.14/applications/890a4f4d-09eb-4877-a323-57f6ce2ed79b/change-owner?owner=admin"

Parameters

Type Name Description Schema Default
Query

owner

required

String

Path

applicationId

required

Application UUID

String

Responses

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