コンテンツグループAPI呼び出しの例

コンテンツグループのさまざまなクエリオプション

コンテンツグループAPIを使用して、必要な結果セットをクエリして取得する方法の詳細な例を次に示します。

このクエリでは、テストとして名前を持つコンテンツグループが表示されます

https ://.coupahost.com/api/business_groups?name<instance> [contains ]= test

このクエリは、Login = testsupportで特定のユーザーによって更新されたコンテンツグループを提供します

https ://.coupahost.com/api/business_groups?created_by<instance> [login] = testsupport

このクエリには、2014年3月1日以降に作成されたすべてのビジネスグループが表示されます

https ://.coupahost.com/api/business_groups?created-at [gt<instance>] = 2014 -03 -01 T 12:00:00

単一のコンテンツグループを取得する

この例では、IDが9の単一の経費報告書を照会しました。

URLへのアクセスを行いました。

<instance>https://coupahost.com/api/business_groups/9

または

<instance>https://coupahost.com/api/business_groups?id=9

結果:

クエリコンテンツグループのサンプル結果

<?xml version="1.0" encoding="UTF-8"?>

<business-group>

	 <id type="integer">9</id>

	 2014 <created-at type="datetime">-04 -04 T 14:04:20 - 07:00</created-at>

	 2014 <updated-at type="datetime">-04 -04 T 14:04:20 - 07:00</updated-at>

	 <name>テスト1</name>

	 <description>test 1グループ</description>

	 <created-by>

			<id type="integer">1</id>

			<login>coupasupport</login>

			<email>upgrade@coupa.com</email>

			<employee-number nil="true" />

			<firstname>Coupa</firstname>

			<lastname>サポート</lastname>

			<salesforce-id nil="true" />

			<mycustom-userfield />

	 </created-by>

	 <updated-by>

			<id type="integer">1</id>

			<login>coupasupport</login>

			<email>upgrade@coupa.com</email>

			<employee-number nil="true" />

			<firstname>Coupa</firstname>

			<lastname>サポート</lastname>

			<salesforce-id nil="true" />

			<mycustom-userfield />

	 </updated-by>

</business-group>

 コンテンツグループ作成

この例では、コンテンツグループを作成しています。参照オブジェクトにはCoupaシステムIDを使用していません。

次のURLに投稿しました: https ://<instance url>/api/business_groups/

<?xml version="1.0" encoding="UTF-8"?>

<business-group>

	 <name>テストサンプルコンテンツグループ</name>

	 <description>何のパターングループ</description>

</business-group>

 

関連アイテム


Coupa Core API

CoupaのRESTful APIは、お客様のデータをCoupaプラットフォームで読み取り、編集し、統合するための堅牢なアクセスを提供します。

APIの開始

Coupa APIの使用に関する一般情報、およびCSVの使用を検討するタイミング。

OAuth 2.0およびOIDCへの移行

Coupaは従来のAPIキーを廃止し、OAuth 2.0 / OIDCの使用を必要としています。R34以降、新しいAPIキーは発行されず、R35ではAPIキーはサポートされなくなります。

リソース

参照データ、トランザクションデータ、共有リソースなど、オブジェクトのタイプ別にAPIエンドポイントを整理しました。