راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wbsetclaimvalue

(main | wbsetclaimvalue)
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: WikibaseRepository
  • مجوز: GPL-2.0-or-later

ثبت کردن مقدار برای یک ادعای ویکی‌بیس.

پارامترها:
Other general parameters are available.
claim

GUID یک اظهار را پیدا کرد

این پارامتر الزامی است.
value

The value to set the DataValue of the main snak of the claim to

snaktype

نوع اسنک

این پارامتر الزامی است.
یکی از مقدارهای زیر: novalue، somevalue، value
summary

خلاصه ویرایش. یک نظر خود به خودی ایجاد می‌شود. محدودیت طول آن، ۲۶۰ نویسه است. دقت کنید که بیشتر از آن نشان داده نمی‌شود.

tags

Change tags to apply to the revision.

مقدارهای (جداشده با | یا جایگزین‌های آن):
token

یک بلیط «csrf» واکشی‌شده از action=query&meta=tokens

این پارامتر الزامی است.
baserevid

شناسۀ عددی برای بازبینی برای مبنا قرار دادن برای تغییرات. این برای شناسایی تداخل‌ها در زمان ذخیره‌سازی استفاده می‌شود.

نوع: عدد صحیح
bot

این ویرایش را به عنوان ربات علامتگذاری کن فلگ یوآرال تنها در صورتی قابل اعتنا است که کاربر موردنظر عضو گروه «ربات‌ها» باشد.

نوع: بولی (جزئیات)
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

نوع: عنوان صفحه
صفحه‌های ناموجود را می‌پذیرد
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

پیش‌فرض: (خالی)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

پیش‌فرض: (خالی)