POST
/
api
/
v1
/
users
curl --request POST \
  --url https://memberkit.com.br/api/v1/users \
  --header 'Content-Type: application/json' \
  --data '""'
{
  "id": 123,
  "full_name": "<string>",
  "email": "jsmith@example.com",
  "bio": "<string>",
  "profile_image_url": "<string>",
  "blocked": true,
  "unlimited": true,
  "sign_in_count": 123,
  "current_sign_in_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "metadata": {
    "cpf_cnpj": "<string>",
    "phone_local_code": "<string>",
    "phone_number": "<string>"
  },
  "enrollments": [
    {
      "id": 123,
      "status": "inactive",
      "course_id": 123,
      "classroom_id": 123,
      "expire_date": "2023-12-25"
    }
  ],
  "memberships": [
    {
      "id": 123,
      "status": "inactive",
      "membership_level_id": 123,
      "expire_date": "2023-11-07T05:31:56Z"
    }
  ]
}

Adiciona ou atualiza um membro na plataforma. Use esta rota para liberar ou desativar acesso a um conteúdo. Não é necessário informar todas as matrículas cadastradas anteriormente.

Existem três modalidades de acesso na Memberkit:

ModalidadeParâmetro
Acesso ilimitadounlimited
Cursos individuaisclassroom_ids
Assinaturasmembership_level_id

Escolha apenas uma modalidade na chamada.

Authorizations

api_key
string
query
required

Body

application/json
full_name
string
required

Nome completo.

email
string
required

Endereço de email.

status
enum<string>
required
Available options:
inactive,
pending,
active,
expired
blocked
boolean

Status de banimento.

unlimited
boolean

Acesso ilimitado.

classroom_ids
integer[]

IDs de turmas.

membership_level_id
integer

ID do nível de assinatura.

expires_at
string

Data de expiração.

cpf_cnpj
string

CPF/CNPJ.

phone_local_code
string

DDD do telefone.

phone_number
string

Número do telefone.

Response

201 - application/json
id
integer
required
full_name
string
required
email
string
required
bio
string
required
profile_image_url
string | null
required
blocked
boolean
required
unlimited
boolean
required
sign_in_count
integer
required
current_sign_in_at
string | null
required
created_at
string
required
updated_at
string
required
metadata
object
required
enrollments
object[]
required
memberships
object[]
required