Requisição
Adicionar o parâmetro Authorization
a Cabeçalhos, cujo valor é concatenar o Token após o Bearer. Exemplo:Authorization: Bearer ********************
Parâmetros Bodyapplication/json
{
"subscriptions": [
"string"
],
"target_url": "http://example.com",
"is_active": true
}
Códigos de solicitação
curl --location --request POST '/subscriptions/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscriptions": [
"string"
],
"target_url": "http://example.com",
"is_active": true
}'
Respostas
application/json {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"subscriptions": [
"string"
],
"target_url": "http://example.com",
"is_active": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Modificado em 2025-03-25 00:28:52