Function upload

  • Parameters

    • item: Item

      The item you want to upload to wikidata

    • options: UploadOptions

      The options for uploading

    Returns Promise<Item>

    A Promise for the item after uploading

    Throws

    If no authentication method is provided or the upload fails

    Example

    const token = await getToken('your wikidata username', 'your wikidata password');
    upload(item, {
    summary: 'test update',
    authToken: token
    });

Generated using TypeDoc