Change a profile's settings, those sent. What is made from then on follows them; certificates already issued keep their own.

PATCH /organizations/{organizationId}/profiles/{profileId}

PATCH https://dev.zanpki.com/organizations/{organizationId}/profiles/{profileId}

オペレーション ID organizations.organizationId.profiles.profileId.patch
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key.

パラメータ

名前場所型説明
organizationId パス 必須 string (snowflake) The organization.
profileId パス 必須 string (snowflake) The profile.

リクエストボディ

必須(application/x-www-form-urlencoded, application/json として送信)。

スキーマ: ChangeProfileBody

プロパティ型説明
certificate_profiles_name string 任意 What the organization calls the profile, 1 to 100 characters. The forms that make a certificate offer it by this name.
certificate_profiles_key_types list of one of: 1, 2, 3, 4, 5 任意 The key types its certificates may have: 1 RSA 2048, 2 RSA 3072, 3 RSA 4096, 4 EC P-256, 5 EC P-384. At least one.
certificate_profiles_default_key_type one of: 1, 2, 3, 4, 5 任意 The key type a form starts at, one of its key types.
certificate_profiles_digest one of: 1, 2, 3, null 任意 What its certificates are signed over when no digest is asked for: 1 SHA-256, 2 SHA-384 or 3 SHA-512; null to match the authority's key.
certificate_profiles_default_days integer (int32) 任意 How many days a certificate lasts when none are given, as with ACME: from 1 to its most days.
certificate_profiles_most_days integer (int32) 任意 The longest a certificate of this profile may last: 1 to 825 days.
certificate_profiles_name_kinds list of one of: 1, 2, 6, 7 任意 The kinds of alternative name its certificates may hold: 2 DNS names, 7 IP addresses, 1 email addresses, 6 URIs. A server's profile takes DNS names or IP addresses.
certificate_profiles_subject_organization string, or null 任意 Filled into a certificate's subject when it gives none. Its unit, city, state and country are filled in the same way.
certificate_profiles_subject_unit string, or null 任意 Filled into a certificate's subject when it gives no unit.
certificate_profiles_subject_city string, or null 任意 Filled into a certificate's subject when it gives no city.
certificate_profiles_subject_state string, or null 任意 Filled into a certificate's subject when it gives no state or province.
certificate_profiles_subject_country string, or null 任意 Two capital letters, filled into a certificate's subject when it gives no country.

レスポンス

ステータス説明スキーマコンテンツタイプ
204 Profile saved.
403 Your roles here do not allow this. Problem application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
その他のステータス The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

403 Your roles here do not allow this.

プロパティ型説明
type string 必須 A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

422 The input was rejected; errors names each failure.

プロパティ型説明
type string 必須 A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.
errors InputErrors 必須 What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

curl -X PATCH 'https://dev.zanpki.com/organizations/{organizationId}/profiles/{profileId}' \
  -H 'Authorization: Bearer <access token>' \
  -H 'Content-Type: application/json' \
  -d '{}'

すべてのドキュメント

0件のデータベースステートメント · キャッシュからの読み取り 14件 · データベース待機時間 0.0 ms · ピークメモリ 32.0 MiB
public.settingsSELECTキャッシュから
public.mesh_nodesSELECTキャッシュから
public.fqdnsSELECTキャッシュから
public.sitesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから