Cannot delete unpublished template
nxfi777
PROOP

2 years ago

When I try to delete an old template I get this error
Error Not Authorized:

{"response":{"errors":[{"message":"Not Authorized","locations":[{"line":2,"column":3}],"path":["templateDelete"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"status":400}}}],"data":null,"status":200,"headers":{}},"request":{"query":"mutation templateDelete($id: String!) {\n templateDelete(id: $id)\n}","variables":{"id":"1822d872-71ac-496f-9a36-5cdefab7617c"}}}

0 Replies

brody
EMPLOYEE

2 years ago

is this a template on a team?


nxfi777
PROOP

2 years ago

yes


brody
EMPLOYEE

2 years ago

does the url have the team id in it?


nxfi777
PROOP

2 years ago

no


brody
EMPLOYEE

2 years ago

add it ?teamId=


nxfi777
PROOP

2 years ago

Where do I find the team id?


brody
EMPLOYEE

2 years ago

good question, the dashboard will make a me graphql query when you refresh the page, the result of that query will contain your team id


nxfi777
PROOP

2 years ago

what a fun process


brody
EMPLOYEE

2 years ago

its easy enough haha


nxfi777
PROOP

2 years ago

I added the team id to the query parameter of the template url and nothing happened


nxfi777
PROOP

2 years ago

also how do you know this 😂


brody
EMPLOYEE

2 years ago

i opened up dev tools


nxfi777
PROOP

2 years ago

ah


nxfi777
PROOP

2 years ago

sneaky


brody
EMPLOYEE

2 years ago

the path you would want is /account/templates?teamId=


nxfi777
PROOP

2 years ago

same error


nxfi777
PROOP

2 years ago

okay it changes when i refreshed


nxfi777
PROOP

2 years ago

new error


nxfi777
PROOP

2 years ago

(upon deletion attempt)


brody
EMPLOYEE

2 years ago

okay i can reproduce


brody
EMPLOYEE

2 years ago

will flag


jake
EMPLOYEE

2 years ago

Raised to team


fp
EMPLOYEE

2 years ago

PR merged. Should be live in ~10m.


Loading...