diff --git a/src/Apps/index.ts b/src/Apps/index.ts index f7961061..07aebde1 100644 --- a/src/Apps/index.ts +++ b/src/Apps/index.ts @@ -130,20 +130,16 @@ export default class Apps { * @see https://developers.scalingo.com/apps.html#transfer-ownership-of-an-application * @param appID ID of the application * @param currentName Current name of the application. Used as validation. - * @param ownerEmail Email address of the new owner. + * @param ownerID Email address of the new owner. * @return Promise that when resolved returns the App transferred. */ - transfer( - appID: string, - currentName: string, - ownerEmail: string - ): Promise { + transfer(appID: string, currentName: string, ownerID: string): Promise { return unpackData( this._client.apiClient().patch( `/apps/${appID}`, { app: { - owner: ownerEmail, + owner: ownerID, }, }, { params: { current_name: currentName } } diff --git a/src/models/regional/collaborators.ts b/src/models/regional/collaborators.ts index 2b718b64..127cb8dd 100644 --- a/src/models/regional/collaborators.ts +++ b/src/models/regional/collaborators.ts @@ -13,6 +13,10 @@ export interface Collaborator { id: string; /** Email of the collaborator to invite */ email: string; + /** Unique User ID of the user who accepted the collaboration */ + user_id: string; + /** ID of the application owning the collaborator */ + app_id: string; /** Username of the person to invite */ username: string; /** Status of the invitation */