Skip to content
Navigation

Publish an advisor agreement

POST
https://api.nicer.travel/identity/agreement

Publishes a new version of the advisor agreement of the agency the request acts for, with the text sent: it is numbered after the existing versions, every earlier draft or published version is terminated, and every advisor must sign the new one. Answers the new version. Agency admins and Nicer staff only.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

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.

Request body JSON required

  • content
    string
    required

Returns

200

OK

JSON
  • companyName
    string
    required
  • content
    string
    required
  • publishedAt
    string
    required
  • startDate
    string
    required
  • status
    draft
    or
    published
    or
    terminated
    required
  • versionNumber
    number
    required
  • agreementId
    string
    required
  • createdAt
    string
    required
  • type
    string
    required
  • updatedAt
    string
    required
  • customFields
    optional
    map of
    unknown
  • endDate
    optional
    string

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