Skip to main content
POST
Withdraw a trip's approval request
The request is canceled with the approvals service first, and the trip goes back to being reservable, so it can be sent for approval again or issued. Only an organization admin or the user who booked the trip, or sent it for approval, can withdraw it. A request that is still being created can’t be withdrawn yet, and one that was already approved, denied or issued can’t be withdrawn at all. The answer is 204 No Content in every case that is not an error: read the trip to see where it is. Withdrawing a trip with no open request does nothing.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization the trip belongs to.

Format: UUID

tripId
string
required

ID of the trip whose approval request is withdrawn (24 hexadecimal characters).

Pattern: ^[0-9a-fA-F]{24}$

Body

application/json
policyRequestId
string<uuid>

ID of the approval request that ended. Only the approval service sends it; leave it out when you withdraw a request yourself.

Format: UUID

Example:

"b7f1c0d2-4e3a-4f8b-9c21-7a6d5e4f3b2a"

Response

No Content. The operation succeeded and the response has no body.