curl --request PUT \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/schemas/{id}/operations/{operationId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}
'{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}Updates or creates a schema operation.
curl --request PUT \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/schemas/{id}/operations/{operationId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}
'{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}UpdateSchemaOperationRequest is the request definition for updating a schema operation.
The ID of the schema this object belongs to.
The ID of the operation, for OpenAPI this will be the operationId field if set, otherwise the request's
type and path.
The http method that the operation uses.
GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE, SQL A human-friendly description of what this operation does.
A human-friendly name based on the operation ID.
The path used to call the operation.
Show child attributes
Show child attributes
The name of the operation parameter.
The type of the operation parameter.
string, integer, number, boolean The location of the operation parameter.
path, query, header, cookie Whether the parameter is required.
The request body of the operation.
The response body of the operation.
The callbacks of the operation.
An optional map of components the operation refers to indexed by ref.
UpdateSchemaOperationResponse is the response definition after updating a schema operation.
The ID of the schema this object belongs to.
The ID of the operation, for OpenAPI this will be the operationId field if set, otherwise the request's
type and path.
The http method that the operation uses.
GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE, SQL A human-friendly description of what this operation does.
A human-friendly name based on the operation ID.
The path used to call the operation.
Show child attributes
Show child attributes
The name of the operation parameter.
The type of the operation parameter.
string, integer, number, boolean The location of the operation parameter.
path, query, header, cookie Whether the parameter is required.
The request body of the operation.
The response body of the operation.
The callbacks of the operation.
An optional map of components the operation refers to indexed by ref.