v2

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-07-21130282381.6 KB
APIs

Transfer the ownership of the API

Transfer the ownership of the API

Transfer the ownership of the API to a user, a group or an api member. Return a 404 HTTP Error if API cannot be found.

High risk operation: require explicit user confirmation before execution.

post/environments/{envId}/apis/{apiId}/_transfer-ownership

Request body

userIdstring

The new primary owner ID (user's technical identifier). Can be null if userReference is defined.

userReferencestring

The new primary owner reference (user's reference provided by an identity provider). Can be null if userId is defined.

userType'USER' | 'GROUP'

The type of membership

poRolestring

The name of the role that will be assigned to the current primary owner after the transfer.

Response

Ownership has been transfered successfully