Decline a request for an app
Creates nothing and tells the requester why. A reason is required.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
requestId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
reason*string1 <= length <= 1000The request, now declined.
application/json- response
id*stringuuidname*stringteamId*stringteamName*stringrepositoryUrl*stringbranch*stringpath*stringrenderType*RenderType"helm""kustomize""plain"renderDetected*booleanTrue when the renderer was found from the files in the path, false when the requester chose it.
requestedBy*stringThe requester's user id.
requestedByName*stringrequestedAt*stringdate-timechecks*array<>state*AppRequestState"pending""approved""declined"canDecide*booleanWhether the caller may approve or decline it now. Never the person who asked.
decidedBy?stringdecidedByName?stringdecidedAt?stringdate-timedecisionReason?stringappId?stringThe app an approval created.
uuidcurl -X POST 'https://wardn.example.com/api/v1/app-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/decline' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "teamId": "string", "teamName": "string", "repositoryUrl": "string", "branch": "string", "path": "string", "renderType": "helm", "renderDetected": true, "requestedBy": "string", "requestedByName": "string", "requestedAt": "2019-08-24T14:15:22Z", "checks": [ { "key": "repository", "label": "string", "detail": "string", "passed": true } ], "state": "pending", "canDecide": true, "decidedBy": "string", "decidedByName": "string", "decidedAt": "2019-08-24T14:15:22Z", "decisionReason": "string", "appId": "28c365d5-df94-4a54-8217-3ce51d068868"}