Mutation
mutation EditProtocolKnownMaterial($input: EditProtocolKnownMaterialInput!, $materialId: String!) {
editProtocolKnownMaterial(input: $input, materialId: $materialId) {
id
name
type
}
}Variables
{
"input": {
"name": "string",
"type": "string"
},
"materialId": "string"
}Response
{
"data": {
"editProtocolKnownMaterial": {
"id": "string",
"name": "string",
"type": "string"
}
}
}Mutations
editProtocolKnownMaterial
Updates the name and type of a known material and returns it.
MUTATION
editProtocolKnownMaterial(input: EditProtocolKnownMaterialInput!, materialId: String!): ProtocolKnownMaterial!Arguments
input
required
The changes to apply.
materialId
String!
required
Id of the known material to edit.
Returns
id
String!
Id of the material.
name
String!
Name of the material.
type
String!
One of 'BIOLOGICAL' (Biological), 'CHEMICAL' (Chemical), 'CONSUMABLE' (Consumable) or 'EQUIPMENT' (Equipment).
Mutation
mutation EditProtocolKnownMaterial($input: EditProtocolKnownMaterialInput!, $materialId: String!) {
editProtocolKnownMaterial(input: $input, materialId: $materialId) {
id
name
type
}
}Variables
{
"input": {
"name": "string",
"type": "string"
},
"materialId": "string"
}Response
{
"data": {
"editProtocolKnownMaterial": {
"id": "string",
"name": "string",
"type": "string"
}
}
}