-
Notifications
You must be signed in to change notification settings - Fork 175
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
Draft
jpoutche
wants to merge
12
commits into
SAP-docs:main
Choose a base branch
from
jpoutche:TVR-33624
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+204
−6
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5109c77
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche bb52635
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche 232294e
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche 6044b27
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche f6e0dee
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche 0d8aaf7
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche 2ff74f5
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche 4b2a669
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche c3718ec
TVR-32867 : Review error handling of PATCH Participant APIs
jpoutche f875175
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche f31fac9
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche c24e702
TVR-33624 : [API] Cascading Request - API reference documentation
jpoutche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
165 changes: 165 additions & 0 deletions
165
src/api-reference/request/v4.endpoints.participant-resources.markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| --- | ||
| title: Travel Request v4 - Participant Resources | ||
| layout: reference | ||
| --- | ||
| # Travel Request v4 - Participant Resources | ||
|
|
||
| Manage participants and child requests attached to a Budget Request. | ||
|
|
||
| ## <a name="get-request-participants"></a>Get participants for a Budget Request | ||
|
|
||
| This endpoint will enable to retrieve the list of participants of a Budget Request, as well as the child Requests for each of the participants. | ||
|
|
||
| ### 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 | ||
|
|
||
| [ParentRequestParticipant](./v4.endpoints.schemas.html#schema-parentrequestparticipant) | ||
|
|
||
| ### Example - One participant with two Child Requests and One participant without Child Request | ||
|
|
||
| #### 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": { | ||
| "id": "60dea1fd-489f-48b9-925f-0d62a5b48175" | ||
| }, | ||
| "requests": [ | ||
| { | ||
| "href": "https://us.api.concursolutions.com/travelrequest/v4/requests/A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4", | ||
| "id": "A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4", | ||
| "template": "https://us.api.concursolutions.com/travelrequest/v4/requests/{id}" | ||
| }, | ||
| { | ||
| "href": "https://us.api.concursolutions.com/travelrequest/v4/requests/B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5", | ||
| "id": "B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5", | ||
| "template": "https://us.api.concursolutions.com/travelrequest/v4/requests/{id}" | ||
| }, | ||
| ] | ||
| }, | ||
| { | ||
| "participant": { | ||
| "id": "72efb2ae-5a0e-59ca-b037-1e73b6c59286" | ||
| } | ||
| } | ||
| ] | ||
| ``` | ||
|
|
||
| ## <a name="patch-request-participants"></a>Manage participants of a budget request | ||
|
|
||
| This endpoint will enable to manage participants (add or remove them) from a Budget 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 updating 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 - adding and removing a participant to a Budget Request | ||
|
|
||
| #### 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": "8422A66-A9B0-1424-5802-0D9BCD4351D3" | ||
| }, | ||
| { | ||
| "id": "9C33FBA0-ACB7-4F85-83BD-FC0DF3A78522", | ||
| "@deleted": true | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| #### HTTP Response | ||
|
|
||
| ```shell | ||
| 204 No Content | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.