الانتقال إلى المحتوى الرئيسي
POST
Rotate a publishable key with an overlap
انظر أيضًا إلغاء مفتاح Phone SDK القابل للنشر.

التفويضات

x-api-key
string
header
مطلوب

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

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

key_id
string
مطلوب

The publishable key to rotate.

مثال:

"sk_01JCL2B6"

الجسم

application/json

How long the old value of a rotated key keeps working.

overlap_hours
integer

How long the value being replaced keeps working, from 0 to 168 hours, while the app update ships.

النطاق المطلوب: 0 <= x <= 168
مثال:

72

الاستجابة

The key with its new value.

key_id
string
مطلوب

The key.

مثال:

"sk_01JCL2B6"

platform
enum<string>
مطلوب

The platform it is for.

الخيارات المتاحة:
ios,
android,
web
مثال:

"ios"

publishable_key
string
مطلوب

The new value to ship in the app.

مثال:

"pk_live_ios_9Zt4"

previous_expires_at
string<date-time>
مطلوب

When the value this rotation replaced stops working.

مثال:

"2026-11-24T09:00:00Z"

app_ids
string[]

The bundle ids, package names or https origins it works for.

مثال:
status
enum<string>

active - the new value works; expiring - it was rotated again; revoked - it stopped working.

الخيارات المتاحة:
active,
expiring,
revoked
مثال:

"active"

created_at
string<date-time>

When the key was first issued.

مثال:

"2026-11-21T09:00:00Z"

آخر تعديل في ٢٣ نوفمبر ٢٠٢٦