---
title: "Edit Oauth app"
method: POST
path: "/api/v5/oauth/applications/{oauth_application_id}/edit"
tags: ["Oauth-apps"]
---

# Edit Oauth app

`POST /api/v5/oauth/applications/{oauth_application_id}/edit`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/oauth/applications/{oauth_application_id}/edit`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v5/secure/token`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/oauth/applications/:oauth_application_id/edit/post.ts> (a function with typed inputs; its response is checked against the schema)

Page to new application form

## Path parameters

- `oauth_application_id` integer, required

## Request body

- BodyOauthEditApplicationHandlerApiV5OauthApplicationsOauthApplicationIdEditPost
  - `oauth_application` OauthApplicationInUpdate, required
    - `name` string, required
    - `redirectUri` string, required
    - `makePublic` boolean
    - `description` string

## Response `201`

Successful Response

- OauthApplicationInResponse
  - `oauthApplication` OauthApplication, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `name` string, required
    - `uid` string, required
    - `secret` string, required
    - `redirectUri` string, required
    - `scopes` string
    - `ownerId` integer
    - `ownerType` string
    - `appUrl` string
    - `appIcon` string
    - `approved` boolean
    - `public` boolean
    - `voltCost` integer
    - `makePublic` boolean
    - `publisherName` string
    - `description` string
    - `contactEmail` string
    - `habitCategoryId` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
