Skip to main content
POST
/
api
/
v1
/
oportunidades-mei
/
{id}
/
propostas
Criar proposta MEI
curl --request POST \
  --url https://services.pref.rio/go/api/v1/oportunidades-mei/{id}/propostas \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "created_at": "2024-01-01T10:00:00Z",
  "deleted_at": "2024-12-31T23:59:59Z",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "mei_empresa_id": "12.345.678/0001-90",
  "oportunidade_mei_id": 1,
  "status_admin": "active",
  "status_cidadao": "submitted",
  "updated_at": "2024-01-01T10:00:00Z",
  "valor_proposta": 1500.5
}
'
{
  "created_at": "2024-01-01T10:00:00Z",
  "deleted_at": "2024-12-31T23:59:59Z",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "mei_empresa_id": "12.345.678/0001-90",
  "oportunidade_mei_id": 1,
  "status_admin": "active",
  "status_cidadao": "submitted",
  "updated_at": "2024-01-01T10:00:00Z",
  "valor_proposta": 1500.5
}

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token

Path Parameters

id
integer
required

ID da oportunidade

Body

application/json

Dados da proposta

created_at
string
Example:

"2024-01-01T10:00:00Z"

deleted_at
string
Example:

"2024-12-31T23:59:59Z"

id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

mei_empresa_id
string
Example:

"12.345.678/0001-90"

oportunidade_mei_id
integer
Example:

1

status_admin
enum<string>
Available options:
draft,
active,
expired
Example:

"active"

status_cidadao
enum<string>
Available options:
submitted,
approved,
rejected
Example:

"submitted"

updated_at
string
Example:

"2024-01-01T10:00:00Z"

valor_proposta
number
Example:

1500.5

Response

Created

created_at
string
Example:

"2024-01-01T10:00:00Z"

deleted_at
string
Example:

"2024-12-31T23:59:59Z"

id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

mei_empresa_id
string
Example:

"12.345.678/0001-90"

oportunidade_mei_id
integer
Example:

1

status_admin
enum<string>
Available options:
draft,
active,
expired
Example:

"active"

status_cidadao
enum<string>
Available options:
submitted,
approved,
rejected
Example:

"submitted"

updated_at
string
Example:

"2024-01-01T10:00:00Z"

valor_proposta
number
Example:

1500.5