/api/v1/me/alerts/{id} (PUT)
PUT
/api/v1/me/alerts/{id}
const url = 'https://nbaproplab.com/api/v1/me/alerts/1';const options = { method: 'PUT', headers: { Authorization: 'Bearer <token>', 'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json' }, body: '{"channel":"example","threshold":1,"activeFrom":"example","activeTo":"example","isActive":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://nbaproplab.com/api/v1/me/alerts/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "channel": "example", "threshold": 1, "activeFrom": "example", "activeTo": "example", "isActive": true }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer format: int32
Request Body required
Section titled “Request Body required ”object
channel
required
null | string
threshold
required
null | number | string format: double
activeFrom
required
null | string
activeTo
required
null | string
isActive
required
null | boolean
Example generated
{ "channel": "example", "threshold": 1, "activeFrom": "example", "activeTo": "example", "isActive": true}object
channel
required
null | string
threshold
required
null | number | string format: double
activeFrom
required
null | string
activeTo
required
null | string
isActive
required
null | boolean
Example generated
{ "channel": "example", "threshold": 1, "activeFrom": "example", "activeTo": "example", "isActive": true}object
channel
required
null | string
threshold
required
null | number | string format: double
activeFrom
required
null | string
activeTo
required
null | string
isActive
required
null | boolean
Example generated
{ "channel": "example", "threshold": 1, "activeFrom": "example", "activeTo": "example", "isActive": true}Responses
Section titled “ Responses ”OK
Authentication required.
Media type application/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Insufficient permissions or tier.
Media type application/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}