انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Translate metafields

PUT/admin/v1/stores/{store_id}/metafields/translations

    Set and clear text fields' words in one of the store's other languages, by namespace.key. Only text fields with a value take words. Requires the permission that edits the owner.

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

    الترويسات

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    الجسم

    • owner_typeenumمطلوب

      What a metafield belongs to.

      • product
      • variant
      • collection
      • customer
      • order
      • store
    • localestringمطلوب
    • valuesobjectمطلوب
    • owner_idstring · أو null

      Left out for the store.

    ما يُرجعه

    200 The owner's metafields after the change.

    الأخطاء

    • 403forbiddenMissing the owner's write permission.
    • 404not_foundNo such owner.
    • 422validation_failedNot a language code, the store's own language, a field that isn't text or has no value, or words that don't fit; see errors[].field.