Process Step Template

Process Step Templates are utilizes to store default values and calculation information for a new process step that is created within a new process chain.

Request Process Step Template by ID (GET)

Get process step template information.

Return Data
ParameterDescriptionTypeUnitExample
uidUnique IDstring“53474aef15cb4ba2a23a798fa8eabe74”
nameDisplay namestring“Plasma Hardening”
owner_usernameUsername of creatorstring“arnd”
restrictionAccess restriction levelstring“owner”
techTechnologystring, null“additive_manufacturing”
prc_acronymAcronym of associated processstring, null“slm”
step_typeProcess step typestring“post”
obligatoryMust be included when generating a new process chainbool“part”
calc_lvlCalculation level (once per part, per job or per lot).string
setup_timeTime to setup the processfloath1.0
process_timeProcess timefloath3.2
unloading_timeTime to reset the process step to initial conditions.floath0.5
machine_hourly_rateMachine hourly rate.float€/h15.35
worker_typePersonell type executing the process stepstring“designer”
staff_time_factor,
staff_time_factor_percent
Percentage of the build time the machine has to be supervised by personell.float0.1
10
Usage
# GET "https://platform.3dspark.de/api/v1/process-step-template/<uid>/""


this.axiosInstance
  .get("/api/v1/process-step-template/53474aef15cb4ba2a23a798fa8eabe74/")
  .then((response) => {
    console.log(response.data);
  })

Create Process Step Template (POST)

Get process step template information.

Return Data
ParameterDescriptionRequiredTypeUnitValid ValuesDefault
nameNametruestring1 – 250 characters
restrictionAccess restriction levelfalsestring, nullnull, “owner”, “organization”“owner”
techTechnologyfalsestring, nullnull, “additive_manufacturing”, “milling”, “casting”, “injection_molding”, “sheet_metal_work”“additive_manufacturing”
prc_acronymAcronym of associated processfalsestring, nullnull, ‘fdm’, ‘sla’, ‘dlp’, ‘dls’, ‘sls’, ‘mjf’, ‘pjm’, ‘dod’, ‘bj’, ‘slm’, ‘ebm’, ‘lmm’, ‘waam’null
step_typeProcess step typetruestring“pre”, “post”
obligatoryMust be included when generating a new process chaintruebooltrue, false
calc_lvlCalculation level (once per part, per job or per lot).truestring“part”, “job”, “lot”
setup_timeTime to setup the processfalsefloath0 – 1000000
process_timeProcess timefalsefloath0 – 1000000
unloading_timeTime to reset the process step to initial conditions.falsefloath0 – 1000000
machine_hourly_rateMachine hourly rate.truefloat€/h0.1 – 100000
worker_typePersonell type executing the process steptruestring“am_expert”, “designer”, “technician”
staff_time_factor,
staff_time_factor_percent
Percentage of the build time the machine has to be supervised by personell.truefloat0 – 1.0
0 – 100
Errors
PreconditionStatus codeError message
mac_id is a valid uuid422Invalid user input.
User has read access rights to the machine403Access forbidden.
Machine with mac_id can be found in database404Object not found in database.
Usage
# POST "https://platform.3dspark.de/api/v1/process-step-template/"

let formData = {
  "name": "Plasma Hardening",
  // "tech": "additive_manufacturing",
  "prc_acronym": "slm",
  "step_type": "post",
  "obligatory": false,
  // "restriction": "owner",
  "calc_lvl": "part",
  // "setup_time": 1000,
  // "process_time": 1000,
  // "unloading_time": 1000,
  "machine_hourly_rate": 0,
  "worker_type": "technician",
  // "staff_time_factor": 1,
}
this.axiosInstance
  .post("/api/v1/process-step-template/", formData)
  .then((response) => {
    console.log(response.data);
  })
Return Data

See ‘Request Process Step Template by ID (GET)’

