作業員割り当てAPI

割り当ての確認、終了、開始日、終了日、役割などの主なフィールドの変更などの作業員データを取得して、プロビジョニングワークフローのトリガー、資産配分の管理、必要に応じたアクセスの終了が可能になります。

アクション

動詞 パス アクション 説明
GET /api/worker_assignments index すべての作業員の割り当てを取得。
GET /api/worker_assignments/:id show 単一の作業員の割り当てデータを取得。

要素

要素 説明 必須 一意 許容値 入力 出力 データタイプ

allow-worker-entered-price

割り当てのサービスシートを送信する作業員が手動で価格設定を指定できるかどうかを示します

はい

ブール値

auto-close

自動完了

はい

ブール値

auto-confirm

自動確認

はい

ブール値

close-authority

ユーザーが割り当てを手動で閉じるために必要な権限を持っているかどうかを示す

はい

integer

confirm-authority

権限を確認

はい

integer

created-at

作成日

はい

datetime

created-by

作成したユーザー

はい

ユーザー

end-date

終了日

はい

はい

datetime

external-reference-identifier

外部参照識別子

はい

string(255)

id

Coupaの内部ID

はい

integer

job-role-association

割り当てに関連付けられた役割オブジェクト

はい

ReferenceData::JobRole::JobRoleAssociation

resource-manager

作業員マネージャー

はい

ユーザー

service-manager-email

サプライヤー担当者のメールアドレス

はい

はい

string(255)

service-sheet-submission-owner

サービスシート送信オーナー

はい

string(255)

sourceable

発注明細の追加明細属性は、申請明細などの他のタイプでは異なる場合があります。

はい

ExtraLineAttributes::OrderLineAttribute

sourceable-type

発注明細や申請明細など、作業員割り当てのソース可能なタイプ

はい

string(255)

start-date

開始日

はい

はい

datetime

status

作業員割り当てのステータス

はい

はい

string(255)

supplier-contact-email

サービスマネージャーのメールアドレス

はい

string(255)

updated-at

更新日

はい

datetime

updated-by

更新したユーザー

はい

ユーザー

worker

作業員

はい

Worker::Worker

作業員割り当てを取得

方法

GET/api/worker_assignments

cURLリクエスト例
curl --location 'https://<your-instance>.com/api/worker_assignments' \
--header 'Accept: application/xml' \
--header 'Accept: application/json' \
--header 'Accept: application/octet-stream' \
--header 'Authorization: ••••••'
レスポンス例
<?xml version="1.0" encoding="UTF-8"?>
<worker-assignments type="array">
    <worker-assignment>
        <id type="integer">1</id>
        <created-at type="dateTime">2024-11-20T15:39:20-05:00</created-at>
        <updated-at type="dateTime">2024-11-20T15:39:20-05:00</updated-at>
        <status>pending_confirmation</status>
        <start-date type="dateTime">2024-10-31T20:00:00-04:00</start-date>
        <end-date type="dateTime">2024-11-29T19:00:00-05:00</end-date>
        <external-reference-identifier nil="true"/>
        <confirm-authority>buyer</confirm-authority>
        <close-authority>buyer</close-authority>
        <service-sheet-submission-owner>supplier</service-sheet-submission-owner>
        <allow-worker-entered-price nil="true"/>
        <auto-confirm type="boolean">false</auto-confirm>
        <auto-close type="boolean">false</auto-close>
        <supplier-contact-email>test@coupa.com</supplier-contact-email>
        <worker>
            <id type="integer">1</id>
            <created-at type="dateTime">2024-11-20T15:36:25-05:00</created-at>
            <updated-at type="dateTime">2025-02-15T20:00:30-05:00</updated-at>
            <first-name>John</first-name>
            <last-name>Travolta</last-name>
            <middle-name nil="true"/>
            <active type="boolean">true</active>
            <status>open</status>
            <current-title></current-title>
            <total-experience-in-years type="decimal">10.0</total-experience-in-years>
            <portal-access>Not Registered</portal-access>
            <gender-code>m</gender-code>
            <gender>Male</gender>
            <supplier>
                <id type="integer">1468</id>
                <name>Art Supply</name>
                <display-name>Art Supply (DO NOT EDIT)</display-name>
            </supplier>
            <worker-addresses type="array">
                <worker-address>
                    <id type="integer">6669</id>
                    <created-at type="dateTime">2024-11-20T15:36:25-05:00</created-at>
                    <updated-at type="dateTime">2024-11-20T15:38:05-05:00</updated-at>
                    <street1>542 Southwest Natura Avenue</street1>
                    <street2></street2>
                    <street3></street3>
                    <street4></street4>
                    <city>Orlando</city>
                    <state>FL</state>
                    <state-iso-code></state-iso-code>
                    <postal-code>22331</postal-code>
                    <active type="boolean">true</active>
                    <worker-address-purpose>
                        <id type="integer">33</id>
                        <code>Home</code>
                        <name>Home</name>
                    </worker-address-purpose>
                </worker-address>
            </worker-addresses>
            <external-identifiers type="array"/>
            <worker-phone-numbers type="array">
                <worker-phone-number>
                    <id type="integer">1</id>
                    <created-at type="dateTime">2024-11-20T15:36:25-05:00</created-at>
                    <updated-at type="dateTime">2024-11-20T15:36:25-05:00</updated-at>
                    <phone-type>work</phone-type>
                    <phone-number>
                        <number>9546556861</number>
                        <extension></extension>
                        <country-code>US</country-code>
                    </phone-number>
                </worker-phone-number>
            </worker-phone-numbers>
        </worker>
        <resource-manager>
            <id type="integer">4179</id>
            <login>a.belin2</login>
            <employee-number></employee-number>
            <firstname>aaron</firstname>
            <lastname>belin</lastname>
        </resource-manager>
        <sourceable>
            <id type="integer">671</id>
            <created-at type="dateTime">2024-11-20T15:35:11-05:00</created-at>
            <updated-at type="dateTime">2024-11-20T15:35:11-05:00</updated-at>
            <type>ExtraLineAttributes::DeliverableOrderLineAttribute</type>
            <order-line>
                <id type="integer">3258</id>
                <status>created</status>
                <description>Reimbursable Expense</description>
                <line-num>2</line-num>
                <service-sheet-required type="boolean">false</service-sheet-required>
                <start-date nil="true"/>
                <end-date nil="true"/>
                <supplier-contact-email></supplier-contact-email>
                <manager nil="true"/>
                <commodity nil="true"/>
                <order-header>
                    <id type="integer">2542</id>
                    <created-at type="dateTime">2024-11-20T15:35:11-05:00</created-at>
                    <updated-at type="dateTime">2024-11-20T15:35:22-05:00</updated-at>
                    <po-number>2542</po-number>
                    <status>issued</status>
                </order-header>
            </order-line>
        </sourceable>
        <job-role-association nil="true"/>
        <created-by>
            <id type="integer">80</id>
            <login>user@email.com</login>
            <employee-number nil="true"/>
        </created-by>
        <updated-by>
            <id type="integer">80</id>
            <login>user@email.com</login>
            <employee-number nil="true"/>
        </updated-by>
    </worker-assignment>
</worker-assignments>

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