Skip to content

Commit 9cca6e1

Browse files
laipz8200RiskeyL
andcommitted
docs: require user for file upload API (#794)
* docs(api-reference): require user for file upload Mark the user form field as required for the shared files/upload Service API endpoint in chat, chatflow, completion, and workflow specs. Update the field description to clarify that Service API conversations are separate from WebApp conversations. * docs(api-reference): clarify file upload user field and sync zh/ja --------- Co-authored-by: RiskeyL <7a8y@163.com> (cherry picked from commit 9b82c3e)
1 parent 2d18542 commit 9cca6e1

12 files changed

Lines changed: 36 additions & 24 deletions

en/api-reference/openapi_chat.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@
470470
"schema": {
471471
"type": "object",
472472
"required": [
473-
"file"
473+
"file",
474+
"user"
474475
],
475476
"properties": {
476477
"file": {
@@ -480,7 +481,7 @@
480481
},
481482
"user": {
482483
"type": "string",
483-
"description": "User identifier, defined by the developer's rules, must be unique within the application."
484+
"description": "Identifier for the end user, defined by your application's rules and unique within the app. Service API and WebApp user IDs are separate, even when identical."
484485
}
485486
}
486487
}

en/api-reference/openapi_chatflow.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@
498498
"schema": {
499499
"type": "object",
500500
"required": [
501-
"file"
501+
"file",
502+
"user"
502503
],
503504
"properties": {
504505
"file": {
@@ -508,7 +509,7 @@
508509
},
509510
"user": {
510511
"type": "string",
511-
"description": "User identifier, defined by the developer's rules, must be unique within the application."
512+
"description": "Identifier for the end user, defined by your application's rules and unique within the app. Service API and WebApp user IDs are separate, even when identical."
512513
}
513514
}
514515
}

en/api-reference/openapi_completion.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@
443443
"schema": {
444444
"type": "object",
445445
"required": [
446-
"file"
446+
"file",
447+
"user"
447448
],
448449
"properties": {
449450
"file": {
@@ -453,7 +454,7 @@
453454
},
454455
"user": {
455456
"type": "string",
456-
"description": "User identifier, defined by the developer's rules, must be unique within the application."
457+
"description": "Identifier for the end user, defined by your application's rules and unique within the app. Service API and WebApp user IDs are separate, even when identical."
457458
}
458459
}
459460
}

en/api-reference/openapi_workflow.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@
773773
"schema": {
774774
"type": "object",
775775
"required": [
776-
"file"
776+
"file",
777+
"user"
777778
],
778779
"properties": {
779780
"file": {
@@ -783,7 +784,7 @@
783784
},
784785
"user": {
785786
"type": "string",
786-
"description": "User identifier, defined by the developer's rules, must be unique within the application."
787+
"description": "Identifier for the end user, defined by your application's rules and unique within the app. Service API and WebApp user IDs are separate, even when identical."
787788
}
788789
}
789790
}

ja/api-reference/openapi_chat.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@
470470
"schema": {
471471
"type": "object",
472472
"required": [
473-
"file"
473+
"file",
474+
"user"
474475
],
475476
"properties": {
476477
"file": {
@@ -480,7 +481,7 @@
480481
},
481482
"user": {
482483
"type": "string",
483-
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。"
484+
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。Service API と WebApp のユーザー ID は独立しており、値が同じでも同じユーザーを指しません。"
484485
}
485486
}
486487
}

ja/api-reference/openapi_chatflow.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@
498498
"schema": {
499499
"type": "object",
500500
"required": [
501-
"file"
501+
"file",
502+
"user"
502503
],
503504
"properties": {
504505
"file": {
@@ -508,7 +509,7 @@
508509
},
509510
"user": {
510511
"type": "string",
511-
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。"
512+
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。Service API と WebApp のユーザー ID は独立しており、値が同じでも同じユーザーを指しません。"
512513
}
513514
}
514515
}

ja/api-reference/openapi_completion.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@
443443
"schema": {
444444
"type": "object",
445445
"required": [
446-
"file"
446+
"file",
447+
"user"
447448
],
448449
"properties": {
449450
"file": {
@@ -453,7 +454,7 @@
453454
},
454455
"user": {
455456
"type": "string",
456-
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。"
457+
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。Service API と WebApp のユーザー ID は独立しており、値が同じでも同じユーザーを指しません。"
457458
}
458459
}
459460
}

ja/api-reference/openapi_workflow.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@
773773
"schema": {
774774
"type": "object",
775775
"required": [
776-
"file"
776+
"file",
777+
"user"
777778
],
778779
"properties": {
779780
"file": {
@@ -783,7 +784,7 @@
783784
},
784785
"user": {
785786
"type": "string",
786-
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。"
787+
"description": "ユーザー識別子。開発者のルールで定義され、アプリケーション内で一意である必要があります。Service API と WebApp のユーザー ID は独立しており、値が同じでも同じユーザーを指しません。"
787788
}
788789
}
789790
}

zh/api-reference/openapi_chat.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@
470470
"schema": {
471471
"type": "object",
472472
"required": [
473-
"file"
473+
"file",
474+
"user"
474475
],
475476
"properties": {
476477
"file": {
@@ -480,7 +481,7 @@
480481
},
481482
"user": {
482483
"type": "string",
483-
"description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。"
484+
"description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。Service API 与 WebApp 的用户 ID 相互独立,即使取值相同也不指向同一用户。"
484485
}
485486
}
486487
}

zh/api-reference/openapi_chatflow.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@
498498
"schema": {
499499
"type": "object",
500500
"required": [
501-
"file"
501+
"file",
502+
"user"
502503
],
503504
"properties": {
504505
"file": {
@@ -508,7 +509,7 @@
508509
},
509510
"user": {
510511
"type": "string",
511-
"description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。"
512+
"description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。Service API 与 WebApp 的用户 ID 相互独立,即使取值相同也不指向同一用户。"
512513
}
513514
}
514515
}

0 commit comments

Comments
 (0)