Turmas / Rotation

Cadastro / Create

[PT]Este serviço permite o cadastro de uma nova turma via Nexti API utilizando o id externo da escala. Um JSON no formato abaixo relacionado deve ser enviado como payload. Os campos obrigatórios estão marcados com um "". [EN]This service allows the registration of a new rotation by the Nexti API by schedule external id.A JSON in the format listed below must be submitted how to payload. Required fields are marked with a "".

post/rotations/rotations/dto/scheduleexternalid/{scheduleexternalid}

Request

  • Base URL: https://api.nexti.com
  • URL: https://api.nexti.com/rotations/rotations/dto/scheduleexternalid/{scheduleexternalid}
  • Auth: OAuth 2 (client credentials, token URL https://api.nexti.com/security/oauth/token)

Path parameters

scheduleexternalidstring required

Request body

idScheduleinteger

[PT]ID da escala. [EN]Schedule ID

codeinteger required

[PT]Código da turma. [EN]Rotation code.

baseDateTimestring required

[PT]Data da turma. [EN]Rotation date.

scheduleExternalIdstring

[PT]ID Externo da escala. [EN]Schedule External ID

Example request

{
  "baseDateTime": "ddMMyyyyHHmmss"
}

Response

OK

idinteger

ID do response

messagestring

Mensagem do response

commentsstring[]

Comentários do response

Example response

{
  "value": {
    "baseDateTime": "ddMMyyyyHHmmss"
  }
}

Changes

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