updateApplicationUserProfile(appInstanceId, userSchema) {
    if (!appInstanceId) {
      return Promise.reject(new Error('OKTA API updateApplicationUserProfile parameter appInstanceId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/schemas/apps/${appInstanceId}/default`;

    const resources = [
      `${this.baseUrl}/api/v1/meta/schemas/apps/${appInstanceId}`
    ];

    const request = this.http.postJson(
      url,
      {
        body: userSchema
      },
      { resources }
    );
    return request.then(jsonRes => new models.UserSchema(jsonRes, this));
  }
/**
   *
   * @param appInstanceId {String}
   * @param {UserSchema} userSchema
   * @description
   * Partial updates on the User Profile properties of the Application User Schema.
   * @returns {Promise<UserSchema>}
   */
@param appInstanceId {String}
@param {UserSchema} userSchema
@description
Partial updates on the User Profile properties of the Application User Schema.
@returns {Promise}
@param appInstanceId { String } @param { UserSchema } userSchema @description Partial updates on the User Profile properties of the Application User Schema . @returns { Promise }
updateApplicationUserProfile(appInstanceId, userSchema) {
    if (!appInstanceId) {
      return Promise.reject(new Error('OKTA API updateApplicationUserProfile parameter appInstanceId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/schemas/apps/${appInstanceId}/default`;
    const resources = [
      `${this.baseUrl}/api/v1/meta/schemas/apps/${appInstanceId}`
    ];
    const request = this.http.postJson(
      url,
      {
        body: userSchema
      },
      { resources }
    );
    return request.then(jsonRes => new models.UserSchema(jsonRes, this));
  }
updateApplicationUserProfile ( appInstanceId , userSchema ) { if ( ! appInstanceId ) { return Promise . reject ( new Error ( 'OKTA API updateApplicationUserProfile parameter appInstanceId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ appInstanceId } ` ; const resources = [ ` ${ this . baseUrl } ${ appInstanceId } ` ] ; const request = this . http . postJson ( url , { body : userSchema } , { resources } ) ; return request . then ( jsonRes => new models . UserSchema ( jsonRes , this ) ) ; }
@param appInstanceId {String}
 @param {UserSchema} userSchema
 @description
 Partial updates on the User Profile properties of the Application User Schema.
@param appInstanceId { String } @param { UserSchema } userSchema @description Partial updates on the User Profile properties of the Application User Schema .