Skip to content
Navigation

Create a platform config row

POST
https://api.nicer.travel/config/{type}

Creates a platform-wide config row of the given type; AppVersion is the only one. An AppVersion row is the version gate of one app (versionCode, web for the web apps): isUnderMaintenance puts every user of that app on a maintenance screen and requiresUpdate asks the native app to update. A row that already exists is never overwritten. Only Nicer staff may create an AppVersion row; an agency admin gets 403.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • type
    string
    required

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • createdBy
    string
    required
  • isUnderMaintenance
    boolean
    required
  • lastModifiedBy
    string
    required
  • requiresUpdate
    boolean
    required
  • versionCode
    string
    required
    minLength: 1
  • type
    string
    required
  • createdAt
    string
    required
  • updatedAt
    string
    required

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close