Upload API specification for a toolDeprecated

put/tool/{toolName}/apispec

This endpoint allows for uploading the API specification of a tool in YAML format.

Request
path Parameters
toolName
required
string

Name of the tool

Request Body schema: multipart/form-data
required
file
string <binary>

API specification file in YAML format.

Responses
200

OK

Response Schema: application/json
message
string

Message detailing the outcome of the operation.

400

Bad Request

401

Not Authorized

Request samples
curl -i -X PUT \
  'https://domain-be.glean.com/api/tools/v1/tool/{toolName}/apispec' \
  -H 'Content-Type: multipart/form-data' \
  -F file=string
Response samples
application/json
{
  • "message": "string"
}