Favorite Materials

Materials can be marked as favorites by a user or the users organization. Favorite materials will always appear at the very top of the material library. User favorite materials can be set, unset and listed. Organization favorite materials will automatically be added to new users of that organization.

Get User Favorite Material List (GET)

Get a full list of the users favorite materials.

Return Data

List of materials like this:

[
    {
        "mat_id": "21e7f7b138c34862b55a00d4b1e5e5d7",
        "mat_name": "Ultracur3D RG 35",
        "oem_name": "BASF",
        "process_acronym": "DLP",
        "machine": "Genera G2",
        "raw_mat_cost": 110
    },
    ...
]
Errors
PreconditionStatus codeError message
Usage
# GET "https://platform.3dspark.de/api/v1/user-favorite-material/"

this.axiosInstance
.get("api/v1/user-favorite-material/")
.then((response) => {
  console.log(response.data);

});

Get Organization Favorite Material List (GET)

Get a full list of the organization favorite materials.

Return Data

See ‘Get User Favorite Material List (GET)’

Usage
# GET "https://platform.3dspark.de/api/v1/organization-favorite-material/"

this.axiosInstance
.get("api/v1/organization-favorite-material/")
.then((response) => {
  console.log(response.data);
});

Set User Favorite Material (POST)

Add a material to the list of the users favorite materials.

Return Data

See ‘Get User Favorite Material List (GET)’

Usage
# POST "https://platform.3dspark.de/api/v1/user-favorite-material/<mat_id>/"

this.axiosInstance
  .post(`api/v1/user-favorite-material/71bb28323d6f4041a4285097b799628e/`)
  .then((response) => {
    console.log(response.data)
  })

Set Organization Favorite Material (POST)

Add a material to the list of the users organizations favorite materials.

Return Data

See ‘Get User Favorite Material List (GET)’

Usage
# POST "https://platform.3dspark.de/api/v1/organization-favorite-material/<mat_id>/"

this.axiosInstance
  .post(`api/v1/organization-favorite-material/71bb28323d6f4041a4285097b799628e/`)
  .then((response) => {
    console.log(response.data)
  })

Remove User Favorite Material (DELETE)

Remove a material from the list of the users favorite materials.

Return Data

See ‘Get User Favorite Material List (GET)’

Usage
# DELETE "https://platform.3dspark.de/api/v1/user-favorite-material/<mat_id>/"

this.axiosInstance
  .delete(`api/v1/user-favorite-material/71bb28323d6f4041a4285097b799628e/`)
  .then((response) => {
    console.log(response.data)
  })

Remove Organization Favorite Material (DELETE)

Remove a material from the list of the users organizations favorite materials.

Return Data

See ‘Get User Favorite Material List (GET)’

Usage
# DELETE "https://platform.3dspark.de/api/v1/organization-favorite-material/<mat_id>/"

this.axiosInstance
  .delete(`api/v1/organization-favorite-material/71bb28323d6f4041a4285097b799628e/`)
  .then((response) => {
    console.log(response.data)
  })