Category

Create ComboCategoryItem (POST)

Create ComboCategory, ComboCategoryItem and Organization

Form Data
ParameterDescriptionRequiredTypeValid Valuesuser-role
categoryLabel of the categoryfalsestring1-250manager
requiredFlag if the category is requiredfalseboolTRUE, FALSE, “true”, “false” (all cases)manager
itemCategoryItem value to be createdfalsestr1-250manager
Return Data
{
    "message": "Added category choice: 3D Spark | Status | pending (6ba40dc05533401caa9f47f014efd1f8)",
}

Errors

PreconditionStatus codeError message
User is in an organization400<username> not in any organization.
User is manager of ComboCategoryItem organization403Access forbidden.
category / required / item field is invalid422Invalid user input.
Usage
# POST "https://platform.3dspark.de/api/v1/combo-category-item/"

let formData = {
  "category": "Status",
  "required": true,
  "item": "pending",
}
this.axiosInstance
  .post("/api/v1/combo-category-item/", formData)
  .then((response) => {
    console.log(response.data);
  })

Update ComboCategoryItem (PUT)

Update ComboCategory label and/or required state

Form Data
ParameterDescriptionRequiredTypeValid Valuesuser-role
valueNew Label of the itemfalsestring1-250manager
requiredFlag if the category is requiredfalseboolTRUE, FALSE, “true”, “false” (all cases)manager
Return Data
{
    "message": Updated ComboCategoryItem  6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
ComboCategoryItem exists404ComboCategoryItem with UID <uid> not found.
User is manager of ComboCategoryItem organization403Access forbidden.
category / required / item field invalid422Invalid user input.
Usage
# PUT "https://platform.3dspark.de/api/v1/combo-category-item/6ba40dc05533401caa9f47f014efd1f8/"

let formData = {
  "value": "running",
}
this.axiosInstance
  .put("/api/v1/combo-category-item/6ba40dc05533401caa9f47f014efd1f8/", formData)
  .then((response) => {
    console.log(response.data);
  })

Delete ComboCategoryItem (DELETE)

Delete ComboCategoryItem and ComboCategory, if empty afterwards.

Return Data
{
    "message": "Deleted ComboCategoryItem: 6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
ComboCategoryItem exists404ComboCategoryItem with UID <uid> not found.
User is manager of ComboCategoryItem organization403Access forbidden.
Usage
# DELETE "https://platform.3dspark.de/api/v1/combo-category-item/<combo-category-item_uid>/"

this.axiosInstance
  .delete("/api/v1/combo-category-item/6ba40dc05533401caa9f47f014efd1f8/")
  .then((response) => {
    console.log(response.data);
  })

Update ComboCategory (PUT)

Update ComboCategory label and/or required state.

Form Data
ParameterDescriptionRequiredTypeValid Valuesuser-role
labelNew Label of the itemfalsestring1-250manager
requiredFlag if the category is requiredfalseboolmanager
Create ComboCategory Parameters
Return Data
{
    "message": Updated ComboCategory  6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
UID of ComboCategory passed400No UID specified.
ComboCategory exists404ComboCategory with UID <uid> not found.
User is manager of ComboCategoryItem organization403Access forbidden.
label / required field invalid422No valid arguments given.
Usage
# PUT "https://platform.3dspark.de/api/v1/combo-category/6ba40dc05533401caa9f47f014efd1f8/"

let formData = {
  "label": "status",
  "required": true,
}
this.axiosInstance
  .put("/api/v1/combo-category/6ba40dc05533401caa9f47f014efd1f8/", formData)
  .then((response) => {
    console.log(response.data);
  })

Delete ComboCategory (DELETE)

Delete ComboCategory and all items.

Return Data
{
    "message": Deleted ComboCategory:  6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
valid ComboCategory UID passed 422Invalid user input.
ComboCategory exists404ComboCategory with UID <uid> not found.
User is manager of ComboCategory organization403Access forbidden.
Usage
# DELETE "https://platform.3dspark.de/api/v1/combo-category/6ba40dc05533401caa9f47f014efd1f8/"
this.axiosInstance
  .delete("/api/v1/combo-category/6ba40dc05533401caa9f47f014efd1f8/")
  .then((response) => {
    console.log(response.data);
  })

Create TextCategory (POST)

Create TextCategory and TextCategoryItem

Form Data
ParameterDescriptionRequiredTypeValid Valuesuser-role
categoryLabel of the categoryfalsestring1-250manager
requiredFlag if the category is requiredfalseboolTRUE, FALSE, “true”, “false” (all cases)manager
Return Data
{
    "message": "Added category choice: 3D Spark | Location",
}

Errors

PreconditionStatus codeError message
User is in an organization400<username> not in any organization.
User is manager of ComboCategory organization403Access forbidden.
category / required field invalid422Invalid user input.
Usage
# POST "https://platform.3dspark.de/api/v1/text-category-item/"

let formData = {
  "category": "Location",
  "required": true,
}
this.axiosInstance
  .post("/api/v1/combo-category-item/", formData)
  .then((response) => {
    console.log(response.data);
  })

Update TextCategory (PUT)

Update TextCategory value and/or required state.

Form Data
ParameterDescriptionRequiredTypeValid Valuesuser-role
labelNew Label of the itemfalsestring1-250manager
requiredFlag if the category is requiredfalseboolTRUE, FALSE, “true”, “false” (all cases)manager
Return Data
{
    "message": Updated TextCategory  6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
ComboCategoryItem exists404ComboCategoryItem with UID <uid> not found.
User is manager of ComboCategoryItem organization403Access forbidden.
label / required field invalid422Invalid user input.
Usage
# PUT "https://platform.3dspark.de/api/v1/text-category/6ba40dc05533401caa9f47f014efd1f8/"

let formData = {
  "required": true,
}
this.axiosInstance
  .put("/api/v1/text-category-item/6ba40dc05533401caa9f47f014efd1f8/", formData)
  .then((response) => {
    console.log(response.data);
  })

Delete TextCategory (DELETE)

Delete ComboCategory and all items.

Return Data
{
    "message": Deleted ComboCategory:  6ba40dc05533401caa9f47f014efd1f8",
}
Errors
PreconditionStatus codeError message
valid TextCategory UID passed 422Invalid user input.
TextCategory exists404TextCategory with UID <uid> not found.
User is manager of TextCategory organization403Access forbidden.
Usage
# DELETE "https://platform.3dspark.de/api/v1/text-category/6ba40dc05533401caa9f47f014efd1f8/"
this.axiosInstance
  .delete("/api/v1/text-category/6ba40dc05533401caa9f47f014efd1f8/")
  .then((response) => {
    console.log(response.data);
  })