-
Notifications
You must be signed in to change notification settings - Fork 1
update tutorial
Pongstr edited this page Mar 24, 2022
·
1 revision
title: 'Update Tutorial' description: '' updated: '2022-03-13T01:06:20.521Z' group: 'Tutorials' breadcrumb: ['Tutorials'] author: 'philip-FgE5m6oxT'
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
{
"APIId": "API_d265b573-00bc-4104-83cf-0688a98e7a84",
"versionId": "API Version_de9842d6-4d7e-4222-b3dc-de5eb4ffe5b8",
"title": "Sample Title V2",
"slugifiedName": "some-tutorial-title"
}GraphQL: Mutation
mutation UpdateTutorial(
$APIId: ID!
$versionId: ID!
$title: String
$content: String
$published: Boolean
$thumbnailURL: String
$slugifiedName: String!
) {
updateTutorial(
tutorial: {
APIId: $APIId
API Version: $versionId
title: $title
content: $content
published: $published
thumbnailURL: $thumbnailURL
slugifiedName: $slugifiedName
}
) {
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.eyJpZCI6Mzc5MTc0NSwibWFzaGFwZUlkIjoiNWY0NGM5YzMwOGNiMDIxMjNhODc3MWMzIiwib3JpZ2luX3NpdGUiOiJwbGF0Zm9ybS1hcGkiLCJpc05ld1VzZXIiOmZhbHNlLCJpc0F1dGhlbnRpY2F0ZWRCeVNTTyI6ZmFsc2UsImVtYWlsIjpudWxsLCJpYXQiOjE2NDY1OTE4ODcsImV4cCI6MTY3ODEyNzg4N30.JOK9AYNfXJ6XpE8jkLV-X3dCBm7SLMi6x96MIp0_G-0; Max-Age=31536000; Path=/; Expires=Mon, 06 Mar 2023 18:38:07 GMT; HttpOnly; Secure; SameSite=Strict
Server: RapidAPI-1.2.8
X-Download-Options: noopen
X-Correlation-Id: dec8592d-20fe-4b91-847e-dc912ad3a48c
X-XSS-Protection: 1; mode=block
X-RapidAPI-Region: AWS - us-east-1
Date: Sun, 06 Mar 2022 18:38:08 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-RapidAPI-Version: 1.2.8
Content-Length: 1002
Connection: Close
X-Content-Type-Options: nosniff
Etag: W/"3ea-6YzBwdRPNqdlkuchVG9ByURM38s"
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Response Body
{
"errors": [
{
"message": "Could not update API tutorial",
"path": ["updateTutorial"],
"extensions": {
"correlationId": "dec8592d-20fe-4b91-847e-dc912ad3a48c",
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"stacktrace": [
"GraphQLError: Could not update API tutorial",
" 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": {
"updateTutorial": null
}
}