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

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

Update brand

PUT/admin/v1/stores/{store_id}/brand
  • settings:write

Replace the store's brand. Send If-Match: "v{version}" ("v0" for the first save) to avoid overwriting someone else's changes.

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

  • store_idstringمطلوب

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

الترويسات

  • If-Matchstring · أو null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

الجسم

  • logo_idstring · أو null

    A file of the store's library.

  • icon_idstring · أو null
  • cover_idstring · أو null
  • colorstring · أو null
  • accent_colorstring · أو null
  • sloganstring · أو null

    One line, at most 120 characters.

  • slogan_translationsobject

ما يُرجعه

200 Saved brand.

الأخطاء

  • 412precondition_failedThe brand changed since it was read.
  • 422validation_failedValidation failed.