Skip to main content
PUT
/
products
/
{product_id}
/
spec-details
/
{spec-id}
/
graphql
/
schema
Upload GraphQL schema file of a Specification
curl --request PUT \
  --url http://localhost:3001/portal-api/products/{product_id}/spec-details/{spec-id}/graphql/schema \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
This response does not have an example.

Authorizations

Authorization
string
header
required

Path Parameters

product_id
integer
required

UID of an API Product

spec-id
integer
required

ID of the Specification

Example:

1

Query Parameters

dry_run
boolean
default:false

If true, only validates the file without saving it

Body

multipart/form-data
file
file

GraphQL schema file (.graphql, .gql, or .json) - only 1 file at a time

Response

OK