Update an OAuth app
Renames the app or rotates its secret. A new secret is checked with the platform before it is saved, and takes effect for every account on the app at once; their tokens keep working. The client ID cannot change: a different client ID is a different app, so add it and reconnect the accounts through it.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.updateOAuthApp({ body: { label: 'string', clientSecret: 'string', scopeAreas: [ 'posting', ], },});console.log(data);{ "app": { "id": "string", "platform": "string", "label": "string", "clientId": "string", "scopeAreas": [ "posting" ], "status": "ok", "lastCheckedAt": "2019-08-24T14:15:22Z", "lastError": "string", "accountCount": 0, "redirectUri": "http://example.com", "webhook": { "callbackUrl": "http://example.com", "verifyToken": "string", "object": "page", "fields": [ "string" ] }, "createdAt": "2019-08-24T14:15:22Z" }}Save the welcome screen
Replaces the workspace's welcome screen settings: a field left out is cleared. Only the account owner or a full-access team member can save, and not with a profile-scoped API key. Parameters sent on a connect call still win over these values for that call.
List posts
Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform. A query parameter that is not listed here returns 400 naming it and the accepted parameters, so a misspelled filter never silently returns the unfiltered list.