Fuselage
Dismiss a banner
Dismisses a banner
URL
Requires Auth
HTTP Method
api/v1/banners.dismiss
YES
POST

Headers

Argument
Example
Required
Description
X-User-Id
myuser-name
Required
Your username hash (returned after you log in through the API)
X-Auth-Token
myauth-token
Required
Your token (returned after you log in through the API)

Example Call

1
curl --location --request POST 'http://localhost:3000/api/v1/banners.dismiss\
2
--header 'X-Auth-Token: myauth-token' \
3
--header 'X-User-Id: myuser-name'
4
-d "bannerId=ByehQjC44FwMeiLbX"
Copied!

Result

Success

1
{
2
"success": true
3
}
Copied!

Errors

The following errors can occur upon the endpoint.
  • Authorization: Requires an authentication token for the request to be made.
  • Missing Key: Requires bannerId for the request to be made.
Authorization
Missing key 'bannerId'
1
{
2
"status": "error",
3
"message": "You must be logged in to do this."
4
}
Copied!
1
{
2
"success": false,
3
"error": "Match error: Missing key 'bannerId'"
4
}
Copied!
Last modified 1mo ago
Export as PDF
Copy link
Edit on GitHub