Custom OAuth profiles
顧客に割り当てられたCustom OAuth profilesを管理するには、次のエンドポイントを使用します。
レート制限
Custom OAuth profileリソースには、次のレート制限があります:
| タイプ | リソース | 制限 |
|---|---|---|
| すべて | すべてのCustom OAuth profilesエンドポイント | 1分あたり60リクエスト |
クイックリファレンス
| タイプ | リソース | 説明 |
|---|---|---|
| POST | /api/managed_users/:managed_user_id/ custom_oauth_profiles/:id/assign | Custom OAuth profileを顧客ワークスペースに割り当てます |
| DELETE | /api/managed_users/:managed_user_id/ custom_oauth_profiles/:id/unassign | Custom OAuth profileを顧客ワークスペースから割り当て解除します。 |
Custom OAuth profileの割り当て
Custom OAuth profileを顧客ワークスペースに割り当てます。
POST /api/managed_users/:managed_user_id/custom_oauth_profiles/:id/assignURLパラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
| managed_user_id | string 必須 | Embedded顧客ID/外部ID。 外部IDには Eのプレフィックスを付ける必要があり(例: EA2300)、結果のIDはURLエンコードする必要があります。 |
| id | integer required | 顧客ワークスペースに割り当てる予定の、Embeddedパートナーワークスペース内のCustom OAuth profileのID。 |
サンプルリクエスト
shell
curl -X POST 'https://www.workato.com/api/managed_users/123/custom_oauth_profiles/322/assign' \
-H 'Authorization: Bearer <api_token>' \
-H 'Content-Type: application/json' \レスポンス
json
{
"result": {
"success": true
}
}Custom OAuth profileの割り当て解除
顧客ワークスペースからCustom OAuth profileの割り当てを解除します。
DELETE /api/managed_users/:managed_user_id/custom_oauth_profiles/:id/unassignURLパラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
| managed_user_id | string 必須 | Embedded顧客ID/外部ID。 外部IDには Eのプレフィックスを付ける必要があり(例: EA2300)、結果のIDはURLエンコードする必要があります。 |
| id | integer required | 顧客ワークスペースに割り当てるEmbeddedパートナーワークスペース内のCustom OAuth profileのID。 |
クエリパラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
| force | boolean | trueの場合、Custom OAuth profileが顧客ワークスペースで使用されていても、割り当てを解除します。 デフォルトはfalseです。 |
サンプルリクエスト
shell
curl -X DELETE 'https://www.workato.com/api/managed_users/123/custom_oauth_profiles/322/unassign' \
-H 'Authorization: Bearer <api_token>' \
-H 'Content-Type: application/json' \レスポンス
json
{
"result": {
"success": true
}
}Last updated: