Skip to main content

hello,

I am testing the Create APIs, but getting the error response “502Bad Gateway” in the call “Update Workspaces”. I have tried the mentioned mistakes from the response but still it is giving the error.

I have also pasted the curl of the call and screenshot below.

Kindly guide me in resolving the mater.

curl --location --request PATCH 'https://api.typeform.com/workspaces/id' \
--header 'Authorization: Bearer <token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw 'a
  {
    "op": "replace",
    "path": "/name",
    "value": "marketing workspace"
  },
  {
    "op": "add",
    "path": "/members",
    "value": {
      "email": "test@test.com"
    }
  },
  {
    "op": "remove",
    "path": "/members",
    "value": {
      "email": "test@test.com"
    }
  }
]'

 

Hi @Sibqo Glad to see you again! :grin: Are you the owner of the workspace or the owner of the account you’re trying to call? 


Hi @Sibqo 

I just went ahead and tested on my account and the requests work as expected. As @Liz mentioned you probably try to edit a workspace that either does not exist or you don’t have access to.

Here is a workspace request to change the name of your workspace
 

curl --location --request PATCH 'https://api.typeform.com/workspaces/{workspace_id}' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json' \

--header 'Authorization: Bearer {a personal token with full scope}' \

--data-raw 'a {

"op": "replace",

"path": "/name",

"value": "my awesome workspace"

}

]'

 


@Liz  @picsoung  Thankyou so much guys, your replies helped alot.


Reply