Skip to main content
POST
/
api
/
v1
/
courses
Criar curso
curl --request POST \
  --url https://services.pref.rio/go/v1/api/v1/courses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "carga_horaria": 123,
  "certificacao_oferecida": true,
  "contato_duvidas": "<string>",
  "cover_image": "<string>",
  "created_at": "<string>",
  "data_inicio": "<string>",
  "data_limite_inscricoes": "<string>",
  "data_termino": "<string>",
  "description": "<string>",
  "enrollment_end_date": "<string>",
  "enrollment_start_date": "<string>",
  "expected_results": "<string>",
  "external_partner_contact": "<string>",
  "external_partner_logo_url": "<string>",
  "external_partner_name": "<string>",
  "external_partner_url": "<string>",
  "facilitator": "<string>",
  "formato_aula": "GRAVADO",
  "has_certificate": true,
  "id": 123,
  "instituicao_id": 123,
  "institutional_logo": "<string>",
  "is_external_partner": true,
  "link_inscricao": "<string>",
  "local_realizacao": "<string>",
  "material_used": "<string>",
  "methodology": "<string>",
  "modalidade": "Presencial",
  "numero_vagas": 123,
  "objectives": "<string>",
  "organization": "<string>",
  "orgao_id": 123,
  "pre_requisitos": "<string>",
  "program_content": "<string>",
  "resources_used": "<string>",
  "status": "draft",
  "target_audience": "<string>",
  "teaching_material": "<string>",
  "theme": "<string>",
  "title": "<string>",
  "turno": "MANHA",
  "updated_at": "<string>",
  "workload": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Dados do curso

carga_horaria
integer
certificacao_oferecida
boolean
contato_duvidas
string
cover_image
string
created_at
string
data_inicio
string
data_limite_inscricoes
string
data_termino
string
description
string
enrollment_end_date
string
enrollment_start_date
string
expected_results
string
external_partner_contact
string
external_partner_logo_url
string
external_partner_name
string
external_partner_url
string
facilitator
string
formato_aula
enum<string>
Available options:
GRAVADO,
AO_VIVO
has_certificate
boolean

Optional fields matching specification

id
integer
instituicao_id
integer
is_external_partner
boolean

External partner fields

local_realizacao
string
material_used
string
methodology
string
modalidade
enum<string>
Available options:
Presencial,
Semipresencial,
Remoto,
PRESENCIAL,
ONLINE,
HIBRIDO
numero_vagas
integer
objectives
string
organization
string
orgao_id
integer

Legacy and additional fields

pre_requisitos
string

Unified field for prerequisites - using single JSON tag

program_content
string
resources_used
string
status
enum<string>
Available options:
draft,
opened,
closed,
canceled,
CRIADO,
ABERTO,
ENCERRADO
target_audience
string
teaching_material
string
theme
string
title
string

Core fields (always required)

turno
enum<string>
Available options:
MANHA,
TARDE,
NOITE,
INTEGRAL,
LIVRE
updated_at
string
workload
string

Response

Created

The response is of type object.