curl --request POST \
--url https://api.myidvirtual.com/suspension \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"reason": "<string>",
"duration": 123,
"permanent": true
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "user-id-123",
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE",
"createdAt": "2024-01-15T10:30:00.000Z"
}
Cria uma nova suspensão de usuário
curl --request POST \
--url https://api.myidvirtual.com/suspension \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"reason": "<string>",
"duration": 123,
"permanent": true
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "user-id-123",
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "user-id-123",
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE",
"createdAt": "2024-01-15T10:30:00.000Z"
}
curl --location --request POST 'http://localhost:3333/suspension' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "user-id-123",
"reason": "Violação dos termos de uso",
"duration": 7,
"permanent": false
}'