Apps and sources
Preview

Approve a request for an app

Creates the app for the team, owned by the requester, and tells them. An admin of the team or an organization Owner or Admin decides; the person who asked never does.

POST
/app-requests/{requestId}/approve
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

requestId*string
Formatuuid
Idempotency-Key?string

Makes 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.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255

Response Body

The request, now approved.

application/json
  1. response
id*string
Formatuuid
name*string
teamId*string
teamName*string
repositoryUrl*string
branch*string
path*string
renderType*RenderType
Value in"helm""kustomize""plain"
renderDetected*boolean

True when the renderer was found from the files in the path, false when the requester chose it.

requestedBy*string

The requester's user id.

requestedByName*string
requestedAt*string
Formatdate-time
checks*array<>
state*AppRequestState
Value in"pending""approved""declined"
canDecide*boolean

Whether the caller may approve or decline it now. Never the person who asked.

decidedBy?string
decidedByName?string
decidedAt?string
Formatdate-time
decisionReason?string
appId?string

The app an approval created.

Formatuuid
Example Request
curl -X POST 'https://wardn.example.com/api/v1/app-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve'
Example Response
{  "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"}