Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Partners API

Updated

Partners API

By Josh M. 3 mins 23

The partners API allows the creation, fetch, and deletion of partners from FaxStore. This streamlines partners on FaxStore allowing easy migration.

Table of Contents


Get All Partners

GET/api/partners
Returns an array of all partners from the database.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Responses
200OKjson
View response body
[
  {
    "id": 1,
    "position": 10,
    "partName": "Gigavault",
    "partImage": "/images/partner-YhTxn6yPx2cGsBOhs74kabQ20pjiL43YkPiaR9OAw2SPu.png",
    "partDesc": "Gigavault is a team focused password sharing platform that enables teams to securely share internal information.",
    "partLink": "htttps://gigavault.cloud",
    "editors": "",
    "urlId": "gigavault"
  }
  ...
]
401Unauthorizedplaintext
View response body
You are not authorized to access this resource.

Get Partner

GET/api/partners/:id
Returns the requested partner in an object.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Path parameters
NameTypeRequiredDescription
idStringrequiredThe internal database ID of the partner.
Responses
200OKjson
View response body
{
  "id": 1,
  "position": 10,
  "partName": "Gigavault",
  "partImage": "/images/partner-YhTxn6yPx2cGsBOhs74kabQ20pjiL43YkPiaR9OAw2SPu.png",
  "partDesc": "Gigavault is a team focused password sharing platform that enables teams to securely share internal information.",
  "partLink": "htttps://gigavault.cloud",
  "editors": "",
  "urlId": "gigavault"
}
401Unauthorizedjson
View response body
You are not authorized to access this resource.

Create Partner

POST/api/partners
Create a partner with the provided details.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Request body
NameTypeRequiredDescription
nameStringrequiredThe desired name for the partner
linkStringrequiredAn external link that will be presented on the partner page.
positionIntegeroptionalA number used to sort partners on the partner page.
aboutStringoptionalA short description of the partner.
urlIdStringrequiredThe URL identifier for the partner.
Responses
200OKjson
View response body
{
  "id": 1,
  "position": 10,
  "partName": "Gigavault",
  "partImage": "/images/partner-YhTxn6yPx2cGsBOhs74kabQ20pjiL43YkPiaR9OAw2SPu.png",
  "partDesc": "Gigavault is a team focused password sharing platform that enables teams to securely share internal information.",
  "partLink": "htttps://gigavault.cloud",
  "editors": "",
  "urlId": "gigavault"
}
404Not Foundplaintext
View response body
Partner not found after creation. Likely due to a database error.
401Unauthorizedjson
View response body
You are not authorized to access this resource.

Delete Partner

DELETE/api/partners/:id
Deletes a partner from the database.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Path parameters
NameTypeRequiredDescription
idStringrequiredThe database ID of the partner to delete.
Responses
201OKplaintext
View response body
(no content)
404Not Foundplaintext
View response body
Partner ID not found.
401Unauthorizedjson
View response body
You are not authorized to access this resource.