Droptop endpoints
About Droptop
Returns data that Droptop needs
Responses
200
Successful operation
application/json
500
Error
application/json
get
GET /v1/droptop HTTP/1.1
Host: api.droptopfour.com
Accept: */*
{
"version": "text",
"miniversion": "text",
"CustomApp1": "text",
"CustomApp2": "text",
"CustomApp3": "text",
"CustomApp4": "text",
"CustomApp5": "text",
"CustomApp6": "text",
"CustomApp7": "text",
"CustomApp8": "text",
"CustomApp9": "text",
"CustomApp10": "text"
}
Gets the Droptop Four announcements
Responses
200
Successful operation
application/json
500
Error
application/json
get
GET /v1/announcements HTTP/1.1
Host: api.droptopfour.com
Accept: */*
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Adds a new announcements
Authorizations
Body
Responses
200
Successful operation
application/json
401
Unauthorized
application/json
422
Validation failed/Endpoint has been spammed
application/json
post
POST /v1/announcements HTTP/1.1
Host: api.droptopfour.com
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 141
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Deletes the Droptop Four announcements
Authorizations
Responses
200
Successful operation
application/json
401
Unauthorized
application/json
delete
DELETE /v1/announcements HTTP/1.1
Host: api.droptopfour.com
Authentication: YOUR_API_KEY
Accept: */*
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Gets the Droptop Four announcement
Path parameters
platformstring · enumRequiredPossible values:
The platform of the announcement (app, website)
Responses
200
Successful operation
application/json
500
Error
application/json
get
GET /v1/announcements/{platform} HTTP/1.1
Host: api.droptopfour.com
Accept: */*
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Adds a new announcements
Authorizations
Path parameters
platformstring · enumRequiredPossible values:
The platform of the announcement (app, website)
Body
dateinteger · int32Optional
The date of the announcement
expirationinteger · int32Optional
The expiration date of the announcement
announcementstringOptional
The announcement
typestring · enumOptionalPossible values:
The type of the announcement (info, warning, error)
Responses
200
Successful operation
application/json
401
Unauthorized
application/json
422
Validation failed/Endpoint has been spammed
application/json
post
POST /v1/announcements/{platform} HTTP/1.1
Host: api.droptopfour.com
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Deletes the Droptop Four announcements
Authorizations
Path parameters
platformstring · enumRequiredPossible values:
The platform of the announcement (app, website)
Responses
200
Successful operation
application/json
401
Unauthorized
application/json
delete
DELETE /v1/announcements/{platform} HTTP/1.1
Host: api.droptopfour.com
Authentication: YOUR_API_KEY
Accept: */*
{
"app": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
},
"website": {
"date": 1,
"expiration": 1,
"announcement": "text",
"type": "info"
}
}
Last updated
Was this helpful?