コンテンツグループ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>

 

関連アイテム


経費違反API

24 April 2017

経費違反APIを使用して、第三者のシステムに経費違反を送信します。

経費明細マイレージAPI

29 November 2017

経費明細配分API

30 November 2017

経費明細マイレージ割り当てAPI

30 November 2017

このページに表示されている一部、または全ての内容は、機械翻訳によるものです。ご了承ください。