GithubHelp home page GithubHelp logo

Comments (10)

pranavrajs avatar pranavrajs commented on June 15, 2024 1

@cifuentesmx Thanks for the note, I missed that point. It is correct, you can only manage the accounts that were created using the platform app. Any other account (either created directly or by any other platform app) cannot be managed. This is done to improve the security of the system.

from chatwoot.

linear avatar linear commented on June 15, 2024

PR-1023 Problems with API endpoints

from chatwoot.

samuelalvesdev avatar samuelalvesdev commented on June 15, 2024

When I make a request to this endpoint, I get this information in the log:
image
Where can I change the permissions for "validate_plataform_app_permissible"?

from chatwoot.

vishnu-narayanan avatar vishnu-narayanan commented on June 15, 2024

@samuelalvesdev

  1. Are you hitting app.chatwoot.com endpoint?
  2. Could you share the request you are making in postman as curl?
  3. Are you getting the same error for all endpoints?

from chatwoot.

samuelalvesdev avatar samuelalvesdev commented on June 15, 2024

@vishnu-narayanan

  1. Im hitting my host domain as a self-hosted.
  2. curl --location --request PATCH 'https://XXXXX.XXXXXX.com.br/platform/api/v1/accounts/2'
    --header 'Content-Type: application/json'
    --header 'api_access_token: XXXXXXXXXXXXXX'
    --data '{
    "status": "suspended"
    }'
  3. Yep, im getting the same error for all endpoints. {
    "error": "Non permissible resource"
    }

from chatwoot.

vishnu-narayanan avatar vishnu-narayanan commented on June 15, 2024

@samuelalvesdev are you passing a platformAppApiKey as the api_access_token?

from chatwoot.

samuelalvesdev avatar samuelalvesdev commented on June 15, 2024

@vishnu-narayanan
Yep, platformAppApiKey as api_access_token on the header.
image

from chatwoot.

pranavrajs avatar pranavrajs commented on June 15, 2024

Please check if the account number 2 is suspended. It looks like the API is returning proper results.

Closing this here as it is not a bug.

from chatwoot.

samuelalvesdev avatar samuelalvesdev commented on June 15, 2024

@pranavrajs
Are you sure about that?

Screenshot_2024-04-11-14-04-52-258_com whatsapp

from chatwoot.

cifuentesmx avatar cifuentesmx commented on June 15, 2024

@samuelalvesdev is the account created with the platform api? Because i had the same issue deleting the account! I could only delete accounts created with the platform API, normal accounts are somehow protected form platform API changes for some reason. At least I think so.

from chatwoot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.