Burp Suite User Forum

Create new post

Creating Folder using GraphQL Api

Fahad | Last updated: May 31, 2022 06:25PM UTC

I'm having a trouble creating a folder using the graphql api, I'm using the following query : mutation CreateFolder($input: { "name": "Folder1", "parent_id": "0" }!) { create_folder(input: $input) { folder { id name parent_id } } } but I get the error {'errors': [{'message': "Invalid Syntax : offending token '{' at line 2 column 31", 'extensions': {'code': 77}}]} I know this error is caused by an invalid query and I can't seem to get it right.

Fahad | Last updated: Jun 01, 2022 05:48AM UTC

I fixed it, The problem was my lack of knowledge of graphql. mutation { create_folder(input: { name: "{NAME}", parent_id: "{PARENT_ID}" }) { folder { id name parent_id } } }

Michelle, PortSwigger Agent | Last updated: Jun 01, 2022 10:02AM UTC

Thanks for the update. It's good to hear you fixed it :)

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.