すべての添付の取得
get
/fscmRestApi/resources/11.13.18.05/draftSupplierNegotiationResponses/{draftSupplierNegotiationResponsesUniqID}/child/sections/{SectionId}/child/requirements/{RequirementId}/child/responseValues/{RequirementValueId}/child/attachments
リクエスト
パス・パラメータ
- RequirementId(required): integer(int64)
このパラメータの値は、リソース品目を一意に識別するために使用されるキーのハッシュである可能性があります。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントはフィルタを使用してコレクション・リソースを問い合せ、特定のリソース品目にナビゲートする必要があります。 たとえば: products?q=InventoryItemId=
- RequirementValueId(required): integer(int64)
このパラメータの値は、リソース品目を一意に識別するために使用されるキーのハッシュである可能性があります。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントはフィルタを使用してコレクション・リソースを問い合せ、特定のリソース品目にナビゲートする必要があります。 たとえば: products?q=InventoryItemId=
- SectionId(required): integer(int64)
このパラメータの値は、リソース品目を一意に識別するために使用されるキーのハッシュである可能性があります。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントはフィルタを使用してコレクション・リソースを問い合せ、特定のリソース品目にナビゲートする必要があります。 たとえば: products?q=InventoryItemId=
- draftSupplierNegotiationResponsesUniqID(required): string
これは、ドラフト・サプライヤ・ネゴシエーション・レスポンス・リソースの複合キーを構成し、ドラフト・サプライヤ・ネゴシエーション・レスポンスのインスタンスを一意に識別するために使用される属性のハッシュ・キーです。 クライアントはハッシュ・キー値を生成しないでください。 かわりに、クライアントは、ドラフト・サプライヤ・ネゴシエーション・レスポンスの特定のインスタンスに移動してハッシュ・キーを取得するために、ドラフト・サプライヤ・ネゴシエーション・レスポンス・コレクション・リソースを問い合せる必要があります。
問合せパラメータ
- dependency: string
このパラメータは、レスポンスの生成後に設定およびロールバックされるフィールドである依存関係を指定します。 通常、これらは属性変更の影響をプレビューするために使用されます。 このパラメータで指定されたフィールドは、常に問題のリソース・インスタンスで設定されます。 子リソース・コレクションがリクエストされ、パラメータが設定されると、リソース・コレクション・ペイロードを生成する前に、親リソース・インスタンスにフィールドが設定されます。 この問合せパラメータの値は、依存性フィールドのセットです。 例: dependency=ProductId=2
フォーマット: <attr1>=<val1>,<attr2>=<value2> - expand: string
このパラメータを指定すると、指定した子がリソース・ペイロードに含まれます(リンクのみでなく)。 この問合せパラメータの値は"all"または""です。 カンマをセパレータとして使用して、複数の子を指定できます。 例: ?expand=Employees,Localizations. ネストされた子は、"Child.NestedChild"の書式に従って指定することもできます(例): ?expand=Employees.Managers). ネストされた子が指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?expand=Employees.Managers"は"?expand=Employees、Employees.Managers"と同じです(これにより、従業員とマネージャが展開されます)。
- fields: string
このパラメータは、リソース・フィールドをフィルタします。 指定されたフィールドのみが返されます。つまり、フィールドが指定されていない場合、フィールドは返されません(リンクのみを取得する場合に便利です)。 間接子リソースが指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?fields=Employees.Managers:Empname"は"?fields=;Employees:;Employees.Managers:Empname" (これはマネージャの"Empname"フィールドのみを返す)と同じです。この問合せパラメータの値は、リソース・フィールドのリストです。 属性は直接にすることができます(例): 従業員または間接(例): Employees.Managers) child. 拡張問合せパラメータと組み合せることはできません。 両方を指定した場合、フィールドのみが考慮されます。
フォーマット : ?fields=Attribute1,Attribute2
子リソースのフィールドの書式 : ?fields=Accessor1:Attribute1,Attribute2 - finder: string
コレクションを検索するための事前定義済ファインダとして使用されます。
Format ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>
使用可能なファインダ名および対応するファインダ変数を次に示します- PrimaryKey主キーに従ってネゴシエーション・レスポンス明細の添付を検索します。
ファインダ変数- AttachedDocumentId; integer; レスポンス内の添付を一意に識別します。
- PrimaryKey主キーに従ってネゴシエーション・レスポンス明細の添付を検索します。
- limit: integer
このパラメータは、リソース・コレクション内で返されるリソースの数を制限します。 制限がリソース数を超えると、フレームワークは使用可能なリソースのみを返します。
- links: string
このパラメータは、単一のリソースまたはリソース・コレクションへのアクセス中に特定のリンクのみを表示するために使用できます。 パラメータ値書式は、次のカンマ区切りリストです : <link_relation>
例:
self,canonical
- offset: integer
リソース・コレクションの開始位置を定義するために使用します。 オフセットがリソース数を超えると、リソースは返されません。 デフォルト値は0です。
- onlyData: boolean
データのみを含めるために(リンク・セクションなしなど)、リソース品目ペイロードがフィルタ処理されます。
- orderBy: string
このパラメータは、指定されたフィールドに基づいてリソース・コレクションを順序付けます。 パラメータ値は、属性名のカンマ区切りの文字列で、それぞれオプションでコロンと「asc」または「desc」が続きます。 昇順の場合は「asc」、降順の場合は「desc」を指定します。 デフォルト値は「asc」です。 たとえば、?orderBy=field1:asc,field2:desc
- q: string
この問合せパラメータは、where句を定義します。 リソース・コレクションは、指定された式を使用して問い合せられます。 この問合せパラメータの値は、1つ以上の式です。 例 : ?q=部門番号>=10および<= 30;事業所=NY
フォーマット : ?q=expression1;expression2
次の問合せ可能な属性を使用して、q問合せパラメータを使用してこの収集リソースをフィルタできます:
- AttachedDocumentId; integer; 添付を一意に識別する値。 これは、ユーザーがドキュメントを添付するときにアプリケーションが作成する主キーです。
- CategoryName; string; 添付のカテゴリ。 有効な値は、サプライヤ: 自、2段階封印見積依頼用、サプライヤ: 自です : 技術評価が進行中の場合、およびサプライヤから : 商用(商業評価の進行中)。
- CreatedBy; string; 添付ファイルを作成したユーザー。
- CreatedByUserName; string; ネゴシエーションの添付を作成したユーザー。
- CreationDate; string; ユーザーが添付レコードを作成した日付。
- DatatypeCode; string; データ型を識別する略称。 値には、FILE、FOLDER、TEXTまたはWEB_PAGEがあります。
- DmDocumentId; string; 添付されたドキュメントを一意に識別する値。
- DmFolderPath; string; 添付のフォルダ・パス。
- DmVersionNumber; string; 添付されたドキュメントのバージョンを識別する番号。
- ExpirationDate; string; 添付内のコンテンツが期限切れになる日付。
- FileName; string; 添付のファイル名。
- LastUpdateDate; string; ユーザーが最後に添付を更新した日時。
- LastUpdatedBy; string; 最後に添付を更新したユーザー。
- LastUpdatedByUserName; string; ユーザーがネゴシエーションの添付を更新するときに使用したログインします。
- Uri; string; 添付ファイルを識別するURI (Uniform Resource Identifier)。
- Url; string; 添付ファイルを識別するURI (Uniform Resource Identifier)。
- UserName; string; 添付の追加または変更時にユーザーが使用したサインインの詳細。
- totalResults: boolean
"?totalResults=true"の場合、リソース・コレクション表現には"推定行数"が含まれます。それ以外の場合、カウントは含まれません。 デフォルト値はfalseです。
ヘッダー・パラメータ
- Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
この操作にはリクエスト本文がありません。
トップに戻るレスポンス
サポートされているメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : draftSupplierNegotiationResponses-sections-requirements-responseValues-attachments
タイプ:
ソースを表示
object
-
count(required): integer
現在の範囲内で返されるリソース・インスタンス数。
-
hasMore(required): boolean
サーバーで使用可能なリソースが、レスポンスで返されたサブセットより多いかどうかを示します。 値がtrueの場合、サーバーから取得するリソースが増えます。 デフォルト値はfalseです。
-
items: array Items
タイトル:
Items
コレクション内の品目。 -
limit(required): integer
サーバーで使用される実際のページング・サイズ。
-
links(required): array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
offset(required): integer
現在のページで使用されるオフセット値。
-
totalResults: integer
"?totalResults=true"の場合、推定行数は含まれません。
ネストされたスキーマ : draftSupplierNegotiationResponses-sections-requirements-responseValues-attachments-item-response
タイプ:
ソースを表示
object
-
AsyncTrackerId: string
タイトル:
Asynchronous Upload Tracker Id
アップロードされたファイルのトラッキングに使用される識別子。 -
AttachedDocumentId: integer (int64)
タイトル:
Attached Document Id
添付を一意に識別する値です。 これは、ユーザーがドキュメントを添付するときにアプリケーションが作成する主キーです。 -
CategoryName: string
タイトル:
Category
最大長:30
添付のカテゴリ。 有効な値は、サプライヤ: 自、2段階封印見積依頼用、サプライヤ: 自です : 技術評価が進行中の場合、およびサプライヤから : 商用(商業評価の進行中)。 - ContentRepositoryFileShared: boolean
-
CreatedBy: string
タイトル:
Created By
読取り専用:true
最大長:255
添付を作成したユーザー。 -
CreatedByUserName: string
タイトル:
Created By User Name
読取り専用:true
ネゴシエーションの添付を作成したユーザー。 -
CreationDate: string (date-time)
タイトル:
Creation Date
読取り専用:true
ユーザーが添付レコードを作成した日付。 -
DatatypeCode: string
タイトル:
Type
最大長:30
デフォルト値:FILE
データ型を識別する略語。 値には、FILE、FOLDER、TEXTまたはWEB_PAGEがあります。 -
Description: string
タイトル:
Description
最大長:255
添付の説明。 -
DmDocumentId: string
最大長:
255
添付されたドキュメントを一意に識別する値。 -
DmFolderPath: string
タイトル:
Dm Folder Path
最大長:1000
添付のフォルダ・パス。 -
DmVersionNumber: string
最大長:
255
添付文書のバージョンを識別する番号です。 -
DownloadInfo: string
タイトル:
DownloadInfo
添付ファイルをプログラムで取得するために使用される情報を含む文字列として表されるJSONオブジェクト。 -
ErrorStatusCode: string
タイトル:
Error Status Code
添付のエラー(ある場合)を識別する略称です。 -
ErrorStatusMessage: string
タイトル:
Error Status Message
添付のエラー・メッセージのテキスト(存在する場合)。 -
ExpirationDate: string (date-time)
タイトル:
Expiration Date
添付のコンテンツが失効する日付。 -
FileContents: string (byte)
タイトル:
File Contents
添付ファイルの内容。 -
FileName: string
タイトル:
File Name
最大長:2048
添付のファイル名。 -
FileUrl: string
タイトル:
File Url
添付ファイルのURL(Uniform Resource Locator)。 -
FileWebImage: string (byte)
タイトル:
File Web Image
読取り専用:true
ソースが変換可能なイメージの場合に、.png形式で表示されるファイルのBase64でエンコードされたイメージ。 -
LastUpdateDate: string (date-time)
タイトル:
Last Update Date
読取り専用:true
ユーザーが添付を最後に更新した日時。 -
LastUpdatedBy: string
タイトル:
Last Updated By
読取り専用:true
最大長:255
添付を最後に更新したユーザー。 -
LastUpdatedByUserName: string
タイトル:
Last Updated By User
読取り専用:true
ネゴシエーションの添付の更新時にユーザーが使用したログインします。 -
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
Title: string
タイトル:
Title
添付のタイトル。 -
UploadedFileContentType: string
タイトル:
Uploaded File Content Type
添付のコンテンツ・タイプ。 -
UploadedFileLength: integer
タイトル:
File Size
添付ファイルの長さ。 -
UploadedFileName: string
タイトル:
Uploaded File Name
添付ファイルの名前。 -
UploadedText: string
タイトル:
Uploaded Text
添付のテキスト。 -
Uri: string
タイトル:
Uri
最大長:4000
添付ファイルを識別するURI (Uniform Resource Identifier)。 -
Url: string
タイトル:
Url
最大長:4000
添付ファイルを識別するURI (Uniform Resource Identifier)。 -
UserName: string
タイトル:
User Name
読取り専用:true
最大長:255
添付の追加または変更時にユーザーが使用したサインイン詳細。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
object
-
href: string
タイトル:
hyperlink reference
関連リソースへのURI。 -
kind: string
タイトル:
kind
許可された値:[ "collection", "item", "describe", "other" ]
関連リソースの種類。 -
name: string
タイトル:
name
関連リソースへのリンクの名前。 -
properties: object properties
-
rel: string
タイトル:
relation
許可された値:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
リソース・インスタンスとの関係の名前。 例: self.
例
この例では、ネゴシエーション・レスポンス要件レスポンス値のすべての添付を取得する方法について説明します。
cURLコマンドの例
次のcURLコマンドを使用して、RESTリソースに対するリクエストを送信します:
curl -u username:password "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/draftSupplierNegotiationResponsesUniqID/child/sections/SectionId/child/requirements/RequirementId/child/responseValues/RequirementValueId/child/attachments"
たとえば:
curl -u username:password "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments"
レスポンス本文の例
次の例には、レスポンス本文の内容がJSON形式で含まれます:
{ "items": [ { "AttachedDocumentId": 300100563956655, "LastUpdateDate": "2022-12-12T06:13:59.824+00:00", "LastUpdatedBy": "CVBUYER02", "DatatypeCode": "FILE", "FileName": "Capture.JPG", "DmFolderPath": null, "DmDocumentId": "UCMFA00316697", "DmVersionNumber": "316497", "Url": null, "CategoryName": "FROM_SUPPLIER", "UserName": "From Supplier", "Uri": null, "FileUrl": "/content/conn/FusionAppsContentRepository/uuid/...", "UploadedText": null, "UploadedFileContentType": "image/jpeg", "UploadedFileLength": 39446, "UploadedFileName": null, "ContentRepositoryFileShared": "false", "Title": "Certification 2022 ", "Description": "", "ErrorStatusCode": null, "ErrorStatusMessage": null, "CreatedBy": "CVBUYER02", "CreationDate": "2022-12-12T05:47:41.760+00:00", "ExpirationDate": null, "LastUpdatedByUserName": "Cody Dapolito", "CreatedByUserName": "Cody Dapolito", "AsyncTrackerId": null, "DownloadInfo": "{\"XFND_EXPIRES\":\"1670829787396\",\"XFND_SCHEME_ID\":\"1\",\"XFND_CERT_FP\":\...", "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AF0000000EACED00057708000110F09B82F3AE", "name": "attachments", "kind": "item" }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AF0000000EACED00057708000110F09B82F3AE", "name": "attachments", "kind": "item" }, { "rel": "parent", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266", "name": "responseValues", "kind": "item" }, { "rel": "enclosure", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AF0000000EACED00057708000110F09B82F3AE/enclosure/FileContents", "name": "FileContents", "kind": "other" }, { "rel": "enclosure", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AF0000000EACED00057708000110F09B82F3AE/enclosure/FileWebImage", "name": "FileWebImage", "kind": "other" } ] }, { "AttachedDocumentId": 300100563956653, "LastUpdateDate": "2022-12-12T06:13:59.213+00:00", "LastUpdatedBy": "CVBUYER02", "DatatypeCode": "WEB_PAGE", "FileName": null, "DmFolderPath": null, "DmDocumentId": null, "DmVersionNumber": null, "Url": "http://www.oracle.com", "CategoryName": "FROM_SUPPLIER", "UserName": "From Supplier", "Uri": null, "FileUrl": null, "UploadedText": null, "UploadedFileContentType": null, "UploadedFileLength": null, "UploadedFileName": null, "ContentRepositoryFileShared": "false", "Title": "Website", "Description": "", "ErrorStatusCode": null, "ErrorStatusMessage": null, "CreatedBy": "CVBUYER02", "CreationDate": "2022-12-12T05:47:03.513+00:00", "ExpirationDate": null, "LastUpdatedByUserName": "Cody Dapolito", "CreatedByUserName": "Cody Dapolito", "AsyncTrackerId": null, "DownloadInfo": null, "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AD0000000EACED00057708000110F09B82F3AC", "name": "attachments", "kind": "item" }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AD0000000EACED00057708000110F09B82F3AC", "name": "attachments", "kind": "item" }, { "rel": "parent", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266", "name": "responseValues", "kind": "item" }, { "rel": "enclosure", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AD0000000EACED00057708000110F09B82F3AC/enclosure/FileContents", "name": "FileContents", "kind": "other" }, { "rel": "enclosure", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments/00020000000EACED00057708000110F09B82F3AD0000000EACED00057708000110F09B82F3AC/enclosure/FileWebImage", "name": "FileWebImage", "kind": "other" } ] } ], "count": 2, "hasMore": false, "limit": 25, "offset": 0, "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/draftSupplierNegotiationResponses/207739/child/sections/300100563956622/child/requirements/300100563956623/child/responseValues/39266/child/attachments", "name": "attachments", "kind": "collection" } ] }