Skip to content
gist.link ↗

saveParcelTemplate

Mutation Shipping API — POST https://shipping.api.gist.link/graphql

The saveParcelTemplate mutation on the Shipping API.

shipping:mutation:saveParcelTemplate

The calling IAM key must hold this permission (or a wildcard that covers it: shipping:mutation:* or shipping:*) and the access token must have been minted with audience=shipping. See Permissions.

type Mutation {
saveParcelTemplate(input: SaveParcelTemplateInput!): ParcelTemplate!
}
Argument Type Required Description
input SaveParcelTemplateInput! Yes —

ParcelTemplate! — see the Shipping types reference.

Terminal window
curl https://shipping.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SaveParcelTemplate($input: SaveParcelTemplateInput!) { saveParcelTemplate(input: $input) { uuid name isDefault } }",
"variables": {
"input": {
"name": "Example",
"parcel": {
"lengthMm": 10,
"widthMm": 10,
"heightMm": 10,
"weightGrams": 10
}
}
}
}
JSON