Create OAuth2 application secret.
POST
CoderSessionTokenheader
Coder-Session-Token<token>app*stringApp ID
OK
application/json- response
[index: integer]?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/api/v2/oauth2-provider/apps/{app}/secrets" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response
[ { "client_secret_full": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }]