Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No route POST: ticketing/tickets #241

Open
AlanGreyjoy opened this issue Apr 28, 2022 · 4 comments
Open

No route POST: ticketing/tickets #241

AlanGreyjoy opened this issue Apr 28, 2022 · 4 comments

Comments

@AlanGreyjoy
Copy link

Ran into this tonight.
No route POST: ticketing/tickets

Using the latest UCRM SDK.

@Antontonov
Copy link

Hi, have the same issue, how do you solve it?

kind regards

@AlanGreyjoy
Copy link
Author

You have to debug the actual UCRM app in console and you'll see the path.

I stopped using the SDK. If you using node, then just use axios and build your own SDK using the API docs. I rarely use SDK's nowadays.

The API docs say REST, but it's not a RESTful api. Getting tired of RESTful just being tossed around like that lol.

@Antontonov
Copy link

Okay thank you, if I get something to run I will share it ;P

Or do you have allready a workaround to create/send tickets via plugins?

@janprochazkacz
Copy link
Collaborator

Hi @Antontonov, thank you for using CRM!
We don't see any issues with API or plugin SDK.
Try this and let us know if it works:

$api = \Ubnt\UcrmPluginSdk\Service\UcrmApi::create();

$api->post(
    'ticketing/tickets',
    [
        'subject' => 'Test ticket',
        'clientId' => 1,
        'activity' => [
            [
                'comment' => [
                    'body' => 'Test comment',
                ]
            ]
        ]
    ]
);

@janprochazkacz janprochazkacz reopened this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants