Mutation
mutation UploadChemicalSds($chemicalId: Int!, $file: File!) {
uploadChemicalSds(chemicalId: $chemicalId, file: $file)
}Variables
{
"chemicalId": 1,
"file": "value"
}Response
{
"data": {
"uploadChemicalSds": true
}
}Mutations
uploadChemicalSds
Attaches an uploaded safety data sheet PDF to a chemical and returns true.
MUTATION
uploadChemicalSds(chemicalId: Int!, file: File!): Boolean!Arguments
chemicalId
Int!
required
Id of the chemical to attach the safety data sheet to.
file
File!
required
The safety data sheet as a PDF.
Returns
Boolean!
Mutation
mutation UploadChemicalSds($chemicalId: Int!, $file: File!) {
uploadChemicalSds(chemicalId: $chemicalId, file: $file)
}Variables
{
"chemicalId": 1,
"file": "value"
}Response
{
"data": {
"uploadChemicalSds": true
}
}