def METHOD_NAME(self, identifier, **kwargs):
    """Add an alias."""
    if identifier is not None:
        return self._bad_request('Alias id should not be specified')
    data = json_decode(self.request.body)
    if not data or not all([data.get('series'), data.get('name'),
                            data.get('type')]) or 'id' in data or data['type'] != 'local':
        return self._bad_request('Invalid request body')
    series_identifier = SeriesIdentifier.from_slug(data.get('series'))
    if not series_identifier:
        return self._bad_request('Invalid series')
    main_db_con = db.DBConnection()
    last_changes = main_db_con.connection.total_changes
    cursor = main_db_con.action('INSERT INTO scene_exceptions'
                                ' (indexer, series_id, title, season, custom) '
                                ' values (?,?,?,?,1)',
                                [series_identifier.indexer.id,
                                 series_identifier.id,
                                 data['name'],
                                 data.get('season', -1)])
    if main_db_con.connection.total_changes - last_changes <= 0:
        return self._conflict('Unable to create alias')
    data['id'] = cursor.lastrowid
    return self._created(data=data, identifier=data['id'])