アプリケーションの更新
patch
/api/v2/applications/{id}/
このリソースに対してPUTまたはPATCHリクエストを行って、このアプリケーションを更新します。 次のフィールドを変更できます。
name
: このアプリケーションの名前。(文字列、必須)-
description
: このアプリケーションのオプションの説明。(文字列、デフォルト=""
) -
client_type
: クライアント・デバイスの安全性に応じて、パブリックまたは機密に設定します。(選択、必須)confidential
: 機密public
: パブリック
redirect_uris
: 許可されているURIリスト、スペース区切り(文字列、デフォルト=""
)authorization_grant_type
: このアプリケーションのトークンを取得するためにユーザーが使用する必要がある付与タイプ。(選択、必須)authorization-code
: 認可コードpassword
: リソース所有者のパスワードベース
skip_authorization
: Trueに設定すると、完全に信頼できるアプリケーションの認可ステップをスキップします。(ブール、デフォルト=False
)organization
: このアプリケーションを含む組織。(id、必須)
PATCHリクエストの場合は、変更中のフィールドのみを含めます。
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
問合せパラメータ
- search(オプション): 文字列
検索条件。
ルート・スキーマ : schema
例:
{
"authorization_grant_type":"password",
"name":"Test app with immutable grant type and user",
"organization":1,
"redirect_uris":"http://localhost/api/",
"skip_authorization":true
}
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
レスポンスの例(application/json)
{
"authorization_grant_type":"password",
"client_id":"xxxx",
"client_secret":"************",
"client_type":"confidential",
"created":"2018-02-01T08:00:00.000000Z",
"description":"",
"id":1,
"modified":"2018-02-01T08:00:00.000000Z",
"name":"Test app with immutable grant type and user",
"organization":1,
"redirect_uris":"http://localhost/api/",
"related":{
"activity_stream":"/api/v2/applications/1/activity_stream/",
"tokens":"/api/v2/applications/1/tokens/"
},
"skip_authorization":true,
"summary_fields":{
"organization":{
"description":"test-org-desc",
"id":1,
"name":"test-org"
},
"tokens":{
"count":0,
"results":[
]
},
"user":{
"first_name":"",
"id":1,
"last_name":"",
"username":"admin"
},
"user_capabilities":{
"delete":true,
"edit":true
}
},
"type":"o_auth2_application",
"url":"/api/v2/applications/1/"
}