Authorizations
Body
application/json
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 '{
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"schemaId": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}'{
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"schemaId": "<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 '{
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"schemaId": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}'{
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"schemaId": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}