Errors
PreconditionStatus codeError message
Form data are valid422Invalid user input.

Edit Process Step Template by ID (PUT)

Edit an existing process step template.

Form Data

At least one valid parameter. See ‘Create Process Step Template (POST)’

Return Data

See ‘Request Machine by ID (GET)’

Errors
PreconditionStatus codeError message
Formdata valid422Invalid user input.
A mat_id is passed.400No machine id given.
User is manager of owner’s organization or owner itself.403Access forbidden.
Usage
// PUT "https://platform.3dspark.de/api/v1/process-step-template/<uid>/"

let formData = {
  "name": "Plasma Hardening",
  // "tech": "additive_manufacturing",
  // "prc_acronym": "slm",
  // "step_type": "post",
  // "obligatory": false,
  // "restriction": "owner",
  // "calc_lvl": "part",
  // "machine_hourly_rate": 0,
  // "worker_type": "technician",
  // "setup_time": 1000,
  // "process_time": 1000,
  // "unloading_time": 1000,
  // "staff_time_factor": 1, 
}
this.axiosInstance
  .put("/api/v1/process-step-template/53474aef15cb4ba2a23a798fa8eabe74/", formData)
  .then((response) => {
    console.log(response.data);
  })

Delete Process Step Template (DELETE)

Delete process step template.

Return Data

Success notification.

Errors
PreconditionStatus codeError message
A uid is passed.400No ProcessStepTemplate uid given.
User is manager of owner’s organization or owner itself of the machine403Access forbidden.
Usage
// DELETE "https://platform.3dspark.de/api/v1/process-step-template/<uid>/"

this.axiosInstance
  .delete("/api/v1/process-step-template/53474aef15cb4ba2a23a798fa8eabe74/")
  .then((response) => {
    console.log(response.data);
  })

Get Paginated List of all Process Step Templates (GET)

Get all accessibly process steps for a user as pagined result.

Return Data
{
  "links": {
    "next": "http://django:8000/api/v1/process-step-template-list/?page=3",
    "previous": "http://django:8000/api/v1/process-step-template-list/"
  },
  "count": 79,
  "num_pages": 4,
  "results": [
    {
      "uid": "a598993958114e1fa7779bd277c799fb",
      "name": "Data Preparation",
      "owner_username": null,
      "restriction": null,
      "tech": "additive_manufacturing",
      "prc_acronym": "dls",
      "step_type": "pre",
      "obligatory": true,
      "calc_lvl": "lot",
      "setup_time": 0.1,
      "process_time": 0.1,
      "unloading_time": 0.05,
      "machine_hourly_rate": 0.3,
      "worker_type": "technician",
      "staff_time_factor": 1,
      "order": 60
    },
    ...
  ]
}
Usage
// GET "https://platform.3dspark.de/api/v1/process-step-template-list/?page=<page_number>"
// Page number defaults to 1, if not given

async button1Method(){
  this.axiosInstance
  .get("/api/v1/process-step-template-list/?page=2")
  .then((response) => {
    console.log(response.data);
  });
},

Get List of all Process Step Templates (GET)

Get all accessibly process steps for a user.

Return Data
[
  {
    "uid": "bf830014ff6c46a0a9de38e9a61f0f66",
    "name": "Administration Fee",
    "owner_username": null,
    "restriction": null,
    "tech": null,
    "prc_acronym": null,
    "step_type": "post",
    "obligatory": false,
    "calc_lvl": "lot",
    "setup_time": 0,
    "process_time": 1,
    "unloading_time": 0,
    "machine_hourly_rate": 0,
    "worker_type": "technician",
    "staff_time_factor": 1,
    "order": 2600
  },
  ...
]
Usage
// GET "https://platform.3dspark.de/api/v1/process-step-template-all/"


async button1Method(){
  this.axiosInstance
  .get("/api/v1/process-step-template-all/")
  .then((response) => {
    console.log(response.data);
  });
},