publicPriceRequestUploadUrl
Public: no authentication required.
A presigned PUT URL for the vendor's quotation PDF (at most 20 MB), before answering. Needs no sign-in: the signed link token is the credential. Any invalid, expired, revoked or used link gets one message.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation PublicPriceRequestUploadUrl($contentType: String!, $fileName: String!, $size: Int!, $token: String!) {
publicPriceRequestUploadUrl(
contentType: $contentType
fileName: $fileName
size: $size
token: $token
) {
uploadKey
uploadUrl
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation PublicPriceRequestUploadUrl($contentType: String!, $fileName: String!, $size: Int!, $token: String!) {\n publicPriceRequestUploadUrl(\n contentType: $contentType\n fileName: $fileName\n size: $size\n token: $token\n ) {\n uploadKey\n uploadUrl\n }\n}",
"variables": {
"contentType": "string",
"fileName": "string",
"size": 0,
"token": "string"
}
}
EOF
Variables:
{
"contentType": "string",
"fileName": "string",
"size": 0,
"token": "string"
}
Response:
{
"data": {
"publicPriceRequestUploadUrl": {
"uploadKey": "string",
"uploadUrl": "string"
}
}
}
publicPriceRequestUploadUrl(
contentType: String!
fileName: String!
size: Int!
token: String!
): PublicPriceRequestUpload!
Arguments
publicPriceRequestUploadUrl.contentType ● String! non-null scalar
Must be application/pdf.
publicPriceRequestUploadUrl.fileName ● String! non-null scalar
The file's name; a.pdf.
publicPriceRequestUploadUrl.size ● Int! non-null scalar
The file's size in bytes, up to 20 MB.
publicPriceRequestUploadUrl.token ● String! non-null scalar
The token from the vendor's link.
Type
PublicPriceRequestUpload object
Where to PUT the quotation PDF, and the key to send back.