Skip to content

Commit 8a775d0

Browse files
committed
To add provision to revoke Active Action Requests in ONE Record
#295
1 parent f980335 commit 8a775d0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Documentation_website/docs/API-Security/action-requests.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ This enables users and holders to view and revoke action requests, and enables h
1111
- An [ActionRequest](https://onerecord.iata.org/ns/api#ActionRequest) MUST only be accepted or reject by the [`Holder of the LogisticsObject`](./concepts.md#holder-of-a-logistics-object)
1212
- A [VerificationRequest](https://onerecord.iata.org/ns/api#VerificationRequest) MUST only be acknowledged by the [`Holder of the LogisticsObject`](./concepts.md#holder-of-a-logistics-object)
1313
- An [ActionRequest](https://onerecord.iata.org/ns/api#ActionRequest) where [isRequestedBy](https://onerecord.iata.org/ns/api#requestedBy) is the [`Holder of the LogisticsObject`](./concepts.md#holder-of-a-logistics-object) SHOULD be accepted and processed directly.
14-
- An [ActionRequest](https://onerecord.iata.org/ns/api#ActionRequest) MUST only be revoked as long as it is in `REQUEST_PENDING` status.
14+
15+
- [ChangeRequest](https://onerecord.iata.org/ns/api#ChangeRequest) and [VerificationRequest](https://onerecord.iata.org/ns/api#VerificationRequest) MUST only be revoked as long as it is in `REQUEST_PENDING` status.
16+
- [AccessDelegationRequest](https://onerecord.iata.org/ns/api#AccessDelegationRequest) and [SubscriptionRequest](https://onerecord.iata.org/ns/api#SubscriptionRequest) can be revoked as long as they are in `REQUEST_PENDING` or `REQUEST_ACCEPTED` status.
1517
- An [AccessDelegationRequest](https://onerecord.iata.org/ns/api#AccessDelegationRequest) MUST only be revoked by the `Delegator` or the `Delegate`
1618
- A [SubscriptionRequest](https://onerecord.iata.org/ns/api#SubscriptionRequest) MUST only be revoked by the `Requestor`/`Subscriber` or the `Publisher`
17-
- A [VerificationRequest](https://onerecord.iata.org/ns/api#VerificationRequest) MUST only be revoked by the `Requestor` or the [`Holder of the LogisticsObject`](./concepts.md#holder-of-a-logistics-object)
19+
- A [VerificationRequest](https://onerecord.iata.org/ns/api#VerificationRequest) or a [ChangeRequest](https://onerecord.iata.org/ns/api#ChangeRequest) MUST only be revoked by the `Requestor` or the [`Holder of the LogisticsObject`](./concepts.md#holder-of-a-logistics-object)
1820
- If errors occur while processing an accepted [ActionRequest](https://onerecord.iata.org/ns/api#ActionRequest), the [hasRequestStatus](https://onerecord.iata.org/ns/api#hasRequestStatus) of this [ActionRequest](https://onerecord.iata.org/ns/api#ActionRequest) MUST be changed to [REQUEST_FAILED](https://onerecord.iata.org/ns/api#REQUEST_FAILED)
1921

2022

@@ -34,12 +36,15 @@ This enables users and holders to view and revoke action requests, and enables h
3436
REQUEST_REVOKED --> [*]
3537
3638
REQUEST_ACCEPTED --> [*]
37-
REQUEST_ACCEPTED --> REQUEST_FAILED: an error has occurred
39+
REQUEST_ACCEPTED --> REQUEST_FAILED: an error has occurred
40+
REQUEST_ACCEPTED --> REQUEST_REVOKED: revocation requested
3841
3942
REQUEST_FAILED --> [*]
4043
4144
REQUEST_REJECTED --> [*]
4245
```
46+
!!! note
47+
[AccessDelegationRequest](https://onerecord.iata.org/ns/api#AccessDelegationRequest) and [SubscriptionRequest](https://onerecord.iata.org/ns/api#SubscriptionRequest) may be revoked while in the `REQUEST_ACCEPTED` status. In contrast, once [ChangeRequest](https://onerecord.iata.org/ns/api#ChangeRequest) and [VerificationRequest](https://onerecord.iata.org/ns/api#VerificationRequest) are accepted, they cannot be revoked; a new action request must be submitted instead.
4348

4449
**ActionRequest state diagram for VerificationRequest**
4550

0 commit comments

Comments
 (0)