-
Notifications
You must be signed in to change notification settings - Fork 1
update api
Pongstr edited this page Mar 24, 2022
·
1 revision
title: 'Update API' description: '' updated: '2022-03-13T01:08:05.650Z' group: 'API' breadcrumb: ['API'] author: 'RapidAPI'
Request Headers
X-RapidAPI-Key: 6176a4b1b7msh79f63eb622dd69cp1284cdjsn762fc4839b13
X-RapidAPI-Host: rAPIdAPI-graphqlAPI.p.rAPIdAPI.xyz
Content-Type: application/json; charset=utf-8
Cookie: jwt_auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mzc5MTc0NSwibWFzaGFwZUlkIjoiNWY0NGM5YzMwOGNiMDIxMjNhODc3MWMzIiwib3JpZ2luX3NpdGUiOiJwbGF0Zm9ybS1hcGkiLCJpc05ld1VzZXIiOmZhbHNlLCJpc0F1dGhlbnRpY2F0ZWRCeVNTTyI6ZmFsc2UsImVtYWlsIjpudWxsLCJpYXQiOjE2NDcxMDQ2ODQsImV4cCI6MTY3ODY0MDY4NH0.0O6WT0z5x5CWbnDExjdca3UTWhrANZTyR3AnMS-sdyw; connect.sid=s%3AFRLLS9Tl-mDqOnaR4gsW17uQxc24CJHs.Wd2tZlhb9%2BFnZOHwsjcVQsgNJb%2F1NG6P0Ax0E3HiX8I
Request URL Parameters
Empty URL Parameters
GraphQL: Variables
{
"APIUpdateInput": {
"id": "API_af869d2d-8995-472b-a4aa-cf638004581a",
"description": "updated description"
}
}
GraphQL: Mutation
mutation ($APIUpdateInput: APIUpdateInput!) {
updateAPI(API: $APIUpdateInput) {
id
name
title
official
installsAllTime
requestTimeout
requestSizeLimit
installsDaily
installsMonthly
installsWeekly
pricing
type
APIType
currentVersion {
id
}
category
createdAt
updatedAt
fee
ownerId
proxy
status
description
longDescription
tags {
id
}
thumbnail
thumbnailSmall
websiteUrl
termsOfService {
id
}
visibility
owner {
id
}
score {
APIId
}
followers {
id
}
followersCount
subscriptionsCount
issues {
id
}
rating {
rating
}
currentUserRateAPI {
rating
}
slugifiedName
redirect
redirectLink
categoryId
allowedContext
APISpotLights {
id
}
patternMatch
patternMatchAllowOtherTypes
requestSchemaValidation
requestSchemaValidationUnknownAttributePolicy
gateways
announcements {
id
}
APIDevelopers {
id
}
targetGroups {
id
}
publishAPIPendingRequest
saveRequestHeadersLogging
saveRequestQueryParametersLogging
saveRequestBodyLogging
saveResponseHeadersLogging
saveResponseBodyLogging
useHttpProxy
security {
rAPIdAPIProxySecret
}
versions {
id
}
headlines {
id
}
endpoints {
id
}
billingFeatures {
id
}
billingItems {
id
}
billingPlans {
id
}
}
}
Response Headers
Request URL: https://rAPIdAPI-graphqlAPI.p.rAPIdAPI.xyz/
Status Code: HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Access-Control-Allow-Origin: *
Set-Cookie: jwt_auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mzc5MTc0NSwibWFzaGFwZUlkIjoiNWY0NGM5YzMwOGNiMDIxMjNhODc3MWMzIiwib3JpZ2luX3NpdGUiOiJwbGF0Zm9ybS1hcGkiLCJpc05ld1VzZXIiOmZhbHNlLCJpc0F1dGhlbnRpY2F0ZWRCeVNTTyI6ZmFsc2UsImVtYWlsIjpudWxsLCJpYXQiOjE2NDYxMjgwMDAsImV4cCI6MTY3NzY2NDAwMH0.GLfrXX8A1AcoyxXxQjfJxZGyrv0gyCt08BPCw1P1s34; Max-Age=31536000; Path=/; Expires=Wed, 01 Mar 2023 09:46:40 GMT; HttpOnly; Secure; SameSite=Strict
Server: RapidAPI-1.2.8
X-Download-Options: noopen
X-Correlation-Id: b1eb503c-ee05-4e5b-a7eb-7c1f2e8dc675
X-XSS-Protection: 1; mode=block
X-RapidAPI-Region: AWS - us-east-1
Date: Tue, 01 Mar 2022 09:46:40 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-RapidAPI-Version: 1.2.8
Content-Length: 1010
Connection: Close
X-Content-Type-Options: nosniff
Etag: W/"3f2-OJ2R035JBgcMWJnSrmLBCO9Ttjs"
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Response Body
{
"errors": [
{
"message": "You are not authorized to perform this action",
"path": ["updateAPI"],
"extensions": {
"correlationId": "b1eb503c-ee05-4e5b-a7eb-7c1f2e8dc675",
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"stacktrace": [
"GraphQLError: You are not authorized to perform this action",
" at Object.relocatedError (/usr/local/rAPIdAPI-API/rAPIdAPI-API/node_modules/@graphql-tools/utils/index.js:3247:12)",
" at mergeDataAndErrors (/usr/local/rAPIdAPI-API/rAPIdAPI-API/node_modules/@graphql-tools/delegate/index.js:1021:34)",
" at checkResultAndHandleErrors (/usr/local/rAPIdAPI-API/rAPIdAPI-API/node_modules/@graphql-tools/delegate/index.js:1009:38)",
" at Transformer.transformResult (/usr/local/rAPIdAPI-API/rAPIdAPI-API/node_modules/@graphql-tools/delegate/index.js:1111:16)",
" at /usr/local/rAPIdAPI-API/rAPIdAPI-API/node_modules/@graphql-tools/delegate/index.js:1336:28",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:95:5)"
]
}
}
}
],
"data": null
}