v2.sections

Atualiza uma sessão.

Ao efetuar o update, o endpoint limpa o Cache de Sessões da Empresa pelo Label

put/v2/careerpage/sections

Request

  • Base URL: http://localhost:8888/api
  • URL: http://localhost:8888/api/v2/careerpage/sections
  • Auth: API key in header authorization

Request body

activeboolean

Status da Sessão

section'banner' | 'configuration' | 'about' | 'contact' | 'socialNetwork' | 'vacancies' | 'benefits' | 'companyValues' | 'testimonials' | 'companyVideo'

Label/Key da Section

orderinteger

Ordem da Sessão

Example request

{
  "active": true,
  "section": "about",
  "order": 1
}

Response

Sucesso de Retorno!

messagestring

Mensagem de Retorno

Example response

{
  "message": "Ação realizada com sucesso!",
  "data": {
    "_id": "62db0c174432142bcd1afebc",
    "section": "banner",
    "title": "Cabeçalho do Portal",
    "name": "Banner",
    "default": true,
    "active": true,
    "editable": true,
    "requireds": [
      "banner"
    ],
    "company_id": 1,
    "author_id": 1,
    "last_updated_id": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.