-
Notifications
You must be signed in to change notification settings - Fork 177
TVR-33624 : [API] Cascading Request - API reference documentation #1751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
5109c77
bb52635
232294e
6044b27
f6e0dee
0d8aaf7
2ff74f5
4b2a669
c3718ec
f875175
f31fac9
c24e702
e5f128d
f55ba97
43e66b9
2c2883e
3b49115
803f367
05cb663
4eacc21
af50f16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,170 @@ | ||
| --- | ||
| title: Travel Request v4 - Participant Resources | ||
| layout: reference | ||
| --- | ||
| # Travel Request v4 - Participant Resources | ||
|
|
||
| ## <a name="get-request-participants"></a>Get the list of Participants for a given Request | ||
|
|
||
| ### Scopes | ||
|
|
||
| `travelrequest.write` - Refer to [Scope Usage](./v4.get-started.html#scope-usage) for full details. | ||
|
|
||
| ### HTTP Request | ||
|
|
||
| ##### URI Template | ||
|
|
||
| ``` | ||
| GET {datacenter}/travelrequest/v4/requests/{requestUuid}/participants | ||
| ``` | ||
|
|
||
| #### Parameters | ||
|
|
||
| Name|Type|Format|Description | ||
| ---|---|---|--- | ||
| `requestUuid`|`string`|[RFC 4122]|**Required** The unique identifier of the Request. | ||
| `userId`|`string`|-|The unique identifier of the user getting the participants list. If empty when using a Company token the default system user will be assumed to perform the action. | ||
|
|
||
| #### Headers | ||
|
|
||
| `concur-correlationid` is a specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122). | ||
|
|
||
| #### Payload | ||
|
|
||
| None. | ||
|
|
||
| ### HTTP Response | ||
|
|
||
| #### HTTP Status Codes | ||
|
|
||
| To learn more about response HTTP status codes for this API see [Travel Request v4 - HTTP Status Codes](./v4.response-codes.html). | ||
|
|
||
| #### Payload | ||
|
|
||
| List of [Parent Request Participant](./v4.endpoints.schemas.html#schema-parentrequestparticipant) | ||
|
|
||
| ### Example | ||
|
|
||
| #### HTTP Request | ||
|
|
||
| ```shell | ||
| GET https://us.api.concursolutions.com/travelrequest/v4/requests/224AF3CDCC2A5244A37C72FA5770C6F2/participants | ||
| Accept: application/json | ||
| Authorization: Bearer {token} | ||
| Concur-CorrelationId: 5512c7be-3fab-4d65-ae69-8a74a04a0c7f | ||
| ``` | ||
|
|
||
| #### HTTP Response | ||
|
|
||
| ```shell | ||
| 200 OK | ||
| ``` | ||
|
|
||
| ```json | ||
| [ | ||
| { | ||
| "participant": { | ||
| "href": "https://us.api.concursolutions.com/profile/v1/users/60dea1fd-489f-48b9-925f-0d62a5b48175", | ||
| "id": "60dea1fd-489f-48b9-925f-0d62a5b48175", | ||
| "template": "https://us.api.concursolutions.com/profile/v1/users/{id}" | ||
| }, | ||
| "requests": [ | ||
| { | ||
| "href": "https://us.api.concursolutions.com/travelrequest/v4/requests/A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4", | ||
| "id": "A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4", | ||
| "template": "https://us.api.concursolutions.com/travelrequest/v4/requests/{id}" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "participant": { | ||
| "href": "https://us.api.concursolutions.com/profile/v1/users/72efb2ae-5a0e-59ca-b037-1e73b6c59286", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we should not provide links to Profile v1 (deprecated)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The links were v4 and we switched back to v1 to align with other endpoints
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other endpoints will not display the href due to specific handling of Profile href for external calls |
||
| "id": "72efb2ae-5a0e-59ca-b037-1e73b6c59286", | ||
| "template": "https://us.api.concursolutions.com/profile/v1/users/{id}" | ||
| }, | ||
| "requests": [ | ||
| { | ||
| "href": "https://us.api.concursolutions.com/travelrequest/v4/requests/B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5", | ||
| "id": "B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5", | ||
| "template": "https://us.api.concursolutions.com/travelrequest/v4/requests/{id}" | ||
| }, | ||
| { | ||
| "href": "https://us.api.concursolutions.com/travelrequest/v4/requests/C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5F6", | ||
| "id": "C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5F6", | ||
| "template": "https://us.api.concursolutions.com/travelrequest/v4/requests/{id}" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| ``` | ||
|
|
||
| ## <a name="patch-request-participants"></a>Manage Participants of a given Request | ||
|
|
||
| ### Scopes | ||
|
|
||
| `travelrequest.write` - Refer to [Scope Usage](./v4.get-started.html#scope-usage) for full details. | ||
|
|
||
| ### HTTP Request | ||
|
|
||
| ##### URI Template | ||
|
|
||
| ``` | ||
| PATCH {datacenter}/travelrequest/v4/requests/{requestUuid}/participants | ||
| ``` | ||
|
|
||
| #### Parameters | ||
|
|
||
| Name|Type|Format|Description | ||
| ---|---|---|--- | ||
| `requestUuid`|`string`|[RFC 4122]|**Required** The unique identifier of the Request. | ||
| `userId`|`string`|-|The unique identifier of the user patching the participants list. **Required** when connecting with a Company token. If empty, a 400 `missingRequiredParam` error. | ||
|
|
||
| #### Headers | ||
|
|
||
| `concur-correlationid` is a specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122). | ||
|
|
||
| #### Payload | ||
|
|
||
| [Request Participants For Patch](./v4.endpoints.schemas.html#schema-requestparticipantsforpatch) | ||
|
|
||
| ### HTTP Response | ||
|
|
||
| #### HTTP Status Codes | ||
|
|
||
| To learn more about response HTTP status codes for this API see [Travel Request v4 - HTTP Status Codes](./v4.response-codes.html). | ||
|
|
||
| #### Payload | ||
|
|
||
| None. | ||
|
|
||
| ### Example | ||
|
|
||
| #### HTTP Request | ||
|
|
||
| ```shell | ||
| PATCH https://us.api.concursolutions.com/travelrequest/v4/requests/224AF3CDCC2A5244A37C72FA5770C6F2/participants | ||
| Content-Type: application/merge-patch+json | ||
| Accept: application/json | ||
| Authorization: Bearer {token} | ||
| Concur-CorrelationId: 5512c7be-3fab-4d65-ae69-8a74a04a0c7f | ||
| ``` | ||
|
|
||
| ```json | ||
| { | ||
| "value": [ | ||
| { | ||
| "id": "56B8B8A0-99FD-4FA9-8DE9-A57F3EE3C2FD" | ||
| }, | ||
| { | ||
| "@deleted": true, | ||
| "id": "A1B2C3D4-E5F6-A1B2-C3D4-E5F6A1B2C3D4" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| #### HTTP Response | ||
|
|
||
| ```shell | ||
| 204 No Content | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.