Skip to main content

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:

mutation PublicPriceRequestUploadUrl($contentType: String!, $fileName: String!, $size: Int!, $token: String!) {
publicPriceRequestUploadUrl(
contentType: $contentType
fileName: $fileName
size: $size
token: $token
) {
uploadKey
uploadUrl
}
}

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.